Skip to content

Instantly share code, notes, and snippets.

@DopefishJustin
Created March 6, 2012 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DopefishJustin/1983766 to your computer and use it in GitHub Desktop.
Save DopefishJustin/1983766 to your computer and use it in GitHub Desktop.
Testcase #3 for emscripten issue 131
#include <inttypes.h>
#include <stdio.h>
typedef uint32_t UINT32;
typedef uint64_t UINT64;
int main() {
volatile UINT32 testu32a = 2375724032U;
UINT32 bigu32 = 0xffffffffU;
volatile UINT64 testu64a = 14746250828952703000U;
while ((UINT64)testu32a * (UINT64)bigu32 < testu64a)
testu64a /= 2;
printf("testu64a is %llu\n", testu64a);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment