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

Function doF32Com

source/test/testFPU.cpp:620–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618}
619
620void doF32Com() {
621 F32Com(0.0f, 0.0f, EQUAL);
622 F32Com(-0.0f, 0.0f, EQUAL);
623 F32Com(0.0f, -0.0f, EQUAL);
624
625 F32Com(0.0f, POSITIVE_INFINITY, LESS);
626 F32Com(POSITIVE_INFINITY, 0.0f, GREATER);
627 F32Com(0.0f, NEGATIVE_INFINITY, GREATER);
628 F32Com(NEGATIVE_INFINITY, 0.0f, LESS);
629 F32Com(NEGATIVE_INFINITY, POSITIVE_INFINITY, LESS);
630 F32Com(POSITIVE_INFINITY, 1.0f, GREATER);
631 F32Com(POSITIVE_INFINITY, 2.0f, GREATER);
632 F32Com(POSITIVE_INFINITY, POSITIVE_INFINITY, EQUAL);
633
634 F32Com(TEST_NAN, 2.0f, UNORDERED);
635 F32Com(TEST_NAN, TEST_NAN, UNORDERED);
636 F32Com(-2.0f, TEST_NAN, UNORDERED);
637
638 F32Com(0.0f, 1.0f, LESS);
639 F32Com(1.0f, 0.0f, GREATER);
640 F32Com(0.0f, -1.0f, GREATER);
641 F32Com(-1.0f, 0.0f, LESS);
642 F32Com(-1.0f, 1.0f, LESS);
643 F32Com(1.0f, -1.0f, GREATER);
644 F32Com(-1.0f, -1.0f, EQUAL);
645 F32Com(1.0f, 1.0f, EQUAL);
646
647 F32Com(100.01f, 0.001f, GREATER);
648}
649
650void testF32Com() {
651 doF32Com();

Callers 1

testF32ComFunction · 0.85

Calls 1

F32ComFunction · 0.85

Tested by

no test coverage detected