/external/valgrind/main/none/tests/s390x/ |
fpext.c | 6 #define L2F(insn, initial, target,round) \ 10 asm volatile(insn(round,0,0,2) :"=f" (_t):"d"(source)); \ 14 #define F2L(insn, initial, type, round, cc) \ 18 asm volatile(insn(round,0,2,0) \ 26 #define DO_INSN_L2F32(insn, round) \ 29 printf(#insn " %f\n", L2F(insn, 0, f32, round)); \ 30 printf(#insn " %f\n", L2F(insn, 1, f32, round)); \ 31 printf(#insn " %f\n", L2F(insn, 0xffffffffUL, f32, round)); \ 32 printf(#insn " %f\n", L2F(insn, 0x80000000UL, f32, round)); \ 33 printf(#insn " %f\n", L2F(insn, 0x7fffffffUL, f32, round)); \ [all...] |
dfpext.c | 7 #define L2D(insn, initial, target,round) \ 11 asm volatile(insn(round,0,0,2) :"=f" (_t):"d"(source)); \ 15 #define I2D(insn, initial, target,round) \ 19 asm volatile(insn(round,0,0,2) :"=f" (_t):"d"(source)); \ 23 #define D2L(insn, initial, type, round, cc) \ 27 asm volatile(insn(round,0,2,0) \ 34 #define D2I(insn, initial, type, round, cc) \ 38 asm volatile(insn(round,0,2,0) \ 46 #define DO_PRINT_L2D(insn, l, d, round) \ 48 printf(#insn " round=%d %lu -> ", 0x##round, l); [all...] |
rounding-1.c | 11 rtext(unsigned round) 13 switch (round) { 26 #define convert_to_int(opcode,src_type,dst_type,dst_fmt,round,value) \ 32 __asm__ volatile (opcode " %[dst]," #round ",%[src]\n\t" \ 40 opcode, rtext(round), src, dst, cc); \ 44 #define cfdbr(round,value) \ 45 convert_to_int("cfdbr",double,int32_t,PRId32,round,value) 55 cfdbr(4, dval); // round to nearest with ties to even 56 cfdbr(5, dval); // round to zero 57 cfdbr(6, dval); // round to +in [all...] |
dfpconv.c | 7 #define I2D(insn, initial, target,round) \ 11 asm volatile(insn(round,0,0,2) :"=f" (_t):"d"(source)); \ 15 #define D2I(insn, initial, type, round, cc) \ 19 asm volatile(insn(round,0,2,0) \ 27 #define DO_PRINT_I2D(insn, l, d, round) \ 29 printf(#insn " round=%d %d -> ", 0x##round, l); \ 30 d = I2D(insn, l, d, round); \ 35 #define DO_INSN_I2D(insn, round, type) \ 38 DO_PRINT_I2D(insn, 0, d, round); \ [all...] |
rounding-6.c | 11 IRRoundingMode. As a consequence m3=1 which is "round to nearest with 30 #define convert_to_int(opcode,src_type,dst_type,dst_fmt,round,value) \ 36 __asm__ volatile (opcode " %[dst]," #round ",%[src]\n\t" \ 44 opcode, src, dst, cc, rtext(round)); \ 48 #define cfebr(value, round) \ 49 convert_to_int("cfebr",float,int32_t,PRId32,round,value) 50 #define cfdbr(value, round) \ 51 convert_to_int("cfdbr",double,int32_t,PRId32,round,value) 52 #define cgebr(value, round) \ 53 convert_to_int("cgebr",float,int64_t,PRId64,round,value [all...] |
srnmb.stderr.exp | 4 Continuing using 'round to nearest'. Results may differ!
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
TestRound.rs | 24 return round(in); 28 return round(in); 32 return round(in); 36 return round(in);
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
s_llround.c | 5 #define roundit round
|
s_round.c | 33 round(double x) function
|
/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
|
/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...] |
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
HasCoverage.java | 28 int diff = Math.round(entity.getCoveragePercentage()) 29 - Math.round(otherEntity.getCoveragePercentage());
|
/external/libcxx/test/language.support/support.limits/limits/round.style/ |
Android.mk | 17 test_makefile := external/libcxx/test/language.support/support.limits/limits/round.style/Android.mk 19 test_name := language.support/support.limits/limits/round.style/check_values
|
/external/chromium_org/third_party/skia/src/core/ |
SkTDynamicHash.h | 92 for (int round = 0; round < fCapacity; round++) { 101 index = this->nextIndex(index, round); 146 for (int round = 0; round < fCapacity; round++) { 150 return round; 152 index = this->nextIndex(index, round); 210 for (int round = 0; round < fCapacity; round++) [all...] |
/external/skia/src/core/ |
SkTDynamicHash.h | 65 for (int round = 0; round < fCapacity; round++) { 73 index = this->nextIndex(index, round); 102 for (int round = 0; round < fCapacity; round++) { 105 return round; 107 index = this->nextIndex(index, round); 165 for (int round = 0; round < fCapacity; round++) [all...] |
/external/compiler-rt/lib/builtins/ |
floatsisf.c | 11 // compiler-rt library in the IEEE-754 default round-to-nearest, ties-to-even 50 rep_t round = (rep_t)a << (typeWidth - shift); local 51 if (round > signBit) result++; 52 if (round == signBit) result += result & 1;
|
floatunsisf.c | 11 // compiler-rt library in the IEEE-754 default round-to-nearest, ties-to-even 42 rep_t round = (rep_t)a << (typeWidth - shift); local 43 if (round > signBit) result++; 44 if (round == signBit) result += result & 1;
|
/frameworks/support/v7/palette/src/android/support/v7/graphics/ |
ColorUtils.java | 185 r = Math.round(255 * (c + m)); 186 g = Math.round(255 * (x + m)); 187 b = Math.round(255 * m); 190 r = Math.round(255 * (x + m)); 191 g = Math.round(255 * (c + m)); 192 b = Math.round(255 * m); 195 r = Math.round(255 * m); 196 g = Math.round(255 * (c + m)); 197 b = Math.round(255 * (x + m)); 200 r = Math.round(255 * m) [all...] |
/external/chromium_org/third_party/libsrtp/srtp/crypto/include/ |
aes.h | 58 v128_t round[15]; member in struct:__anon17431
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
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); 116 final int srcCroppedW = Math.round(dstW * scale); 117 final int srcCroppedH = Math.round(dstH * scale);
|
/external/valgrind/main/none/tests/mips64/ |
fpu_arithmetic.c | 44 flt_art_op_names[op], round(fd_d), fs_d[i], ft_d[i]); 54 flt_art_op_names[op], round(fd_d), fs_d[i], ft_d[i]); 72 flt_art_op_names[op], round(fd_d), fs_d[i]); 92 flt_art_op_names[op], round(fd_d), fs_d[i]); 105 flt_art_op_names[op], round(fd_d), fs_d[i]); 115 printf("%s %lf %lf %lf %lf\n", flt_art_op_names[op], round(fd_d), 125 printf("%s %lf %lf %lf %lf\n", flt_art_op_names[op], round(fd_d), 135 printf("%s %lf %lf %lf %lf\n", flt_art_op_names[op], round(fd_d), 146 round(fd_d), fr_d[i], fs_d[i],
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
LayoutUnitTest.cpp | 84 ASSERT_EQ(LayoutUnit(-1.9f).round(), -2); 85 ASSERT_EQ(LayoutUnit(-1.6f).round(), -2); 86 ASSERT_EQ(LayoutUnit::fromFloatRound(-1.51f).round(), -2); 87 ASSERT_EQ(LayoutUnit::fromFloatRound(-1.5f).round(), -1); 88 ASSERT_EQ(LayoutUnit::fromFloatRound(-1.49f).round(), -1); 89 ASSERT_EQ(LayoutUnit(-1.0f).round(), -1); 90 ASSERT_EQ(LayoutUnit::fromFloatRound(-0.99f).round(), -1); 91 ASSERT_EQ(LayoutUnit::fromFloatRound(-0.51f).round(), -1); 92 ASSERT_EQ(LayoutUnit::fromFloatRound(-0.50f).round(), 0); 93 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...] |