Home
last modified time | relevance | path

Searched refs:kDivisor (Results 1 – 5 of 5) sorted by relevance

/external/webrtc/rtc_base/numerics/
Dsequence_number_util_unittest.cc134 const uint8_t kDivisor = 211; in TEST_F() local
136 for (uint8_t i = 0; i < kDivisor - 1; ++i) { in TEST_F()
137 ASSERT_EQ(0, (ForwardDiff<uint8_t, kDivisor>(i, i))); in TEST_F()
138 ASSERT_EQ(1, (ForwardDiff<uint8_t, kDivisor>(i, i + 1))); in TEST_F()
139 ASSERT_EQ(kDivisor - 1, (ForwardDiff<uint8_t, kDivisor>(i + 1, i))); in TEST_F()
142 for (uint8_t i = 1; i < kDivisor; ++i) { in TEST_F()
143 ASSERT_EQ(i, (ForwardDiff<uint8_t, kDivisor>(0, i))); in TEST_F()
144 ASSERT_EQ(kDivisor - i, (ForwardDiff<uint8_t, kDivisor>(i, 0))); in TEST_F()
149 const uint8_t kDivisor = 241; in TEST_F() local
151 for (uint8_t i = 0; i < kDivisor - 1; ++i) { in TEST_F()
[all …]
/external/skia/src/gpu/gl/
DGrGLOpsRenderPass.cpp140 static constexpr int kDivisor = 1; in bindInstanceBuffer() local
143 kDivisor); in bindInstanceBuffer()
158 static constexpr int kDivisor = 0; in bindVertexBuffer() local
161 kDivisor); in bindVertexBuffer()
/external/angle/src/libANGLE/renderer/metal/shaders/
Dcopy_buffer.metal1023 constexpr float kDivisor = 1.0f / (1 << 16);
1024 color.r = bytesToInt<int>(buffer, bufferOffset) * kDivisor;
1108 constexpr float kDivisor = 1.0f / (1 << 16);
1109 color.r = bytesToInt<int>(buffer, bufferOffset) * kDivisor;
1110 color.g = bytesToInt<int>(buffer, bufferOffset + 4) * kDivisor;
1172 constexpr float kDivisor = 1.0f / (1 << 16);
1173 color.r = bytesToInt<int>(buffer, bufferOffset) * kDivisor;
1174 color.g = bytesToInt<int>(buffer, bufferOffset + 4) * kDivisor;
1175 color.b = bytesToInt<int>(buffer, bufferOffset + 8) * kDivisor;
1244 constexpr float kDivisor = 1.0f / (1 << 16);
[all …]
Dmtl_default_shaders_src_autogen.inc2624 constexpr float kDivisor = 1.0f / (1 << 16);
2625 color.r = bytesToInt<int>(buffer, bufferOffset) * kDivisor;
2709 constexpr float kDivisor = 1.0f / (1 << 16);
2710 color.r = bytesToInt<int>(buffer, bufferOffset) * kDivisor;
2711 color.g = bytesToInt<int>(buffer, bufferOffset + 4) * kDivisor;
2773 constexpr float kDivisor = 1.0f / (1 << 16);
2774 color.r = bytesToInt<int>(buffer, bufferOffset) * kDivisor;
2775 color.g = bytesToInt<int>(buffer, bufferOffset + 4) * kDivisor;
2776 color.b = bytesToInt<int>(buffer, bufferOffset + 8) * kDivisor;
2845 constexpr float kDivisor = 1.0f / (1 << 16);
[all …]
/external/skqp/src/gpu/gl/
DGrGLGpu.cpp2090 static constexpr int kDivisor = 0; in setupGeometry() local
2092 vertexStride, bufferOffset + attrib.fOffset, kDivisor); in setupGeometry()
2102 static constexpr int kDivisor = 1; in setupGeometry() local
2105 kDivisor); in setupGeometry()