Searched refs:scale (Results 1 - 25 of 881) 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/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: %lx\n", 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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/
H A DTimeScaleAPITest.java39 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) {
41 UniversalTimeScale.bigDecimalFrom(bigZero, scale);
43 errln("bigDecimalFrom(bigZero, " + scale + ") threw IllegalArgumentException.");
64 for (int scale = 0; scale < UniversalTimeScale.MAX_SCALE; scale += 1) {
66 UniversalTimeScale.bigDecimalFrom(0.0, scale);
68 errln("bigDecimalFrom(0.0, " + scale
[all...]
H A DTimeScaleDataTest.java36 private void roundTripTest(long value, int scale) argument
38 long rt = UniversalTimeScale.toLong(UniversalTimeScale.from(value, scale), scale);
41 errln("Round-trip error: time scale = " + scale + ", value = " + value + ", round-trip = " + rt);
45 private void toLimitTest(long toLimit, long fromLimit, int scale) argument
47 long result = UniversalTimeScale.toLong(toLimit, scale);
50 errln("toLimit failure: scale = " + scale + ", toLimit = " + toLimit +
51 ", toLong(toLimit, scale)
55 epochOffsetTest(long epochOffset, long units, int scale) argument
[all...]
/external/v8/test/mjsunit/regress/
H A Dregress-crbug-390918.js7 function f(scale) {
11 arr[2 * scale] = 0;
/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/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...]
H A Dinner_prod_aligned.c37 const opus_int scale, /* I number of bits to shift */
44 sum = silk_ADD_RSHIFT32( sum, silk_SMULBB( inVec1[ i ], inVec2[ i ] ), scale );
34 silk_inner_prod_aligned_scale( const opus_int16 *const inVec1, const opus_int16 *const inVec2, const opus_int scale, const opus_int len ) argument
/external/skia/src/core/
H A DSkBitmapProcState_filter.h31 int scale = 256 - 16*y - 16*x + xy; local
32 uint32_t lo = (a00 & mask) * scale;
33 uint32_t hi = ((a00 >> 8) & mask) * scale;
35 scale = 16*x - xy;
36 lo += (a01 & mask) * scale;
37 hi += ((a01 >> 8) & mask) * scale;
39 scale = 16*y - xy;
40 lo += (a10 & mask) * scale;
41 hi += ((a10 >> 8) & mask) * scale;
61 int scale local
91 int scale = 256 - 16*t; local
113 int scale = 256 - 16*t; local
[all...]
/external/icu/icu4c/source/test/cintltst/
H A Dutmstest.c99 static void roundTripTest(int64_t value, UDateTimeScale scale) argument
102 int64_t rt = utmscale_toInt64(utmscale_fromInt64(value, scale, &status), scale, &status);
105 log_err("Round-trip error: time scale = %d, value = %lld, round-trip = %lld.\n", scale, value, rt);
109 static void toLimitTest(int64_t toLimit, int64_t fromLimit, UDateTimeScale scale) argument
112 int64_t result = utmscale_toInt64(toLimit, scale, &status);
115 log_err("toLimit failure: scale = %d, toLimit = %lld , utmscale_toInt64(toLimit, scale, &status) = %lld, fromLimit = %lld.\n",
116 scale, toLimi
120 epochOffsetTest(int64_t epochOffset, int64_t units, UDateTimeScale scale) argument
153 int32_t scale; local
166 int32_t scale; local
180 int32_t scale; local
195 int32_t scale; local
256 int32_t scale; local
331 int32_t scale; local
[all...]
/external/skia/include/effects/
H A DSkTestImageFilters.h10 static SkDownSampleImageFilter* Create(SkScalar scale, SkImageFilter* input = NULL) { argument
11 if (!SkScalarIsFinite(scale)) {
14 // we don't support scale in this range
15 if (scale > SK_Scalar1 || scale <= 0) {
18 return SkNEW_ARGS(SkDownSampleImageFilter, (scale, input));
25 SkDownSampleImageFilter(SkScalar scale, SkImageFilter* input) argument
26 : INHERITED(1, &input), fScale(scale) {}
/external/skia/gm/
H A Dhittestpath.cpp48 int scale = 300; variable
50 path.lineTo(rand.nextUScalar1() * scale, rand.nextUScalar1() * scale);
51 path.quadTo(rand.nextUScalar1() * scale, rand.nextUScalar1() * scale,
52 rand.nextUScalar1() * scale, rand.nextUScalar1() * scale);
53 path.cubicTo(rand.nextUScalar1() * scale, rand.nextUScalar1() * scale,
54 rand.nextUScalar1() * scale, ran
[all...]
H A Dfilltypes.cpp38 SkScalar scale, const SkPaint& paint) {
47 canvas->scale(scale, scale);
53 void showFour(SkCanvas* canvas, SkScalar scale, const SkPaint& paint) { argument
55 scale, paint);
57 scale, paint);
59 scale, paint);
61 scale, paint);
70 const SkScalar scale variable
37 showPath(SkCanvas* canvas, int x, int y, SkPath::FillType ft, SkScalar scale, const SkPaint& paint) argument
[all...]
/external/skia/tests/
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/jmonkeyengine/engine/src/core/com/jme3/math/
H A DTransform.java40 * Represents a translation, rotation and scale in one object.
53 private Vector3f scale = new Vector3f(1,1,1); field in class:Transform
60 public Transform(Vector3f translation, Quaternion rot, Vector3f scale){ argument
62 this.scale.set(scale);
106 * Sets this scale to the given value.
107 * @param scale The new scale for this matrix.
110 public Transform setScale(Vector3f scale) { argument
111 this.scale
120 setScale(float scale) argument
171 getScale(Vector3f scale) argument
[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
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/collision/shapes/
H A DCollisionShape.java49 protected Vector3f scale = new Vector3f(1, 1, 1); field in class:CollisionShape
86 public void setScale(Vector3f scale) { argument
87 this.scale.set(scale);
88 setLocalScaling(objectId, scale);
92 return scale;
106 private native void setLocalScaling(long obectId, Vector3f scale); argument
112 capsule.write(scale, "scale", new Vector3f(1, 1, 1));
118 this.scale
[all...]
/external/aac/libAACdec/src/
H A Dldfiltbank.cpp104 int i, scale; local
106 /* scale for FIXP_DBL -> INT_PCM conversion. */
107 scale = (DFRACT_BITS - SAMPLE_BITS) - LDFB_HEADROOM;
121 FDK_ASSERT( (-WTS1-1 + scale) >= 0);
122 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_RIGHT_SHIFT(tmp, -WTS1-1 + scale, SAMPLE_BITS);
124 FDK_ASSERT( (WTS1+1 - scale) >= 0);
125 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_LEFT_SHIFT(tmp, WTS1+1 - scale, SAMPLE_BITS);
145 FDK_ASSERT( (-WTS0-1 + scale) >= 0);
146 output[(i-N/4)*stride] = (INT_PCM)SATURATE_RIGHT_SHIFT(tmp0, -WTS0-1 + scale, SAMPLE_BITS);
147 output[(N*3/4-1-i)*stride] = (INT_PCM)SATURATE_RIGHT_SHIFT(tmp1, -WTS1-1 + scale, SAMPLE_BIT
176 int scale = mdctData_e + MDCT_OUT_HEADROOM - LDFB_HEADROOM; /* The LDFB_HEADROOM is compensated inside multE2_DinvF_fdk() below */ local
[all...]
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/collision/shapes/
H A DCollisionShape.java48 protected Vector3f scale = new Vector3f(1, 1, 1); field in class:CollisionShape
82 public void setScale(Vector3f scale) { argument
83 this.scale.set(scale);
84 cShape.setLocalScaling(Converter.convert(scale));
97 return scale;
102 capsule.write(scale, "scale", new Vector3f(1, 1, 1));
108 this.scale = (Vector3f) capsule.readSavable("scale", ne
[all...]
/external/libopus/silk/fixed/
H A Dautocorr_FIX.c38 opus_int *scale, /* O Scaling of the correlation vector */
47 *scale = _celt_autocorr(inputData, results, NULL, 0, corrCount-1, inputDataSize, arch);
36 silk_autocorr( opus_int32 *results, opus_int *scale, const opus_int16 *inputData, const opus_int inputDataSize, const opus_int correlationCount, int arch ) argument
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/constraints/
H A DConstraintSizeLimit.java99 private void sizeLimit(Vector3f scale, float influence) { argument
101 if (scale.x < limits[0][0]) {
102 scale.x -= (scale.x - limits[0][0]) * influence;
106 if (scale.x > limits[0][1]) {
107 scale.x -= (scale.x - limits[0][1]) * influence;
111 if (scale.y < limits[1][0]) {
112 scale.y -= (scale
[all...]
/external/replicaisland/src/com/replica/replicaisland/
H A DTimeSystem.java66 float scale = 1.0f;
75 scale = Lerp.ease(1.0f, mTargetScale, EASE_DURATION, scaleTime);
79 scale = Lerp.ease(mTargetScale, 1.0f, EASE_DURATION, easeOutTime);
81 scale = mTargetScale;
84 scale = mTargetScale;
89 mGameTime += (timeDelta * scale);
90 mGameFrameDelta = (timeDelta * scale);

Completed in 1102 milliseconds

1234567891011>>