Searched refs:scale (Results 1 - 25 of 1782) 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);
/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_mips.h110 * \brief Scale input value by 2^{scale} and saturate output to 2^{dBits-1}
116 #define SATURATE_RIGHT_SHIFT(src, scale, dBits) \
117 (__builtin_mips_shll_s_w((src) >> (scale), (DFRACT_BITS - (dBits))) >> \
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timescale/
H A DTimeScaleAPITest.java50 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) {
52 UniversalTimeScale.bigDecimalFrom(bigZero, scale);
54 errln("bigDecimalFrom(bigZero, " + scale + ") threw IllegalArgumentException.");
76 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) {
78 UniversalTimeScale.bigDecimalFrom(0.0, scale);
80 errln("bigDecimalFrom(0.0, " + scale
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/
H A DTimeScaleAPITest.java47 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) {
49 UniversalTimeScale.bigDecimalFrom(bigZero, scale);
51 errln("bigDecimalFrom(bigZero, " + scale + ") threw IllegalArgumentException.");
73 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) {
75 UniversalTimeScale.bigDecimalFrom(0.0, scale);
77 errln("bigDecimalFrom(0.0, " + scale
[all...]
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/
H A DImageViewState.java8 * Wraps the scale, center and orientation of a displayed image for easy restoration on screen rotate.
13 private final float scale; field in class:ImageViewState
21 public ImageViewState(float scale, PointF center, int orientation) { argument
22 this.scale = scale;
29 return scale;
/external/aac/libFDK/include/arm/
H A Dscale_arm.h110 inline static INT shiftRightSat(INT src, int scale) { argument
115 : "r"(src >> scale), "M"(SAMPLE_BITS));
120 #define SATURATE_INT_PCM_RIGHT_SHIFT(src, scale) shiftRightSat(src, scale)
122 inline static INT shiftLeftSat(INT src, int scale) { argument
127 : "r"(src << scale), "M"(SAMPLE_BITS));
132 #define SATURATE_INT_PCM_LEFT_SHIFT(src, scale) shiftLeftSat(src, scale)
151 #define SATURATE_RIGHT_SHIFT(src, scale, dBits) \
152 ((((LONG)(src) ^ ((LONG)(src) >> (DFRACT_BITS - 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);
/external/skqp/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);
/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 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/skqp/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 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/tensorflow/tensorflow/contrib/distributions/python/ops/
H A Dvector_exponential_linear_operator.py55 `scale` matrix: `covariance = scale @ scale.T`, where `@` denotes
63 pdf(y; loc, scale) = exp(-||x||_1) / Z, for y in S(loc, scale),
64 x = inv(scale) @ (y - loc),
65 Z = |det(scale)|,
71 * `scale` is a linear operator in `R^{k x k}`, `cov = scale @ scale
208 def scale(self): member in class:VectorExponentialLinearOperator
[all...]
H A Dvector_laplace_linear_operator.py60 `scale` matrix: `covariance = 2 * scale @ scale.T`, where `@` denotes
68 pdf(x; loc, scale) = exp(-||y||_1) / Z,
69 y = inv(scale) @ (x - loc),
70 Z = 2**k |det(scale)|,
76 * `scale` is a linear operator in `R^{k x k}`, `cov = scale @ scale.T`,
80 The VectorLaplace distribution is a member of the [location-scale
225 def scale(self): member in class:VectorLaplaceLinearOperator
[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/python/cpython2/Demo/turtle/
H A Dtdemo_bytedesign.py33 def design(self, homePos, scale):
36 self.forward(64.65 * scale)
38 self.wheel(self.position(), scale)
40 self.backward(64.65 * scale)
45 self.forward(24.5 * scale)
48 self.centerpiece(46 * scale, 143.4, scale)
51 def wheel(self, initpos, scale):
54 self.pentpiece(initpos, scale)
58 self.tripiece(initpos, scale)
[all...]
/external/python/cpython3/Lib/turtledemo/
H A Dbytedesign.py32 def design(self, homePos, scale):
35 self.forward(64.65 * scale)
37 self.wheel(self.position(), scale)
39 self.backward(64.65 * scale)
44 self.forward(24.5 * scale)
47 self.centerpiece(46 * scale, 143.4, scale)
50 def wheel(self, initpos, scale):
53 self.pentpiece(initpos, scale)
57 self.tripiece(initpos, 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/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...]
/external/skqp/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);

Completed in 1292 milliseconds

1234567891011>>