Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to handle headers with __float128? #509

Open
Gnimuc opened this issue Aug 31, 2024 Discussed in #508 · 1 comment
Open

Is it possible to handle headers with __float128? #509

Gnimuc opened this issue Aug 31, 2024 Discussed in #508 · 1 comment
Labels
good first issue Good for newcomers

Comments

@Gnimuc
Copy link
Member

Gnimuc commented Aug 31, 2024

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:

@Gnimuc Gnimuc added the good first issue Good for newcomers label Aug 31, 2024
@Gnimuc
Copy link
Member Author

Gnimuc commented Aug 31, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant