Home
last modified time | relevance | path

Searched refs:scratch (Results 1 – 25 of 583) sorted by relevance

12345678910>>...24

/external/speex/libspeexdsp/
Dkiss_fft.c96 kiss_fft_cpx scratch[6]; in kf_bfly4() local
110 C_MUL(scratch[0],Fout[m] , *tw1 ); in kf_bfly4()
111 C_MUL(scratch[1],Fout[m2] , *tw2 ); in kf_bfly4()
112 C_MUL(scratch[2],Fout[m3] , *tw3 ); in kf_bfly4()
114 C_SUB( scratch[5] , *Fout, scratch[1] ); in kf_bfly4()
115 C_ADDTO(*Fout, scratch[1]); in kf_bfly4()
116 C_ADD( scratch[3] , scratch[0] , scratch[2] ); in kf_bfly4()
117 C_SUB( scratch[4] , scratch[0] , scratch[2] ); in kf_bfly4()
118 C_SUB( Fout[m2], *Fout, scratch[3] ); in kf_bfly4()
122 C_ADDTO( *Fout , scratch[3] ); in kf_bfly4()
[all …]
/external/libopus/celt/mips/
Dkiss_fft_mipsr1.h99 kiss_fft_cpx scratch[13]; in kf_bfly5() local
128 scratch[0] = *Fout0; in kf_bfly5()
131 C_MUL(scratch[1] ,*Fout1, tw[u*fstride]); in kf_bfly5()
132 C_MUL(scratch[2] ,*Fout2, tw[2*u*fstride]); in kf_bfly5()
133 C_MUL(scratch[3] ,*Fout3, tw[3*u*fstride]); in kf_bfly5()
134 C_MUL(scratch[4] ,*Fout4, tw[4*u*fstride]); in kf_bfly5()
136 C_ADD( scratch[7],scratch[1],scratch[4]); in kf_bfly5()
137 C_SUB( scratch[10],scratch[1],scratch[4]); in kf_bfly5()
138 C_ADD( scratch[8],scratch[2],scratch[3]); in kf_bfly5()
139 C_SUB( scratch[9],scratch[2],scratch[3]); in kf_bfly5()
[all …]
/external/eigen/unsupported/Eigen/src/FFT/
Dei_kissfft_impl.h111 Complex scratch[6]; in bfly4() local
114 scratch[0] = Fout[k+m] * m_twiddles[k*fstride]; in bfly4()
115 scratch[1] = Fout[k+2*m] * m_twiddles[k*fstride*2]; in bfly4()
116 scratch[2] = Fout[k+3*m] * m_twiddles[k*fstride*3]; in bfly4()
117 scratch[5] = Fout[k] - scratch[1]; in bfly4()
119 Fout[k] += scratch[1]; in bfly4()
120 scratch[3] = scratch[0] + scratch[2]; in bfly4()
121 scratch[4] = scratch[0] - scratch[2]; in bfly4()
122scratch[4] = Complex( scratch[4].imag()*negative_if_inverse , -scratch[4].real()* negative_if_inve… in bfly4()
124 Fout[k+2*m] = Fout[k] - scratch[3]; in bfly4()
[all …]
/external/libopus/celt/
Dkiss_fft.c137 kiss_fft_cpx scratch[6]; in kf_bfly4() local
149 C_MUL(scratch[0],Fout[m] , *tw1 ); in kf_bfly4()
150 C_MUL(scratch[1],Fout[m2] , *tw2 ); in kf_bfly4()
151 C_MUL(scratch[2],Fout[m3] , *tw3 ); in kf_bfly4()
153 C_SUB( scratch[5] , *Fout, scratch[1] ); in kf_bfly4()
154 C_ADDTO(*Fout, scratch[1]); in kf_bfly4()
155 C_ADD( scratch[3] , scratch[0] , scratch[2] ); in kf_bfly4()
156 C_SUB( scratch[4] , scratch[0] , scratch[2] ); in kf_bfly4()
157 C_SUB( Fout[m2], *Fout, scratch[3] ); in kf_bfly4()
161 C_ADDTO( *Fout , scratch[3] ); in kf_bfly4()
[all …]
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnouveau_scratch.c39 struct nouveau_scratch_state *scratch = in nouveau_get_scratch() local
40 &to_nouveau_context(ctx)->scratch; in nouveau_get_scratch()
43 if (scratch->buf && size <= NOUVEAU_SCRATCH_SIZE - scratch->offset) { in nouveau_get_scratch()
44 nouveau_bo_ref(scratch->bo[scratch->index], bo); in nouveau_get_scratch()
46 buf = scratch->buf + scratch->offset; in nouveau_get_scratch()
47 *offset = scratch->offset; in nouveau_get_scratch()
48 scratch->offset += size; in nouveau_get_scratch()
51 scratch->index = (scratch->index + 1) % NOUVEAU_SCRATCH_COUNT; in nouveau_get_scratch()
52 nouveau_bo_ref(scratch->bo[scratch->index], bo); in nouveau_get_scratch()
55 buf = scratch->buf = (*bo)->map; in nouveau_get_scratch()
[all …]
/external/v8/src/mips64/
Dmacro-assembler-mips64.cc310 Register scratch = temps.Acquire(); in RecordWrite() local
311 Ld(scratch, MemOperand(address)); in RecordWrite()
312 Assert(eq, AbortReason::kWrongAddressOrValuePassedToRecordWrite, scratch, in RecordWrite()
353 Register scratch = temps.Acquire(); in RecordWrite() local
356 scratch, value); in RecordWrite()
379 Register scratch = temps.Acquire(); in Addu() local
380 DCHECK(rs != scratch); in Addu()
381 li(scratch, rt); in Addu()
382 addu(rd, rs, scratch); in Addu()
396 Register scratch = temps.Acquire(); in Daddu() local
[all …]
/external/v8/src/mips/
Dmacro-assembler-mips.cc310 Register scratch = temps.Acquire(); in RecordWrite() local
311 lw(scratch, MemOperand(address)); in RecordWrite()
312 Assert(eq, AbortReason::kWrongAddressOrValuePassedToRecordWrite, scratch, in RecordWrite()
354 Register scratch = temps.Acquire(); in RecordWrite() local
356 scratch, value); in RecordWrite()
379 Register scratch = temps.Acquire(); in Addu() local
380 DCHECK(rs != scratch); in Addu()
381 li(scratch, rt); in Addu()
382 addu(rd, rs, scratch); in Addu()
397 Register scratch = temps.Acquire(); in Subu() local
[all …]
/external/boringssl/src/decrepit/xts/
Dxts.c71 } tweak, scratch; in CRYPTO_xts128_encrypt() local
83 OPENSSL_memcpy(scratch.c, inp, 16); in CRYPTO_xts128_encrypt()
84 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
85 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
86 (*ctx->block1)(scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
87 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
88 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
89 OPENSSL_memcpy(out, scratch.c, 16); in CRYPTO_xts128_encrypt()
106 out[i] = scratch.c[i]; in CRYPTO_xts128_encrypt()
107 scratch.c[i] = c; in CRYPTO_xts128_encrypt()
[all …]
/external/v8/src/ppc/
Dmacro-assembler-ppc.cc187 Register scratch = ip; in Jump() local
188 IndirectLoadConstant(scratch, code); in Jump()
189 addi(scratch, scratch, Operand(Code::kHeaderSize - kHeapObjectTag)); in Jump()
192 Jump(scratch); in Jump()
296 void TurboAssembler::Drop(Register count, Register scratch) { in Drop() argument
297 ShiftLeftImm(scratch, count, Operand(kPointerSizeLog2)); in Drop()
298 add(sp, sp, scratch); in Drop()
759 Register scratch, Register shift) { in ShiftLeftPair() argument
768 andi(scratch, shift, Operand(0x1F)); in ShiftLeftPair()
769 slw(dst_high, src_low, scratch); in ShiftLeftPair()
[all …]
Dmacro-assembler-ppc.h173 void LoadP(Register dst, const MemOperand& mem, Register scratch = no_reg);
174 void LoadPU(Register dst, const MemOperand& mem, Register scratch = no_reg);
176 Register scratch = no_reg);
177 void StoreP(Register src, const MemOperand& mem, Register scratch = no_reg);
178 void StorePU(Register src, const MemOperand& mem, Register scratch = no_reg);
181 Register scratch = no_reg);
182 void LoadDoubleLiteral(DoubleRegister result, Double value, Register scratch);
190 Register scratch = no_reg);
192 Register scratch = no_reg);
197 Register scratch = no_reg);
[all …]
Dcode-stubs-ppc.cc353 Register scratch = r6; in CallApiFunctionAndReturn() local
355 __ Move(scratch, ExternalReference::is_profiling_address(isolate)); in CallApiFunctionAndReturn()
356 __ lbz(scratch, MemOperand(scratch, 0)); in CallApiFunctionAndReturn()
357 __ cmpi(scratch, Operand::Zero()); in CallApiFunctionAndReturn()
360 __ Move(scratch, thunk_ref); in CallApiFunctionAndReturn()
361 __ isel(eq, scratch, function_address, scratch); in CallApiFunctionAndReturn()
366 __ Move(scratch, thunk_ref); in CallApiFunctionAndReturn()
369 __ mr(scratch, function_address); in CallApiFunctionAndReturn()
398 stub.GenerateCall(masm, scratch); in CallApiFunctionAndReturn()
498 Register scratch = call_data; in Generate() local
[all …]
/external/toybox/lib/
Dtty.c66 int scan_key_getsize(char *scratch, int timeout_ms, unsigned *xx, unsigned *yy) in scan_key_getsize() argument
70 if (512&(key = scan_key(scratch, timeout_ms))) { in scan_key_getsize()
166 int scan_key(char *scratch, int timeout_ms) in scan_key() argument
178 if (*scratch) { in scan_key()
184 scratch[(1+*scratch)&15] = 0; in scan_key()
185 sscanf(scratch+1, "\033%n[%n%3u%n;%n%3u%nR%n", pos, pos+1, &y, in scan_key()
189 *scratch = 0; in scan_key()
191 } else for (i=0; i<6; i++) if (pos[i]==*scratch) maybe = 1; in scan_key()
196 for (j = 0; j<*scratch; j++) if (scratch[j+1] != test[j]) break; in scan_key()
197 if (j == *scratch) { in scan_key()
[all …]
/external/mesa3d/src/gallium/drivers/swr/
Dswr_scratch.cpp82 struct swr_scratch_buffers *scratch; in swr_init_scratch_buffers() local
84 scratch = CALLOC_STRUCT(swr_scratch_buffers); in swr_init_scratch_buffers()
85 ctx->scratch = scratch; in swr_init_scratch_buffers()
91 struct swr_scratch_buffers *scratch = ctx->scratch; in swr_destroy_scratch_buffers() local
93 if (scratch) { in swr_destroy_scratch_buffers()
94 AlignedFree(scratch->vs_constants.base); in swr_destroy_scratch_buffers()
95 AlignedFree(scratch->fs_constants.base); in swr_destroy_scratch_buffers()
96 AlignedFree(scratch->gs_constants.base); in swr_destroy_scratch_buffers()
97 AlignedFree(scratch->vertex_buffer.base); in swr_destroy_scratch_buffers()
98 AlignedFree(scratch->index_buffer.base); in swr_destroy_scratch_buffers()
[all …]
/external/tensorflow/tensorflow/core/platform/cloud/
Dcurl_http_request_test.cc267 std::vector<char> scratch; in TEST() local
268 scratch.insert(scratch.begin(), kTestContent.begin(), kTestContent.end()); in TEST()
269 scratch.reserve(100); in TEST()
274 http_request.SetResultBuffer(&scratch); in TEST()
277 EXPECT_EQ("get response", string(scratch.begin(), scratch.end())); in TEST()
294 std::vector<char> scratch(100, 0); in TEST() local
299 http_request.SetResultBufferDirect(scratch.data(), scratch.capacity()); in TEST()
308 string(scratch.begin(), scratch.begin() + response_bytes_transferred)); in TEST()
325 std::vector<char> scratch(5, 0); in TEST() local
328 http_request.SetResultBufferDirect(scratch.data(), scratch.size()); in TEST()
[all …]
/external/gemmlowp/meta/
Dlegacy_multi_thread_gemm.h34 void CacheFriendlyMatrixMatrix(std::uint8_t* scratch, const IN_TYPE* lhs, in CacheFriendlyMatrixMatrix() argument
46 scratch, lhs, rhs + i * chunk_size, m, optimal_n, k, in CacheFriendlyMatrixMatrix()
51 scratch, lhs, rhs + chunks_count_less_one * chunk_size, m, n_left, k, in CacheFriendlyMatrixMatrix()
54 operation.ExecuteCacheFriendlyMatrixMatrix(scratch, lhs, rhs, m, n, k, in CacheFriendlyMatrixMatrix()
67 void ExecuteMatrixMatrix(std::uint8_t* scratch, const std::uint8_t* lhs, in ExecuteMatrixMatrix() argument
71 CacheFriendlyMatrixMatrix(scratch, lhs, rhs, m, n, k, result, result_stride, in ExecuteMatrixMatrix()
75 void ExecuteCacheFriendlyMatrixMatrix(std::uint8_t* scratch, in ExecuteCacheFriendlyMatrixMatrix() argument
81 gemm_q8_strided(scratch, lhs, rhs, m, n, k, lhs_offset, rhs_offset, in ExecuteCacheFriendlyMatrixMatrix()
97 void ExecuteMatrixMatrix(std::uint8_t* scratch, const std::uint8_t* lhs, in ExecuteMatrixMatrix() argument
101 CacheFriendlyMatrixMatrix(scratch, lhs, rhs, m, n, k, result, result_stride, in ExecuteMatrixMatrix()
[all …]
Dmulti_thread_gemm.h30 int kernel_k, std::uint8_t* scratch, int m_start, in PrepareGemmTask() argument
35 task.scratch = scratch; in PrepareGemmTask()
52 return scratch + Executor::template EstimateScratchSize<Params>( in PrepareGemmTask()
75 std::uint8_t* scratch = params.scratch; in PrepareGemmTasks() local
80 scratch = PrepareGemmTask<Executor, Params>( in PrepareGemmTasks()
81 params, kernel_m, kernel_n, kernel_k, scratch, i * m_chunk, m_chunk, in PrepareGemmTasks()
86 scratch, sum_m, params.m - sum_m, 0, in PrepareGemmTasks()
91 scratch = PrepareGemmTask<Executor, Params>( in PrepareGemmTasks()
92 params, kernel_m, kernel_n, kernel_k, scratch, 0, params.m, in PrepareGemmTasks()
97 scratch, 0, params.m, sum_n, in PrepareGemmTasks()
Dlegacy_multi_thread_gemv.h39 void ExecuteMatrixMatrix(std::uint8_t* scratch, const std::uint8_t* lhs, in ExecuteMatrixMatrix() argument
43 gemv_q8(scratch, lhs, rhs, n, k, lhs_offset, rhs_offset, sum_offset, in ExecuteMatrixMatrix()
59 void ExecuteMatrixMatrix(std::uint8_t* scratch, const std::uint8_t* lhs, in ExecuteMatrixMatrix() argument
63 gemv_f(scratch, lhs, rhs, n, k, lhs_offset, rhs_offset, result_offset, in ExecuteMatrixMatrix()
78 void ExecuteMatrixMatrix(std::uint8_t* scratch, const std::uint8_t* lhs, in ExecuteMatrixMatrix() argument
82 gemv_i32(scratch, lhs, rhs, n, k, lhs_offset, rhs_offset, result); in ExecuteMatrixMatrix()
100 std::uint8_t* scratch, const std::uint8_t* lhs, in multi_thread_gemv_q8() argument
110 operation.ExecuteMatrixMatrix(scratch, lhs, rhs, 1, n, k, result, n); in multi_thread_gemv_q8()
112 internal::MultiThreadedMatrixMatrix(pool, max_threads, scratch, lhs, rhs, 1, in multi_thread_gemv_q8()
124 std::uint8_t* scratch, const std::uint8_t* lhs, in multi_thread_gemv_f() argument
[all …]
/external/vixl/src/aarch32/
Dmacro-assembler-aarch32.cc252 Register scratch, in MemOperandComputationHelper() argument
256 VIXL_ASSERT(!AliasesAvailableScratchRegister(scratch)); in MemOperandComputationHelper()
296 sub(cond, scratch, base, sub_pc_offset); in MemOperandComputationHelper()
298 if (add_offset == 0) return MemOperand(scratch, load_store_offset); in MemOperandComputationHelper()
301 base = scratch; in MemOperandComputationHelper()
307 add(cond, scratch, base, add_offset); in MemOperandComputationHelper()
308 return MemOperand(scratch, load_store_offset); in MemOperandComputationHelper()
455 UseScratchRegisterScope scratch(this); in Printf() local
456 scratch.ExcludeAll(); in Printf()
678 Register scratch = temps.Acquire(); in Delegate() local
[all …]
/external/v8/src/arm/
Dmacro-assembler-arm.cc200 Register scratch = temps.Acquire(); in Jump() local
201 IndirectLoadConstant(scratch, code); in Jump()
202 add(scratch, scratch, Operand(Code::kHeaderSize - kHeapObjectTag)); in Jump()
203 Jump(scratch, cond); in Jump()
322 Register scratch = temps.Acquire(); in Push() local
323 mov(scratch, Operand(handle)); in Push()
324 push(scratch); in Push()
329 Register scratch = temps.Acquire(); in Push() local
330 mov(scratch, Operand(smi)); in Push()
331 push(scratch); in Push()
[all …]
Dcode-stubs-arm.cc85 Register scratch = temps.Acquire(); in Generate() local
88 __ mov(scratch, Operand(-1)); in Generate()
89 __ stm(db_w, sp, r5.bit() | r6.bit() | r7.bit() | scratch.bit()); in Generate()
92 Register scratch = r6; in Generate() local
102 __ ldr(scratch, MemOperand(r5)); in Generate()
103 __ cmp(scratch, Operand::Zero()); in Generate()
106 __ mov(scratch, Operand(StackFrame::OUTERMOST_JSENTRY_FRAME)); in Generate()
110 __ mov(scratch, Operand(StackFrame::INNER_JSENTRY_FRAME)); in Generate()
112 __ push(scratch); in Generate()
129 __ mov(scratch, in Generate()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_buffer.c899 if (!nv->scratch.runout) in nouveau_scratch_runout_release()
903 nv->scratch.runout)) in nouveau_scratch_runout_release()
906 nv->scratch.end = 0; in nouveau_scratch_runout_release()
907 nv->scratch.runout = NULL; in nouveau_scratch_runout_release()
919 if (nv->scratch.runout) in nouveau_scratch_runout()
920 n = nv->scratch.runout->nr; in nouveau_scratch_runout()
923 nv->scratch.runout = REALLOC(nv->scratch.runout, n == 0 ? 0 : in nouveau_scratch_runout()
924 (sizeof(*nv->scratch.runout) + (n + 0) * sizeof(void *)), in nouveau_scratch_runout()
925 sizeof(*nv->scratch.runout) + (n + 1) * sizeof(void *)); in nouveau_scratch_runout()
926 nv->scratch.runout->nr = n + 1; in nouveau_scratch_runout()
[all …]
/external/gemmlowp/test/
Dcorrectness_meta_gemm.cc176 void test(std::uint8_t* scratch, std::uint8_t* lhs, std::uint8_t* rhs, in test() argument
183 gemmlowp::meta::multi_thread_gemm_q8(pool, pool_size, scratch, lhs, rhs, m, n, in test()
188 void test_f(std::uint8_t* scratch, std::uint8_t* lhs, std::uint8_t* rhs, in test_f() argument
196 gemmlowp::meta::multi_thread_gemm_f(pool, pool_size, scratch, lhs, rhs, m, n, in test_f()
201 void test_i32(std::uint8_t* scratch, std::uint8_t* lhs, std::uint8_t* rhs, in test_i32() argument
209 gemmlowp::meta::multi_thread_gemm_i32(pool, pool_size, scratch, lhs, rhs, m, in test_i32()
215 int kd, std::uint8_t* scratch, std::uint8_t* left, in q_suite() argument
221 test(scratch, left, right, m, n, k, result, pool, t); in q_suite()
229 int kd, std::uint8_t* scratch, std::uint8_t* left, in f_suite() argument
235 test_f(scratch, left, right, m, n, k, result, pool, t); in f_suite()
[all …]
/external/v8/src/s390/
Dmacro-assembler-s390.cc185 Register scratch = r1; in Jump() local
186 IndirectLoadConstant(scratch, code); in Jump()
187 la(scratch, MemOperand(scratch, Code::kHeaderSize - kHeapObjectTag)); in Jump()
188 b(cond, scratch); in Jump()
285 void TurboAssembler::Drop(Register count, Register scratch) { in Drop() argument
286 ShiftLeftP(scratch, count, Operand(kPointerSizeLog2)); in Drop()
287 AddP(sp, sp, scratch); in Drop()
937 Register scratch, Register shift) { in ShiftLeftPair() argument
957 Register scratch, Register shift) { in ShiftRightPair() argument
977 Register scratch, Register shift) { in ShiftRightArithPair() argument
[all …]
Dcode-stubs-s390.cc393 Register scratch = r5; in CallApiFunctionAndReturn() local
395 __ Move(scratch, ExternalReference::is_profiling_address(isolate)); in CallApiFunctionAndReturn()
396 __ LoadlB(scratch, MemOperand(scratch, 0)); in CallApiFunctionAndReturn()
397 __ CmpP(scratch, Operand::Zero()); in CallApiFunctionAndReturn()
402 __ Move(scratch, thunk_ref); in CallApiFunctionAndReturn()
405 __ LoadRR(scratch, function_address); in CallApiFunctionAndReturn()
433 stub.GenerateCall(masm, scratch); in CallApiFunctionAndReturn()
531 Register scratch = call_data; in Generate() local
532 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex); in Generate()
534 __ push(scratch); in Generate()
[all …]
/external/boringssl/src/crypto/cipher_extra/
De_aesgcmsiv.c246 uint8_t scratch[16]; in gcm_siv_asm_polyval() local
248 OPENSSL_memset(scratch, 0, sizeof(scratch)); in gcm_siv_asm_polyval()
249 OPENSSL_memcpy(scratch, &ad[ad_len & ~15], ad_len & 15); in gcm_siv_asm_polyval()
250 aesgcmsiv_polyval_horner(out_tag, auth_key, scratch, 1); in gcm_siv_asm_polyval()
260 OPENSSL_memset(scratch, 0, sizeof(scratch)); in gcm_siv_asm_polyval()
261 OPENSSL_memcpy(scratch, &in[in_len & ~15], in_len & 15); in gcm_siv_asm_polyval()
262 aesgcmsiv_polyval_horner(out_tag, auth_key, scratch, 1); in gcm_siv_asm_polyval()
458 uint8_t scratch[16]; in aead_aes_gcm_siv_asm_open() local
460 OPENSSL_memset(scratch, 0, sizeof(scratch)); in aead_aes_gcm_siv_asm_open()
461 OPENSSL_memcpy(scratch, &ad[ad_len & ~15], ad_len & 15); in aead_aes_gcm_siv_asm_open()
[all …]

12345678910>>...24