Changeset 6517 in vbox for trunk/src/recompiler/InnoTek
- Timestamp:
- Jan 25, 2008 5:33:32 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/InnoTek/testmath.c
r3752 r6517 18 18 #endif 19 19 20 #if defined(__GNUC__) && ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3) || (__GNUC__ > 4)) 21 /* gcc starting with version 4.3 uses the MPFR library which results in more accurate results */ 22 # define SIN180 -0.8011526357338304777463731115L 23 #else 24 # define SIN180 -0.801152635733830477871L 25 #endif 26 20 27 static void bitch(const char *pszWhat, const long double *plrdResult, const long double *plrdExpected) 21 28 { … … 47 54 extern int testsin(void) 48 55 { 49 return sinl(180.0L) == -0.801152635733830477871L;56 return sinl(180.0L) == SIN180; 50 57 } 51 58 … … 282 289 lrd = 180.0L; 283 290 CHECK(sinl(lrd), -0.801152635733830477871L); 284 CHECK(sinl(180.0L), -0.801152635733830477871L);291 CHECK(sinl(180.0L), SIN180); 285 292 CHECKLL(testsin(), 1); 286 293
Note:
See TracChangeset
for help on using the changeset viewer.