Home
last modified time | relevance | path

Searched refs:round (Results 1 – 25 of 28) sorted by relevance

12

/picolibc-3.7.0-3.6.0/newlib/libm/fenv/
Dfesetmode.c43 int round = FE_TONEAREST, except = 0; in fesetmode() local
45 round = modep->round; in fesetmode()
51 (void) fesetround(round); in fesetmode()
Dfegetmode.c43 modep->round = fegetround(); in fegetmode()
/picolibc-3.7.0-3.6.0/newlib/libm/machine/arm/
Ds_round.c31 round (double x) in round() function
38 _MATH_ALIAS_d_d(round)
/picolibc-3.7.0-3.6.0/newlib/libc/machine/riscv/machine/
Dfenv-fp.h357 __declare_fenv_inline(int) fesetround(int round) in fesetround() argument
362 round &= FE_RMODE_MASK; in fesetround()
366 __asm__ volatile("fsrm %0" : : "r"(round)); in fesetround()
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/
Dldtoa_engine.c125 long double round = 0.5l; in __ldtoa_engine() local
127 round *= 0.1l; in __ldtoa_engine()
129 x += round; in __ldtoa_engine()
Ddtoa_engine.c198 uint64_t round = BIT64(59); /* 0.5 */ in __dtoa_engine() local
200 round /= 10U; in __dtoa_engine()
202 fract += round; in __dtoa_engine()
/picolibc-3.7.0-3.6.0/newlib/libm/machine/x86/
Dfenv.c395 fesetround (int round) in fesetround() argument
401 if (round < FE_TONEAREST || round > FE_TOWARDZERO) in fesetround()
411 cw |= (round << FE_CW_ROUND_SHIFT); in fesetround()
413 mxcsr |= (round << FE_MXCSR_ROUND_SHIFT); in fesetround()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/sparc/machine/
Dfenv-fp.h186 fesetround(int round) in fesetround() argument
190 if (round & ~_ROUND_MASK) in fesetround()
195 r |= round << _ROUND_SHIFT; in fesetround()
/picolibc-3.7.0-3.6.0/newlib/libm/machine/spu/
Ds_round.c36 double round(double x) in round() function
/picolibc-3.7.0-3.6.0/newlib/libm/machine/aarch64/
Ds_round.c30 round (double x) in round() function
/picolibc-3.7.0-3.6.0/test/
Dfma_gen.5c92 round(float_t f, format_t format, format_or_none_t i_format, rounding_mode_t rm)
96 f = round(f, format, none_format, rm);
143 /* round even when the fraction is exactly 1/2 */
156 * Large negative values round
173 * Large positive values round
186 * Large magnitude values round to the value
402 …float_t z = round(make_float(zs * val * (2 ** ze)), format, none_format, rounding_mode_t.TONEAREST…
404 float_t y = round(make_float(val * (2 ** ye)), format, none_format, rounding_mode_t.TONEAREST);
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));
[all …]
Dlong_double_gen.5c171 real round(x) { if (x < 0) return -round(-x); return floor(x+0.5); }
354 { .f = round, .name = "roundl" },
Drounding-mode.c47 return round(value); in do_round_int()
Dmath-funcs.c149 d1 = round (d1); in main()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/xtensa/machine/
Dfenv-fp.h145 __declare_fenv_inline(int) fesetround(int round) in fesetround() argument
147 __asm__ volatile ("wur.fcr %0" : : "a"(round)); in fesetround()
/picolibc-3.7.0-3.6.0/newlib/libm/common/
Dsf_round.c58 _MATH_ALIAS_f_f(round)
Ds_round.c111 _MATH_ALIAS_d_d(round)
Dmath_config.h106 return round (x); in roundtoint()
118 return (long) round (x); in converttoint()
1282 #define round64 _NAME_64(round)
/picolibc-3.7.0-3.6.0/newlib/libc/machine/sh/machine/
Dfenv-fp.h147 __declare_fenv_inline(int) fesetround(int round) in fesetround() argument
153 fpscr |= round; in fesetround()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/arm/machine/
Dfenv-fp.h146 __declare_fenv_inline(int) fesetround(int round) in fesetround() argument
152 __fpsr |= round; in fesetround()
Dmath.h127 round (double x) in round() function
/picolibc-3.7.0-3.6.0/newlib/libc/include/
Dfenv.h66 typedef struct { int round, except; } femode_t; member
Dmath.h438 extern double round (double);
/picolibc-3.7.0-3.6.0/newlib/libm/math/
Dmath.tex78 * round:: Round to integer, away from zero
/picolibc-3.7.0-3.6.0/
Dmeson_options.txt158 description: 'use float/string code which supports round-tripping')

12