Lines Matching refs:format
80 format_t format;
92 round(float_t f, format_t format, format_or_none_t i_format, rounding_mode_t rm)
95 case format format:
96 f = round(f, format, none_format, rm);
102 int bits = format.bits;
113 int denorm = format.min_exp - exp;
161 if (exp > format.max_exp) {
162 exp = format.max_exp;
178 if (exp > format.max_exp) {
179 exp = format.max_exp;
191 if (exp > format.max_exp) {
192 exp = format.max_exp;
220 if (exp > format.max_exp) {
248 * %a format involves conversion to float; the
352 int next_exp(int e, format_t format)
355 case format.first_exp + 1:
356 return format.min_exp - 2;
357 case format.min_exp:
360 return format.last_exp - 2;
369 * format, which uses a slightly different form for denorm.
386 * format
388 void generate(string suf, format_t format, format_or_none_t i_format)
390 int bits = format.bits;
392 format.first_exp = (format.min_exp - bits - 2);
393 format.last_exp = (format.max_exp);
401 for (int ze = format.first_exp; ze <= format.last_exp; ze = next_exp(ze, format)) {
402 …float_t z = round(make_float(zs * val * (2 ** ze)), format, none_format, rounding_mode_t.TONEAREST…
403 for (int ye = format.first_exp; ye <= format.last_exp; ye = next_exp(ye, format)) {
404 float_t y = round(make_float(val * (2 ** ye)), format, none_format, rounding_mode_t.TONEAREST);
406 for (int xe = format.first_exp; xe <= format.last_exp; xe = next_exp(xe, format)) {
407 …float_t x = round(make_float(xs * val * (2 ** xe)), format, none_format, rounding_mode_t.TONEAREST…
410 printf(" %s,", strfromfloat(round(r, format, i_format, rounding_mode_t.TONEAREST), suf));
411 printf(" %s,", strfromfloat(round(r, format, i_format, rounding_mode_t.UPWARD), suf));
412 printf(" %s,", strfromfloat(round(r, format, i_format, rounding_mode_t.DOWNWARD), suf));
413 printf(" %s" , strfromfloat(round(r, format, i_format, rounding_mode_t.TOWARDZERO), suf));
458 format_or_none_t intel_80_optional = { .format = intel_80 };
459 format_or_none_t moto_80_optional = { .format = moto_80 };