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

fmod for 64bit is slow #93

Closed
simonbyrne opened this issue Apr 27, 2015 · 0 comments · Fixed by #255
Closed

fmod for 64bit is slow #93

simonbyrne opened this issue Apr 27, 2015 · 0 comments · Fixed by #255

Comments

@simonbyrne
Copy link
Member

The fmod function on x86_64 is pretty slow (e.g. roughly 5x slower than remainder, or fmod in the os x libm). From what I understand of the Makefile, it is using the src/e_fmod.c, which is implemented in software. The other remainder functions (remainder, remquo) use the assembly implementations in amd64 (which use x87 instructions).

I should mention that this isn't a problem for Julia at the moment, as we access fmod through the LLVM intrinsic, which in turn calls the system libm. But if this were to change, we would see a significant performance hit.

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

Successfully merging a pull request may close this issue.

1 participant