Created
March 5, 2012 06:06
-
-
Save DopefishJustin/1976973 to your computer and use it in GitHub Desktop.
Testcase #2 for emscripten issue 131
This file contains 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
#include <inttypes.h> | |
#include <stdio.h> | |
typedef int32_t INT32; | |
typedef int64_t INT64; | |
typedef uint8_t UINT8; | |
void interface_clock_changed() | |
{ | |
UINT8 m_divshift; | |
INT32 m_divisor; | |
//INT64 attos = m_attoseconds_per_cycle; | |
INT64 attos = 279365114840; | |
m_divshift = 0; | |
while (attos >= (1UL << 31)) | |
{ | |
m_divshift++; | |
printf("m_divshift is %i\n",m_divshift); | |
attos >>= 1; | |
} | |
m_divisor = attos; | |
printf("m_divisor is %i\n",m_divisor); | |
} | |
int main() { | |
interface_clock_changed(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment