Home
last modified time | relevance | path

Searched refs:floor (Results 1 – 25 of 54) sorted by relevance

123

/device/google/contexthub/firmware/lib/libm/
Dsf_floor.c71 double floor(double x) in floor() function
73 double floor(x) in floor()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_math.py385 self.assertRaises(TypeError, math.floor)
387 self.assertEqual(float, type(math.floor(1)))
388 self.assertEqual(float, type(math.floor(1L)))
389 self.assertEqual(float, type(math.floor(1.0)))
390 self.ftest('floor(0.5)', math.floor(0.5), 0)
391 self.ftest('floor(1.0)', math.floor(1.0), 1)
392 self.ftest('floor(1.5)', math.floor(1.5), 1)
393 self.ftest('floor(-0.5)', math.floor(-0.5), -1)
394 self.ftest('floor(-1.0)', math.floor(-1.0), -1)
395 self.ftest('floor(-1.5)', math.floor(-1.5), -2)
[all …]
Dtest_int.py267 self.assertEqual(k, 1 + math.floor(
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlmathlib.c88 lua_pushnumber(L, l_mathop(floor)(luaL_checknumber(L, 1))); in math_floor()
210 lua_pushnumber(L, l_mathop(floor)(r*u) + (lua_Number)(1.0)); /* [1, u] */ in math_random()
217 lua_pushnumber(L, l_mathop(floor)(r*(u-l+1)) + l); /* [l, u] */ in math_random()
Dllimits.h263 ((i)=(lua_Unsigned)((n) - floor((n)/SUPUNSIGNED)*SUPUNSIGNED))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dpymath.c74 y = floor(absx); in round()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dpymath.c74 y = floor(absx); in round()
/device/linaro/bootloader/edk2/StdLib/LibC/Math/
Ds_floor.c33 floor(double x) in floor() function
Dk_rem_pio2.c191 z -= 8.0*floor(z*0.125); /* trim off integer >= 8 */ in __kernel_rem_pio2()
/device/generic/goldfish/camera/
DExif.cpp234 (*result)[0] = floor(absDegrees); in convertGpsCoordinate()
239 (*result)[1] = floor(minutes); in convertGpsCoordinate()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/buildbot/
DREADME.tcltk-AMD6412 for the 'ceil' and 'floor' functions:
/device/linaro/bootloader/edk2/StdLib/Include/
Dmath.h305 double floor(double);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dmathmodule.c250 if (x == floor(x)) { in m_tgamma()
344 if (x == floor(x) && x <= 2.0) { in m_lgamma()
845 FUNC1(floor, floor, 0,
1096 if (!(Py_IS_FINITE(dx) && dx == floor(dx))) { in math_factorial()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dmathmodule.c250 if (x == floor(x)) { in m_tgamma()
344 if (x == floor(x) && x <= 2.0) { in m_lgamma()
845 FUNC1(floor, floor, 0,
1096 if (!(Py_IS_FINITE(dx) && dx == floor(dx))) { in math_factorial()
/device/linaro/bootloader/edk2/StdLib/Include/Lua/
Dluaconf.h435 #define luai_nummod(L,a,b) ((a) - l_mathop(floor)((a)/(b))*(b))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dfractions.py427 return math.floor(div)
439 return math.floor(div)
Daifc.py232 fsmant = math.floor(fmant)
235 fsmant = math.floor(fmant)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/decimaltestdata/
Drounding.decTest201 rounding: floor
427 rounding: floor
554 rounding: floor
681 rounding: floor
831 rounding: floor
950 rounding: floor
1001 rounding: floor
1070 rounding: floor
Dtointegral.decTest233 rounding: floor
Dtointegralx.decTest233 rounding: floor
Dadd.decTest590 rounding: floor
605 rounding: floor
620 rounding: floor
635 rounding: floor
650 rounding: floor
665 rounding: floor
1374 -- sum of two opposite-sign operands is exactly 0 and floor => -0
1506 rounding: floor
2461 -- sum of two opposite-sign operands is exactly 0 and floor => -0
2589 rounding: floor
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dfloatobject.c776 floordiv = floor(div); in float_divmod()
878 if (iw != floor(iw)) { in float_pow()
986 o = (floor(x) == x) ? Py_True : Py_False; in float_is_integer()
1122 while (m != floor(m)) { in _Py_double_round()
1724 for (i=0; i<300 && float_part != floor(float_part) ; i++) { in float_as_integer_ratio()
Dcomplexobject.c612 div.real = floor(div.real); /* Use the floor of the real part. */ in complex_remainder()
638 div.real = floor(div.real); /* Use the floor of the real part. */ in complex_divmod()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dfloatobject.c777 floordiv = floor(div); in float_divmod()
879 if (iw != floor(iw)) { in float_pow()
987 o = (floor(x) == x) ? Py_True : Py_False; in float_is_integer()
1133 while (m != floor(m)) { in _Py_double_round()
1739 for (i=0; i<300 && float_part != floor(float_part) ; i++) { in float_as_integer_ratio()
Dcomplexobject.c616 div.real = floor(div.real); /* Use the floor of the real part. */ in complex_remainder()
642 div.real = floor(div.real); /* Use the floor of the real part. */ in complex_divmod()

123