Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 205) sorted by relevance

123456789

/device/google/contexthub/firmware/os/algos/common/math/
Dmat.c40 static void mat33SwapRows(struct Mat33 *A, uint32_t i, uint32_t j);
43 uint32_t l, uint32_t i, uint32_t j);
45 static void mat44SwapRows(struct Mat44 *A, uint32_t i, uint32_t j);
102 uint32_t j; in mat33Multiply() local
103 for (j = 0; j < 3; ++j) { in mat33Multiply()
107 sum += A->elem[i][k] * B->elem[k][j]; in mat33Multiply()
110 out->elem[i][j] = sum; in mat33Multiply()
120 uint32_t j; in mat33ScalarMul() local
121 for (j = 0; j < 3; ++j) { in mat33ScalarMul()
122 A->elem[i][j] *= c; in mat33ScalarMul()
[all …]
/device/generic/vulkan-cereal/third-party/angle/src/libANGLE/renderer/
Dcopyvertex.inc.h76 for (size_t j = 0; j < inputComponentCount; j++) in Copy8SintTo16SintVertexData() local
78 offsetOutput[j] = static_cast<GLshort>(offsetInput[j]); in Copy8SintTo16SintVertexData()
81 for (size_t j = inputComponentCount; j < lastNonAlphaOutputComponent; j++) in Copy8SintTo16SintVertexData() local
84 offsetOutput[j] = 0; in Copy8SintTo16SintVertexData()
106 for (size_t j = 0; j < inputComponentCount; j++) in Copy8SnormTo16SnormVertexData() local
111 if (offsetInput[j] > 0) in Copy8SnormTo16SnormVertexData()
113 offsetOutput[j] = in Copy8SnormTo16SnormVertexData()
114 offsetInput[j] << 8 | offsetInput[j] << 1 | ((offsetInput[j] & 0x40) >> 6); in Copy8SnormTo16SnormVertexData()
118 offsetOutput[j] = offsetInput[j] << 8; in Copy8SnormTo16SnormVertexData()
122 for (size_t j = inputComponentCount; j < std::min<size_t>(outputComponentCount, 3); j++) in Copy8SnormTo16SnormVertexData() local
[all …]
/device/generic/vulkan-cereal/stream-servers/tests/
DGLTestUtils.cpp75 for (int j = 0; j < width; j++) { in createTestPatternRGB888() local
76 res[i * bpp * width + j * bpp + 0] = i % 0x100; in createTestPatternRGB888()
77 res[i * bpp * width + j * bpp + 1] = j % 0x100; in createTestPatternRGB888()
78 res[i * bpp * width + j * bpp + 2] = (i * width + j) % 0x100; in createTestPatternRGB888()
91 for (int j = 0; j < width; j++) { in createTestPatternRGBA8888() local
92 res[i * bpp * width + j * bpp + 0] = i % 0x100; in createTestPatternRGBA8888()
93 res[i * bpp * width + j * bpp + 1] = j % 0x100; in createTestPatternRGBA8888()
94 res[i * bpp * width + j * bpp + 2] = (i * width + j) % 0x100; in createTestPatternRGBA8888()
95 res[i * bpp * width + j * bpp + 3] = (width - j) % 0x100; in createTestPatternRGBA8888()
114 for (int j = 0; j < width; j++) { in createTestTextureRGB888SingleColor() local
[all …]
DTextureDraw_unittest.cpp50 for (int j = 0; j < width; j++) { in TestTextureDrawBasic() local
51 pixels[i * width * bpp + j * bpp + 0] = (0xaa + i) % 0x100; in TestTextureDrawBasic()
52 pixels[i * width * bpp + j * bpp + 1] = (0x00 + j) % 0x100; in TestTextureDrawBasic()
53 pixels[i * width * bpp + j * bpp + 2] = (0x11 + i) % 0x100; in TestTextureDrawBasic()
54 pixels[i * width * bpp + j * bpp + 3] = (0xff + j) % 0x100; in TestTextureDrawBasic()
114 for (int j = 0; j < width; j++) { in TestTextureDrawLayer() local
115 pixels[i * width * bpp + j * bpp + 0] = 0xff; in TestTextureDrawLayer()
116 pixels[i * width * bpp + j * bpp + 1] = 0x0; in TestTextureDrawLayer()
117 pixels[i * width * bpp + j * bpp + 2] = 0x0; in TestTextureDrawLayer()
118 pixels[i * width * bpp + j * bpp + 3] = 0xff; in TestTextureDrawLayer()
[all …]
DCompositorVk_unittest.cpp280 for (uint32_t j = 0; j < k_renderTargetNumOfPixels; j++) { in TEST_F() local
281 const auto pixel = reinterpret_cast<const uint8_t *>(&imagePixels[j]); in TEST_F()
289 ASSERT_EQ(pixels[j], imagePixels[j]); in TEST_F()
369 for (uint32_t j = 0; j < k_renderTargetWidth; j++) { in TEST_F() local
370 uint32_t offset = i * k_renderTargetWidth + j; in TEST_F()
375 if (i >= textureTop && i < textureBottom && j >= textureLeft && j < textureRight) { in TEST_F()
471 for (uint32_t j = 0; j < k_renderTargetHeight; j++) { in TEST_F() local
473 uint32_t offset = j * k_renderTargetWidth + k; in TEST_F()
478 if (j >= composeLayers[i].displayFrame.top && in TEST_F()
479 j < composeLayers[i].displayFrame.bottom && in TEST_F()
/device/generic/vulkan-cereal/include/glm/gtx/
Dmatrix_query.inl39 for(length_t j = 0; result && j < i ; ++j) local
40 result = abs(m[i][j]) <= epsilon;
43 for(length_t j = i + 1; result && j < m.length(); ++j) local
44 result = abs(m[i][j]) <= epsilon;
58 for(length_t j = 0; j < m.length(); ++j) local
59 v[j] = m[j][i];
74 for(length_t j = 0; j < m.length(); ++j) local
75 v[j] = m[j][i];
90 for(length_t j = 0; j < m.length(); ++j) local
91 v[j] = m[j][i];
[all …]
/device/generic/goldfish-opengl/system/OpenglSystemCommon/
DFormatConversions.cpp105 for (int j = top; j <= bottom; ++j) { in rgb565_to_yv12() local
106 uint8_t *yv12_y = yv12_y0 + j * yStride; in rgb565_to_yv12()
107 uint8_t *yv12_v = yv12_v0 + (j/2) * cStride; in rgb565_to_yv12()
109 uint16_t *rgb_ptr = rgb_ptr0 + get_rgb_offset(j, width, rgb_stride) / 2; in rgb565_to_yv12()
110 bool jeven = (j & 1) == 0; in rgb565_to_yv12()
163 for (int j = top; j <= bottom; ++j) { in rgb888_to_yv12() local
164 uint8_t *yv12_y = yv12_y0 + j * yStride; in rgb888_to_yv12()
165 uint8_t *rgb_ptr = rgb_ptr0 + get_rgb_offset(j, width, rgb_stride); in rgb888_to_yv12()
166 bool jeven = (j & 1) == 0; in rgb888_to_yv12()
213 for (int j = top; j <= bottom; ++j) { in rgb888_to_yuv420p() local
[all …]
/device/google/contexthub/firmware/lib/libm/
Dkf_rem_pio2.c62 __int32_t jz,jx,jv,jp,jk,carry,n,iq[20],i,j,k,m,q0,ih; local
75 j = jv-jx; m = jx+jk;
76 for(i=0;i<=m;i++,j++) f[i] = (j<0)? zero : (float) ipio2[j];
80 for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j];
87 for(i=0,j=jz,z=q[jz];j>0;i++,j--) {
90 z = q[j-1]+fw;
110 j = iq[i];
112 if(j!=0) {
113 carry = 1; iq[i] = 0x100- j;
115 } else iq[i] = 0xff - j;
[all …]
Def_pow.c68 __int32_t i,j,k,yisint,n; local
95 j = iy>>(23-k);
96 if((j<<(23-k))==iy) yisint = 2-(j&1);
157 j = ix&0x007fffff;
159 ix = j|0x3f800000; /* normalize ix */
160 if(j<=0x1cc471) k=0; /* |x|<sqrt(3/2) */
161 else if(j<0x5db3d7) k=1; /* |x|<sqrt(3) */
213 GET_FLOAT_WORD(j,z);
214 i = j&0x7fffffff;
215 if (j>0) {
[all …]
/device/generic/vulkan-cereal/protocols/generic-apigen/
DApiGen.cpp104 for (size_t j = 0; j < n; j++) { in genProcTypes() local
105 if (!evars[j].isVoid()) { in genProcTypes()
106 …if (j != 0 || side == CLIENT_SIDE || (side == SERVER_SIDE && e->customDecoder())) fprintf(fp, ", "… in genProcTypes()
107 evars[j].printType(fp); in genProcTypes()
120 for (size_t j = 0; j < n; j++) { in genProcTypes() local
121 if (!evars[j].isVoid()) { in genProcTypes()
122 if (j != 0) fprintf(fp, ", "); in genProcTypes()
123 evars[j].printType(fp); in genProcTypes()
276 for (size_t j=0; j<e->vars().size(); j++) { in genEntryPoints() local
277 if (e->vars()[j].paramCheckExpression() != "") in genEntryPoints()
[all …]
/device/generic/opengl-transport/host/commands/emugen/
DApiGen.cpp101 for (size_t j = 0; j < n; j++) { in genProcTypes() local
102 if (!evars[j].isVoid()) { in genProcTypes()
103 …if (j != 0 || side == CLIENT_SIDE || (side == SERVER_SIDE && e->customDecoder())) fprintf(fp, ", "… in genProcTypes()
104 evars[j].printType(fp); in genProcTypes()
117 for (size_t j = 0; j < n; j++) { in genProcTypes() local
118 if (!evars[j].isVoid()) { in genProcTypes()
119 if (j != 0) fprintf(fp, ", "); in genProcTypes()
120 evars[j].printType(fp); in genProcTypes()
273 for (size_t j=0; j<e->vars().size(); j++) { in genEntryPoints() local
274 if (e->vars()[j].paramCheckExpression() != "") in genEntryPoints()
[all …]
/device/generic/vulkan-cereal/include/glm/detail/
Dtype_gentype.inl195 for(typename base<vT, cT, rT, pT>::size_type j = 0; j < stop_col; ++j) local
197 this->value[j][i] += x;
211 for(typename base<vT, cT, rT, pT>::size_type j = 0; j < stop_col; ++j) local
213 this->value[j][i] += x[j][i];
227 for(typename base<vT, cT, rT, pT>::size_type j = 0; j < stop_col; ++j) local
229 this->value[j][i] -= x;
243 for(typename base<vT, cT, rT, pT>::size_type j = 0; j < stop_col; ++j) local
245 this->value[j][i] -= x[j][i];
259 for(typename base<vT, cT, rT, pT>::size_type j = 0; j < stop_col; ++j) local
261 this->value[j][i] *= x;
[all …]
/device/generic/vulkan-cereal/third-party/angle/samples/tri_fan_microbench/
DTriFanMicroBench.cpp69 for (unsigned int j = 0; j < numFanVertices; ++j) in createVertexBuffers() local
71 tempVerts[j * 3] = fanVertices[j * 3] + xOffset; in createVertexBuffers()
72 tempVerts[j * 3 + 1] = fanVertices[j * 3 + 1] + yOffset; in createVertexBuffers()
73 tempVerts[j * 3 + 2] = 0.0f; in createVertexBuffers()
99 for (unsigned int j = 1; j < 3; ++j) in createVertexBuffers() local
102 &(fanVertices[(i + j) * 3]); // copy two outer vertices for this point in createVertexBuffers()
117 for (unsigned int j = 0; j < numTriVertices; ++j) in createVertexBuffers() local
119 tempVerts[j * 3] = triPointer[0] + xOffset; in createVertexBuffers()
120 tempVerts[j * 3 + 1] = triPointer[1] + yOffset; in createVertexBuffers()
121 tempVerts[j * 3 + 2] = 0.0f; in createVertexBuffers()
/device/linaro/dragonboard/qcom/rmtfs/
Dutil.c20 int j; in print_hex_dump() local
26 for (j = 0; j < linelen; j++) { in print_hex_dump()
27 ch = ptr[i + j]; in print_hex_dump()
33 for (; j < 16; j++) { in print_hex_dump()
39 for (j = 0; j < linelen; j++) { in print_hex_dump()
40 ch = ptr[i + j]; in print_hex_dump()
/device/generic/vulkan-cereal/third-party/angle/src/image_util/
Dloadimage_etc.cpp67 for (size_t j = 0; j < 4 && (y + j) < h; j++) in decodeAsSingleETC2Channel() local
69 uint8_t *row = dest + (j * destRowPitch); in decodeAsSingleETC2Channel()
75 *pixel = clampSByte(getSingleETC2Channel(i, j, isSigned)); in decodeAsSingleETC2Channel()
79 *pixel = clampByte(getSingleETC2Channel(i, j, isSigned)); in decodeAsSingleETC2Channel()
96 for (size_t j = 0; j < 4 && (y + j) < h; j++) in decodeAsSingleEACChannel() local
99 (j * destRowPitch)); in decodeAsSingleEACChannel()
106 renormalizeEAC<int16_t>(getSingleEACChannel(i, j, isSigned)); in decodeAsSingleEACChannel()
113 renormalizeEAC<uint16_t>(getSingleEACChannel(i, j, isSigned)); in decodeAsSingleEACChannel()
493 for (size_t j = 0; j < 2 && (y + j) < h; j++) in decodeIndividualOrDifferentialBlock() local
498 row[i] = subblockColors0[getIndex(i, j)]; in decodeIndividualOrDifferentialBlock()
[all …]
/device/generic/vulkan-cereal/third-party/angle/src/common/
Dmatrix_utils.h82 for (unsigned int j = 0; j < resultCols; j++) variable
86 tmp += at(i, k) * m(k, j);
87 result(i, j) = tmp;
144 for (unsigned int j = 0; j < columns(); j++) in compMult() local
146 T lhs = at(i, j); in compMult()
147 T rhs = mat1(i, j); in compMult()
148 result(i, j) = rhs * lhs; in compMult()
160 for (unsigned int j = 0; j < cols; j++) in outerProduct() local
161 result(i, j) = at(i, 0) * mat1(0, j); in outerProduct()
170 for (unsigned int j = 0; j < rows(); j++) in transpose() local
[all …]
Dmatrix_utils_unittest.cpp53 for (unsigned int j = 0; i < 4; i++) in CheckMat4ExactlyEq() local
55 EXPECT_EQ(a.at(i, j), b.at(i, j)); in CheckMat4ExactlyEq()
92 for (unsigned int j = minDimensions; j <= maxDimensions; j++) in TEST() local
94 unsigned int numElements = i * j; in TEST()
95 Matrix<float> m(std::vector<float>(numElements, 1.0f), i, j); in TEST()
97 EXPECT_EQ(m.columns(), j); in TEST()
129 for (unsigned int j = minDimensions; j <= maxDimensions; j++) in TEST() local
131 unsigned int numElements = i * j; in TEST()
133 Matrix<float> m2(std::vector<float>(numElements, 2.0f), 1, j); in TEST()
136 EXPECT_EQ(actualResult.columns(), j); in TEST()
[all …]
/device/generic/vulkan-cereal/third-party/astc-codec/src/decoder/test/
Dendpoint_codec_test.cc184 for (int j = 0; j < 255; ++j) { in TEST() local
185 EXPECT_EQ(TestColors({{ i, i, i, 255 }}, {{ j, j, j, 255 }}, 255, mode), in TEST()
186 MakeColors({{ i, i, i, 255 }}, {{ j, j, j, 255 }})); in TEST()
226 for (int j = 0; j < 255; ++j) { in TEST() local
227 EXPECT_EQ(TestColors({{ i, i, i, j }}, {{ j, j, j, i }}, 255, mode), in TEST()
228 MakeColors({{ i, i, i, j }}, {{ j, j, j, i }})); in TEST()
Dlogical_astc_block_test.cc201 for (int j = 0; j < 8; ++j) { in TEST() local
203 if (((i ^ j) & 1) == 1) { in TEST()
204 logical_block.SetWeightAt(i, j, 0); in TEST()
206 logical_block.SetWeightAt(i, j, 64); in TEST()
216 for (int j = 0; j < 8; ++j) { in TEST() local
218 if (((i ^ j) & 1) == 1) { in TEST()
219 EXPECT_THAT(logical_block.ColorAt(i, j), ElementsAre(123, 45, 67, 89)); in TEST()
221 EXPECT_THAT(logical_block.ColorAt(i, j), ElementsAre(101, 121, 31, 41)); in TEST()
/device/generic/goldfish/camera/
DEmulatedFakeRotatingCameraDevice.cpp74 for (int j = 0; j < height; ++j) { in rgba8888_to_nv21() local
75 uint8_t* outputY = output + j*yStride; in rgba8888_to_nv21()
77 uint8_t R = input[j*width*4 + i*4]; in rgba8888_to_nv21()
78 uint8_t G = input[j*width*4 + i*4 + 1]; in rgba8888_to_nv21()
79 uint8_t B = input[j*width*4 + i*4 + 2]; in rgba8888_to_nv21()
82 bool jeven = (j & 1) == 0; in rgba8888_to_nv21()
99 for (int j = 0; j < height; ++j) { in nv21_to_rgba8888() local
100 uint8_t* inputY = input + j*yStride; in nv21_to_rgba8888()
103 bool jeven = (j & 1) == 0; in nv21_to_rgba8888()
147 static void get_color(uint32_t* img, int i, int j, int w, int h, int dw, uint32_t * color) { in get_color() argument
[all …]
/device/generic/vulkan-cereal/third-party/angle/util/
Dgeometry_utils.cpp36 for (size_t j = 0; j < sliceCount + 1; j++) in CreateSphereGeometry() local
38 Vector3 direction(sinf(angleStep * i) * sinf(angleStep * j), cosf(angleStep * i), in CreateSphereGeometry()
39 sinf(angleStep * i) * cosf(angleStep * j)); in CreateSphereGeometry()
41 size_t vertexIdx = i * (sliceCount + 1) + j; in CreateSphereGeometry()
51 for (size_t j = 0; j < sliceCount; j++) in CreateSphereGeometry() local
53 result->indices.push_back(static_cast<unsigned short>(i * (sliceCount + 1) + j)); in CreateSphereGeometry()
54 result->indices.push_back(static_cast<unsigned short>((i + 1) * (sliceCount + 1) + j)); in CreateSphereGeometry()
56 static_cast<unsigned short>((i + 1) * (sliceCount + 1) + (j + 1))); in CreateSphereGeometry()
58 result->indices.push_back(static_cast<unsigned short>(i * (sliceCount + 1) + j)); in CreateSphereGeometry()
60 static_cast<unsigned short>((i + 1) * (sliceCount + 1) + (j + 1))); in CreateSphereGeometry()
[all …]
/device/google/contexthub/lib/nanohub/
Drsa.c114 uint32_t j, c; in biMulIterative() local
123 for (j = 0; j < RSA_LIMBS; j++) { in biMulIterative()
124 r = (uint64_t)a[step] * b[j] + c + ret[step + j]; in biMulIterative()
125 ret[step + j] = r; in biMulIterative()
130 for (j = step + RSA_LIMBS; j < RSA_LIMBS * 2; j++) { in biMulIterative()
131 r = (uint64_t)ret[j] + c; in biMulIterative()
132 ret[j] = r; in biMulIterative()
/device/generic/vulkan-cereal/base/
DSubAllocator_unittest.cpp119 for (size_t j = 0; j < fillCount; ++j) { in TEST() local
178 for (size_t j = 0; j < count; ++j) { in TEST() local
191 "alloc# " << j << in TEST()
262 for (uint32_t j = 0; j < numBufs; ++j) { in TEST() local
263 EXPECT_NE(bufs[j], buf); in TEST()
/device/generic/vulkan-cereal/third-party/angle/samples/gles1/
DFlatShading.cpp66 for (int j = 0; j < 6; j++) in draw() local
68 if ((i + j * 6) % 2 == 0) in draw()
79 glTranslatef(-0.7f + i * 0.3f, -0.7f + j * 0.3f, 0.0f); in draw()
81 glRotatef(mRotDeg + (5.0f * (6.0f * i + j)), 0.0f, 1.0f, 0.0f); in draw()
82 glRotatef(20.0f + (10.0f * (6.0f * i + j)), 1.0f, 0.0f, 0.0f); in draw()
/device/generic/vulkan-cereal/third-party/angle/src/tests/gl_tests/
DDrawBaseVertexVariantsTest.cpp115 for (size_t j = 0; j < indices.size(); j++) in DrawBaseVertexVariantsTest() local
117 mIndices[o + j] = vo + indices[j]; in DrawBaseVertexVariantsTest()
165 for (uint32_t j = 0; j < 6; j++) in DrawBaseVertexVariantsTest() local
167 mRegularIndices[oi + j] = mIndices[j] + ov; in DrawBaseVertexVariantsTest()
304 for (GLint j = 0; j < 4; j++) in updateVertexColorData() local

123456789