-
Notifications
You must be signed in to change notification settings - Fork 138
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
Comments
This was referenced Nov 10, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
fmod
function onx86_64
is pretty slow (e.g. roughly 5x slower thanremainder
, orfmod
in the os x libm). From what I understand of the Makefile, it is using thesrc/e_fmod.c
, which is implemented in software. The other remainder functions (remainder
,remquo
) use the assembly implementations inamd64
(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.The text was updated successfully, but these errors were encountered: