Go to the source code of this file.
◆ gUniqueGlyphIDs_Sentinel
#define gUniqueGlyphIDs_Sentinel 0xFFFF |
◆ kMaxHashBits
◆ kMaxHashCount
◆ HasherProc
typedef uint32_t(* HasherProc) (uint32_t) |
◆ count_collisions()
static int count_collisions |
( |
const uint16_t |
array[], |
|
|
int |
count, |
|
|
HasherProc |
proc, |
|
|
unsigned |
hashMask |
|
) |
| |
|
static |
Definition at line 81 of file FontCacheBench.cpp.
82 {
85
86 int collisions = 0;
88 int index = proc(array[
i]) & hashMask;
89 collisions +=
table[index];
91 }
92 return collisions;
93}
sk_bzero(glyphs, sizeof(glyphs))
◆ count_glyphs()
static int count_glyphs |
( |
const uint16_t |
start[] | ) |
|
|
static |
Definition at line 22 of file FontCacheBench.cpp.
22 {
23 const uint16_t* curr =
start;
25 curr += 1;
26 }
27 return static_cast<int>(curr -
start);
28}
#define gUniqueGlyphIDs_Sentinel
◆ dump_array()
static void dump_array |
( |
const uint16_t |
array[], |
|
|
int |
count |
|
) |
| |
|
static |
Definition at line 95 of file FontCacheBench.cpp.
95 {
98 }
100}
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
◆ hasher0()
static uint32_t hasher0 |
( |
uint32_t |
value | ) |
|
|
static |
◆ rotr()
static uint32_t rotr |
( |
uint32_t |
value, |
|
|
unsigned |
bits |
|
) |
| |
|
static |
◆ fHasher
◆ fName
const struct { ... } gRec[] |
Initial value:= {
}
static uint32_t hasher0(uint32_t value)
static uint32_t Mix(uint32_t hash)