fixed the definition of moo_fltmax_t

This commit is contained in:
hyunghwan.chung 2019-11-26 13:53:57 +00:00
parent 44810da2d6
commit 5672b62e27

View File

@ -361,15 +361,15 @@
* The moo_fltmax_t type defines the largest floating-pointer number type * The moo_fltmax_t type defines the largest floating-pointer number type
* ever supported. * ever supported.
*/ */
#if MOO_SIZEOF___FLOAT128 >= MOO_SIZEOF_FLT_T #if MOO_SIZEOF___FLOAT128 >= MOO_SIZEOF_FLTBAS_T
/* the size of long double may be equal to the size of __float128 /* the size of long double may be equal to the size of __float128
* for alignment on some platforms */ * for alignment on some platforms */
typedef __float128 moo_fltmax_t; typedef __float128 moo_fltmax_t;
# define MOO_SIZEOF_FLTMAX_T MOO_SIZEOF___FLOAT128 # define MOO_SIZEOF_FLTMAX_T MOO_SIZEOF___FLOAT128
# define MOO_FLTMAX_REQUIRE_QUADMATH 1 # define MOO_FLTMAX_REQUIRE_QUADMATH 1
#else #else
typedef moo_flt_t moo_fltmax_t; typedef moo_fltbas_t moo_fltmax_t;
# define MOO_SIZEOF_FLTMAX_T MOO_SIZEOF_FLT_T # define MOO_SIZEOF_FLTMAX_T MOO_SIZEOF_FLTBAS_T
# undef MOO_FLTMAX_REQUIRE_QUADMATH # undef MOO_FLTMAX_REQUIRE_QUADMATH
#endif #endif