Home
last modified time | relevance | path

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

1234

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_float.py692 self.assertAlmostEqual(round(12.34, True), 12.3)
696 self.assertAlmostEqual(round(-0.123456, MyIndex()), -0.1235)
698 self.assertRaises(TypeError, round, 3.14159, 2.0)
704 self.assertEqual(round(INF), INF)
705 self.assertEqual(round(-INF), -INF)
706 self.assertTrue(math.isnan(round(NAN)))
708 self.assertEqual(round(INF, n), INF)
709 self.assertEqual(round(-INF, n), -INF)
710 self.assertTrue(math.isnan(round(NAN, n)))
712 self.assertRaises(TypeError, round, INF, 0.0)
[all …]
Dtest_builtin.py1288 self.assertEqual(round(0.0), 0.0)
1289 self.assertEqual(type(round(0.0)), float) # Will be int in 3.0.
1290 self.assertEqual(round(1.0), 1.0)
1291 self.assertEqual(round(10.0), 10.0)
1292 self.assertEqual(round(1000000000.0), 1000000000.0)
1293 self.assertEqual(round(1e20), 1e20)
1295 self.assertEqual(round(-1.0), -1.0)
1296 self.assertEqual(round(-10.0), -10.0)
1297 self.assertEqual(round(-1000000000.0), -1000000000.0)
1298 self.assertEqual(round(-1e20), -1e20)
[all …]
Dtest_fileinput.py34 for round, bs in (0, 0), (1, 30):
40 self.buffer_size_test(t1, t2, t3, t4, bs, round)
44 def buffer_size_test(self, t1, t2, t3, t4, bs=0, round=0): argument
47 start = 1 + round*6
Dtest_thread.py50 verbose_print("task %s will run for %sus" % (ident, round(delay*1e6)))
181 (ident, round(delay * 1e6)))
/device/linaro/bootloader/edk2/StdLib/LibC/Main/Ia32/
Dfpu_rmode.asm24 ;_map BYTE 1 ; round to nearest
25 ; BYTE 3 ; round to negative infinity
26 ; BYTE 2 ; round to positive infinity
27 ; BYTE 0 ; round to zero
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/BaseUefiCpuLib/X64/
DInitializeFpu.S19 # masked,double-extended-precision, round-to-nearest) and multimedia-extensions control word
20 # (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush to zero
33 # all exceptions masked, double-precision, round-to-nearest
49 # all exceptions masked, round-to-nearest, flush to zero for masked underflow
DInitializeFpu.asm19 ; all exceptions masked, double-extended-precision, round-to-nearest
24 ; all exceptions masked, round-to-nearest, flush to zero for masked underflow
35 ; masked,double-precision, round-to-nearest) and multimedia-extensions control word
36 ; (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush to zero
DInitializeFpu.nasm18 ; all exceptions masked, double-extended-precision, round-to-nearest
23 ; all exceptions masked, round-to-nearest, flush to zero for masked underflow
34 ; masked,double-precision, round-to-nearest) and multimedia-extensions control word
35 ; (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush to zero
/device/linaro/bootloader/edk2/StdLib/LibC/Main/X64/
Dfpu_rmode.asm19 ;_map BYTE 1 ; round to nearest
20 ; BYTE 3 ; round to negative infinity
21 ; BYTE 2 ; round to positive infinity
22 ; BYTE 0 ; round to zero
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/BaseUefiCpuLib/Ia32/
DInitializeFpu.S17 # all exceptions masked, double-precision, round-to-nearest
22 # all exceptions masked, round-to-nearest, flush to zero for masked underflow
30 # masked,double-precision, round-to-nearest) and multimedia-extensions control word
31 # (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush to zero
DInitializeFpu.asm21 ; all exceptions masked, double-precision, round-to-nearest
26 ; all exceptions masked, round-to-nearest, flush to zero for masked underflow
37 ; masked,double-precision, round-to-nearest) and multimedia-extensions control word
38 ; (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush to zero
DInitializeFpu.nasm19 ; all exceptions masked, double-precision, round-to-nearest
24 ; all exceptions masked, round-to-nearest, flush to zero for masked underflow
34 ; masked,double-precision, round-to-nearest) and multimedia-extensions control word
35 ; (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush to zero
/device/linaro/bootloader/edk2/IntelFspPkg/FspSecCore/Ia32/
DInitializeFpu.s18 # all exceptions masked, double-precision, round-to-nearest
23 # all exceptions masked, round-to-nearest, flush to zero for masked underflow
33 # masked,double-precision, round-to-nearest) and multimedia-extensions control word
34 # (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush to zero
DInitializeFpu.asm21 ; all exceptions masked, double-precision, round-to-nearest
26 ; all exceptions masked, round-to-nearest, flush to zero for masked underflow
37 ; masked,double-precision, round-to-nearest) and multimedia-extensions control word
38 ; (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush to zero
DSaveRestoreSse.inc138 ; all exceptions masked, double-precision, round-to-nearest
143 ; all exceptions masked, round-to-nearest, flush to zero for masked underflow
/device/linaro/bootloader/edk2/IntelFsp2Pkg/FspSecCore/Ia32/
DInitializeFpu.nasm20 ; all exceptions masked, double-precision, round-to-nearest
26 ; all exceptions masked, round-to-nearest, flush to zero for masked underflow
37 ; masked,double-precision, round-to-nearest) and multimedia-extensions control word
38 ; (if supported) to 0x1F80 (all exceptions masked, round-to-nearest, flush to zero
DSaveRestoreSseNasm.inc141 ; all exceptions masked, double-precision, round-to-nearest
146 ; all exceptions masked, round-to-nearest, flush to zero for masked underflow
/device/google/contexthub/firmware/lib/libm/
Dsf_round.c65 double round(double x) in round() function
67 double round(x) in round()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/
Dcmptree.py38 print mins, "minutes and", round(secs), "seconds"
150 print len(data), "bytes in", round(dt), "seconds",
152 print "i.e.", round(len(data)/dt), "bytes/sec",
198 print size, "bytes in", round(dt), "seconds",
/device/google/sunfish/vibrator/drv2624/tests/
Dutils.h24 return std::round((amplitude - 1) / 254.0 * 127); in amplitudeToRtpInput()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dpymath.c70 round(double x) in round() function
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dpymath.c70 round(double x) in round() function
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Dpymath.h22 extern double round(double);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Dpymath.h22 extern double round(double);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dftpmirror.py233 print int(round(kbytes)),
235 print int(round(dt)),
239 int(round(kbytes/dt),)

1234