SFrame 3.6
|
Namespace for the safe comparison functions. More...
Functions | |
bool | equal (double a, double b) |
Compare two FP numbers, working around x87 precision issues. | |
bool | equal (float a, float b) |
Compare two FP numbers, working around x87 precision issues. | |
bool | greater (double a, double b) |
Compare two FP numbers, working around x87 precision issues. | |
bool | greater (float a, float b) |
Compare two FP numbers, working around x87 precision issues. | |
bool | less (double a, double b) |
Compare two FP numbers, working around x87 precision issues. | |
bool | less (float a, float b) |
Compare two FP numbers, working around x87 precision issues. | |
bool | greater_equal (double a, double b) |
Compare two FP numbers, working around x87 precision issues. | |
bool | greater_equal (float a, float b) |
Compare two FP numbers, working around x87 precision issues. | |
bool | less_equal (double a, double b) |
Compare two FP numbers, working around x87 precision issues. | |
bool | less_equal (float a, float b) |
Compare two FP numbers, working around x87 precision issues. |
Namespace for the safe comparison functions.
The functions in this namespace can be used to implement "safe" comparisons between floating point numbers in all circumstances.
$Revision$ $Date$
bool CxxUtils::fpcompare::equal | ( | double | a, |
double | b | ||
) | [inline] |
Compare two FP numbers, working around x87 precision issues.
Definition at line 141 of file FPCompare.h.
References CXXUTILS_FPCOMPARE_VOLATILE.
Referenced by CxxUtils::fpcompare_fn::equalf::operator()(), and CxxUtils::fpcompare_fn::equal::operator()().
bool CxxUtils::fpcompare::equal | ( | float | a, |
float | b | ||
) | [inline] |
Compare two FP numbers, working around x87 precision issues.
Definition at line 153 of file FPCompare.h.
References CXXUTILS_FPCOMPARE_VOLATILE.
bool CxxUtils::fpcompare::greater | ( | float | a, |
float | b | ||
) | [inline] |
Compare two FP numbers, working around x87 precision issues.
Definition at line 177 of file FPCompare.h.
References CXXUTILS_FPCOMPARE_VOLATILE.
bool CxxUtils::fpcompare::greater | ( | double | a, |
double | b | ||
) | [inline] |
Compare two FP numbers, working around x87 precision issues.
Definition at line 165 of file FPCompare.h.
References CXXUTILS_FPCOMPARE_VOLATILE.
Referenced by CxxUtils::fpcompare_fn::greaterf::operator()(), and CxxUtils::fpcompare_fn::greater::operator()().
bool CxxUtils::fpcompare::greater_equal | ( | float | a, |
float | b | ||
) | [inline] |
Compare two FP numbers, working around x87 precision issues.
Definition at line 225 of file FPCompare.h.
References CXXUTILS_FPCOMPARE_VOLATILE.
bool CxxUtils::fpcompare::greater_equal | ( | double | a, |
double | b | ||
) | [inline] |
Compare two FP numbers, working around x87 precision issues.
Definition at line 213 of file FPCompare.h.
References CXXUTILS_FPCOMPARE_VOLATILE.
Referenced by CxxUtils::fpcompare_fn::greater_equalf::operator()(), and CxxUtils::fpcompare_fn::greater_equal::operator()().
bool CxxUtils::fpcompare::less | ( | double | a, |
double | b | ||
) | [inline] |
Compare two FP numbers, working around x87 precision issues.
Definition at line 189 of file FPCompare.h.
References CXXUTILS_FPCOMPARE_VOLATILE.
Referenced by CxxUtils::fpcompare_fn::lessf::operator()(), and CxxUtils::fpcompare_fn::less::operator()().
bool CxxUtils::fpcompare::less | ( | float | a, |
float | b | ||
) | [inline] |
Compare two FP numbers, working around x87 precision issues.
Definition at line 201 of file FPCompare.h.
References CXXUTILS_FPCOMPARE_VOLATILE.
bool CxxUtils::fpcompare::less_equal | ( | double | a, |
double | b | ||
) | [inline] |
Compare two FP numbers, working around x87 precision issues.
Definition at line 237 of file FPCompare.h.
References CXXUTILS_FPCOMPARE_VOLATILE.
Referenced by CxxUtils::fpcompare_fn::less_equalf::operator()(), and CxxUtils::fpcompare_fn::less_equal::operator()().
bool CxxUtils::fpcompare::less_equal | ( | float | a, |
float | b | ||
) | [inline] |
Compare two FP numbers, working around x87 precision issues.
Definition at line 249 of file FPCompare.h.
References CXXUTILS_FPCOMPARE_VOLATILE.