--- tme/ic/ieee754/ieee754-auto.h 2018/04/24 16:40:26 1.1.1.1 +++ tme/ic/ieee754/ieee754-auto.h 2018/04/24 16:42:04 1.1.1.2 @@ -1,6 +1,6 @@ /* automatically generated by ieee754-misc-auto.sh, do not edit! */ #include -_TME_RCSID("$Id: ieee754-auto.h,v 1.1.1.1 2018/04/24 16:40:26 root Exp $"); +_TME_RCSID("$Id: ieee754-auto.h,v 1.1.1.2 2018/04/24 16:42:04 root Exp $"); /* decide which builtin C floating-point type is the best match for @@ -146,8 +146,8 @@ typedef long double tme_ieee754_single_b if (tme_float_is_inf(x, format)) { \ \ /* use the IEEE 754 single precision infinity: */ \ - (x)->tme_float_format = TME_FLOAT_FORMAT_IEEE754_SINGLE; \ (x)->tme_float_value_ieee754_single = ((tme_uint32_t) 0x7f800000) | (tme_float_is_negative(x, (format)) ? (((tme_uint32_t) 0x7f800000) + _TME_FIELD_MASK_FACTOR(((tme_uint32_t) 0x7f800000))) : 0); \ + (x)->tme_float_format = TME_FLOAT_FORMAT_IEEE754_SINGLE; \ } \ \ /* otherwise, if the result isn't already the builtin C type that \ @@ -165,6 +165,7 @@ typedef long double tme_ieee754_single_b assert((format) == TME_FLOAT_FORMAT_DOUBLE); \ (x)->tme_float_value_ieee754_single_builtin = (x)->tme_float_value_double; \ } \ + (x)->tme_float_format = TME_FLOAT_FORMAT_IEEE754_SINGLE_BUILTIN; \ } \ } \ } while (/* CONSTCOND */ 0) @@ -348,9 +349,9 @@ typedef long double tme_ieee754_double_b if (tme_float_is_inf(x, format)) { \ \ /* use the IEEE 754 double precision infinity: */ \ - (x)->tme_float_format = TME_FLOAT_FORMAT_IEEE754_DOUBLE; \ (x)->tme_float_value_ieee754_double.tme_value64_uint32_hi = ((tme_uint32_t) 0x7ff00000) | (tme_float_is_negative(x, (format)) ? (((tme_uint32_t) 0x7ff00000) + _TME_FIELD_MASK_FACTOR(((tme_uint32_t) 0x7ff00000))) : 0); \ (x)->tme_float_value_ieee754_double.tme_value64_uint32_lo = 0; \ + (x)->tme_float_format = TME_FLOAT_FORMAT_IEEE754_DOUBLE; \ } \ \ /* otherwise, if the result isn't already the builtin C type that \ @@ -368,6 +369,7 @@ typedef long double tme_ieee754_double_b assert((format) == TME_FLOAT_FORMAT_DOUBLE); \ (x)->tme_float_value_ieee754_double_builtin = (x)->tme_float_value_double; \ } \ + (x)->tme_float_format = TME_FLOAT_FORMAT_IEEE754_DOUBLE_BUILTIN; \ } \ } \ } while (/* CONSTCOND */ 0) @@ -552,10 +554,10 @@ typedef long double tme_ieee754_extended if (tme_float_is_inf(x, format)) { \ \ /* use the IEEE 754 extended80 precision infinity: */ \ - (x)->tme_float_format = TME_FLOAT_FORMAT_IEEE754_EXTENDED80; \ (x)->tme_float_value_ieee754_extended80.tme_float_ieee754_extended80_sexp = ((tme_uint32_t) 0x7fff) | (tme_float_is_negative(x, (format)) ? (((tme_uint32_t) 0x7fff) + _TME_FIELD_MASK_FACTOR(((tme_uint32_t) 0x7fff))) : 0); \ (x)->tme_float_value_ieee754_extended80.tme_float_ieee754_extended80_significand.tme_value64_uint32_hi = 0; \ (x)->tme_float_value_ieee754_extended80.tme_float_ieee754_extended80_significand.tme_value64_uint32_lo = 0; \ + (x)->tme_float_format = TME_FLOAT_FORMAT_IEEE754_EXTENDED80; \ } \ \ /* otherwise, if the result isn't already the builtin C type that \ @@ -573,6 +575,7 @@ typedef long double tme_ieee754_extended assert((format) == TME_FLOAT_FORMAT_DOUBLE); \ (x)->tme_float_value_ieee754_extended80_builtin = (x)->tme_float_value_double; \ } \ + (x)->tme_float_format = TME_FLOAT_FORMAT_IEEE754_EXTENDED80_BUILTIN; \ } \ } \ } while (/* CONSTCOND */ 0) @@ -758,11 +761,11 @@ typedef long double tme_ieee754_quad_bui if (tme_float_is_inf(x, format)) { \ \ /* use the IEEE 754 quad precision infinity: */ \ - (x)->tme_float_format = TME_FLOAT_FORMAT_IEEE754_QUAD; \ (x)->tme_float_value_ieee754_quad.tme_float_ieee754_quad_hi.tme_value64_uint32_hi = ((tme_uint32_t) 0x7fff0000) | (tme_float_is_negative(x, (format)) ? (((tme_uint32_t) 0x7fff0000) + _TME_FIELD_MASK_FACTOR(((tme_uint32_t) 0x7fff0000))) : 0); \ (x)->tme_float_value_ieee754_quad.tme_float_ieee754_quad_hi.tme_value64_uint32_lo = 0; \ (x)->tme_float_value_ieee754_quad.tme_float_ieee754_quad_lo.tme_value64_uint32_hi = 0; \ (x)->tme_float_value_ieee754_quad.tme_float_ieee754_quad_lo.tme_value64_uint32_lo = 0; \ + (x)->tme_float_format = TME_FLOAT_FORMAT_IEEE754_QUAD; \ } \ \ /* otherwise, if the result isn't already the builtin C type that \ @@ -780,6 +783,7 @@ typedef long double tme_ieee754_quad_bui assert((format) == TME_FLOAT_FORMAT_DOUBLE); \ (x)->tme_float_value_ieee754_quad_builtin = (x)->tme_float_value_double; \ } \ + (x)->tme_float_format = TME_FLOAT_FORMAT_IEEE754_QUAD_BUILTIN; \ } \ } \ } while (/* CONSTCOND */ 0)