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

Support X87 and IEEE quad precision long doubles #213

Closed
Vexu opened this issue Jan 18, 2022 · 3 comments
Closed

Support X87 and IEEE quad precision long doubles #213

Vexu opened this issue Jan 18, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@Vexu
Copy link
Owner

Vexu commented Jan 18, 2022

For IEEE quad precision floats we can use Zig's builtin f128 type but for X87 we'll need a soft float implementation.

@Vexu Vexu added the enhancement New feature or request label Jan 18, 2022
@andrewrk
Copy link
Contributor

There's a good case to be made to add this to Zig because we already need it for runtime and comptime in the case of c_longdouble on a target that uses X87.

It's not a giant leap to support the type for any target using (non standard) compiler-rt functions.

@Vexu
Copy link
Owner Author

Vexu commented Jan 19, 2022

There's a good case to be made to add this to Zig

As in adding a separate f80 type? That would be nice since it'd also make the feature easier to add since I could use operators like with the other types.

@Vexu
Copy link
Owner Author

Vexu commented Jun 19, 2022

Done in 6abe351, constant values for these are not yet supported.

@Vexu Vexu closed this as completed Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants