Home
last modified time | relevance | path

Searched refs:trunc (Results 1 – 3 of 3) sorted by relevance

/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_trunc.c33 trunc(double x) in trunc() function
66 __weak_reference(trunc, truncl);
/bionic/tests/
Dmath_test.cpp866 TEST(math, trunc) { in TEST() argument
868 ASSERT_FLOAT_EQ(1.0, trunc(1.5)); in TEST()
869 ASSERT_FLOAT_EQ(-1.0, trunc(-1.5)); in TEST()
870 ASSERT_FLOAT_EQ(0.0, trunc(0.0)); in TEST()
871 ASSERT_FLOAT_EQ(-0.0, trunc(-0.0)); in TEST()
872 ASSERT_TRUE(isnan(trunc(nan("")))); in TEST()
873 ASSERT_FLOAT_EQ(HUGE_VAL, trunc(HUGE_VAL)); in TEST()
/bionic/libm/include/
Dmath.h274 double trunc(double);