/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
unary_ops.cc | 128 auto half = XlaHelpers::FloatLiteral(b, dtype, 0.5); local 135 b->Sub(round_val, b->Mul(two, b->Floor(b->Mul(half, x)))); 138 b->Or(b->Gt(fraction, half), b->And(b->Eq(fraction, half), is_odd)), 152 auto half = XlaHelpers::FloatLiteral(b, dtype, 0.5); local 153 return b->Add(half, b->Mul(half, b->Tanh(b->Mul(half, x))));
|
/external/tensorflow/tensorflow/contrib/coder/kernels/ |
range_coder.cc | 43 // `base` and `size` represent a half-open interval [base, base + size). 55 // The input u, v represents a half-open interval [u, v) / 2^precision. 326 const auto half = len / 2; local 327 const int32* mid = pv + half; 332 len -= half + 1; 334 len = half;
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
BitmapsRectActivity.java | 57 final float half = mBitmap1.getHeight() / 2.0f; local 58 mSrcRect = new Rect((int) fourth, (int) (half - half / 2.0f), 59 (int) (fourth + fourth), (int) (half + half / 2.0f)); 60 mDstRect = new RectF(fourth, half - half / 2.0f, fourth + fourth, half + half / 2.0f); 61 mDstRect2 = new RectF(fourth, half - half / 2.0f [all...] |
/prebuilts/go/darwin-x86/test/ |
fibo.go | 12 // -half add values using two half-digit additions 34 half = flag.Bool("half", false, "use half-digit addition") 67 // (like add, but operating on half-digits at a time) 84 const W2 = W / 2 // half-digit size in bits 85 const M2 = (1 << W2) - 1 // lower half-digit mask 90 // lower half-digit 94 // upper half-digi 33 half = flag.Bool("half", false, "use half-digit addition") var [all...] |
/prebuilts/go/linux-x86/test/ |
fibo.go | 12 // -half add values using two half-digit additions 34 half = flag.Bool("half", false, "use half-digit addition") 67 // (like add, but operating on half-digits at a time) 84 const W2 = W / 2 // half-digit size in bits 85 const M2 = (1 << W2) - 1 // lower half-digit mask 90 // lower half-digit 94 // upper half-digi 33 half = flag.Bool("half", false, "use half-digit addition") var [all...] |
/system/media/audio_utils/ |
fixedfft.cpp | 23 * half of the twiddle factors are stored. Although there are still ways to make 98 static inline int32_t half(int32_t a) function 125 int32_t x = half(v[i]); 126 int32_t y = half(v[i + p]); 136 int32_t x = half(v[i]); 152 v[m] = half(v[m]); 155 int32_t x = half(v[i]); 156 int32_t z = half(v[n - i]); 158 x = half(x + (z ^ 0xFFFF));
|
/device/google/contexthub/firmware/lib/libm/ |
ef_rem_pio2.c | 88 half = 5.0000000000e-01, /* 0x3f000000 */ variable 141 n = (__int32_t) (t*invpio2+half);
|
/device/linaro/bootloader/edk2/StdLib/LibC/Math/ |
e_rem_pio2.c | 65 half = 5.00000000000000000000e-01, /* 0x3FE00000, 0x00000000 */
variable 115 n = (int32_t) (t*invpio2+half);
|
/external/clang/test/SemaCXX/ |
warn-float-conversion.cpp | 71 const float half = .5; local 72 int a1 = half; // expected-warning{{implicit conversion from 'const float' to 'int' changes non-zero value from 0.5 to 0}}
|
/external/eigen/test/ |
denseLM.cpp | 39 int half = n/2; local 40 VectorBlock<const VectorType> u(uv, 0, half); 41 VectorBlock<const VectorType> v(uv, half, half); 44 for (int i = 0; i < half; i++) 64 int half = n/2; local 65 VectorBlock<const VectorType> u(uv, 0, half); 66 VectorBlock<const VectorType> v(uv, half, half); 70 for (int i = 0; i < half; i++ 85 int half = n\/2; local [all...] |
sparseLM.cpp | 38 int half = n/2; local 39 VectorBlock<const VectorType> u(uv, 0, half); 40 VectorBlock<const VectorType> v(uv, half, half); 44 for (int i = 0; i < half; i++) 65 int half = n/2; local 66 VectorBlock<const VectorType> u(uv, 0, half); 67 VectorBlock<const VectorType> v(uv, half, half); 72 for (int i = 0; i < half; i++ 90 int half = n\/2; local [all...] |
/external/fdlibm/ |
e_rem_pio2.c | 73 half = 5.00000000000000000000e-01, /* 0x3FE00000, 0x00000000 */ variable 125 n = (int) (t*invpio2+half);
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timescale/ |
CalculateLimits.java | 76 BigDecimal half = new BigDecimal(units == 1? 0: units / 2 - 1); local 78 min = minTrunc.subtract(minResidue.min(half)); 79 max = maxTrunc.add(maxResidue.min(half));
|
/external/skia/gm/ |
SkAnimTimer.h | 125 double half = period / 2.0; local 126 double diff = ::fabs(value - half); 127 return SkDoubleToScalar(ends + (1.0 - diff / half) * (mid - ends));
|
/external/skqp/gm/ |
SkAnimTimer.h | 120 double half = period / 2.0; local 121 double diff = ::fabs(value - half); 122 return SkDoubleToScalar(ends + (1.0 - diff / half) * (mid - ends));
|
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/error/ |
Mark.java | 50 float half = max_length / 2 - 1; local 55 if (pointer - start > half) { 65 if (end - pointer > half) {
|
/frameworks/rs/driver/runtime/arch/ |
generic.c | 101 _CLAMP(half); variable
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/ |
SecP192K1Field.java | 60 public static void half(int[] x, int[] z) method in class:SecP192K1Field
|
SecP224K1Field.java | 61 public static void half(int[] x, int[] z) method in class:SecP224K1Field
|
SecP256K1Field.java | 62 public static void half(int[] x, int[] z) method in class:SecP256K1Field
|
SecP521R1Field.java | 47 public static void half(int[] x, int[] z) method in class:SecP521R1Field
|
/external/eigen/Eigen/src/Core/ |
Reverse.h | 143 Index half = cols()/2; local 144 leftCols(half).swap(rightCols(half).reverse()); 148 col(half).head(half2).swap(col(half).tail(half2).reverse()); 153 Index half = rows()/2; local 154 topRows(half).swap(bottomRows(half).reverse()); 158 row(half).head(half2).swap(row(half).tail(half2).reverse()) 174 Index half = xpr.rows()\/2; local 185 Index half = xpr.cols()\/2; local [all...] |
/external/freetype/src/base/ |
fttrigon.c | 408 FT_Int32 half = (FT_Int32)1L << ( shift - 1 ); local 411 vec->x = ( v.x + half + FT_SIGN_LONG( v.x ) ) >> shift; 412 vec->y = ( v.y + half + FT_SIGN_LONG( v.y ) ) >> shift;
|
/external/libdivsufsort/lib/ |
utils.c | 36 saidx_t half, i; local 37 for(i = 0, half = size >> 1; 39 size = half, half >>= 1) { 40 if(A[i + half] < value) { 41 i += half + 1; 42 half -= (size & 1) ^ 1; 263 saidx_t size, lsize, rsize, half; local 275 for(i = j = k = 0, lmatch = rmatch = 0, size = SAsize, half = size >> 1; 277 size = half, half >>= 1) 332 saidx_t size, lsize, rsize, half; local [all...] |
/external/skia/src/shaders/gradients/ |
SkTwoPointConicalGradient.cpp | 141 const int half = desc.fCount >> 1; local 142 for (int i = 0; i < half; ++i) { 152 pos[half] = SK_Scalar1 - pos[half];
|