diff options
| author | bellard <bellard> | 2002-07-24 22:13:23 +0000 |
|---|---|---|
| committer | bellard <bellard> | 2002-07-24 22:13:23 +0000 |
| commit | 20f40851457d5440e0c784cf65aefa54aa1421ce (patch) | |
| tree | ede8b566f2a53ffadc9bb9b20beea715deeea3e8 /libtcc1.c | |
| parent | 840d197e8760d9954ffe64b551c563633532e138 (diff) | |
| download | tinycc-20f40851457d5440e0c784cf65aefa54aa1421ce.tar.gz tinycc-20f40851457d5440e0c784cf65aefa54aa1421ce.tar.bz2 | |
added FPU control word
Diffstat (limited to 'libtcc1.c')
| -rw-r--r-- | libtcc1.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -436,6 +436,13 @@ long long __shldi3(long long a, int b) return a << b; } +#if defined(__i386__) +/* FPU control word for rounding to nearest mode */ +unsigned short __tcc_fpu_control = 0x137f; +/* FPU control word for round to zero mode for int convertion */ +unsigned short __tcc_int_fpu_control = 0x137f | 0x0c00; +#endif + /* XXX: suppress that and patch tcc to do it */ float __ulltof(unsigned long long a) { |
