Home
last modified time | relevance | path

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

/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_llround.c5 #define roundit round
Ds_round.c33 round(double x) in round() function
Ds_lround.c35 #define roundit round
/bionic/libm/amd64/
Dfenv.c224 fesetround(int round) in fesetround() argument
230 if (round & ~X87_ROUND_MASK) in fesetround()
238 control |= round; in fesetround()
246 mxcsr |= round << SSE_ROUND_SHIFT; in fesetround()
/bionic/libm/arm64/
Dfenv.c115 int fesetround(int round) { in fesetround() argument
118 round &= FE_TOWARDZERO; in fesetround()
121 new_fpcr |= (round << FPCR_RMODE_SHIFT); in fesetround()
/bionic/libm/i387/
Dfenv.c336 fesetround(int round) in fesetround() argument
341 if (round & ~ROUND_MASK) { in fesetround()
346 control |= round; in fesetround()
351 mxcsr |= round << _SSE_ROUND_SHIFT; in fesetround()
/bionic/libm/
Dfake_long_double.c39 long double roundl(long double a1) { return round(a1); } in roundl()
/bionic/tests/
Dmath_test.cpp954 TEST(math, round) { in TEST() argument
959 ASSERT_DOUBLE_EQ(1.0, round(0.5)); in TEST()
960 ASSERT_DOUBLE_EQ(-1.0, round(-0.5)); in TEST()
961 ASSERT_DOUBLE_EQ(0.0, round(0.0)); in TEST()
962 ASSERT_DOUBLE_EQ(-0.0, round(-0.0)); in TEST()
963 ASSERT_TRUE(isnan(round(nan("")))); in TEST()
964 ASSERT_DOUBLE_EQ(HUGE_VAL, round(HUGE_VAL)); in TEST()
/bionic/libm/include/
Dmath.h274 double round(double);