Lines Matching refs:B
211 void doMatrixMultiplication(float* A, float* B, float* C, int n) in doMatrixMultiplication() argument
226 sum[0] += a * B[k * n + j]; in doMatrixMultiplication()
227 sum[1] += a * B[k * n + j + 1]; in doMatrixMultiplication()
228 sum[2] += a * B[k * n + j + 2]; in doMatrixMultiplication()
229 sum[3] += a * B[k * n + j + 3]; in doMatrixMultiplication()
230 sum[4] += a * B[k * n + j + 4]; in doMatrixMultiplication()
231 sum[5] += a * B[k * n + j + 5]; in doMatrixMultiplication()
232 sum[6] += a * B[k * n + j + 6]; in doMatrixMultiplication()
233 sum[7] += a * B[k * n + j + 7]; in doMatrixMultiplication()
247 float* B = new float[n * n]; in Java_android_simplecpu_cts_CpuNative_runMatrixMultiplication() local
249 if ((A == NULL) || (B == NULL) || (C == NULL)) { in Java_android_simplecpu_cts_CpuNative_runMatrixMultiplication()
251 delete[] B; in Java_android_simplecpu_cts_CpuNative_runMatrixMultiplication()
259 randomInitArray<float>(B, n * n, 1); in Java_android_simplecpu_cts_CpuNative_runMatrixMultiplication()
261 doMatrixMultiplication(A, B, C, n); in Java_android_simplecpu_cts_CpuNative_runMatrixMultiplication()
266 delete[] B; in Java_android_simplecpu_cts_CpuNative_runMatrixMultiplication()