Home
last modified time | relevance | path

Searched refs:halfMax (Results 1 – 2 of 2) sorted by relevance

/external/skqp/tests/
DSafeMathTest.cpp15 size_t halfMax = max >> 1; in DEF_TEST() local
16 size_t halfMaxPlus1 = halfMax + 1; in DEF_TEST()
18 REPORTER_ASSERT(r, safe.add(halfMax, halfMax) == 2 * halfMax); in DEF_TEST()
20 REPORTER_ASSERT(r, safe.add(halfMax, halfMaxPlus1) == max); in DEF_TEST()
/external/skia/tests/
DSafeMathTest.cpp15 size_t halfMax = max >> 1; in DEF_TEST() local
16 size_t halfMaxPlus1 = halfMax + 1; in DEF_TEST()
18 REPORTER_ASSERT(r, safe.add(halfMax, halfMax) == 2 * halfMax); in DEF_TEST()
20 REPORTER_ASSERT(r, safe.add(halfMax, halfMaxPlus1) == max); in DEF_TEST()