Searched refs:scale (Results 1 - 25 of 1106) sorted by relevance

1234567891011>>

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
H A DScaleXPointMap.java5 protected final ECFieldElement scale; field in class:ScaleXPointMap
7 public ScaleXPointMap(ECFieldElement scale) argument
9 this.scale = scale;
14 return p.scaleX(scale);
H A DSimpleBigDecimal.java10 * point is called the <code>scale</code> of the <code>SimpleBigDecimal</code>.
11 * Unlike in {@link java.math.BigDecimal BigDecimal}, the scale is not adjusted
13 * taking part in the same arithmetic operation must have equal scale. The
15 * <code>SimpleBigDecimal</code> with double scale.
23 private final int scale; field in class:SimpleBigDecimal
30 * @param scale The scale of the <code>SimpleBigDecimal</code> to be
34 public static SimpleBigDecimal getInstance(BigInteger value, int scale) argument
36 return new SimpleBigDecimal(value.shiftLeft(scale), scale);
46 SimpleBigDecimal(BigInteger bigInt, int scale) argument
[all...]
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/
H A Dmy_corr.c34 int scale; local
40 scale=WebRtcSpl_GetSizeInBits(max);
42 scale = 2 * scale - 26;
43 if (scale<0) {
44 scale=0;
50 WebRtcSpl_CrossCorrelation(corr, seq2, seq1, dim2, loops, scale, 1);
H A Dgain_dequant.c33 int16_t scale; local
36 /* obtain correct scale factor */
38 scale=WEBRTC_SPL_ABS_W16(maxIn);
39 scale = WEBRTC_SPL_MAX(1638, scale); /* if lower than 0.1, set it to 0.1 */
44 return (int16_t)((scale * gain[index] + 8192) >> 14);
H A Dsmooth.c34 int16_t maxtot, scale, scale1, scale2; local
45 /* compute some inner products (ensure no overflow by first calculating proper scale factor) */
53 scale=WebRtcSpl_GetSizeInBits(maxtot);
54 scale = (int16_t)(2 * scale) - 26;
55 scale=WEBRTC_SPL_MAX(0, scale);
57 w00=WebRtcSpl_DotProductWithScale(current,current,ENH_BLOCKL,scale);
58 w11=WebRtcSpl_DotProductWithScale(surround,surround,ENH_BLOCKL,scale);
59 w10=WebRtcSpl_DotProductWithScale(surround,current,ENH_BLOCKL,scale);
173 w10prim >>= scale; local
174 w00prim >>= scale; local
[all...]
/external/compiler-rt/test/asan/TestCases/
H A Ddebug_mapping.cc1 // Checks that the debugging API returns correct shadow scale and offset.
14 size_t scale, offset; local
15 __asan_get_shadow_mapping(&scale, &offset);
17 fprintf(stderr, "scale: %d\n", (int)scale);
20 // CHECK: scale: [[SCALE]]
/external/aac/libFDK/include/mips/
H A Dscale.h98 * \brief Scale input value by 2^{scale} and saturate output to 2^{dBits-1}
104 #define SATURATE_RIGHT_SHIFT(src, scale, dBits) \
105 (__builtin_mips_shll_s_w((src)>>scale,(DFRACT_BITS-(dBits)))>>(DFRACT_BITS-(dBits)))
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timescale/
H A DTimeScaleAPITest.java45 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) {
47 UniversalTimeScale.bigDecimalFrom(bigZero, scale);
49 errln("bigDecimalFrom(bigZero, " + scale + ") threw IllegalArgumentException.");
71 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) {
73 UniversalTimeScale.bigDecimalFrom(0.0, scale);
75 errln("bigDecimalFrom(0.0, " + scale
[all...]
H A DTimeScaleDataTest.java41 private void roundTripTest(long value, int scale) argument
43 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale);
46 errln("Round-trip error: time scale = " + scale + ", value = " + value + ", round-trip = " + rt);
50 private void toLimitTest(long toLimit, long fromLimit, int scale) argument
52 long result = UniversalTimeScale.toLong(toLimit, scale);
55 errln("toLimit failure: scale = " + scale + ", toLimit = " + toLimit +
56 ", toLong(toLimit, scale)
60 epochOffsetTest(long epochOffset, long units, int scale) argument
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/
H A DTimeScaleAPITest.java44 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) {
46 UniversalTimeScale.bigDecimalFrom(bigZero, scale);
48 errln("bigDecimalFrom(bigZero, " + scale + ") threw IllegalArgumentException.");
70 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) {
72 UniversalTimeScale.bigDecimalFrom(0.0, scale);
74 errln("bigDecimalFrom(0.0, " + scale
[all...]
H A DTimeScaleDataTest.java40 private void roundTripTest(long value, int scale) argument
42 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale);
45 errln("Round-trip error: time scale = " + scale + ", value = " + value + ", round-trip = " + rt);
49 private void toLimitTest(long toLimit, long fromLimit, int scale) argument
51 long result = UniversalTimeScale.toLong(toLimit, scale);
54 errln("toLimit failure: scale = " + scale + ", toLimit = " + toLimit +
55 ", toLong(toLimit, scale)
59 epochOffsetTest(long epochOffset, long units, int scale) argument
[all...]
/external/aac/libFDK/include/arm/
H A Dscale.h95 inline static INT shiftRightSat(INT src, int scale) argument
102 : "r"(src>>scale), "M"(SAMPLE_BITS)
108 #define SATURATE_INT_PCM_RIGHT_SHIFT(src, scale) shiftRightSat(src, scale)
110 inline static INT shiftLeftSat(INT src, int scale) argument
117 : "r"(src<<scale), "M"(SAMPLE_BITS)
123 #define SATURATE_INT_PCM_LEFT_SHIFT(src, scale) shiftLeftSat(src, scale)
143 #define SATURATE_RIGHT_SHIFT(src, scale, dBits) \
144 ( (((LONG)(src) ^ ((LONG)(src) >> (DFRACT_BITS-1)))>>(scale)) > (LON
[all...]
/external/aac/libFDK/include/
H A Dscale.h102 #include "arm/scale.h"
105 #include "mips/scale.h"
110 #include "../src/scale.cpp"
196 * \brief Scale input value by 2^{scale} and saturate output to 2^{dBits-1}
204 #define SATURATE_RIGHT_SHIFT(src, scale, dBits) \
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) \
212 ( ((LONG)(src) > ((LONG)(((1U)<<((dBits)-1))-1)>>(scale)))
[all...]
/external/skia/tests/
H A DScaleToSidesTest.cpp52 double scale = width / ((double)radius1 + (double)radius2); local
55 scale = std::min(scale, interestingValues[s-1]);
57 if (scale < 1.0 && scale > 0.0) {
58 SkScaleToSides::AdjustRadii(width, scale, &radius1, &radius2);
H A DColorPrivTest.cpp23 for (unsigned scale = 0; scale <= 256; scale++) {
24 ASSERT(SkFourByteInterp256(src, dst, scale) == SkFastFourByteInterp256(src, dst, scale));
27 for (unsigned scale = 0; scale < 256; scale++) {
30 const SkPMColor slow = SkFourByteInterp(src, dst, scale);
31 const SkPMColor fast = SkFastFourByteInterp(src, dst, scale);
[all...]
/external/clang/lib/Headers/
H A Davx512pfintrin.h34 #define _mm512_mask_prefetch_i32gather_pd(index, mask, addr, scale, hint) __extension__ ({\
36 (long long const *)(addr), (int)(scale), \
39 #define _mm512_prefetch_i32gather_pd(index, addr, scale, hint) __extension__ ({\
41 (long long const *)(addr), (int)(scale), \
44 #define _mm512_mask_prefetch_i32gather_ps(index, mask, addr, scale, hint) ({\
47 (int)(scale), (int)(hint)); })
49 #define _mm512_prefetch_i32gather_ps(index, addr, scale, hint) ({\
52 (int)(scale), (int)(hint)); })
54 #define _mm512_mask_prefetch_i64gather_pd(index, mask, addr, scale, hint) __extension__ ({\
56 (long long const *)(addr), (int)(scale), \
[all...]
/external/skia/src/core/
H A DSkScaleToSides.h21 static void AdjustRadii(double limit, double scale, SkScalar* a, SkScalar* b) { argument
22 SkASSERTF(scale < 1.0 && scale > 0.0, "scale: %g", scale);
24 *a = (float)((double)*a * scale);
25 *b = (float)((double)*b * scale);
60 SkASSERTF(*a >= 0.0f && *b >= 0.0f, "a: %g, b: %g, limit: %g, scale: %g", *a, *b, limit,
61 scale);
64 "\nlimit: %.17f, sum: %.17f, a: %.10f, b: %.10f, scale
[all...]
H A DSkPaintPriv.cpp58 void SkPaintPriv::ScaleFontMetrics(SkPaint::FontMetrics* metrics, SkScalar scale) { argument
59 metrics->fTop *= scale;
60 metrics->fAscent *= scale;
61 metrics->fDescent *= scale;
62 metrics->fBottom *= scale;
63 metrics->fLeading *= scale;
64 metrics->fAvgCharWidth *= scale;
65 metrics->fXMin *= scale;
66 metrics->fXMax *= scale;
67 metrics->fXHeight *= scale;
[all...]
H A DSkBitmapProcState_filter.h30 int scale = 256 - 16*y - 16*x + xy; local
31 uint32_t lo = (a00 & mask) * scale;
32 uint32_t hi = ((a00 >> 8) & mask) * scale;
34 scale = 16*x - xy;
35 lo += (a01 & mask) * scale;
36 hi += ((a01 >> 8) & mask) * scale;
38 scale = 16*y - xy;
39 lo += (a10 & mask) * scale;
40 hi += ((a10 >> 8) & mask) * scale;
60 int scale local
90 int scale = 256 - 16*t; local
112 int scale = 256 - 16*t; local
[all...]
/external/libopus/silk/
H A Dstereo_find_predictor.c44 opus_int scale, scale1, scale2; local
50 scale = silk_max_int( scale1, scale2 );
51 scale = scale + ( scale & 1 ); /* make even */
52 nrgy = silk_RSHIFT32( nrgy, scale - scale2 );
53 nrgx = silk_RSHIFT32( nrgx, scale - scale1 );
55 corr = silk_inner_prod_aligned_scale( x, y, scale, length );
65 scale = silk_RSHIFT( scale,
[all...]
/external/icu/icu4c/source/test/cintltst/
H A Dutmstest.c101 static void roundTripTest(int64_t value, UDateTimeScale scale) argument
104 int64_t rt = utmscale_toInt64(utmscale_fromInt64(value, scale, &status), scale, &status);
107 log_err("Round-trip error: time scale = %d, value = %lld, round-trip = %lld.\n", scale, value, rt);
111 static void toLimitTest(int64_t toLimit, int64_t fromLimit, UDateTimeScale scale) argument
114 int64_t result = utmscale_toInt64(toLimit, scale, &status);
117 log_err("toLimit failure: scale = %d, toLimit = %lld , utmscale_toInt64(toLimit, scale, &status) = %lld, fromLimit = %lld.\n",
118 scale, toLimi
122 epochOffsetTest(int64_t epochOffset, int64_t units, UDateTimeScale scale) argument
155 int32_t scale; local
168 int32_t scale; local
182 int32_t scale; local
197 int32_t scale; local
258 int32_t scale; local
333 int32_t scale; local
[all...]
/external/skia/fuzz/
H A DFuzzScaleToSides.cpp32 double scale = (double)width / ((double)radius1 + (double)radius2); local
33 if (scale >= 1.0 || scale <= 0.0) {
36 SkDebugf("%g %g %g %g\n", radius1, radius2, width, scale);
37 SkScaleToSides::AdjustRadii(width, scale, &radius1, &radius2);
/external/skia/gm/
H A Dscaledstrokes.cpp47 SkScalar scale = 4.0f - j; variable
48 paint.setStrokeWidth(4.0f / scale);
51 canvas->scale(scale, scale);
52 draw_path(size / 2.0f / scale, canvas, paint);
57 canvas->scale(scale, scale);
58 canvas->drawCircle(0.0f, 0.0f, size / 2.0f / scale, pain
[all...]
H A Dhittestpath.cpp36 int scale = 300; local
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, random
[all...]
/external/aac/libAACdec/src/arm/
H A Dblock_arm.cpp115 int scale = SpecScale_window-pSfbScale[window*16+band]; local
116 if (scale)
125 tmp0 >>= scale; local
126 tmp1 >>= scale; local
127 tmp2 >>= scale; local
128 tmp3 >>= scale; local

Completed in 1933 milliseconds

1234567891011>>