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

Implement nearbyint/floor/ceil backup functions #2

Open
ErikMcClure opened this issue Oct 25, 2018 · 0 comments
Open

Implement nearbyint/floor/ceil backup functions #2

ErikMcClure opened this issue Oct 25, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@ErikMcClure
Copy link
Contributor

On most modern x86-64 CPUs, floor/ceil/nearbyint intrinsics all get turned into CPU instructions. However, on older CPUs or low-power architectures, LLVM eventually gives up and simply calls the C standard library functions floorf()/ceilf()/nearbyintf(). Of course, inNative doesn't have a C standard library, so this fails.

A version of these functions should be provided in the default environment so the fallback actually works.

@ErikMcClure ErikMcClure added the bug Something isn't working label Oct 25, 2018
@ErikMcClure ErikMcClure modified the milestone: Far Future Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant