- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ternary (0.16 sec)
-
src/cmd/compile/internal/ssagen/ssa.go
case ir.OMIN: // a < x ? a : x return s.ternary(s.newValue2(lt, types.Types[types.TBOOL], a, x), a, x) case ir.OMAX: // x < a ? a : x return s.ternary(s.newValue2(lt, types.Types[types.TBOOL], x, a), a, x) } panic("unreachable") }) } // ternary emits code to evaluate cond ? x : y. func (s *state) ternary(cond, x, y *ssa.Value) *ssa.Value {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0)