Home
last modified time | relevance | path

Searched refs:sqrt (Results 1 – 25 of 389) sorted by relevance

12345678910>>...16

/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/
D15.8.2.17.js50 …array[item++] = new TestCase( SECTION, "Math.sqrt.length", 1, Math.sqrt.length );
52 array[item++] = new TestCase( SECTION, "Math.sqrt()", Number.NaN, Math.sqrt() );
53 …array[item++] = new TestCase( SECTION, "Math.sqrt(void 0)", Number.NaN, Math.sqrt(void 0) …
54 … array[item++] = new TestCase( SECTION, "Math.sqrt(null)", 0, Math.sqrt(null) );
55 array[item++] = new TestCase( SECTION, "Math.sqrt(true)", 1, Math.sqrt(1) );
56 …array[item++] = new TestCase( SECTION, "Math.sqrt(false)", 0, Math.sqrt(false) );
57 …array[item++] = new TestCase( SECTION, "Math.sqrt('225')", 15, Math.sqrt('225') );
59 …array[item++] = new TestCase( SECTION, "Math.sqrt(NaN)", Number.NaN, Math.sqrt(Number.N…
60 …array[item++] = new TestCase( SECTION, "Math.sqrt(-Infinity)", Number.NaN, Math.sqrt(Number.N…
61 array[item++] = new TestCase( SECTION, "Math.sqrt(-1)", Number.NaN, Math.sqrt(-1));
[all …]
/external/stlport/test/unit/
Dresolve_name.cpp12 d = sqrt( d ); in f()
13 d = ::sqrt( d ); in f()
14 d = std::sqrt( d ); in f()
26 d = sqrt( d ); in g()
27 d = ::sqrt( d ); in g()
28 d = std::sqrt( d ); in g()
44 d = sqrt( d ); in h()
45 d = ::sqrt( d ); in h()
46 d = std::sqrt( d ); in h()
55 using std::sqrt; in sqroot()
[all …]
Dcmath_test.cpp80 CPPUNIT_CHECK( are_equals(std::sqrt(4.0), 2.0) ); in import_checks()
114 CPPUNIT_CHECK( are_equals(std::sqrt(4.0f), 2.0f) ); in import_checks()
140 CPPUNIT_CHECK( are_equals(std::sqrt(4.0l), 2.0l) ); in import_checks()
164 CPPUNIT_CHECK( are_equals(std::sqrt(std::sqrt(std::sqrt(256.0))), 2.0) ); in import_checks()
165 CPPUNIT_CHECK( are_equals(std::sqrt(std::sqrt(std::sqrt(256.0f))), 2.0f) ); in import_checks()
167 CPPUNIT_CHECK( are_equals(std::sqrt(std::sqrt(std::sqrt(256.0l))), 2.0l) ); in import_checks()
/external/llvm/test/Transforms/InstCombine/
Dsqrt.ll7 ; CHECK-NOT: sqrt(
11 %call = tail call double @sqrt(double %conv) readnone nounwind ; <double> [#uses=1]
22 ; CHECK-NOT: sqrt(
26 %call = tail call double @sqrt(double %conv) nounwind ; <double> [#uses=1]
33 ; Can't fold (fptrunc (sqrt (fpext x))) -> (sqrtf x) since there is another
34 ; use of sqrt result.
38 ; CHECK: sqrt(
46 %call34 = call double @sqrt(double %conv) readnone
54 declare double @sqrt(double) readnone
Dfold-sqrt-sqrtf.ll4 ; Instcombine tries to fold (fptrunc (sqrt (fpext x))) -> (sqrtf x), but this
9 ; CHECK: %call = tail call double @sqrt(double %conv)
12 %call = tail call double @sqrt(double %conv)
17 declare double @sqrt(double)
/external/mesa3d/src/glsl/builtins/ir/
Dsqrt1 ((function sqrt
5 ((return (expression float sqrt (var_ref arg0)))))
10 ((return (expression vec2 sqrt (var_ref arg0)))))
15 ((return (expression vec3 sqrt (var_ref arg0)))))
20 ((return (expression vec4 sqrt (var_ref arg0)))))
Dacosh5 …((return (expression float log (expression float + (var_ref x) (expression float sqrt (expression …
10 …((return (expression vec2 log (expression vec2 + (var_ref x) (expression vec2 sqrt (expression vec…
15 …((return (expression vec3 log (expression vec3 + (var_ref x) (expression vec3 sqrt (expression vec…
20 …((return (expression vec4 log (expression vec4 + (var_ref x) (expression vec4 sqrt (expression vec…
Dasinh5 …((return (expression float log (expression float + (var_ref x) (expression float sqrt (expression …
10 …((return (expression vec2 log (expression vec2 + (var_ref x) (expression vec2 sqrt (expression vec…
15 …((return (expression vec3 log (expression vec3 + (var_ref x) (expression vec3 sqrt (expression vec…
20 …((return (expression vec4 log (expression vec4 + (var_ref x) (expression vec4 sqrt (expression vec…
Dlength10 ((return (expression float sqrt (expression float dot (var_ref arg0) (var_ref arg0))))))
15 ((return (expression float sqrt (expression float dot (var_ref arg0) (var_ref arg0))))))
20 ((return (expression float sqrt (expression float dot (var_ref arg0) (var_ref arg0))))))
Dasin12 (expression float sqrt
36 (expression vec2 sqrt
60 (expression vec3 sqrt
84 (expression vec4 sqrt
Ddistance14 (return (expression float sqrt (expression float dot (var_ref p) (var_ref p))))))
22 (return (expression float sqrt (expression float dot (var_ref p) (var_ref p))))))
30 (return (expression float sqrt (expression float dot (var_ref p) (var_ref p))))))
/external/llvm/test/CodeGen/PTX/
Dllvm-intrinsic.ll5 ; CHECK: sqrt.rn.f32 %ret{{[0-9]+}}, %f{{[0-9]+}};
7 %y = call float @llvm.sqrt.f32(float %x)
13 ; CHECK: sqrt.rn.f64 %ret{{[0-9]+}}, %fd{{[0-9]+}};
15 %y = call double @llvm.sqrt.f64(double %x)
51 declare float @llvm.sqrt.f32(float)
52 declare double @llvm.sqrt.f64(double)
/external/llvm/test/CodeGen/X86/
Dbreak-sse-dep.ll30 %t = call float @llvm.sqrt.f32(float %z)
40 %t = call double @llvm.sqrt.f64(double %z)
49 %t = call float @llvm.sqrt.f32(float %z)
58 %t = call double @llvm.sqrt.f64(double %z)
62 declare float @llvm.sqrt.f32(float)
63 declare double @llvm.sqrt.f64(double)
/external/llvm/test/CodeGen/Generic/
Dintrinsics.ll4 declare float @llvm.sqrt.f32(float)
6 declare double @llvm.sqrt.f64(double)
9 %G = call float @llvm.sqrt.f32( float %F ) ; <float> [#uses=1]
11 %I = call double @llvm.sqrt.f64( double %H ) ; <double> [#uses=1]
/external/stlport/stlport/stl/config/
D_como.h89 # define sqrtl sqrt
127 # define sqrtf sqrt
128 # define sqrtl sqrt
163 # define sqrtl sqrt
/external/llvm/test/Transforms/SimplifyLibCalls/
Dpow-to-sqrt.ll4 ; SimplifyLibcalls should optimize pow(x, 0.5) to sqrt plus code to handle
20 ; CHECK: %sqrt = call double @sqrt(double %x) nounwind readonly
21 ; CHECK: %fabs = call double @fabs(double %sqrt) nounwind readonly
/external/guava/guava-tests/test/com/google/common/math/
DBigIntegerMathTest.java54 assertEquals(BigIntegerMath.sqrt( in testConstantSqrt2PrecomputedBits()
250 assertEquals(ZERO, BigIntegerMath.sqrt(ZERO, mode)); in testSqrtZeroAlwaysZero()
258 BigIntegerMath.sqrt(x, mode); in testSqrtNegativeAlwaysThrows()
268 BigInteger result = BigIntegerMath.sqrt(x, mode); in testSqrtFloor()
279 BigInteger result = BigIntegerMath.sqrt(x, mode); in testSqrtCeiling()
290 BigInteger floor = BigIntegerMath.sqrt(x, FLOOR);
294 assertEquals(floor, BigIntegerMath.sqrt(x, UNNECESSARY));
304 BigInteger result = BigIntegerMath.sqrt(x, HALF_UP);
319 BigInteger result = BigIntegerMath.sqrt(x, HALF_DOWN);
335 BigInteger halfEven = BigIntegerMath.sqrt(x, HALF_EVEN);
[all …]
DIntMathTest.java50 BigIntegerMath.sqrt(BigInteger.ZERO.setBit(2 * Integer.SIZE - 1), FLOOR).intValue(), in testConstantMaxPowerOfSqrt2Unsigned()
66 BigIntegerMath.sqrt(BigInteger.TEN.pow(2 * i + 1), FLOOR).longValue()); in testConstantsHalfPowersOf10()
86 assertEquals(IntMath.sqrt(Integer.MAX_VALUE, FLOOR), IntMath.FLOOR_SQRT_MAX_INT); in testPowersSqrtMaxInt()
204 assertEquals(0, IntMath.sqrt(0, mode)); in testSqrtZeroAlwaysZero()
213 IntMath.sqrt(x, mode); in testSqrtNegativeAlwaysThrows()
228 assertEquals(BigIntegerMath.sqrt(valueOf(x), mode), valueOf(IntMath.sqrt(x, mode))); in testSqrtMatchesBigInteger()
237 int floor = IntMath.sqrt(x, FLOOR); in testSqrtExactMatchesFloorOrThrows()
241 assertEquals(floor, IntMath.sqrt(x, UNNECESSARY)); in testSqrtExactMatchesFloorOrThrows()
/external/webkit/Source/WebCore/platform/audio/
DBiquad.cpp196 double d = sqrt((4.0 - sqrt(16.0 - 16.0 / (g * g))) / 2.0); in setLowpassParams()
217 double d = sqrt((4.0 - sqrt(16.0 - 16.0 / (g * g))) / 2.0); in setHighpassParams()
239 double alpha = 0.5 * sin(theta) * sqrt((A + 1.0 / A) * (1.0 / S - 1.0) + 2.0); in setLowShelfParams()
242 double k2 = 2.0 * sqrt(A) * alpha; in setLowShelfParams()
/external/libvpx/vp8/common/ppc/
Didctllm_altivec.asm48 vaddsws v4, v4, v0 ;# ip[ 4] * sin(pi/8) * sqrt(2)
52 vsraw v5, v5, v12 ;# ip[12] * cos(pi/8) * sqrt(2)
59 vaddsws v3, v3, v1 ;# ip[12] * sin(pi/8) * sqrt(2)
62 vsraw v5, v5, v12 ;# ip[ 4] * cos(pi/8) * sqrt(2)
92 vaddsws v4, v4, v1 ;# ip[ 4] * sin(pi/8) * sqrt(2)
95 vsraw v5, v5, v12 ;# ip[12] * cos(pi/8) * sqrt(2)
102 vaddsws v2, v2, v3 ;# ip[12] * sin(pi/8) * sqrt(2)
105 vsraw v5, v5, v12 ;# ip[ 4] * cos(pi/8) * sqrt(2)
/external/llvm/test/Transforms/SCCP/
Dcalltest.ll3 ; No matter how hard you try, sqrt(1.0) is always 1.0. This allows the
6 declare double @sqrt(double)
14 %V2 = call double @sqrt( double %V ) ; <double> [#uses=1]
/external/opencv/cxcore/src/
Dcxjacobieigens.cpp96 anorm = sqrt( anorm + anorm ); in icvJacobiEigens_32f()
127 x = -Apq / sqrt( (double)Apq * Apq + (double)y * y ); in icvJacobiEigens_32f()
130 s = x / sqrt( 2.0 * (1.0 + sqrt( 1.0 - (double)x * x ))); in icvJacobiEigens_32f()
132 c = sqrt( 1.0 - s2 ); in icvJacobiEigens_32f()
247 anorm = sqrt( anorm + anorm ); in icvJacobiEigens_64d()
278 x = -Apq / sqrt( Apq * Apq + (double)y * y ); in icvJacobiEigens_64d()
281 s = x / sqrt( 2.0 * (1.0 + sqrt( 1.0 - (double)x * x ))); in icvJacobiEigens_64d()
283 c = sqrt( 1.0 - s2 ); in icvJacobiEigens_64d()
/external/llvm/test/CodeGen/XCore/
Dfloat-intrinsics.ll11 declare double @llvm.sqrt.f64(double)
157 define double @sqrt(double %F) {
158 ; CHECK: sqrt:
159 ; CHECK: bl sqrt
160 %result = call double @llvm.sqrt.f64(double %F)
164 declare float @llvm.sqrt.f32(float)
169 %result = call float @llvm.sqrt.f32(float %F)
/external/clang/test/CodeGen/
D2004-02-20-Builtins.c2 double sqrt(double x);
4 num = sqrt(num); in zsqrtxxx()
/external/stlport/stlport/stl/
D_cmath.h345 … (abs, acos, asin, atan, atan2, cos, cosh, exp, fabs, fmod, log, log10, sin, sinh, sqrt, tan, tanh)
379 _STLP_DMATH_INLINE(sqrt) in _STLP_DMATH_INLINE()
405 # if defined (sqrt)
406 inline double __stlp_sqrt(double __x) { return sqrt(__x); } in __stlp_sqrt()
407 # undef sqrt
408 inline double sqrt(double __x) { return __stlp_sqrt(__x); } in sqrt() function
450 _STLP_DEF_MATH_INLINE(sqrt, sqrt)
498 inline long double hypot(long double x, long double y) { return sqrt(x * x + y * y); } in _STLP_MATH_INLINE2XX()
504 inline double hypot(double x, double y) { return sqrt(x * x + y * y); } in hypot()
515 … (abs, acos, asin, atan, atan2, cos, cosh, exp, fabs, fmod, log, log10, sin, sinh, sqrt, tan, tanh)
[all …]

12345678910>>...16