/external/svox/pico/lib/ |
D | picosig2.c | 1006 picoos_int32 *norm; in gen_hann2() local 1009 norm = sig_inObj->norm_window_p; in gen_hann2() 1011 norm[0] = 80224; in gen_hann2() 1012 norm[1] = 320832; in gen_hann2() 1013 norm[2] = 721696; in gen_hann2() 1014 norm[3] = 1282560; in gen_hann2() 1015 norm[4] = 2003104; in gen_hann2() 1016 norm[5] = 2882880; in gen_hann2() 1017 norm[6] = 3921376; in gen_hann2() 1018 norm[7] = 5117984; in gen_hann2() [all …]
|
/external/opencv/cxcore/src/ |
D | cxnorm.cpp | 57 norm = _update_op_( norm, t0 ); \ 58 norm = _update_op_( norm, t1 ); \ 64 norm = _update_op_( norm, t0 ); \ 65 norm = _update_op_( norm, t1 ); \ 72 norm = _update_op_( norm, t0 ); \ 83 norm = _update_op_( norm, t0 ); \ 98 norm = _update_op_( norm, t0 ); \ 99 norm = _update_op_( norm, t1 ); \ 107 norm = _update_op_( norm, t0 ); \ 108 norm = _update_op_( norm, t1 ); \ [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/tnl/ |
D | t_vb_texgen.c | 107 const GLfloat *norm = normal->start; in build_m3() local 110 for (i=0;i<count;i++,STRIDE_F(coord,stride),STRIDE_F(norm,normal->stride)) { in build_m3() 114 two_nu = 2.0F * DOT3(norm,u); in build_m3() 115 fx = f[i][0] = u[0] - norm[0] * two_nu; in build_m3() 116 fy = f[i][1] = u[1] - norm[1] * two_nu; in build_m3() 117 fz = f[i][2] = u[2] - norm[2] * two_nu; in build_m3() 135 GLfloat *norm = normal->start; in build_m2() local 138 for (i=0;i<count;i++,STRIDE_F(coord,stride),STRIDE_F(norm,normal->stride)) { in build_m2() 143 two_nu = 2.0F * DOT3(norm,u); in build_m2() 144 fx = f[i][0] = u[0] - norm[0] * two_nu; in build_m2() [all …]
|
/external/mesa3d/src/mesa/tnl/ |
D | t_vb_texgen.c | 107 const GLfloat *norm = normal->start; in build_m3() local 110 for (i=0;i<count;i++,STRIDE_F(coord,stride),STRIDE_F(norm,normal->stride)) { in build_m3() 114 two_nu = 2.0F * DOT3(norm,u); in build_m3() 115 fx = f[i][0] = u[0] - norm[0] * two_nu; in build_m3() 116 fy = f[i][1] = u[1] - norm[1] * two_nu; in build_m3() 117 fz = f[i][2] = u[2] - norm[2] * two_nu; in build_m3() 135 GLfloat *norm = normal->start; in build_m2() local 138 for (i=0;i<count;i++,STRIDE_F(coord,stride),STRIDE_F(norm,normal->stride)) { in build_m2() 143 two_nu = 2.0F * DOT3(norm,u); in build_m2() 144 fx = f[i][0] = u[0] - norm[0] * two_nu; in build_m2() [all …]
|
/external/jmonkeyengine/engine/src/core-data/Common/ShaderLib/ |
D | Common.glsllib | 1 vec3 Common_UnpackNormal(in vec3 norm){ 2 return (norm * vec3(2.0)) - vec3(1.0); 5 vec3 Common_UnpackNormalLA(in vec4 norm){ 6 vec3 newNorm = norm.agb; 11 vec3 Common_PackNormal(in vec3 norm){ 12 return (norm * vec3(0.5)) + vec3(0.5);
|
/external/eigen/test/ |
D | householder.cpp | 47 VERIFY_IS_APPROX(v1.norm(), v2.norm()); in householder() 48 if(rows>=2) VERIFY_IS_MUCH_SMALLER_THAN(v1.tail(rows-1).norm(), v1.norm()); in householder() 52 VERIFY_IS_APPROX(v1.norm(), v2.norm()); in householder() 63 VERIFY_IS_APPROX(m1.norm(), m2.norm()); in householder() 64 if(rows>=2) VERIFY_IS_MUCH_SMALLER_THAN(m1.block(1,0,rows-1,cols).norm(), m1.norm()); in householder() 75 VERIFY_IS_APPROX(m3.norm(), m4.norm()); in householder() 76 if(rows>=2) VERIFY_IS_MUCH_SMALLER_THAN(m3.block(0,1,rows,rows-1).norm(), m3.norm()); in householder()
|
D | stable_norm.cpp | 67 VERIFY_IS_MUCH_SMALLER_THAN(vzero.norm(), static_cast<RealScalar>(1)); in stable_norm() 68 VERIFY_IS_APPROX(vrand.stableNorm(), vrand.norm()); in stable_norm() 69 VERIFY_IS_APPROX(vrand.blueNorm(), vrand.norm()); in stable_norm() 70 VERIFY_IS_APPROX(vrand.hypotNorm(), vrand.norm()); in stable_norm() 93 VERIFY_IS_APPROX(vrand.colwise().stableNorm(), vrand.colwise().norm()); in stable_norm() 94 VERIFY_IS_APPROX(vrand.colwise().blueNorm(), vrand.colwise().norm()); in stable_norm() 95 VERIFY_IS_APPROX(vrand.colwise().hypotNorm(), vrand.colwise().norm()); in stable_norm() 96 VERIFY_IS_APPROX(vrand.rowwise().stableNorm(), vrand.rowwise().norm()); in stable_norm() 97 VERIFY_IS_APPROX(vrand.rowwise().blueNorm(), vrand.rowwise().norm()); in stable_norm() 98 VERIFY_IS_APPROX(vrand.rowwise().hypotNorm(), vrand.rowwise().norm()); in stable_norm()
|
D | adjoint.cpp | 51 … = NumTraits<Scalar>::IsInteger ? RealScalar(0) : (std::max)((s1 * v1 + s2 * v2).norm(),v3.norm()); in adjoint() 57 VERIFY_IS_APPROX(v1.squaredNorm(), v1.norm() * v1.norm()); in adjoint() 59 VERIFY_IS_APPROX(v1, v1.norm() * v1.normalized()); in adjoint() 62 VERIFY_IS_APPROX(v1, v1.norm() * v3); in adjoint() 64 VERIFY_IS_APPROX(v3.norm(), RealScalar(1)); in adjoint() 70 …teger ? 0 : (std::max)((std::max)(v1.norm(),v2.norm()),(std::max)((square * v2).norm(),(square.adj… in adjoint() 83 VERIFY_IS_APPROX(VectorType::Random(rows).normalized().norm(), RealScalar(1)); in adjoint()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_format_parse.py | 55 def __init__(self, type, norm, pure, size, name = ''): argument 57 self.norm = norm 65 if self.norm: 73 …return self.type == other.type and self.norm == other.norm and self.pure == other.pure and self.si… 81 if self.norm: 97 if self.norm: 162 if channel.norm != ref_channel.norm: 282 norm = True 287 norm = False 290 norm = False [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
D | u_format_parse.py | 55 def __init__(self, type, norm, pure, size, name = ''): argument 57 self.norm = norm 65 if self.norm: 73 …return self.type == other.type and self.norm == other.norm and self.pure == other.pure and self.si… 81 if self.norm: 97 if self.norm: 162 if channel.norm != ref_channel.norm: 282 norm = True 287 norm = False 290 norm = False [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
D | Image.cpp | 107 FloatRect norm = rect; in adjustForNegativeSize() local 108 if (norm.width() < 0) { in adjustForNegativeSize() 109 norm.setX(norm.x() + norm.width()); in adjustForNegativeSize() 110 norm.setWidth(-norm.width()); in adjustForNegativeSize() 112 if (norm.height() < 0) { in adjustForNegativeSize() 113 norm.setY(norm.y() + norm.height()); in adjustForNegativeSize() 114 norm.setHeight(-norm.height()); in adjustForNegativeSize() 116 return norm; in adjustForNegativeSize()
|
/external/chromium_org/third_party/icu/source/test/intltest/ |
D | tstnrapi.cpp | 26 Normalizer norm(iter, UNORM_NFC); in TestNormalizerAPI() local 27 if(norm.next()!=0xe4) { in TestNormalizerAPI() 32 Normalizer copy(norm); in TestNormalizerAPI() 74 norm.setIndexOnly(3); in TestNormalizerAPI() 75 if(norm.current()!=0x4e3d) { in TestNormalizerAPI() 134 norm.setMode(UNORM_NONE); in TestNormalizerAPI() 135 if(norm.first()!=0x61 || norm.next()!=0x308 || norm.last()!=0x2f800) { in TestNormalizerAPI()
|
/external/icu4c/test/intltest/ |
D | tstnrapi.cpp | 26 Normalizer norm(iter, UNORM_NFC); in TestNormalizerAPI() local 27 if(norm.next()!=0xe4) { in TestNormalizerAPI() 32 Normalizer copy(norm); in TestNormalizerAPI() 74 norm.setIndexOnly(3); in TestNormalizerAPI() 75 if(norm.current()!=0x4e3d) { in TestNormalizerAPI() 134 norm.setMode(UNORM_NONE); in TestNormalizerAPI() 135 if(norm.first()!=0x61 || norm.next()!=0x308 || norm.last()!=0x2f800) { in TestNormalizerAPI()
|
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
D | Quaternion.java | 397 float norm = norm(); in toRotationMatrix() local 400 float s = (norm == 1f) ? 2f : (norm > 0f) ? 2f / norm : 0; in toRotationMatrix() 442 float norm = norm(); in toRotationMatrix() local 445 float s = (norm == 1f) ? 2f : (norm > 0f) ? 2f / norm : 0; in toRotationMatrix() 506 float norm = norm(); in getRotationColumn() local 507 if (norm != 1.0f) { in getRotationColumn() 508 norm = FastMath.invSqrt(norm); in getRotationColumn() 511 float xx = x * x * norm; in getRotationColumn() 512 float xy = x * y * norm; in getRotationColumn() 513 float xz = x * z * norm; in getRotationColumn() [all …]
|
/external/ceres-solver/internal/ceres/ |
D | blas_test.cc | 73 EXPECT_NEAR((C_plus_ref - C_plus).norm(), 0.0, kTolerance) in TEST() 91 EXPECT_NEAR((C_minus_ref - C_minus).norm(), 0.0, kTolerance) in TEST() 108 EXPECT_NEAR((C_assign_ref - C_assign).norm(), 0.0, kTolerance) in TEST() 156 EXPECT_NEAR((C_plus_ref - C_plus).norm(), 0.0, kTolerance) in TEST() 173 EXPECT_NEAR((C_minus_ref - C_minus).norm(), 0.0, kTolerance) in TEST() 190 EXPECT_NEAR((C_assign_ref - C_assign).norm(), 0.0, kTolerance) in TEST() 229 EXPECT_NEAR((c_plus_ref - c_plus).norm(), 0.0, kTolerance) in TEST() 238 EXPECT_NEAR((c_minus_ref - c_minus).norm(), 0.0, kTolerance) in TEST() 247 EXPECT_NEAR((c_assign_ref - c_assign).norm(), 0.0, kTolerance) in TEST() 278 EXPECT_NEAR((c_plus_ref - c_plus).norm(), 0.0, kTolerance) in TEST() [all …]
|
D | small_blas_test.cc | 73 EXPECT_NEAR((C_plus_ref - C_plus).norm(), 0.0, kTolerance) in TEST() 91 EXPECT_NEAR((C_minus_ref - C_minus).norm(), 0.0, kTolerance) in TEST() 108 EXPECT_NEAR((C_assign_ref - C_assign).norm(), 0.0, kTolerance) in TEST() 156 EXPECT_NEAR((C_plus_ref - C_plus).norm(), 0.0, kTolerance) in TEST() 173 EXPECT_NEAR((C_minus_ref - C_minus).norm(), 0.0, kTolerance) in TEST() 190 EXPECT_NEAR((C_assign_ref - C_assign).norm(), 0.0, kTolerance) in TEST() 229 EXPECT_NEAR((c_plus_ref - c_plus).norm(), 0.0, kTolerance) in TEST() 238 EXPECT_NEAR((c_minus_ref - c_minus).norm(), 0.0, kTolerance) in TEST() 247 EXPECT_NEAR((c_assign_ref - c_assign).norm(), 0.0, kTolerance) in TEST() 278 EXPECT_NEAR((c_plus_ref - c_plus).norm(), 0.0, kTolerance) in TEST() [all …]
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/ |
D | BatchNode.java | 511 Vector3f norm = vars.vect2; in doTransforms() local 525 norm.x = tmpFloatN[index++]; in doTransforms() 527 norm.y = tmpFloatN[index++]; in doTransforms() 529 norm.z = tmpFloatN[index]; in doTransforms() 532 transform.multNormal(norm, norm); in doTransforms() 536 tmpFloatN[index++] = norm.x; in doTransforms() 538 tmpFloatN[index++] = norm.y; in doTransforms() 540 tmpFloatN[index++] = norm.z; in doTransforms() 555 Vector3f norm = vars.vect2; in doTransformsTangents() local 577 norm.x = tmpFloatN[index++]; in doTransformsTangents() [all …]
|
/external/eigen/unsupported/test/ |
D | FFTW.cpp | 19 float norm(float x) {return x*x;} in norm() function 20 double norm(double x) {return x*x;} in norm() function 21 long double norm(long double x) {return x*x;} in norm() function 43 totalpower += norm(acc); in fft_rmse() 46 difpower += norm(dif); in fft_rmse() 60 totalpower += (norm( buf1[k] ) + norm(buf2[k]) )/2.; in dif_rmse() 61 difpower += norm(buf1[k] - buf2[k]); in dif_rmse() 226 VERIFY( (out1-out2).norm() < test_precision<float>() ); in test_return_by_value() 228 VERIFY( (in1-in).norm() < test_precision<float>() ); in test_return_by_value()
|
/external/jmonkeyengine/engine/src/core-data/Common/MatDefs/Light/ |
D | Deferred.frag | 24 float lightComputeDiffuse(in vec3 norm, in vec3 lightdir, in vec3 viewdir){ 26 float NdotL = max(0.0, dot(norm, lightdir)); 27 float NdotV = max(0.0, dot(norm, viewdir)); 30 return max(0.0, dot(norm, lightdir)); 34 float lightComputeSpecular(in vec3 norm, in vec3 viewdir, in vec3 lightdir, in float shiny){ 39 return pow(max(dot(H, norm), 0.0), shiny); 44 float NdotH = max(0.001, tangDot(norm, halfVec)); 45 float NdotV = max(0.001, tangDot(norm, viewdir)); 46 float NdotL = max(0.001, tangDot(norm, lightdir)); 52 vec3 R = reflect(-lightdir, norm);
|
/external/webrtc/src/common_audio/signal_processing/ |
D | levinson_durbin.c | 38 WebRtc_Word16 norm; in WebRtcSpl_LevinsonDurbin() local 42 norm = WebRtcSpl_NormW32(R[0]); in WebRtcSpl_LevinsonDurbin() 46 temp1W32 = WEBRTC_SPL_LSHIFT_W32(R[i], norm); in WebRtcSpl_LevinsonDurbin() 142 norm = WebRtcSpl_NormW32(temp3W32); in WebRtcSpl_LevinsonDurbin() 143 if ((Alpha_exp <= norm) || (temp3W32 == 0)) in WebRtcSpl_LevinsonDurbin() 224 norm = WebRtcSpl_NormW32(temp1W32); in WebRtcSpl_LevinsonDurbin() 225 temp1W32 = WEBRTC_SPL_LSHIFT_W32(temp1W32, norm); in WebRtcSpl_LevinsonDurbin() 232 Alpha_exp = Alpha_exp + norm; in WebRtcSpl_LevinsonDurbin()
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_maos_vbtmp.h | 46 GLuint (*norm)[4]; in TAG() local 117 norm = (GLuint (*)[4])VB->AttribPtr[_TNL_ATTRIB_NORMAL]->data; in TAG() 120 norm = (GLuint (*)[4])&ctx->Current.Attrib[VERT_ATTRIB_NORMAL]; in TAG() 164 norm = (GLuint (*)[4])((GLubyte *)norm + start * norm_stride); in TAG() 189 v[0].ui = norm[0][0]; in TAG() 190 v[1].ui = norm[0][1]; in TAG() 191 v[2].ui = norm[0][2]; in TAG() 193 norm = (GLuint (*)[4])((GLubyte *)norm + norm_stride); in TAG()
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/radeon/ |
D | radeon_maos_vbtmp.h | 46 GLuint (*norm)[4]; in TAG() local 117 norm = (GLuint (*)[4])VB->AttribPtr[_TNL_ATTRIB_NORMAL]->data; in TAG() 120 norm = (GLuint (*)[4])&ctx->Current.Attrib[VERT_ATTRIB_NORMAL]; in TAG() 164 norm = (GLuint (*)[4])((GLubyte *)norm + start * norm_stride); in TAG() 189 v[0].ui = norm[0][0]; in TAG() 190 v[1].ui = norm[0][1]; in TAG() 191 v[2].ui = norm[0][2]; in TAG() 193 norm = (GLuint (*)[4])((GLubyte *)norm + norm_stride); in TAG()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
D | Tnaf.java | 82 public static BigInteger norm(final byte mu, ZTauElement lambda) in norm() method in Tnaf 84 BigInteger norm; in norm() local 97 norm = s1.add(s2).add(s3); in norm() 101 norm = s1.subtract(s2).add(s3); in norm() 108 return norm; in norm() 123 public static SimpleBigDecimal norm(final byte mu, SimpleBigDecimal u, in norm() method in Tnaf 126 SimpleBigDecimal norm; in norm() local 139 norm = s1.add(s2).add(s3); in norm() 143 norm = s1.subtract(s2).add(s3); in norm() 150 return norm; in norm() [all …]
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/ |
D | StripBox.java | 153 Vector3f norm = new Vector3f(); in duUpdateGeometryNormals() local 156 norm.set(vert[i]).normalizeLocal(); in duUpdateGeometryNormals() 158 normals[i * 3 + 0] = norm.x; in duUpdateGeometryNormals() 159 normals[i * 3 + 1] = norm.x; in duUpdateGeometryNormals() 160 normals[i * 3 + 2] = norm.x; in duUpdateGeometryNormals()
|
/external/jmonkeyengine/engine/src/bullet-native/ |
D | com_jme3_bullet_collision_shapes_PlaneCollisionShape.cpp | 52 btVector3 norm = btVector3(); in Java_com_jme3_bullet_collision_shapes_PlaneCollisionShape_createShape() local 53 jmeBulletUtil::convert(env, normal, &norm); in Java_com_jme3_bullet_collision_shapes_PlaneCollisionShape_createShape() 54 btStaticPlaneShape* shape = new btStaticPlaneShape(norm, constant); in Java_com_jme3_bullet_collision_shapes_PlaneCollisionShape_createShape()
|