Home
last modified time | relevance | path

Searched refs:num_zeros (Results 1 – 16 of 16) sorted by relevance

/external/OpenCL-CTS/test_conformance/conversions/
Dfplib.cpp28 uint32_t num_zeros; in clz() local
30 for( num_zeros = 0; num_zeros < (sizeof(uint64_t)*8); num_zeros++) in clz()
32 volatile uint64_t v = 0x8000000000000000ull & (value << num_zeros); in clz()
35 return num_zeros; in clz()
/external/marisa-trie/tests/
Dvector-test.cc378 std::size_t num_zeros = 0, num_ones = 0; in TestBitVector() local
381 ASSERT(bv.rank0(i) == num_zeros); in TestBitVector()
383 ++(bv[i] ? num_ones : num_zeros); in TestBitVector()
391 ASSERT(bv.num_0s() == num_zeros); in TestBitVector()
416 num_zeros = 0, num_ones = 0; in TestBitVector()
419 ASSERT(bv.rank0(i) == num_zeros); in TestBitVector()
421 ++(bv[i] ? num_ones : num_zeros); in TestBitVector()
429 ASSERT(bv.num_0s() == num_zeros); in TestBitVector()
/external/llvm/tools/yaml2obj/
Dyaml2coff.cpp291 static num_zeros_impl num_zeros(size_t N) { in num_zeros() function
372 OS << num_zeros(DOSStubSize - sizeof(DH)); in writeCOFF()
456 OS << num_zeros(S.Header.PointerToRawData - OS.tell()); in writeCOFF()
459 OS << num_zeros(S.Header.SizeOfRawData - S.SectionData.binary_size()); in writeCOFF()
489 << num_zeros(CP.getSymbolSize() - COFF::Symbol16Size); in writeCOFF()
496 << num_zeros(CP.getSymbolSize() - COFF::Symbol16Size); in writeCOFF()
501 << num_zeros(CP.getSymbolSize() - COFF::Symbol16Size); in writeCOFF()
509 OS << num_zeros(NumZeros); in writeCOFF()
520 << num_zeros(CP.getSymbolSize() - COFF::Symbol16Size); in writeCOFF()
526 << num_zeros(CP.getSymbolSize() - COFF::Symbol16Size); in writeCOFF()
/external/libwebm/m2ts/
Dvpxpes_parser.cc307 std::size_t num_zeros = 0; in RemoveStartCodeEmulationPreventionBytes() local
320 ++num_zeros; in RemoveStartCodeEmulationPreventionBytes()
321 } else if (byte == 0x3 && num_zeros == 2) { in RemoveStartCodeEmulationPreventionBytes()
323 num_zeros = 0; in RemoveStartCodeEmulationPreventionBytes()
325 num_zeros = 0; in RemoveStartCodeEmulationPreventionBytes()
Dwebm2pes.cc532 int num_zeros = 0; in CopyAndEscapeStartCodes() local
537 ++num_zeros; in CopyAndEscapeStartCodes()
538 } else if (num_zeros >= 2 && (byte == 0x1 || byte == 0x3)) { in CopyAndEscapeStartCodes()
540 num_zeros = 0; in CopyAndEscapeStartCodes()
542 num_zeros = 0; in CopyAndEscapeStartCodes()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Ddense_to_sparse.cc78 inline float GetSparsity(const int num_zeros, const int num_elements) { in GetSparsity() argument
79 return (1.0 * num_zeros / num_elements); in GetSparsity()
85 int num_zeros = 0; in CalculateRandomSparsity() local
90 num_zeros++; in CalculateRandomSparsity()
96 num_zeros++; in CalculateRandomSparsity()
101 return GetSparsity(num_zeros, num_elements); in CalculateRandomSparsity()
/external/webrtc/modules/audio_processing/vad/
Dvad_circular_buffer_unittest.cc43 static void InsertZeros(int num_zeros, VadCircularBuffer* circular_buffer) { in InsertZeros() argument
44 Insert(0.0, num_zeros, circular_buffer); in InsertZeros()
/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_vcn_enc.c489 enc->num_zeros = 0; in radeon_enc_set_emulation_prevention()
510 if ((enc->num_zeros >= 2) && ((byte == 0x00) || (byte == 0x01) || (byte == 0x03))) { in radeon_enc_emulation_prevention()
513 enc->num_zeros = 0; in radeon_enc_emulation_prevention()
515 enc->num_zeros = (byte == 0 ? (enc->num_zeros + 1) : 0); in radeon_enc_emulation_prevention()
553 enc->num_zeros = 0; in radeon_enc_reset()
574 enc->num_zeros = 0; in radeon_enc_flush_headers()
Dradeon_uvd_enc_1_1.c72 enc->num_zeros = 0; in radeon_uvd_enc_set_emulation_prevention()
93 if ((enc->num_zeros >= 2) && in radeon_uvd_enc_emulation_prevention()
97 enc->num_zeros = 0; in radeon_uvd_enc_emulation_prevention()
99 enc->num_zeros = (byte == 0 ? (enc->num_zeros + 1) : 0); in radeon_uvd_enc_emulation_prevention()
137 enc->num_zeros = 0; in radeon_uvd_enc_reset()
158 enc->num_zeros = 0; in radeon_uvd_enc_flush_headers()
Dradeon_uvd_enc.h418 unsigned num_zeros; member
Dradeon_vcn_enc.h535 unsigned num_zeros; member
/external/webrtc/modules/rtp_rtcp/source/
Dforward_error_correction_internal.h96 void InsertZeroColumns(int num_zeros,
Dforward_error_correction_internal.cc484 void InsertZeroColumns(int num_zeros, in InsertZeroColumns() argument
492 new_mask[new_byte_index] <<= std::min(num_zeros, max_shifts); in InsertZeroColumns()
/external/fmtlib/include/fmt/
Dformat.h1821 int num_zeros = 0;
1823 num_zeros = (std::max)(fspecs.precision - significand_size, 0);
1824 size += to_unsigned(num_zeros);
1839 if (num_zeros > 0) it = std::fill_n(it, num_zeros, zero);
1851 int num_zeros = fspecs.precision - exp;
1853 if (num_zeros > 5000)
1857 if (num_zeros <= 0 && fspecs.format != float_format::fixed) num_zeros = 1;
1858 if (num_zeros > 0) size += to_unsigned(num_zeros);
1866 return num_zeros > 0 ? std::fill_n(it, num_zeros, zero) : it;
1870 int num_zeros = fspecs.showpoint ? fspecs.precision - significand_size : 0;
[all …]
/external/libchrome/base/containers/
Dcircular_deque_unittest.cc233 size_t num_zeros = std::min(expected_size, cycle); in TEST() local
234 for (size_t i = 0; i < num_zeros; i++, index++) { in TEST()
240 size_t num_ints = expected_size - num_zeros; in TEST()
/external/tensorflow/tensorflow/python/ops/
Dmath_grad.py437 num_zeros = gen_math_ops.segment_sum(
442 math_ops.greater(num_zeros, 1), array_ops.zeros_like(grad), grad)
548 num_zeros = gen_math_ops.unsorted_segment_sum(
553 math_ops.greater(num_zeros, 1), array_ops.zeros_like(grad), grad)