Searched refs:iround (Results 1 - 9 of 9) sorted by relevance
/external/swiftshader/src/Renderer/ |
H A D | TextureStage.cpp | 95 short r = iround(4095 * constantColor.r); 96 short g = iround(4095 * constantColor.g); 97 short b = iround(4095 * constantColor.b); 98 short a = iround(4095 * constantColor.a); 113 uniforms.bumpmapMatrix4W[element / 2][element % 2][0] = iround(4095 * value); 114 uniforms.bumpmapMatrix4W[element / 2][element % 2][1] = iround(4095 * value); 115 uniforms.bumpmapMatrix4W[element / 2][element % 2][2] = iround(4095 * value); 116 uniforms.bumpmapMatrix4W[element / 2][element % 2][3] = iround(4095 * value); 121 short scale = iround(4095 * value); 128 short offset = iround(409 [all...] |
H A D | PixelProcessor.cpp | 99 short x = iround(4095 * clamp(value[0], -1.0f, 1.0f)); 100 short y = iround(4095 * clamp(value[1], -1.0f, 1.0f)); 101 short z = iround(4095 * clamp(value[2], -1.0f, 1.0f)); 102 short w = iround(4095 * clamp(value[3], -1.0f, 1.0f)); 679 short textureFactorR = iround(4095 * textureFactor.r); 680 short textureFactorG = iround(4095 * textureFactor.g); 681 short textureFactorB = iround(4095 * textureFactor.b); 682 short textureFactorA = iround(4095 * textureFactor.a); 708 short blendConstantR = iround(65535 * blendConstant.r); 709 short blendConstantG = iround(6553 [all...] |
H A D | Sampler.cpp | 294 short r = iround(0xFFFF * borderColor.r); 295 short g = iround(0xFFFF * borderColor.g); 296 short b = iround(0xFFFF * borderColor.b); 297 short a = iround(0xFFFF * borderColor.a);
|
H A D | Color.hpp | 140 r = iround(clamp(c.r * 4095.0f, -4096.0f, 4095.0f)); 141 g = iround(clamp(c.g * 4095.0f, -4096.0f, 4095.0f)); 142 b = iround(clamp(c.b * 4095.0f, -4096.0f, 4095.0f)); 143 a = iround(clamp(c.a * 4095.0f, -4096.0f, 4095.0f));
|
H A D | Renderer.cpp | 1965 triangle.v1.X += iround(16 * 0.5f * pSize); 1966 triangle.v2.Y -= iround(16 * 0.5f * pSize) * (data.Hx16[0] > 0.0f ? 1 : -1); // Both Direct3D and OpenGL expect (0, 0) in the top-left corner
|
/external/skia/tests/ |
H A D | MathTest.cpp | 355 int iround = SkMulDiv255Round(a, b); local 358 REPORTER_ASSERT(reporter, iround == round); 361 REPORTER_ASSERT(reporter, itrunc <= iround); 362 REPORTER_ASSERT(reporter, iround <= a); 363 REPORTER_ASSERT(reporter, iround <= b);
|
/external/skqp/tests/ |
H A D | MathTest.cpp | 355 int iround = SkMulDiv255Round(a, b); local 358 REPORTER_ASSERT(reporter, iround == round); 361 REPORTER_ASSERT(reporter, itrunc <= iround); 362 REPORTER_ASSERT(reporter, iround <= a); 363 REPORTER_ASSERT(reporter, iround <= b);
|
/external/swiftshader/src/Common/ |
H A D | Math.hpp | 89 inline int iround(float x) function in namespace:sw
|
/external/swiftshader/src/Shader/ |
H A D | SamplerCore.cpp | 2091 const UShort4 yY = UShort4(iround(Yy * 0x4000)); 2092 const UShort4 rV = UShort4(iround(Rv * 0x4000)); 2093 const UShort4 gU = UShort4(iround(-Gu * 0x4000)); 2094 const UShort4 gV = UShort4(iround(-Gv * 0x4000)); 2095 const UShort4 bU = UShort4(iround(Bu * 0x4000)); 2097 const UShort4 r0 = UShort4(iround(-R0 * 0x4000)); 2098 const UShort4 g0 = UShort4(iround(G0 * 0x4000)); 2099 const UShort4 b0 = UShort4(iround(-B0 * 0x4000));
|
Completed in 281 milliseconds