Go to the source code of this file.
|
static void | fuzz_cubic_real_roots (double A, double B, double C, double D) |
|
static void | fuzz_cubic_roots_valid_t (double A, double B, double C, double D) |
|
static void | fuzz_cubic_roots_binary_search (double A, double B, double C, double D) |
|
| DEF_FUZZ (CubicRoots, fuzz) |
|
◆ DEF_FUZZ()
DEF_FUZZ |
( |
CubicRoots |
, |
|
|
fuzz |
|
|
) |
| |
Definition at line 75 of file FuzzCubicRoots.cpp.
75 {
81
82
83
84
85
87
89
91}
static void fuzz_cubic_roots_binary_search(double A, double B, double C, double D)
static void fuzz_cubic_real_roots(double A, double B, double C, double D)
static void fuzz_cubic_roots_valid_t(double A, double B, double C, double D)
◆ fuzz_cubic_real_roots()
static void fuzz_cubic_real_roots |
( |
double |
A, |
|
|
double |
B, |
|
|
double |
C, |
|
|
double |
D |
|
) |
| |
|
static |
Definition at line 17 of file FuzzCubicRoots.cpp.
17 {
21 for (
int i = 0;
i < numSolutions;
i++) {
23 }
24
25 if (numSolutions >= 2) {
27 }
28 if (numSolutions == 3) {
31 }
32}
#define SkASSERT_RELEASE(cond)
bool sk_doubles_nearly_equal_ulps(double a, double b, uint8_t maxUlpsDiff=16)
static int RootsReal(double A, double B, double C, double D, double solution[3])
SINT bool isfinite(const Vec< N, T > &v)
◆ fuzz_cubic_roots_binary_search()
static void fuzz_cubic_roots_binary_search |
( |
double |
A, |
|
|
double |
B, |
|
|
double |
C, |
|
|
double |
D |
|
) |
| |
|
static |
Definition at line 53 of file FuzzCubicRoots.cpp.
53 {
57 for (
int i = 0;
i < numSolutions;
i++) {
62
64 }
65
66 if (numSolutions >= 2) {
68 }
69 if (numSolutions == 3) {
72 }
73}
static int BinarySearchRootsValidT(double A, double B, double C, double D, double solution[3])
static double EvalAt(double A, double B, double C, double D, double t)
SIN Vec< N, float > abs(const Vec< N, float > &x)
◆ fuzz_cubic_roots_valid_t()
static void fuzz_cubic_roots_valid_t |
( |
double |
A, |
|
|
double |
B, |
|
|
double |
C, |
|
|
double |
D |
|
) |
| |
|
static |
Definition at line 34 of file FuzzCubicRoots.cpp.
34 {
38 for (
int i = 0;
i < numSolutions;
i++) {
42 }
43
44 if (numSolutions >= 2) {
46 }
47 if (numSolutions == 3) {
50 }
51}
static int RootsValidT(double A, double B, double C, double D, double solution[3])