MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / doF32ComP

Function doF32ComP

source/test/testFPU.cpp:658–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658void doF32ComP() {
659 F32ComP(0.0f, 0.0f, EQUAL);
660 F32ComP(-0.0f, 0.0f, EQUAL);
661 F32ComP(0.0f, -0.0f, EQUAL);
662
663 F32ComP(0.0f, POSITIVE_INFINITY, LESS);
664 F32ComP(POSITIVE_INFINITY, 0.0f, GREATER);
665 F32ComP(0.0f, NEGATIVE_INFINITY, GREATER);
666 F32ComP(NEGATIVE_INFINITY, 0.0f, LESS);
667 F32ComP(NEGATIVE_INFINITY, POSITIVE_INFINITY, LESS);
668 F32ComP(POSITIVE_INFINITY, 1.0f, GREATER);
669 F32ComP(POSITIVE_INFINITY, 2.0f, GREATER);
670 F32ComP(POSITIVE_INFINITY, POSITIVE_INFINITY, EQUAL);
671
672 F32ComP(TEST_NAN, 2.0f, UNORDERED);
673 F32ComP(TEST_NAN, TEST_NAN, UNORDERED);
674 F32ComP(-2.0f, TEST_NAN, UNORDERED);
675
676 F32ComP(0.0f, 1.0f, LESS);
677 F32ComP(1.0f, 0.0f, GREATER);
678 F32ComP(0.0f, -1.0f, GREATER);
679 F32ComP(-1.0f, 0.0f, LESS);
680 F32ComP(-1.0f, 1.0f, LESS);
681 F32ComP(1.0f, -1.0f, GREATER);
682 F32ComP(-1.0f, -1.0f, EQUAL);
683 F32ComP(1.0f, 1.0f, EQUAL);
684
685 F32ComP(100.01f, 0.001f, GREATER);
686}
687
688void testF32ComP() {
689 doF32ComP();

Callers 1

testF32ComPFunction · 0.85

Calls 1

F32ComPFunction · 0.85

Tested by

no test coverage detected