1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-01 10:20:42 +00:00

Detect non-x86 based architectures

This commit is contained in:
Luke Ceddia 2021-08-18 22:07:40 +10:00
parent 30d67825bf
commit 27e4ee4770
No known key found for this signature in database
GPG key ID: 319344384A0759B0
2 changed files with 5 additions and 1 deletions

View file

@ -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);}
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);}
void fpu_reinit() { // do nothing }
void fpu_reinit() { } // do nothing
#else
//QBASIC compatible rounding via FPU:
//FLDS=load single

View file

@ -40,6 +40,10 @@
#define QB64_32
#endif
#if !defined(i386) && !defined(__x86_64__)
#define QB64_NOT_X86
#endif
/* common types (not quite an include guard, but allows an including
* file to not have these included.
*