/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timescale/ |
D | TimeScaleAPITest.java | 45 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromBigDecimal() 47 UniversalTimeScale.bigDecimalFrom(bigZero, scale); in TestBigDecimalFromBigDecimal() 49 errln("bigDecimalFrom(bigZero, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromBigDecimal() 71 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromDouble() 73 UniversalTimeScale.bigDecimalFrom(0.0, scale); in TestBigDecimalFromDouble() 75 errln("bigDecimalFrom(0.0, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromDouble() 97 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromLong() 99 UniversalTimeScale.bigDecimalFrom(0L, scale); in TestBigDecimalFromLong() 101 errln("bigDecimalFrom(0L, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromLong() 125 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestFromLong() [all …]
|
D | TimeScaleDataTest.java | 41 private void roundTripTest(long value, int scale) in roundTripTest() argument 43 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale); in roundTripTest() 46 … errln("Round-trip error: time scale = " + scale + ", value = " + value + ", round-trip = " + rt); in roundTripTest() 50 private void toLimitTest(long toLimit, long fromLimit, int scale) in toLimitTest() argument 52 long result = UniversalTimeScale.toLong(toLimit, scale); in toLimitTest() 55 errln("toLimit failure: scale = " + scale + ", toLimit = " + toLimit + in toLimitTest() 60 private void epochOffsetTest(long epochOffset, long units, int scale) in epochOffsetTest() argument 63 long local = UniversalTimeScale.toLong(universalEpoch, scale); in epochOffsetTest() 66 … errln("toLong(epochOffset, scale): scale = " + scale + ", epochOffset = " + universalEpoch + in epochOffsetTest() 70 local = UniversalTimeScale.toLong(0, scale); in epochOffsetTest() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/ |
D | TimeScaleAPITest.java | 44 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromBigDecimal() 46 UniversalTimeScale.bigDecimalFrom(bigZero, scale); in TestBigDecimalFromBigDecimal() 48 errln("bigDecimalFrom(bigZero, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromBigDecimal() 70 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromDouble() 72 UniversalTimeScale.bigDecimalFrom(0.0, scale); in TestBigDecimalFromDouble() 74 errln("bigDecimalFrom(0.0, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromDouble() 96 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestBigDecimalFromLong() 98 UniversalTimeScale.bigDecimalFrom(0L, scale); in TestBigDecimalFromLong() 100 errln("bigDecimalFrom(0L, " + scale + ") threw IllegalArgumentException."); in TestBigDecimalFromLong() 124 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in TestFromLong() [all …]
|
D | TimeScaleDataTest.java | 40 private void roundTripTest(long value, int scale) in roundTripTest() argument 42 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale); in roundTripTest() 45 … errln("Round-trip error: time scale = " + scale + ", value = " + value + ", round-trip = " + rt); in roundTripTest() 49 private void toLimitTest(long toLimit, long fromLimit, int scale) in toLimitTest() argument 51 long result = UniversalTimeScale.toLong(toLimit, scale); in toLimitTest() 54 errln("toLimit failure: scale = " + scale + ", toLimit = " + toLimit + in toLimitTest() 59 private void epochOffsetTest(long epochOffset, long units, int scale) in epochOffsetTest() argument 62 long local = UniversalTimeScale.toLong(universalEpoch, scale); in epochOffsetTest() 65 … errln("toLong(epochOffset, scale): scale = " + scale + ", epochOffset = " + universalEpoch + in epochOffsetTest() 69 local = UniversalTimeScale.toLong(0, scale); in epochOffsetTest() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | utmstest.c | 101 static void roundTripTest(int64_t value, UDateTimeScale scale) in roundTripTest() argument 104 int64_t rt = utmscale_toInt64(utmscale_fromInt64(value, scale, &status), scale, &status); in roundTripTest() 107 …log_err("Round-trip error: time scale = %d, value = %lld, round-trip = %lld.\n", scale, value, rt); in roundTripTest() 111 static void toLimitTest(int64_t toLimit, int64_t fromLimit, UDateTimeScale scale) in toLimitTest() argument 114 int64_t result = utmscale_toInt64(toLimit, scale, &status); in toLimitTest() 118 scale, toLimit, result, fromLimit); in toLimitTest() 122 static void epochOffsetTest(int64_t epochOffset, int64_t units, UDateTimeScale scale) in epochOffsetTest() argument 127 int64_t local = utmscale_toInt64(universalEpoch, scale, &status); in epochOffsetTest() 130 …ffset, scale, &status): scale = %d epochOffset = %lld, result = %lld.\n", scale, epochOffset, loca… in epochOffsetTest() 133 local = utmscale_toInt64(0, scale, &status); in epochOffsetTest() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
D | SimpleBigDecimal.java | 23 private final int scale; field in SimpleBigDecimal 34 public static SimpleBigDecimal getInstance(BigInteger value, int scale) in getInstance() argument 36 return new SimpleBigDecimal(value.shiftLeft(scale), scale); in getInstance() 46 public SimpleBigDecimal(BigInteger bigInt, int scale) in SimpleBigDecimal() argument 48 if (scale < 0) in SimpleBigDecimal() 54 this.scale = scale; in SimpleBigDecimal() 59 if (scale != b.scale) in checkScale() 73 if (newScale == scale) in adjustScale() 78 return new SimpleBigDecimal(bigInt.shiftLeft(newScale - scale), in adjustScale() 85 return new SimpleBigDecimal(bigInt.add(b.bigInt), scale); in add() [all …]
|
/external/clang/lib/Headers/ |
D | avx512pfintrin.h | 34 #define _mm512_mask_prefetch_i32gather_pd(index, mask, addr, scale, hint) __extension__ ({\ argument 36 (long long const *)(addr), (int)(scale), \ 39 #define _mm512_prefetch_i32gather_pd(index, addr, scale, hint) __extension__ ({\ argument 41 (long long const *)(addr), (int)(scale), \ 44 #define _mm512_mask_prefetch_i32gather_ps(index, mask, addr, scale, hint) ({\ argument 47 (int)(scale), (int)(hint)); }) 49 #define _mm512_prefetch_i32gather_ps(index, addr, scale, hint) ({\ argument 52 (int)(scale), (int)(hint)); }) 54 #define _mm512_mask_prefetch_i64gather_pd(index, mask, addr, scale, hint) __extension__ ({\ argument 56 (long long const *)(addr), (int)(scale), \ [all …]
|
/external/skia/src/core/ |
D | SkBitmapProcState_filter.h | 30 int scale = 256 - 16*y - 16*x + xy; in Filter_32_opaque() local 31 uint32_t lo = (a00 & mask) * scale; in Filter_32_opaque() 32 uint32_t hi = ((a00 >> 8) & mask) * scale; in Filter_32_opaque() 34 scale = 16*x - xy; in Filter_32_opaque() 35 lo += (a01 & mask) * scale; in Filter_32_opaque() 36 hi += ((a01 >> 8) & mask) * scale; in Filter_32_opaque() 38 scale = 16*y - xy; in Filter_32_opaque() 39 lo += (a10 & mask) * scale; in Filter_32_opaque() 40 hi += ((a10 >> 8) & mask) * scale; in Filter_32_opaque() 60 int scale = 256 - 16*y - 16*x + xy; in Filter_32_alpha() local [all …]
|
D | SkUnPreMultiply.cpp | 12 const Scale scale = GetScale(a); in PMColorToColor() local 14 ApplyScale(scale, SkGetPackedR32(c)), in PMColorToColor() 15 ApplyScale(scale, SkGetPackedG32(c)), in PMColorToColor() 16 ApplyScale(scale, SkGetPackedB32(c))); in PMColorToColor() 21 const Scale scale = GetScale(a); in UnPreMultiplyPreservingByteOrder() local 23 ApplyScale(scale, SkGetPackedR32(c)), in UnPreMultiplyPreservingByteOrder() 24 ApplyScale(scale, SkGetPackedG32(c)), in UnPreMultiplyPreservingByteOrder() 25 ApplyScale(scale, SkGetPackedB32(c))); in UnPreMultiplyPreservingByteOrder() 66 uint32_t scale; in SkUnPreMultiply_BuildTable() local 69 scale = 0; in SkUnPreMultiply_BuildTable() [all …]
|
D | SkPaintPriv.cpp | 58 void SkPaintPriv::ScaleFontMetrics(SkPaint::FontMetrics* metrics, SkScalar scale) { in ScaleFontMetrics() argument 59 metrics->fTop *= scale; in ScaleFontMetrics() 60 metrics->fAscent *= scale; in ScaleFontMetrics() 61 metrics->fDescent *= scale; in ScaleFontMetrics() 62 metrics->fBottom *= scale; in ScaleFontMetrics() 63 metrics->fLeading *= scale; in ScaleFontMetrics() 64 metrics->fAvgCharWidth *= scale; in ScaleFontMetrics() 65 metrics->fXMin *= scale; in ScaleFontMetrics() 66 metrics->fXMax *= scale; in ScaleFontMetrics() 67 metrics->fXHeight *= scale; in ScaleFontMetrics() [all …]
|
D | SkPoint.cpp | 63 void SkPoint::scale(SkScalar scale, SkPoint* dst) const { in scale() function in SkPoint 65 dst->set(fX * scale, fY * scale); in scale() 106 float mag, scale; in Normalize() local 109 scale = 1 / mag; in Normalize() 122 scale = (float)(1 / magmag); in Normalize() 124 pt->set(x * scale, y * scale); in Normalize() 154 float scale; in setLength() local 156 scale = length / sk_float_sqrt(mag2); in setLength() 172 scale = (float)(length / sqrt(xx * xx + yy * yy)); in setLength() 175 fX = x * scale; in setLength() [all …]
|
/external/aac/libFDK/include/ |
D | scale.h | 204 …#define SATURATE_RIGHT_SHIFT(src, scale, dBits) … argument 205 …( (((LONG)(src)>>(scale)) > (LONG)(((1U)<<((dBits)-1))-1)) ? (LONG)(((1U)<<((dBits)-1))-1) … 206 … : (((LONG)(src)>>(scale)) < ~((LONG)(((1U)<<((dBits)-1))-1))) ? ~((LONG)(((1U)<<((dBits)-1))-1)) \ 207 : ((LONG)(src) >> (scale)) ) 211 …#define SATURATE_LEFT_SHIFT(src, scale, dBits) … argument 212 …( ((LONG)(src) > ((LONG)(((1U)<<((dBits)-1))-1)>>(scale))) ? (LONG)(((1U)<<((dBits)-1))-1) … 213 … : ((LONG)(src) < ~((LONG)(((1U)<<((dBits)-1))-1)>>(scale))) ? ~((LONG)(((1U)<<((dBits)-1))-1)) \ 214 : ((LONG)(src) << (scale)) ) 218 #define SATURATE_SHIFT(src, scale, dBits) \ argument 219 ( ((scale) < 0) \ [all …]
|
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/ |
D | smooth.c | 34 int16_t maxtot, scale, scale1, scale2; in WebRtcIlbcfix_Smooth() local 53 scale=WebRtcSpl_GetSizeInBits(maxtot); in WebRtcIlbcfix_Smooth() 54 scale = (int16_t)(2 * scale) - 26; in WebRtcIlbcfix_Smooth() 55 scale=WEBRTC_SPL_MAX(0, scale); in WebRtcIlbcfix_Smooth() 57 w00=WebRtcSpl_DotProductWithScale(current,current,ENH_BLOCKL,scale); in WebRtcIlbcfix_Smooth() 58 w11=WebRtcSpl_DotProductWithScale(surround,surround,ENH_BLOCKL,scale); in WebRtcIlbcfix_Smooth() 59 w10=WebRtcSpl_DotProductWithScale(surround,current,ENH_BLOCKL,scale); in WebRtcIlbcfix_Smooth() 98 if ( (6-scale+scale1) > 31) { in WebRtcIlbcfix_Smooth() 104 -(6-scale+scale1)); in WebRtcIlbcfix_Smooth() 119 scale = scale2; in WebRtcIlbcfix_Smooth() [all …]
|
/external/skia/gm/ |
D | scaledstrokes.cpp | 47 SkScalar scale = 4.0f - j; in onDraw() local 48 paint.setStrokeWidth(4.0f / scale); in onDraw() 51 canvas->scale(scale, scale); in onDraw() 52 draw_path(size / 2.0f / scale, canvas, paint); in onDraw() 57 canvas->scale(scale, scale); in onDraw() 58 canvas->drawCircle(0.0f, 0.0f, size / 2.0f / scale, paint); in onDraw() 63 canvas->scale(scale, scale); in onDraw() 64 canvas->drawRect(SkRect::MakeXYWH(0.0f, 0.0f, size / scale, size / scale), paint); in onDraw() 69 canvas->scale(scale, scale); in onDraw() 70 canvas->drawLine(0.0f, 0.0f, size / scale, size / scale, paint); in onDraw()
|
D | hittestpath.cpp | 36 int scale = 300; variable 43 path.lineTo(randoms[0] * scale, randoms[1] * scale); 44 path.quadTo(randoms[2] * scale, randoms[3] * scale, 45 randoms[4] * scale, randoms[5] * scale); 46 path.cubicTo(randoms[6] * scale, randoms[7] * scale, 47 randoms[8] * scale, randoms[9] * scale, 48 randoms[10] * scale, randoms[11] * scale); 56 canvas->translate(SkIntToScalar(scale), 0);
|
/external/aac/libFDK/include/arm/ |
D | scale.h | 95 inline static INT shiftRightSat(INT src, int scale) in shiftRightSat() argument 102 : "r"(src>>scale), "M"(SAMPLE_BITS) in shiftRightSat() 108 #define SATURATE_INT_PCM_RIGHT_SHIFT(src, scale) shiftRightSat(src, scale) argument 110 inline static INT shiftLeftSat(INT src, int scale) in shiftLeftSat() argument 117 : "r"(src<<scale), "M"(SAMPLE_BITS) in shiftLeftSat() 123 #define SATURATE_INT_PCM_LEFT_SHIFT(src, scale) shiftLeftSat(src, scale) argument 143 …#define SATURATE_RIGHT_SHIFT(src, scale, dBits) … argument 144 …( (((LONG)(src) ^ ((LONG)(src) >> (DFRACT_BITS-1)))>>(scale)) > (LONG)(((1U)<<((dBits)-1))-1)) … 146 : ((LONG)(src) >> (scale)) 148 …#define SATURATE_LEFT_SHIFT(src, scale, dBits) … argument [all …]
|
/external/mesa3d/src/mesa/math/ |
D | m_norm_tmp.h | 44 GLfloat scale, in TAG() 71 GLfloat scale = INV_SQRTF(len); in TAG() local 72 out[i][0] = tx * scale; in TAG() 73 out[i][1] = ty * scale; in TAG() 74 out[i][2] = tz * scale; in TAG() 83 if (scale != 1.0) { in TAG() 84 m0 *= scale, m4 *= scale, m8 *= scale; in TAG() 85 m1 *= scale, m5 *= scale, m9 *= scale; in TAG() 86 m2 *= scale, m6 *= scale, m10 *= scale; in TAG() 111 GLfloat scale, in TAG() [all …]
|
/external/aac/libAACdec/src/ |
D | ldfiltbank.cpp | 104 int i, scale; in multE2_DinvF_fdk() local 107 scale = (DFRACT_BITS - SAMPLE_BITS) - LDFB_HEADROOM; in multE2_DinvF_fdk() 121 FDK_ASSERT( (-WTS1-1 + scale) >= 0); in multE2_DinvF_fdk() 122 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_RIGHT_SHIFT(tmp, -WTS1-1 + scale, SAMPLE_BITS); in multE2_DinvF_fdk() 124 FDK_ASSERT( (WTS1+1 - scale) >= 0); in multE2_DinvF_fdk() 125 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_LEFT_SHIFT(tmp, WTS1+1 - scale, SAMPLE_BITS); in multE2_DinvF_fdk() 145 FDK_ASSERT( (-WTS0-1 + scale) >= 0); in multE2_DinvF_fdk() 146 output[(i-N/4)*stride] = (INT_PCM)SATURATE_RIGHT_SHIFT(tmp0, -WTS0-1 + scale, SAMPLE_BITS); in multE2_DinvF_fdk() 147 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_RIGHT_SHIFT(tmp1, -WTS1-1 + scale, SAMPLE_BITS); in multE2_DinvF_fdk() 149 FDK_ASSERT( (WTS0+1 - scale) >= 0); in multE2_DinvF_fdk() [all …]
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timescale/ |
D | GenerateCTimeScaleData.java | 75 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in main() 76 … long units = UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.UNITS_VALUE); in main() 96 …cargs[1] = minMaxFilter(UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.EPOCH_OFFS… in main() 97 …cargs[2] = minMaxFilter(UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.FROM_MIN_V… in main() 98 …cargs[3] = minMaxFilter(UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.FROM_MAX_V… in main() 99 …cargs[4] = minMaxFilter(UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.TO_MIN_VAL… in main() 100 …cargs[5] = minMaxFilter(UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.TO_MAX_VAL… in main() 101 …cargs[6] = minMaxFilter(UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.EPOCH_OFFS… in main() 102 …cargs[7] = minMaxFilter(UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.EPOCH_OFFS… in main() 103 …cargs[8] = minMaxFilter(UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.UNITS_ROUN… in main() [all …]
|
D | CalculateLimits.java | 61 for(int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) { in main() 62 … BigDecimal min = UniversalTimeScale.toBigDecimalTrunc(universalMin, scale).max(universalMin); in main() 63 … BigDecimal max = UniversalTimeScale.toBigDecimalTrunc(universalMax, scale).min(universalMax); in main() 71 BigDecimal minTrunc = UniversalTimeScale.bigDecimalFrom(min, scale); in main() 72 BigDecimal maxTrunc = UniversalTimeScale.bigDecimalFrom(max, scale); in main() 75 …long units = UniversalTimeScale.getTimeScaleValue(scale, UniversalTimeScale.UNITS_VALUE… in main() 86 … if(UniversalTimeScale.toLong(UniversalTimeScale.from(minLong, scale), scale) != minLong) { in main() 90 … if(UniversalTimeScale.toLong(UniversalTimeScale.from(maxLong, scale), scale) != maxLong) { in main() 95 if(UniversalTimeScale.toLong(min.longValue(), scale) != minLong) { in main() 99 if(UniversalTimeScale.toLong(max.longValue(), scale) != maxLong) { in main()
|
/external/libopus/silk/ |
D | stereo_find_predictor.c | 44 opus_int scale, scale1, scale2; in silk_stereo_find_predictor() local 50 scale = silk_max_int( scale1, scale2 ); in silk_stereo_find_predictor() 51 scale = scale + ( scale & 1 ); /* make even */ in silk_stereo_find_predictor() 52 nrgy = silk_RSHIFT32( nrgy, scale - scale2 ); in silk_stereo_find_predictor() 53 nrgx = silk_RSHIFT32( nrgx, scale - scale1 ); in silk_stereo_find_predictor() 55 corr = silk_inner_prod_aligned_scale( x, y, scale, length ); in silk_stereo_find_predictor() 65 scale = silk_RSHIFT( scale, 1 ); in silk_stereo_find_predictor() 66 … silk_SMLAWB( mid_res_amp_Q0[ 0 ], silk_LSHIFT( silk_SQRT_APPROX( nrgx ), scale ) - mid_res_amp_Q0… in silk_stereo_find_predictor() 71 … silk_SMLAWB( mid_res_amp_Q0[ 1 ], silk_LSHIFT( silk_SQRT_APPROX( nrgy ), scale ) - mid_res_amp_Q0… in silk_stereo_find_predictor()
|
/external/webp/src/dsp/ |
D | rescaler_msa.c | 26 #define CALC_MULT_FIX_16(in0, in1, in2, in3, scale, shift, dst) do { \ argument 32 DOTP_UW2_UD(tmp0, tmp1, scale, scale, out0, out1); \ 33 DOTP_UW2_UD(tmp2, tmp3, scale, scale, out2, out3); \ 38 DOTP_UW2_UD(tmp0, tmp1, scale, scale, out0, out1); \ 39 DOTP_UW2_UD(tmp2, tmp3, scale, scale, out2, out3); \ 46 #define CALC_MULT_FIX_4(in0, scale, shift, dst) do { \ argument 51 DOTP_UW2_UD(tmp0, tmp1, scale, scale, out0, out1); \ 77 #define CALC_MULT_FIX1_4(in0, scale, shift, dst) do { \ argument 81 DOTP_UW2_UD(tmp0, tmp1, scale, scale, out0, out1); \ 86 #define CALC_MULT_FIX2_16(in0, in1, in2, in3, mult, scale, shift, \ argument [all …]
|
/external/deqp/modules/gles2/accuracy/ |
D | es2aVaryingInterpolationTests.cpp | 64 …rfaceAccess& dst, const float coords[4*3], const Vec4& wCoord, const Vec3& scale, const Vec3& bias) in renderReference() argument 87 … float r = projectedTriInterpolate(triR[triNdx], triW[triNdx], triNx, triNy) * scale[0] + bias[0]; in renderReference() 88 … float g = projectedTriInterpolate(triG[triNdx], triW[triNdx], triNx, triNy) * scale[1] + bias[1]; in renderReference() 89 … float b = projectedTriInterpolate(triB[triNdx], triW[triNdx], triNx, triNy) * scale[2] + bias[2]; in renderReference() 212 tcu::Vec3 scale = 1.0f / (m_max - m_min); in iterate() local 213 tcu::Vec3 bias = -1.0f*m_min*scale; in iterate() 216 (0.0f - bias[0])/scale[0], (0.5f - bias[1])/scale[1], (1.0f - bias[2])/scale[2], in iterate() 217 (0.5f - bias[0])/scale[0], (1.0f - bias[1])/scale[1], (0.5f - bias[2])/scale[2], in iterate() 218 (0.5f - bias[0])/scale[0], (0.0f - bias[1])/scale[1], (0.5f - bias[2])/scale[2], in iterate() 219 (1.0f - bias[0])/scale[0], (0.5f - bias[1])/scale[1], (0.0f - bias[2])/scale[2] in iterate() [all …]
|
/external/deqp/modules/gles3/accuracy/ |
D | es3aVaryingInterpolationTests.cpp | 66 …rfaceAccess& dst, const float coords[4*3], const Vec4& wCoord, const Vec3& scale, const Vec3& bias) in renderReference() argument 89 … float r = projectedTriInterpolate(triR[triNdx], triW[triNdx], triNx, triNy) * scale[0] + bias[0]; in renderReference() 90 … float g = projectedTriInterpolate(triG[triNdx], triW[triNdx], triNx, triNy) * scale[1] + bias[1]; in renderReference() 91 … float b = projectedTriInterpolate(triB[triNdx], triW[triNdx], triNx, triNy) * scale[2] + bias[2]; in renderReference() 218 tcu::Vec3 scale = 1.0f / (m_max - m_min); in iterate() local 219 tcu::Vec3 bias = -1.0f*m_min*scale; in iterate() 222 (0.0f - bias[0])/scale[0], (0.5f - bias[1])/scale[1], (1.0f - bias[2])/scale[2], in iterate() 223 (0.5f - bias[0])/scale[0], (1.0f - bias[1])/scale[1], (0.5f - bias[2])/scale[2], in iterate() 224 (0.5f - bias[0])/scale[0], (0.0f - bias[1])/scale[1], (0.5f - bias[2])/scale[2], in iterate() 225 (1.0f - bias[0])/scale[0], (0.5f - bias[1])/scale[1], (0.0f - bias[2])/scale[2] in iterate() [all …]
|
/external/aac/libAACenc/src/ |
D | band_nrg.cpp | 135 INT i, j, scale, nr = 0; in FDKaacEnc_CheckBandEnergyOptim() local 141 scale = fixMax(0, sfbMaxScaleSpec[i]-4); in FDKaacEnc_CheckBandEnergyOptim() 144 spec = mdctSpectrum[j]<<scale; in FDKaacEnc_CheckBandEnergyOptim() 152 bandEnergyLdData[i] -= scale*FL2FXCONST_DBL(2.0/64); in FDKaacEnc_CheckBandEnergyOptim() 162 scale = fixMax(0,sfbMaxScaleSpec[nr]-4); in FDKaacEnc_CheckBandEnergyOptim() 163 scale = fixMax(2*(minSpecShift-scale),-(DFRACT_BITS-1)); in FDKaacEnc_CheckBandEnergyOptim() 165 maxNrg = scaleValue(bandEnergy[nr], scale); in FDKaacEnc_CheckBandEnergyOptim() 223 INT scale = fixMin((sfbMaxScaleSpec[i]-4)<<1,(DFRACT_BITS-1)); in FDKaacEnc_CalcBandEnergyOptimLong() local 224 bandEnergy[i] = scaleValue(bandEnergy[i], -scale); in FDKaacEnc_CalcBandEnergyOptimLong() 237 INT scale = fixMin( ((sfbMaxScaleSpec[i]-4)+shiftBits)<<1, (DFRACT_BITS-1)); in FDKaacEnc_CalcBandEnergyOptimLong() local [all …]
|