Created
October 21, 2015 21:12
-
-
Save janisozaur/2c8213c0eda0b23995c2 to your computer and use it in GitHub Desktop.
movzwl/ceil bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gcc 5.2, glibc 2.22-3 | |
// gcc test.c -o test -m32 -O3 -masm=intel | |
#include <math.h> | |
int main() | |
{ | |
volatile double x = 3.5; | |
volatile double d = ceil(x); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment