-
Notifications
You must be signed in to change notification settings - Fork 241
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
fmpz_zero() assigns zero twice #64
Comments
This should be ok. However we should also add a comment to note we've done Bill. On 17 April 2014 16:43, Денис Крыськов (Denis Kryskov) <
|
I am not sure a comment is needed, since git is tracking and tests are testing. But you are a boss...
I've added comment twice since same warning applies to |
I really meant to add a warning to _fmpz_demote that if it changes, the People certainly won't go back through the entire git history to see what Bill. On 17 April 2014 17:33, Денис Крыськов (Denis Kryskov) <
|
|
Since the functions are inlined, won't the compiler easily be able to remove the duplicate assignments anyway? The actual assembly output would be interesting. |
No, compiler did not remove it. GCC 4.7, CFLAGS: -O2 -march=native (that I use by default).
C code:
asm code:
|
Merged. |
fmpz_zero() when called with a big number assigns zero twice: once in _fmpz_demote() and once by itself.
I offer a patch, to fix the problem (can't sleep at night when my program works slower than it could)
The text was updated successfully, but these errors were encountered: