#include "src/base/SkSafeMath.h"
#include "tests/Test.h"
#include <cstddef>
#include <limits>
Go to the source code of this file.
◆ DEF_TEST()
DEF_TEST |
( |
SafeMath |
, |
|
|
r |
|
|
) |
| |
Definition at line 14 of file SafeMathTest.cpp.
14 {
16
17 {
18 size_t halfMax =
max >> 1;
19 size_t halfMaxPlus1 = halfMax + 1;
27 }
28
29 {
33 }
34
35 {
36 size_t bits = (
sizeof(size_t) * 8);
37 size_t halfBits =
bits / 2;
38 size_t sqrtMax =
max >> halfBits;
39 size_t sqrtMaxPlus1 = sqrtMax + 1;
47 }
48
49 {
53 }
54}
#define REPORTER_ASSERT(r, cond,...)
size_t add(size_t x, size_t y)
size_t mul(size_t x, size_t y)
static float max(float r, float g, float b)