MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / parse_fast_math

Function parse_fast_math

tools/alive_parser.cpp:644–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642}
643
644static FastMathFlags parse_fast_math(token op_token) {
645 FastMathFlags fmath;
646 while (true) {
647 if (tokenizer.consumeIf(NNAN)) {
648 fmath.flags |= FastMathFlags::NNaN;
649 } else if (tokenizer.consumeIf(NINF)) {
650 fmath.flags |= FastMathFlags::NInf;
651 } else if (tokenizer.consumeIf(NSZ)) {
652 fmath.flags |= FastMathFlags::NSZ;
653 } else {
654 break;
655 }
656 }
657 return fmath;
658}
659
660
661static unsigned parse_binop_flags(token op_token) {

Callers 5

parse_fp_binopFunction · 0.85
parse_fp_unaryopFunction · 0.85
parse_fp_ternaryFunction · 0.85
parse_fp_conversionopFunction · 0.85
parse_fcmpFunction · 0.85

Calls 1

consumeIfMethod · 0.80

Tested by

no test coverage detected