Home
last modified time | relevance | path

Searched refs:mag (Results 1 – 25 of 133) sorted by relevance

123456

/external/pdfium/third_party/bigint/
DBigInteger.cc16 mag = x.mag; in operator =()
19 BigInteger::BigInteger(const Blk *b, Index blen, Sign s) : mag(b, blen) { in BigInteger()
22 if (!mag.isZero()) in BigInteger()
29 sign = mag.isZero() ? zero : s; in BigInteger()
38 BigInteger::BigInteger(const BigUnsigned &x, Sign s) : mag(x) { in BigInteger()
41 if (!mag.isZero()) in BigInteger()
48 sign = mag.isZero() ? zero : s; in BigInteger()
62 BigInteger::BigInteger(unsigned long x) : mag(x) { sign = mag.isZero() ? zero : positive; } in BigInteger()
63 BigInteger::BigInteger(unsigned int x) : mag(x) { sign = mag.isZero() ? zero : positive; } in BigInteger()
64 BigInteger::BigInteger(unsigned short x) : mag(x) { sign = mag.isZero() ? zero : positive; } in BigInteger()
[all …]
DBigInteger.hh34 BigUnsigned mag; member in BigInteger
38 BigInteger() : sign(zero), mag() {} in BigInteger()
41 BigInteger(const BigInteger &x) : sign(x.sign), mag(x.mag) {}; in BigInteger()
50 BigInteger(const Blk *b, Index blen) : mag(b, blen) { in BigInteger()
51 sign = mag.isZero() ? zero : positive; in BigInteger()
58 BigInteger(const BigUnsigned &x) : mag(x) { in BigInteger()
59 sign = mag.isZero() ? zero : positive; in BigInteger()
89 const BigUnsigned &getMagnitude() const { return mag; } in getMagnitude()
92 Index getLength() const { return mag.getLength(); } in getLength()
93 Index getCapacity() const { return mag.getCapacity(); } in getCapacity()
[all …]
/external/tremolo/Tremolo/
Dmapping0.c87 int testM=info->coupling[i].mag=(unsigned char)(oggpack_read(opb,ilog(vi->channels))); in mapping_info_unpack()
171 if(nonzero[info->coupling[i].mag] || in mapping_inverse()
173 nonzero[info->coupling[i].mag]=1; in mapping_inverse()
200 ogg_int32_t *pcmM=vd->work[info->coupling[i].mag]; in mapping_inverse()
204 ogg_int32_t mag=pcmM[j]; in mapping_inverse() local
207 if(mag>0) in mapping_inverse()
209 pcmM[j]=mag; in mapping_inverse()
210 pcmA[j]=mag-ang; in mapping_inverse()
212 pcmA[j]=mag; in mapping_inverse()
213 pcmM[j]=mag+ang; in mapping_inverse()
[all …]
/external/llvm/test/CodeGen/AMDGPU/
Dfcopysign.f64.ll20 define void @test_copysign_f64(double addrspace(1)* %out, double %mag, double %sign) nounwind {
21 %result = call double @llvm.copysign.f64(double %mag, double %sign)
28 define void @test_copysign_v2f64(<2 x double> addrspace(1)* %out, <2 x double> %mag, <2 x double> %…
29 %result = call <2 x double> @llvm.copysign.v2f64(<2 x double> %mag, <2 x double> %sign)
36 define void @test_copysign_v4f64(<4 x double> addrspace(1)* %out, <4 x double> %mag, <4 x double> %…
37 %result = call <4 x double> @llvm.copysign.v4f64(<4 x double> %mag, <4 x double> %sign)
Dfcopysign.f32.ll24 define void @test_copysign_f32(float addrspace(1)* %out, float %mag, float %sign) nounwind {
25 %result = call float @llvm.copysign.f32(float %mag, float %sign)
35 define void @test_copysign_v2f32(<2 x float> addrspace(1)* %out, <2 x float> %mag, <2 x float> %sig…
36 %result = call <2 x float> @llvm.copysign.v2f32(<2 x float> %mag, <2 x float> %sign)
48 define void @test_copysign_v4f32(<4 x float> addrspace(1)* %out, <4 x float> %mag, <4 x float> %sig…
49 %result = call <4 x float> @llvm.copysign.v4f32(<4 x float> %mag, <4 x float> %sign)
/external/libvorbis/lib/
Dpsytune.c439 float mag=pcmM[j]; in main() local
442 if(mag>0) in main()
444 pcmM[j]=mag; in main()
445 pcmA[j]=mag-ang; in main()
447 pcmA[j]=mag; in main()
448 pcmM[j]=mag+ang; in main()
452 pcmM[j]=mag; in main()
453 pcmA[j]=mag+ang; in main()
455 pcmA[j]=mag; in main()
456 pcmM[j]=mag-ang; in main()
Dmapping0.c767 float mag=pcmM[j]; in mapping0_inverse() local
770 if(mag>0) in mapping0_inverse()
772 pcmM[j]=mag; in mapping0_inverse()
773 pcmA[j]=mag-ang; in mapping0_inverse()
775 pcmA[j]=mag; in mapping0_inverse()
776 pcmM[j]=mag+ang; in mapping0_inverse()
780 pcmM[j]=mag; in mapping0_inverse()
781 pcmA[j]=mag+ang; in mapping0_inverse()
783 pcmA[j]=mag; in mapping0_inverse()
784 pcmM[j]=mag-ang; in mapping0_inverse()
/external/opencv/cxcore/src/
Dcxmathfuncs.cpp278 magtype* mag, int len) \
289 mag[i] = x0; \
290 mag[i+1] = x1; \
295 mag[i+2] = x0; \
296 mag[i+3] = x1; \
302 mag[i] = x0*x0 + y0*y0; \
331 CvMat magstub, *mag = (CvMat*)magarr; in cvCartToPolar() local
355 if( mag ) in cvCartToPolar()
357 CV_CALL( mag = cvGetMat( mag, &magstub, &coi3 )); in cvCartToPolar()
359 if( !CV_ARE_TYPES_EQ( mag, xmat ) ) in cvCartToPolar()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
DBigIntegers.java113 byte[] mag = buf; in fromUnsignedByteArray()
116 mag = new byte[length]; in fromUnsignedByteArray()
117 System.arraycopy(buf, off, mag, 0, length); in fromUnsignedByteArray()
119 return new BigInteger(1, mag); in fromUnsignedByteArray()
/external/autotest/client/site_tests/kernel_CrosECSysfsAccel/
Dkernel_CrosECSysfsAccel.py79 mag = math.sqrt(x*x + y*y + z*z)
83 if (abs(mag - self._ACCEL_1G) <= self._ACCEL_MAG_VALID_OFFSET):
84 logging.info("%s accel passed. Magnitude is %d.", name, mag)
88 mag, self._ACCEL_1G, self._ACCEL_MAG_VALID_OFFSET,
/external/autotest/client/site_tests/graphics_SanAngeles/src/
Ddemo.c870 GLfloat mag; in gluLookAt() local
878 mag = (float)sqrt(z[0] * z[0] + z[1] * z[1] + z[2] * z[2]); in gluLookAt()
879 if (mag) { /* mpichler, 19950515 */ in gluLookAt()
880 z[0] /= mag; in gluLookAt()
881 z[1] /= mag; in gluLookAt()
882 z[2] /= mag; in gluLookAt()
905 mag = (float)sqrt(x[0] * x[0] + x[1] * x[1] + x[2] * x[2]); in gluLookAt()
906 if (mag) { in gluLookAt()
907 x[0] /= mag; in gluLookAt()
908 x[1] /= mag; in gluLookAt()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
DBigDecimal.java532 int mag = 0; in BigDecimal() local
725 mag = (exp + mant.length) - 1; // true exponent in scientific notation in BigDecimal()
726 if ((mag < MinExp) | (mag > MaxExp)) in BigDecimal()
2144 int mag = 0; in format() local
2206 mag = num.exp + num.mant.length; in format()
2207 if (mag > exdigits) in format()
2209 else if (mag < (-5)) in format()
2957 int mag; in layout() local
3030 mag = exp + cmant.length; in layout()
3032 if (mag < 1) {/* 0.00xxxx form */ in layout()
[all …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/math/
DBigDecimal.java530 int mag = 0; in BigDecimal() local
723 mag = (exp + mant.length) - 1; // true exponent in scientific notation in BigDecimal()
724 if ((mag < MinExp) | (mag > MaxExp)) in BigDecimal()
2142 int mag = 0; in format() local
2204 mag = num.exp + num.mant.length; in format()
2205 if (mag > exdigits) in format()
2207 else if (mag < (-5)) in format()
2955 int mag; in layout() local
3028 mag = exp + cmant.length; in layout()
3030 if (mag < 1) {/* 0.00xxxx form */ in layout()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/math/
DBigDecimal.java516 int mag = 0; in BigDecimal() local
709 mag = (exp + mant.length) - 1; // true exponent in scientific notation in BigDecimal()
710 if ((mag < MinExp) | (mag > MaxExp)) in BigDecimal()
2090 int mag = 0; in format() local
2152 mag = num.exp + num.mant.length; in format()
2153 if (mag > exdigits) in format()
2155 else if (mag < (-5)) in format()
2882 int mag; in layout() local
2955 mag = exp + cmant.length; in layout()
2957 if (mag < 1) {/* 0.00xxxx form */ in layout()
[all …]
/external/v8/test/unittests/base/
Ddivision-by-constant-unittest.cc20 const MagicNumbersForDivision<T>& mag) { in operator <<() argument
21 return os << "{ multiplier: " << mag.multiplier << ", shift: " << mag.shift in operator <<()
22 << ", add: " << mag.add << " }"; in operator <<()
/external/skia/src/effects/
DSkEmbossMaskFilter.cpp60 SkScalar mag = SkScalarSquare(v[0]) + SkScalarSquare(v[1]) + SkScalarSquare(v[2]); in normalize() local
61 mag = SkScalarSqrt(mag); in normalize()
64 v[i] /= mag; in normalize()
/external/skia/src/core/
DSkPoint.cpp107 float mag, scale; in Normalize() local
109 mag = sk_float_sqrt(mag2); in Normalize()
110 scale = 1 / mag; in Normalize()
118 mag = (float)magmag; in Normalize()
126 return mag; in Normalize()
/external/autotest/client/deps/webgl_mpd/src/resources/
DJ3DIMath.js705 var mag = Math.sqrt(zx * zx + zy * zy + zz * zz);
706 if (mag) {
707 zx /= mag;
708 zy /= mag;
709 zz /= mag;
730 mag = Math.sqrt(xx * xx + xy * xy + xz * xz);
731 if (mag) {
732 xx /= mag;
733 xy /= mag;
734 xz /= mag;
[all …]
/external/libvpx/libvpx/vp9/decoder/
Dvp9_decoder.c468 const uint32_t mag = ((marker >> 3) & 0x3) + 1; in vp9_parse_superframe_index() local
469 const size_t index_sz = 2 + mag * frames; in vp9_parse_superframe_index()
494 assert(sizeof(clear_buffer) >= frames * mag); in vp9_parse_superframe_index()
496 decrypt_cb(decrypt_state, x, clear_buffer, frames * mag); in vp9_parse_superframe_index()
503 for (j = 0; j < mag; ++j) in vp9_parse_superframe_index()
/external/libvpx/libvpx/test/
Dsuperframe_test.cc61 const int mag = ((marker >> 3) & 3) + 1; in MutateEncoderOutputHook() local
63 2 + mag * (frames - is_vp10_style_superframe_); in MutateEncoderOutputHook()
Dvp9_arf_freq_test.cc119 const int mag = ((marker >> 3) & 3) + 1; in GetNumFramesInPkt() local
121 const unsigned int index_sz = 2 + mag * frames; in GetNumFramesInPkt()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_state_inlines.h263 static INLINE uint32_t r300_translate_tex_filters(int min, int mag, int mip, in r300_translate_tex_filters() argument
281 switch (mag) { in r300_translate_tex_filters()
290 fprintf(stderr, "r300: Unknown texture filter %d\n", mag); in r300_translate_tex_filters()
/external/pdfium/core/src/fxcrt/
Dfx_extension.cpp275 static FX_DWORD mag[2] = {0, MT_Matrix_A}; in FX_Random_MT_Generate() local
285 pBuf[kk] = pBuf[kk + MT_M] ^ (v >> 1) ^ mag[v & 1]; in FX_Random_MT_Generate()
289 pBuf[kk] = pBuf[kk + (MT_M - MT_N)] ^ (v >> 1) ^ mag[v & 1]; in FX_Random_MT_Generate()
292 pBuf[MT_N - 1] = pBuf[MT_M - 1] ^ (v >> 1) ^ mag[v & 1]; in FX_Random_MT_Generate()
/external/v8/src/compiler/
Dmachine-operator-reducer.cc93 base::MagicNumbersForDivision<uint32_t> const mag = in Int32Div() local
96 Uint32Constant(mag.multiplier)); in Int32Div()
97 if (divisor > 0 && bit_cast<int32_t>(mag.multiplier) < 0) { in Int32Div()
99 } else if (divisor < 0 && bit_cast<int32_t>(mag.multiplier) > 0) { in Int32Div()
102 return Int32Add(Word32Sar(quotient, mag.shift), Word32Shr(dividend, 31)); in Int32Div()
114 base::MagicNumbersForDivision<uint32_t> const mag = in Uint32Div() local
117 Uint32Constant(mag.multiplier)); in Uint32Div()
118 if (mag.add) { in Uint32Div()
119 DCHECK_LE(1u, mag.shift); in Uint32Div()
122 mag.shift - 1); in Uint32Div()
[all …]
/external/skia/src/utils/
DSkCamera.cpp36 SkScalar mag = SkScalarSqrt(fX*fX + fY*fY + fZ*fZ); in normalize() local
37 if (mag) { in normalize()
38 SkScalar scale = SkScalarInvert(mag); in normalize()
45 return mag; in normalize()

123456