OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:nextU
(Results
1 - 25
of
39
) sorted by null
1
2
/external/skia/include/utils/
SkRandom.h
29
uint32_t
nextU
() { uint32_t r = fSeed * kMul + kAdd; fSeed = r; return r; }
33
int32_t nextS() { return (int32_t)this->
nextU
(); }
37
U16CPU nextU16() { return this->
nextU
() >> 16; }
48
return (float)(this->
nextU
() * 2.32830644e-10);
64
return this->
nextU
() >> (32 - bitCount);
74
return this->
nextU
();
76
return min + this->
nextU
() % range;
91
SkFixed nextUFixed1() { return this->
nextU
() >> 16; }
117
bool nextBool() { return this->
nextU
() >= 0x80000000; }
130
a->set(this->nextS(), this->
nextU
());
[
all
...]
/external/skia/legacy/include/core/
SkRandom.h
29
uint32_t
nextU
() { uint32_t r = fSeed * kMul + kAdd; fSeed = r; return r; }
33
int32_t nextS() { return (int32_t)this->
nextU
(); }
37
U16CPU nextU16() { return this->
nextU
() >> 16; }
49
return this->
nextU
() >> (32 - bitCount);
57
return min + this->
nextU
() % (max - min + 1);
63
SkFixed nextUFixed1() { return this->
nextU
() >> 16; }
84
a->set(this->nextS(), this->
nextU
());
/external/skia/bench/
RTreeBench.cpp
111
query.fLeft = rand.
nextU
() % GENERATE_EXTENTS;
112
query.fTop = rand.
nextU
() % GENERATE_EXTENTS;
117
query.fLeft = rand.
nextU
() % GENERATE_EXTENTS;
118
query.fTop = rand.
nextU
() % GENERATE_EXTENTS;
130
query.fLeft = rand.
nextU
() % GENERATE_EXTENTS;
131
query.fTop = rand.
nextU
() % GENERATE_EXTENTS;
132
query.fRight = query.fLeft + 1 + rand.
nextU
() % (GENERATE_EXTENTS / 2);
133
query.fBottom = query.fTop + 1 + rand.
nextU
() % (GENERATE_EXTENTS / 2);
165
out.fLeft = rand.
nextU
() % GENERATE_EXTENTS;
166
out.fTop = rand.
nextU
() % GENERATE_EXTENTS
[
all
...]
RectBench.cpp
33
int x = rand.
nextU
() % W;
34
int y = rand.
nextU
() % H;
35
int w = rand.
nextU
() % W;
36
int h = rand.
nextU
() % H;
44
fColors[i] = rand.
nextU
() | 0xFF808080;
259
alpha = rand.
nextU
() & 255;
RegionBench.cpp
86
int x = rand.
nextU
() % W;
87
int y = rand.
nextU
() % H;
88
int w = rand.
nextU
() % W;
89
int h = rand.
nextU
() % H;
RegionContainBench.cpp
33
int w = rand.
nextU
() % W;
PathIterBench.cpp
18
int n = rand.
nextU
() & 3;
ChecksumBench.cpp
38
fData[i] = rand.
nextU
();
VertBench.cpp
74
fColors[i] = rand.
nextU
() | (0xFF << 24);
PictureRecordBench.cpp
148
paint.setColor(rand.
nextU
());
SortBench.cpp
34
array[i] = rand.
nextU
() % mod;
AAClipBench.cpp
149
paint.setColor(0xff000000 | fRandom.
nextU
());
/external/skia/tests/
StreamTest.cpp
19
*p++ = (char)(rand.
nextU
() >> 8);
32
int size = rand.
nextU
() % MAX_SIZE;
37
int bufferSize = 1 + (rand.
nextU
() & 0xFFFF);
43
int s = 17 + (rand.
nextU
() & 0xFFFF);
68
copyPtr += buff.read(copyPtr, rand.
nextU
() & 15);
RegionTest.cpp
102
int x = rand.
nextU
() % W;
103
int y = rand.
nextU
() % H;
104
int w = rand.
nextU
() % W;
105
int h = rand.
nextU
() % H;
199
rect->set(rand.
nextU
() >> shift, rand.
nextU
() >> shift,
200
rand.
nextU
() >> shift, rand.
nextU
() >> shift);
ClampRangeTest.cpp
116
int count = rand.
nextU
() % 1000 + 1;
125
int count = rand.
nextU
() % 1000 + 1;
PackBitsTest.cpp
20
buffer[i] = (uint16_t)gRand.
nextU
();
70
buffer[i] = (uint8_t)((gRand.
nextU
() >> 8) & 0x3);
115
size_t skip = gRand.
nextU
() % size;
116
size_t write = gRand.
nextU
() % size;
ColorFilterTest.cpp
41
SkColor color = rand.
nextU
();
AAClipTest.cpp
93
int w = rand.
nextU
() % n;
94
int h = rand.
nextU
() % n;
99
int count = rand.
nextU
() % 20;
236
r->setXYWH(0, 0, rand.
nextU
() % N, rand.
nextU
() % N);
237
int dx = rand.
nextU
() % (2*N);
238
int dy = rand.
nextU
() % (2*N);
ColorTest.cpp
154
SkColor colorSrc = r.
nextU
();
155
SkColor colorDst = r.
nextU
();
171
SkColor colorSrc = r.
nextU
();
172
SkColor colorDst = r.
nextU
();
GLProgramsTest.cpp
24
// SkRandoms
nextU
() values have patterns in the low bits
25
// So using
nextU
() % array_count might never take some values.
39
sk_random.setSeed(random->
nextU
());
DrawBitmapRectTest.cpp
33
size->set(rand.
nextU
() & 0xFFFF, rand.
nextU
() & 0xFFFF);
MathTest.cpp
178
data.fSignBitInt = rand.
nextU
();
276
int ival = rand.
nextU
() & 0xFFFFFF;
543
SkFract x = rand.
nextU
() >> 1;
/external/skia/gm/
circles.cpp
161
SkColor color = rand.
nextU
();
182
SkColor color = rand.
nextU
();
degeneratesegments.cpp
320
StyleAndName style = gStyles[(rand.
nextU
() >> 16) % numStyles];
321
CapAndName cap = gCaps[(rand.
nextU
() >> 16) % numCaps];
322
FillAndName fill = gFills[(rand.
nextU
() >> 16) % numFills];
324
unsigned s1 = (rand.
nextU
() >> 16) % numSegments;
325
unsigned s2 = (rand.
nextU
() >> 16) % numSegments;
326
unsigned s3 = (rand.
nextU
() >> 16) % numSegments;
327
unsigned s4 = (rand.
nextU
() >> 16) % numSegments;
328
unsigned s5 = (rand.
nextU
() >> 16) % numSegments;
emptypath.cpp
93
SkColor color = rand.
nextU
();
Completed in 99 milliseconds
1
2