/external/aac/libFDK/include/ |
FDK_trigFcts.h | 144 static inline FIXP_DBL fixp_sin_cos_residual_inline(FIXP_DBL x, int scale, FIXP_DBL *sine, FIXP_DBL *cosine) 163 /* Cosine sign symmetry */ 181 /* Cosine/Sine simetry for angles greater than PI/4 */ 195 *cosine = (FIXP_DBL)((cl * csign) << (DFRACT_BITS-FRACT_BITS)); 198 *cosine = (FIXP_DBL)(cl * csign); 206 * \brief Calculate cosine and sine value each of 2 angles different angle values. 215 FIXP_DBL residual, error0, error1, sine, cosine; local 216 residual = fixp_sin_cos_residual_inline(x1, scale, &sine, &cosine); 218 error1 = fMultDiv2(cosine, residual); 219 *out++ = cosine - (error0<<1) [all...] |
/frameworks/av/media/libstagefright/codecs/aacdec/ |
pv_sine.cpp | 157 Int32 cosine; local 161 z = -z; /* sign does not play a role in cosine */ 168 cosine = pv_sine(z); 172 cosine = Q_fmt(0.99999999906868) - (fxp_mul32_Q30(z, z) >> 1); 175 return cosine;
|
/external/aac/libFDK/src/ |
FDK_trigFcts.cpp | 298 FIXP_DBL residual, error, sine, cosine; local 300 residual = fixp_sin_cos_residual_inline(x, scale, &sine, &cosine); 303 return cosine - error; 308 FIXP_DBL residual, error, sine, cosine; local 310 residual = fixp_sin_cos_residual_inline(x, scale, &sine, &cosine); 311 error = fMult(cosine, residual); 318 FIXP_DBL residual, error0, error1, sine, cosine; local 320 residual = fixp_sin_cos_residual_inline(x, scale, &sine, &cosine); 322 error1 = fMult(cosine, residual); 323 *cos = cosine - error0 [all...] |
/external/skia/include/effects/ |
SkColorMatrix.h | 33 void setSinCos(Axis, SkScalar sine, SkScalar cosine);
|
/frameworks/base/graphics/java/android/graphics/ |
ColorMatrix.java | 122 float cosine = FloatMath.cos(radians); local 127 mArray[6] = mArray[12] = cosine; 133 mArray[0] = mArray[12] = cosine; 139 mArray[0] = mArray[6] = cosine;
|
/external/skia/src/utils/ |
SkColorMatrix.cpp | 39 void SkColorMatrix::setSinCos(Axis axis, SkScalar sine, SkScalar cosine) { 50 fMat[index[0]] = cosine; 53 fMat[index[3]] = cosine;
|
/external/skia/src/core/ |
SkCordic.cpp | 213 float cosine = cosf(radian); local 221 error = fabsf(cosine - cosine2); 223 SkDebugf("cos error : angle = %g ; cos = %g ; cordic = %g\n", angle, cosine, cosine2);
|
/external/v8/test/mjsunit/ |
sin-cos.js | 43 // By accident, the slow case for sine and cosine were both sine at
|
/frameworks/base/core/java/android/gesture/ |
GestureUtils.java | 35 * <li>gesture similarity comparison (e.g., calculating Euclidean or Cosine 418 * Calculates the cosine distance between two instances. 434 * Calculates the "minimum" cosine distance between two instances. 455 final double cosine = Math.cos(angle); local 456 final double sine = cosine * tan; 457 return (float) Math.acos(a * cosine + b * sine);
|
/frameworks/base/services/input/ |
InputReader.cpp | 4931 float cosine = dot \/ (dist1 * dist2); \/\/ denominator always > 0 local [all...] |