From 3716162e69145b1ad2fcb5ff05b4e62acfa02ae1 Mon Sep 17 00:00:00 2001 From: dzaima Date: Thu, 8 Aug 2024 23:30:02 +0300 Subject: [PATCH] use q_fbit more --- src/utils/bits.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/bits.c b/src/utils/bits.c index 89099c59..987d2c1f 100644 --- a/src/utils/bits.c +++ b/src/utils/bits.c @@ -37,7 +37,7 @@ NOINLINE B bit_sel(B b, B e0, B e1) { f64 f0 = o2fG(e0); f64 f1 = o2fG(e1); switch (t0) { default: UD; - case el_bit: if (f1==0||f1==1) goto t_bit; + case el_bit: if (q_fbit(f1)) goto t_bit; case el_i8: if (q_fi8(f1)) goto t_i8; if (q_fi16(f1)) goto t_i16; if (q_fi32(f1)) goto t_i32; goto t_f64; // not using fallthrough to allow deduplicating float→int conversion case el_i16: if (q_fi16(f1)) goto t_i16; if (q_fi32(f1)) goto t_i32; goto t_f64; case el_i32: if (q_fi32(f1)) goto t_i32; goto t_f64;