--- previous/src/cpu/fpp.c 2018/04/24 19:25:47 1.1 +++ previous/src/cpu/fpp.c 2018/04/24 19:27:54 1.1.1.2 @@ -191,9 +191,9 @@ STATIC_INLINE int fault_if_no_fpu (uae_u static int get_fpu_version (void) { int v = 0; - +/* removed for previous by andreas_g if (currprefs.fpu_revision >= 0) - return currprefs.fpu_revision; + return currprefs.fpu_revision; */ switch (currprefs.fpu_model) { case 68881: @@ -336,7 +336,11 @@ STATIC_INLINE fptype to_pack (uae_u32 wr *cp++ = ((wrd1 >> 20) & 0xf) + '0'; *cp++ = ((wrd1 >> 16) & 0xf) + '0'; *cp = 0; +#if USE_LONG_DOUBLE + sscanf (str, "%Le", &d); +#else sscanf (str, "%le", &d); +#endif return d; } @@ -346,8 +350,11 @@ STATIC_INLINE void from_pack (fptype src int t; char *cp; char str[100]; - +#if USE_LONG_DOUBLE + sprintf (str, "%.16Le", src); +#else sprintf (str, "%.16e", src); +#endif cp = str; *wrd1 = *wrd2 = *wrd3 = 0; if (*cp == '-') {