Originally posted by **amontoison** August 30, 2024
Some Fortran libraries, like `CUTEst`, can be easily compiled in quadruple precision with the `gfortran` compiler.
The associated type in the header file to call the routines from C is `__float128` and is equivalent to `Float128` (implemented in `Quadmath.jl`).
It will be a nice feature to add an option to generate Julia wrappers for this precision. We just need to add `using Quadmath` at the top of the generated file if Julia wrappers can be generated.
I have a package where I need to write these additional wrappers by hand:
- https://github.com/JuliaSmoothOptimizers/CUTEst.jl/tree/main/gen
- https://github.com/JuliaSmoothOptimizers/CUTEst.jl/blob/main/src/libcutest.jl
Discussed in https://github.com/JuliaInterop/Clang.jl/discussions/508