Продолжение переименования
This commit is contained in:
parent
3b6efaafa9
commit
120e651517
19 changed files with 457 additions and 421 deletions
|
|
@ -22,7 +22,7 @@ void print_test_success();
|
|||
|
||||
void print_test_failed();
|
||||
|
||||
inline int test_fp32_are_equal(const float value1, const float value2, const float epsylon)
|
||||
inline int test_are_equal_fp32(const float value1, const float value2, const float epsylon)
|
||||
{
|
||||
if (-1.0f <= value1 && value1 <= 1.0f) {
|
||||
const float difference = value1 - value2;
|
||||
|
|
@ -36,7 +36,7 @@ inline int test_fp32_are_equal(const float value1, const float value2, const flo
|
|||
return value1 * (1.0f + epsylon) <= value2 && value2 * (1.0f + epsylon) <= value1;
|
||||
}
|
||||
|
||||
inline int test_fp64_are_equal(const double value1, const double value2, const double epsylon)
|
||||
inline int test_are_equal_fp64(const double value1, const double value2, const double epsylon)
|
||||
{
|
||||
if (-1.0 <= value1 && value1 <= 1.0) {
|
||||
const double difference = value1 - value2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue