JuliaInterop/Clang.jl

Is it possible to handle headers with `__float128`?

Opened this issue · 1 comments

Discussed in #508

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:

# tojulia(x::CLFloat128) = JuliaCfloat128() # see Quadmath.jl