mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-08 04:25:13 +00:00
Detect non-x86 based architectures
This commit is contained in:
parent
30d67825bf
commit
27e4ee4770
|
@ -64,7 +64,7 @@ return (word << shift) | (word >> (32 - shift));
|
||||||
uint64 qbr_longdouble_to_uint64(long double f){if (f<0) return(f-0.5f); else return(f+0.5f);}
|
uint64 qbr_longdouble_to_uint64(long double f){if (f<0) return(f-0.5f); else return(f+0.5f);}
|
||||||
int32 qbr_float_to_long(float f){if (f<0) return(f-0.5f); else return(f+0.5f);}
|
int32 qbr_float_to_long(float f){if (f<0) return(f-0.5f); else return(f+0.5f);}
|
||||||
int32 qbr_double_to_long(double f){if (f<0) return(f-0.5f); else return(f+0.5f);}
|
int32 qbr_double_to_long(double f){if (f<0) return(f-0.5f); else return(f+0.5f);}
|
||||||
void fpu_reinit() { // do nothing }
|
void fpu_reinit() { } // do nothing
|
||||||
#else
|
#else
|
||||||
//QBASIC compatible rounding via FPU:
|
//QBASIC compatible rounding via FPU:
|
||||||
//FLDS=load single
|
//FLDS=load single
|
||||||
|
|
|
@ -40,6 +40,10 @@
|
||||||
#define QB64_32
|
#define QB64_32
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(i386) && !defined(__x86_64__)
|
||||||
|
#define QB64_NOT_X86
|
||||||
|
#endif
|
||||||
|
|
||||||
/* common types (not quite an include guard, but allows an including
|
/* common types (not quite an include guard, but allows an including
|
||||||
* file to not have these included.
|
* file to not have these included.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue