Searched refs:round (Results 1 – 9 of 9) sorted by relevance
5 #define roundit round
33 round(double x) in round() function
35 #define roundit round
224 fesetround(int round) in fesetround() argument230 if (round & ~X87_ROUND_MASK) in fesetround()238 control |= round; in fesetround()246 mxcsr |= round << SSE_ROUND_SHIFT; in fesetround()
115 int fesetround(int round) { in fesetround() argument118 round &= FE_TOWARDZERO; in fesetround()121 new_fpcr |= (round << FPCR_RMODE_SHIFT); in fesetround()
336 fesetround(int round) in fesetround() argument341 if (round & ~ROUND_MASK) { in fesetround()346 control |= round; in fesetround()351 mxcsr |= round << _SSE_ROUND_SHIFT; in fesetround()
39 long double roundl(long double a1) { return round(a1); } in roundl()
954 TEST(math, round) { in TEST() argument959 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()
274 double round(double);