Home
last modified time | relevance | path

Searched refs:num_words (Results 1 – 25 of 94) sorted by relevance

1234

/external/boringssl/src/crypto/fipsmodule/bn/
Dbytes.c66 size_t num_words; in BN_bin2bn() local
84 num_words = ((len - 1) / BN_BYTES) + 1; in BN_bin2bn()
86 if (!bn_wexpand(ret, num_words)) { in BN_bin2bn()
95 assert(num_words <= INT_MAX); in BN_bin2bn()
96 ret->width = (int)num_words; in BN_bin2bn()
102 ret->d[--num_words] = word; in BN_bin2bn()
129 size_t num_words = ((len - 1) / BN_BYTES) + 1; in BN_le2bn() local
130 if (!bn_wexpand(ret, num_words)) { in BN_le2bn()
134 ret->width = num_words; in BN_le2bn()
137 ret->d[num_words - 1] = 0; in BN_le2bn()
/external/swiftshader/third_party/SPIRV-Tools/source/
Dbinary.cpp74 spv_result_t parse(const uint32_t* words, size_t num_words,
144 << ((_.word_index < _.num_words) ? ": truncated " in exhaustedInputDiagnostic()
155 assert(index < _.num_words); in peekAt()
179 num_words(num_words_arg), in State()
193 size_t num_words; // Number of words in the module. member
219 spv_result_t Parser::parse(const uint32_t* words, size_t num_words, in parse() argument
221 _ = State(words, num_words, diagnostic_arg); in parse()
234 if (_.num_words < SPV_INDEX_INSTRUCTION) in parseModule()
235 return diagnostic() << "Module has incomplete header: only " << _.num_words in parseModule()
239 spv_const_binary_t binary{_.words, _.num_words}; in parseModule()
[all …]
Dparsed_operand.cpp29 if (operand.num_words < 1) return; in EmitNumericLiteral()
31 if (operand.num_words > 2) return; in EmitNumericLiteral()
34 if (operand.num_words == 1) { in EmitNumericLiteral()
54 } else if (operand.num_words == 2) { in EmitNumericLiteral()
/external/deqp-deps/SPIRV-Tools/source/
Dbinary.cpp74 spv_result_t parse(const uint32_t* words, size_t num_words,
144 << ((_.word_index < _.num_words) ? ": truncated " in exhaustedInputDiagnostic()
155 assert(index < _.num_words); in peekAt()
179 num_words(num_words_arg), in State()
192 size_t num_words; // Number of words in the module. member
217 spv_result_t Parser::parse(const uint32_t* words, size_t num_words, in parse() argument
219 _ = State(words, num_words, diagnostic_arg); in parse()
232 if (_.num_words < SPV_INDEX_INSTRUCTION) in parseModule()
233 return diagnostic() << "Module has incomplete header: only " << _.num_words in parseModule()
237 spv_const_binary_t binary{_.words, _.num_words}; in parseModule()
[all …]
Dparsed_operand.cpp29 if (operand.num_words < 1) return; in EmitNumericLiteral()
31 if (operand.num_words > 2) return; in EmitNumericLiteral()
34 if (operand.num_words == 1) { in EmitNumericLiteral()
54 } else if (operand.num_words == 2) { in EmitNumericLiteral()
/external/tensorflow/tensorflow/python/keras/datasets/
Dreuters.py33 num_words=None, argument
74 num_words = kwargs.pop('nb_words')
100 if not num_words:
101 num_words = max([max(x) for x in xs])
107 xs = [[w if skip_top <= w < num_words else oov_char for w in x] for x in xs]
109 xs = [[w for w in x if skip_top <= w < num_words] for x in xs]
Dimdb.py33 num_words=None, argument
76 num_words = kwargs.pop('nb_words')
114 if not num_words:
115 num_words = max([max(x) for x in xs])
122 [w if (skip_top <= w < num_words) else oov_char for w in x] for x in xs
125 xs = [[w for w in x if skip_top <= w < num_words] for x in xs]
/external/libavc/common/
Dih264_mem_fns.c157 void ih264_memset_16bit(UWORD16 *pu2_dst, UWORD16 value, UWORD32 num_words) in ih264_memset_16bit() argument
160 for(i = 0; i < num_words; i++) in ih264_memset_16bit()
168 UWORD32 num_words) in ih264_memset_16bit_mul_8() argument
171 for(i = 0; i < num_words; i++) in ih264_memset_16bit_mul_8()
/external/libhevc/common/
Dihevc_mem_fns.c147 void ihevc_memset_16bit(UWORD16 *pu2_dst, UWORD16 value, UWORD32 num_words) in ihevc_memset_16bit() argument
150 for(i = 0; i < num_words; i++) in ihevc_memset_16bit()
158 void ihevc_memset_16bit_mul_8(UWORD16 *pu2_dst, UWORD16 value, UWORD32 num_words) in ihevc_memset_16bit_mul_8() argument
161 for(i = 0; i < num_words; i++) in ihevc_memset_16bit_mul_8()
/external/tensorflow/tensorflow/core/lib/core/
Dbitmap.cc24 const size_t num_words = NumWords(n); in Reset() local
25 if (num_words != NumWords(nbits_)) { in Reset()
27 Word* w = new Word[num_words]; in Reset()
31 memset(word_, 0, sizeof(word_[0]) * num_words); in Reset()
/external/tensorflow/tensorflow/contrib/crf/
DREADME.md16 num_words = 20
21 x = np.random.rand(num_examples, num_words, num_features).astype(np.float32)
24 y = np.random.randint(num_tags, size=[num_examples, num_words]).astype(np.int32)
27 sequence_lengths = np.full(num_examples, num_words - 1, dtype=np.int32)
42 [num_examples, num_words, num_tags])
59 mask = (np.expand_dims(np.arange(num_words), axis=0) <
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate.cpp215 const spv_context_t& context, const uint32_t* words, const size_t num_words, in ValidateBinaryUsingContextAndValidationState() argument
218 new spv_const_binary_t{words, num_words}); in ValidateBinaryUsingContextAndValidationState()
259 spvBinaryParse(&hijacked_context, vstate, words, num_words, in ValidateBinaryUsingContextAndValidationState()
265 if (auto error = spvBinaryParse(&context, vstate, words, num_words, setHeader, in ValidateBinaryUsingContextAndValidationState()
407 const uint32_t* words, const size_t num_words, spv_diagnostic* pDiagnostic, in ValidateBinaryAndKeepValidationState() argument
416 num_words, kDefaultMaxNumOfWarnings)); in ValidateBinaryAndKeepValidationState()
419 hijack_context, words, num_words, pDiagnostic, vstate->get()); in ValidateBinaryAndKeepValidationState()
433 const uint32_t* words, const size_t num_words, in spvValidateBinary() argument
446 words, num_words, in spvValidateBinary()
451 hijack_context, words, num_words, pDiagnostic, &vstate); in spvValidateBinary()
Dinstruction.h92 assert(o.num_words * 4 >= sizeof(T)); in GetOperandAs()
93 assert(o.offset + o.num_words <= inst_.num_words); in GetOperandAs()
/external/tensorflow/tensorflow/lite/kernels/
Dskip_gram.cc70 int num_words) { in ShouldStepInRecursion() argument
72 if (stack_idx < params->ngram_size && stack[stack_idx] + 1 < num_words) { in ShouldStepInRecursion()
119 int num_words = words.size(); in Eval() local
122 if (ShouldStepInRecursion(params, stack, stack_idx, num_words)) { in Eval()
/external/libhevc/common/arm/
Dihevc_mem_fns.s207 @ UWORD8 num_words)
211 @ r2 => num_words
223 @ Assumptions: num_words is either 8, 16 or 32
241 @ UWORD8 num_words)
245 @ r2 => num_words
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate.cpp272 const spv_context_t& context, const uint32_t* words, const size_t num_words, in ValidateBinaryUsingContextAndValidationState() argument
275 new spv_const_binary_t{words, num_words}); in ValidateBinaryUsingContextAndValidationState()
316 spvBinaryParse(&hijacked_context, vstate, words, num_words, in ValidateBinaryUsingContextAndValidationState()
322 if (auto error = spvBinaryParse(&context, vstate, words, num_words, setHeader, in ValidateBinaryUsingContextAndValidationState()
464 const uint32_t* words, const size_t num_words, spv_diagnostic* pDiagnostic, in ValidateBinaryAndKeepValidationState() argument
473 num_words, kDefaultMaxNumOfWarnings)); in ValidateBinaryAndKeepValidationState()
476 hijack_context, words, num_words, pDiagnostic, vstate->get()); in ValidateBinaryAndKeepValidationState()
490 const uint32_t* words, const size_t num_words, in spvValidateBinary() argument
503 words, num_words, in spvValidateBinary()
508 hijack_context, words, num_words, pDiagnostic, &vstate); in spvValidateBinary()
Dinstruction.h92 assert(o.num_words * 4 >= sizeof(T)); in GetOperandAs()
93 assert(o.offset + o.num_words <= inst_.num_words); in GetOperandAs()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Analysis/BasicAA/
Dphi-loop.ll9 ; unsigned num_words;
18 ; for (unsigned i=0; i < section->num_words; ++i) {
42 …%num_words = getelementptr inbounds %struct.section_t, %struct.section_t* %section.addr.015, i32 0…
43 %2 = load i32, i32* %num_words, align 4
60 %5 = load i32, i32* %num_words, align 4
/external/llvm/test/Analysis/BasicAA/
Dphi-loop.ll9 ; unsigned num_words;
18 ; for (unsigned i=0; i < section->num_words; ++i) {
42 …%num_words = getelementptr inbounds %struct.section_t, %struct.section_t* %section.addr.015, i32 0…
43 %2 = load i32, i32* %num_words, align 4
60 %5 = load i32, i32* %num_words, align 4
/external/libavc/common/arm/
Dih264_mem_fns_neon.s205 @ UWORD32 num_words)
209 @ r2 => num_words
219 @ Assumptions: num_words is either 8, 16 or 32
237 @ UWORD32 num_words)
241 @ r2 => num_words
/external/u-boot/cmd/
Dmem.c583 vu_long num_words; in mem_test_alt() local
595 num_words = (end_addr - start_addr) / sizeof(vu_long); in mem_test_alt()
680 debug("%s:%d: length = 0x%.8lx\n", __func__, __LINE__, num_words); in mem_test_alt()
685 for (offset = 1; offset < num_words; offset <<= 1) in mem_test_alt()
694 for (offset = 1; offset < num_words; offset <<= 1) { in mem_test_alt()
712 for (test_offset = 1; test_offset < num_words; test_offset <<= 1) { in mem_test_alt()
715 for (offset = 1; offset < num_words; offset <<= 1) { in mem_test_alt()
743 num_words++; in mem_test_alt()
748 for (pattern = 1, offset = 0; offset < num_words; pattern++, offset++) { in mem_test_alt()
756 for (pattern = 1, offset = 0; offset < num_words; pattern++, offset++) { in mem_test_alt()
[all …]
/external/tensorflow/tensorflow/contrib/crf/python/kernel_tests/
Dcrf_test.py177 num_words = inputs.shape[0]
186 tag_indices.extend([0] * (num_words - sequence_lengths))
227 num_words = inputs.shape[0]
236 tag_indices.extend([0] * (num_words - sequence_lengths))
254 num_words = inputs.shape[0]
265 tag_indices.extend([0] * (num_words - sequence_lengths))
310 num_words = inputs.shape[0]
321 tag_indices.extend([0] * (num_words - sequence_lengths))
/external/mesa3d/src/compiler/nir/
Dnir_repair_ssa.c40 const unsigned num_words = BITSET_WORDS(state->impl->num_blocks); in prep_build_phi() local
45 state->def_set = ralloc_array(NULL, BITSET_WORD, num_words); in prep_build_phi()
52 memset(state->def_set, 0, num_words * sizeof(*state->def_set)); in prep_build_phi()
/external/deqp-deps/SPIRV-Tools/tools/cfg/
Dbin_to_dot.cpp169 size_t num_words, std::iostream* out, in BinaryToDot() argument
177 spvtools::FriendlyNameMapper friendly_mapper(context, words, num_words); in BinaryToDot()
180 if (auto error = spvBinaryParse(context, &converter, words, num_words, in BinaryToDot()
/external/swiftshader/third_party/SPIRV-Tools/tools/cfg/
Dbin_to_dot.cpp169 size_t num_words, std::iostream* out, in BinaryToDot() argument
177 spvtools::FriendlyNameMapper friendly_mapper(context, words, num_words); in BinaryToDot()
180 if (auto error = spvBinaryParse(context, &converter, words, num_words, in BinaryToDot()

1234