/external/valgrind/main/none/tests/s390x/ |
fpconv.c | 6 #define I2F(insn, initial, target,round) \ 14 #define F2L(insn, initial, type, round, cc) \ 18 asm volatile(insn " 2," #round ",0\n\t" \ 26 #define DO_INSN_I2F32(insn, round) \ 29 printf(#insn " %f\n", I2F(insn, 0, f32, round)); \ 30 printf(#insn " %f\n", I2F(insn, 1, f32, round)); \ 31 printf(#insn " %f\n", I2F(insn, 0xffffffffUL, f32, round)); \ 32 printf(#insn " %f\n", I2F(insn, 0x80000000UL, f32, round)); \ 33 printf(#insn " %f\n", I2F(insn, 0x7fffffffUL, f32, round)); \ 34 printf(#insn " %f\n", I2F(insn, 0x100000000UL, f32, round)); \ [all...] |
/bionic/libm/upstream-freebsd/lib/msun/src/ |
s_llround.c | 5 #define roundit round
|
s_round.c | 33 round(double x) function
|
s_lround.c | 35 #define roundit round
|
/frameworks/base/core/java/com/android/internal/util/ |
FastMath.java | 25 * Fast round from float to int. This is faster than Math.round() 29 public static int round(float value) { method in class:FastMath
|
/external/compiler-rt/lib/ |
floatunsisf.c | 11 // compiler-rt library in the IEEE-754 default round-to-nearest, ties-to-even 41 rep_t round = (rep_t)a << (typeWidth - shift); local 42 if (round > signBit) result++; 43 if (round == signBit) result += result & 1;
|
floatsisf.c | 11 // compiler-rt library in the IEEE-754 default round-to-nearest, ties-to-even 49 rep_t round = (rep_t)a << (typeWidth - shift); local 50 if (round > signBit) result++; 51 if (round == signBit) result += result & 1;
|
/packages/apps/Camera/src/com/android/camera/ |
SwitchAnimManager.java | 84 int previewX = Math.round(centerX - previewWidth / 2); 85 int previewY = Math.round(centerY - previewHeight / 2); 104 int reviewX = Math.round(centerX - reviewWidth / 2); 105 int reviewY = Math.round(centerY - reviewHeight / 2); 110 preview.directDraw(canvas, previewX, previewY, Math.round(previewWidth), 111 Math.round(previewHeight)); 115 review.draw(canvas, reviewX, reviewY, Math.round(reviewWidth), 116 Math.round(reviewHeight)); 134 int reviewX = Math.round(centerX - reviewWidth / 2); 135 int reviewY = Math.round(centerY - reviewHeight / 2) [all...] |
/external/jmonkeyengine/engine/src/desktop/jme3tools/navigation/ |
NumUtil.java | 24 public float Round(float Rval, int Rpl) { 27 float tmp = Math.round(Rval);
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
HasCoverage.java | 28 int diff = Math.round(entity.getCoveragePercentage()) 29 - Math.round(otherEntity.getCoveragePercentage());
|
/packages/apps/UnifiedEmail/src/com/android/bitmap/ |
BitmapUtils.java | 71 final int srcCroppedW = Math.round(dstW * scale); 72 final int srcCroppedH = Math.round(dstH * scale); 73 final int srcCroppedSliceH = Math.round(dstSliceH * scale); 83 centerV = Math.max(minCenterV, Math.min(maxCenterV, Math.round(srcH * vertSliceFrac))); 86 .round(Math.abs(srcH - srcCroppedSliceH) * vertSliceFrac + srcHalfSliceH);
|
/external/chromium_org/third_party/skia/src/core/ |
SkTDynamicHash.h | 38 for (int round = 0; round < fCapacity; round++) { 46 index = this->nextIndex(index, round); 78 for (int round = 0; round < fCapacity; round++) { 81 return round; 83 index = this->nextIndex(index, round); 161 for (int round = 0; round < fCapacity; round++) [all...] |
/external/skia/src/core/ |
SkTDynamicHash.h | 38 for (int round = 0; round < fCapacity; round++) { 46 index = this->nextIndex(index, round); 78 for (int round = 0; round < fCapacity; round++) { 81 return round; 83 index = this->nextIndex(index, round); 161 for (int round = 0; round < fCapacity; round++) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/platform/audio/ |
AudioUtilities.cpp | 59 return static_cast<size_t>(round(time * sampleRate));
|
/external/libvpx/libvpx/vp9/common/ |
vp9_systemdependent.h | 28 // round is not defined in MSVC before VS2013. 29 static int round(double x) { function
|
/external/chromium_org/third_party/WebKit/Source/core/tests/ |
LayoutUnit.cpp | 83 ASSERT_EQ(LayoutUnit(-1.9f).round(), -2); 84 ASSERT_EQ(LayoutUnit(-1.6f).round(), -2); 85 ASSERT_EQ(LayoutUnit::fromFloatRound(-1.51f).round(), -2); 86 ASSERT_EQ(LayoutUnit::fromFloatRound(-1.5f).round(), -1); 87 ASSERT_EQ(LayoutUnit::fromFloatRound(-1.49f).round(), -1); 88 ASSERT_EQ(LayoutUnit(-1.0f).round(), -1); 89 ASSERT_EQ(LayoutUnit::fromFloatRound(-0.99f).round(), -1); 90 ASSERT_EQ(LayoutUnit::fromFloatRound(-0.51f).round(), -1); 91 ASSERT_EQ(LayoutUnit::fromFloatRound(-0.50f).round(), 0); 92 ASSERT_EQ(LayoutUnit::fromFloatRound(-0.49f).round(), 0) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
FlingScroller.java | 69 return (int)Math.round(mCurrV * mCosAngle); 73 return (int)Math.round(mCurrV * mSinAngle); 96 mDuration = (int)Math.round(FLING_DURATION_PARAM 100 mDistance = (int)Math.round( 117 int r = (int) Math.round(mStartX + f * mDistance * mCosAngle); 127 int r = (int) Math.round(mStartY + f * mDistance * mSinAngle);
|
/external/chromium_org/v8/test/webkit/fast/js/kde/ |
math.js | 57 shouldBe("Math.round(0)", "0"); 58 shouldBeFalse("isNegativeZero(Math.round(0))"); 59 shouldBeTrue("isNegativeZero(Math.round(negativeZero))"); 60 shouldBe("Math.round(0.2)", "0"); 61 shouldBeTrue("isNegativeZero(Math.round(-0.2))"); 62 shouldBeTrue("isNegativeZero(Math.round(-0.5))"); 63 shouldBe("Math.round(1.1)", "1"); 64 shouldBe("Math.round(1.6)", "2"); 65 shouldBe("Math.round(-3.5)", "-3"); 66 shouldBe("Math.round(-3.6)", "-4") [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_float.py | 698 self.assertAlmostEqual(round(12.34, True), 12.3) 702 self.assertAlmostEqual(round(-0.123456, MyIndex()), -0.1235) 704 self.assertRaises(TypeError, round, 3.14159, 2.0) 710 self.assertEqual(round(INF), INF) 711 self.assertEqual(round(-INF), -INF) 712 self.assertTrue(math.isnan(round(NAN))) 714 self.assertEqual(round(INF, n), INF) 715 self.assertEqual(round(-INF, n), -INF) 716 self.assertTrue(math.isnan(round(NAN, n))) 718 self.assertRaises(TypeError, round, INF, 0.0 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_float.py | 698 self.assertAlmostEqual(round(12.34, True), 12.3) 702 self.assertAlmostEqual(round(-0.123456, MyIndex()), -0.1235) 704 self.assertRaises(TypeError, round, 3.14159, 2.0) 710 self.assertEqual(round(INF), INF) 711 self.assertEqual(round(-INF), -INF) 712 self.assertTrue(math.isnan(round(NAN))) 714 self.assertEqual(round(INF, n), INF) 715 self.assertEqual(round(-INF, n), -INF) 716 self.assertTrue(math.isnan(round(NAN, n))) 718 self.assertRaises(TypeError, round, INF, 0.0 [all...] |
/external/chromium_org/v8/test/webkit/ |
math.js | 207 shouldBe("Math.round(NaN)", "NaN"); 208 shouldBe("Math.round(0)", "0"); 209 shouldBe("Math.round(-0)", "-0"); 210 shouldBe("Math.round(0.4)", "0"); 211 shouldBe("Math.round(-0.4)", "-0"); 212 shouldBe("Math.round(0.5)", "1"); 213 shouldBe("Math.round(-0.5)", "-0"); 214 shouldBe("Math.round(0.6)", "1"); 215 shouldBe("Math.round(-0.6)", "-1"); 216 shouldBe("Math.round(1)", "1") [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
Throughput.java | 50 return Math.round(getFramesPerSecond()) + " FPS";
|
/libcore/luni/src/test/java/libcore/java/math/ |
OldBigDecimalArithmeticTest.java | 36 a.round(mc).toString()); 38 b.round(mc).toString()); 40 a.round(mc).add(b.round(mc)).toString()); 61 a.round(mc).subtract(b.round(mc)).toString()); 83 res = a.round(mc).multiply(b.round(mc)); 85 res = res.round(mc); 131 a.round(mc).pow(1000).round(mc).toString()) [all...] |
/frameworks/base/services/java/com/android/server/ |
TwilightCalculator.java | 86 float n = Math.round(daysSince2000 - J0 - arcLongitude); 113 mSunset = Math.round((solarTransitJ2000 + hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000; 114 mSunrise = Math.round((solarTransitJ2000 - hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000;
|
/development/ndk/sources/android/libportable/arch-x86/ |
fenv.c | 150 int round = REAL(fegetround)(); local 151 return x86_get_rounding(round); 155 WRAP(fesetround)(int round) 157 return REAL(fesetround)(x86_change_rounding(round));
|