Flutter Engine
The Flutter Engine
|
#include "include/core/SkPoint.h"
#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkDebug.h"
#include "include/private/base/SkFixed.h"
#include "include/private/base/SkFloatingPoint.h"
#include "include/private/base/SkMath.h"
#include "include/private/base/SkTPin.h"
#include "src/base/SkEndian.h"
#include "src/base/SkHalf.h"
#include "src/base/SkMathPriv.h"
#include "src/base/SkRandom.h"
#include "tests/Test.h"
#include <array>
#include <cinttypes>
#include <cmath>
#include <cstddef>
#include <cstdint>
Go to the source code of this file.
Classes | |
struct | PairRec< T > |
Functions | |
static void | test_clz (skiatest::Reporter *reporter) |
static void | test_ctz (skiatest::Reporter *reporter) |
static float | sk_fsel (float pred, float result_ge, float result_lt) |
static float | fast_floor (float x) |
static float | std_floor (float x) |
static void | test_floor_value (skiatest::Reporter *reporter, float value) |
static void | test_floor (skiatest::Reporter *reporter) |
static float | float_blend (int src, int dst, float unit) |
static int | blend31 (int src, int dst, int a31) |
static int | blend31_slow (int src, int dst, int a31) |
static int | blend31_round (int src, int dst, int a31) |
static int | blend31_old (int src, int dst, int a31) |
static void | test_blend31 () |
static void | check_length (skiatest::Reporter *reporter, const SkPoint &p, SkScalar targetLen) |
template<typename T > | |
static void | unittest_isfinite (skiatest::Reporter *reporter) |
static void | unittest_half (skiatest::Reporter *reporter) |
template<typename RSqrtFn > | |
static void | test_rsqrt (skiatest::Reporter *reporter, RSqrtFn rsqrt) |
static void | test_muldiv255 (skiatest::Reporter *reporter) |
static void | test_muldiv255ceiling (skiatest::Reporter *reporter) |
static void | test_copysign (skiatest::Reporter *reporter) |
static void | huge_vector_normalize (skiatest::Reporter *reporter) |
DEF_TEST (PopCount, reporter) | |
DEF_TEST (NthSet, reporter) | |
DEF_TEST (Math, reporter) | |
DEF_TEST (TestEndian, reporter) | |
template<typename T > | |
static void | test_divmod (skiatest::Reporter *r) |
DEF_TEST (divmod_u8, r) | |
DEF_TEST (divmod_u16, r) | |
DEF_TEST (divmod_u32, r) | |
DEF_TEST (divmod_u64, r) | |
DEF_TEST (divmod_s8, r) | |
DEF_TEST (divmod_s16, r) | |
DEF_TEST (divmod_s32, r) | |
DEF_TEST (divmod_s64, r) | |
static void | test_nextsizepow2 (skiatest::Reporter *r, size_t test, size_t expectedAns) |
DEF_TEST (GrNextSizePow2, reporter) | |
DEF_TEST (FloatSaturate32, reporter) | |
DEF_TEST (FloatSaturate64, reporter) | |
DEF_TEST (DoubleSaturate32, reporter) | |
Variables | |
static int(* | blend_functions [])(int, int, int) |
Definition at line 108 of file MathTest.cpp.
Definition at line 125 of file MathTest.cpp.
Definition at line 119 of file MathTest.cpp.
Definition at line 113 of file MathTest.cpp.
|
static |
Definition at line 172 of file MathTest.cpp.
DEF_TEST | ( | divmod_s16 | , |
r | |||
) |
Definition at line 695 of file MathTest.cpp.
DEF_TEST | ( | divmod_s32 | , |
r | |||
) |
Definition at line 699 of file MathTest.cpp.
DEF_TEST | ( | divmod_s64 | , |
r | |||
) |
Definition at line 703 of file MathTest.cpp.
DEF_TEST | ( | divmod_s8 | , |
r | |||
) |
Definition at line 691 of file MathTest.cpp.
DEF_TEST | ( | divmod_u16 | , |
r | |||
) |
Definition at line 679 of file MathTest.cpp.
DEF_TEST | ( | divmod_u32 | , |
r | |||
) |
Definition at line 683 of file MathTest.cpp.
DEF_TEST | ( | divmod_u64 | , |
r | |||
) |
Definition at line 687 of file MathTest.cpp.
DEF_TEST | ( | divmod_u8 | , |
r | |||
) |
Definition at line 675 of file MathTest.cpp.
DEF_TEST | ( | DoubleSaturate32 | , |
reporter | |||
) |
Definition at line 793 of file MathTest.cpp.
DEF_TEST | ( | FloatSaturate32 | , |
reporter | |||
) |
Definition at line 745 of file MathTest.cpp.
DEF_TEST | ( | FloatSaturate64 | , |
reporter | |||
) |
Definition at line 771 of file MathTest.cpp.
DEF_TEST | ( | GrNextSizePow2 | , |
reporter | |||
) |
Definition at line 714 of file MathTest.cpp.
DEF_TEST | ( | Math | , |
reporter | |||
) |
Definition at line 496 of file MathTest.cpp.
DEF_TEST | ( | NthSet | , |
reporter | |||
) |
Definition at line 439 of file MathTest.cpp.
DEF_TEST | ( | PopCount | , |
reporter | |||
) |
Definition at line 399 of file MathTest.cpp.
DEF_TEST | ( | TestEndian | , |
reporter | |||
) |
Definition at line 602 of file MathTest.cpp.
|
static |
Definition at line 72 of file MathTest.cpp.
Definition at line 104 of file MathTest.cpp.
|
static |
Definition at line 384 of file MathTest.cpp.
|
static |
Definition at line 68 of file MathTest.cpp.
|
static |
Definition at line 78 of file MathTest.cpp.
|
static |
Definition at line 138 of file MathTest.cpp.
|
static |
Definition at line 28 of file MathTest.cpp.
|
static |
Definition at line 346 of file MathTest.cpp.
|
static |
Definition at line 47 of file MathTest.cpp.
|
static |
Definition at line 635 of file MathTest.cpp.
|
static |
Definition at line 91 of file MathTest.cpp.
|
static |
Definition at line 82 of file MathTest.cpp.
|
static |
Definition at line 312 of file MathTest.cpp.
|
static |
Definition at line 333 of file MathTest.cpp.
|
static |
Definition at line 707 of file MathTest.cpp.
|
static |
Definition at line 278 of file MathTest.cpp.
|
static |
Definition at line 222 of file MathTest.cpp.
|
static |
Definition at line 184 of file MathTest.cpp.
Definition at line 131 of file MathTest.cpp.