Skip to content

Instantly share code, notes, and snippets.

@janisozaur
Created October 21, 2015 21:12
Show Gist options
  • Save janisozaur/2c8213c0eda0b23995c2 to your computer and use it in GitHub Desktop.
Save janisozaur/2c8213c0eda0b23995c2 to your computer and use it in GitHub Desktop.
movzwl/ceil bug
// 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