Definition at line 611 of file MathBench.cpp.
◆ Floor2IntBench()
Floor2IntBench::Floor2IntBench |
( |
bool |
sat | ) |
|
|
inline |
Definition at line 619 of file MathBench.cpp.
621
622 for (
int i = 0;
i < ARRAY; ++
i) {
624 }
625
627 fName = "floor2int_sat";
628 } else {
629 fName = "floor2int_undef";
630 }
631 }
static float SkBits2Float(uint32_t bits)
static float sat(float r, float g, float b)
◆ count()
virtual int Floor2IntBench::count |
( |
| ) |
|
|
inlinevirtual |
◆ isSuitableFor()
bool Floor2IntBench::isSuitableFor |
( |
Backend |
backend | ) |
|
|
inlineoverridevirtual |
◆ onDraw()
|
inlineoverrideprotectedvirtual |
Implements Benchmark.
Definition at line 643 of file MathBench.cpp.
643 {
644
645 unsigned accum = 0;
646
647 for (int j = 0; j < loops; ++j) {
648 int n = this->
count();
649 if (fSat) {
650 for (
int i = 0;
i < n; ++
i) {
652 }
653 } else {
654 for (
int i = 0;
i < n; ++
i) {
656 }
657 }
659 }
660 }
#define sk_float_floor2int_no_saturate(x)
#define sk_float_floor2int(x)
virtual void process(unsigned)
◆ onGetName()
const char * Floor2IntBench::onGetName |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ process()
virtual void Floor2IntBench::process |
( |
unsigned |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: