| #include <assert.h> |
#include <assert.h> |
| #include <stdlib.h> |
#include <stdlib.h> |
| #include <signal.h> |
#include <signal.h> |
| |
|
| #ifndef STANDALONE |
#ifndef STANDALONE |
| #if HAVE_SYS_MMAN_H |
#if HAVE_SYS_MMAN_H |
| #include <sys/mman.h> |
#include <sys/mman.h> |
| Address image; |
Address image; |
| #endif |
#endif |
| int retvalue; |
int retvalue; |
| |
#if defined(__i386) |
| |
/* set 387 precision control to use 53-bit mantissae to avoid most |
| |
cases of double rounding */ |
| |
short fpu_control = 0x027f ; |
| |
asm("fldcw %0" : : "m"(fpu_control)); |
| |
#endif /* defined(__i386) */ |
| |
|
| code_here = ((void *)0)+CODE_BLOCK_SIZE; /* llvm-gcc does not like this as |
code_here = ((void *)0)+CODE_BLOCK_SIZE; /* llvm-gcc does not like this as |
| initializer, so we do it here */ |
initializer, so we do it here */ |