small simplification
This commit is contained in:
parent
010db0b1fc
commit
837372295d
@ -73,7 +73,8 @@
|
|||||||
#define Rf64(A) f64* rp; B r=m_f64arrc(&rp, A);
|
#define Rf64(A) f64* rp; B r=m_f64arrc(&rp, A);
|
||||||
|
|
||||||
static NOINLINE u8 iMakeEq(B* w, B* x, u8 we, u8 xe) {
|
static NOINLINE u8 iMakeEq(B* w, B* x, u8 we, u8 xe) {
|
||||||
B s = we<xe?*w:*x;
|
B* p = we<xe?w:x;
|
||||||
|
B s = *p;
|
||||||
SLOW2("bitarr expansion", *w, *x);
|
SLOW2("bitarr expansion", *w, *x);
|
||||||
switch(we|xe) { default: UD;
|
switch(we|xe) { default: UD;
|
||||||
case el_bit: *w = taga(cpyI8Arr(*w)); *x = taga(cpyI8Arr(*x)); return el_i8;
|
case el_bit: *w = taga(cpyI8Arr(*w)); *x = taga(cpyI8Arr(*x)); return el_i8;
|
||||||
@ -82,7 +83,7 @@
|
|||||||
case el_i32: s = taga(cpyI32Arr(s)); break;
|
case el_i32: s = taga(cpyI32Arr(s)); break;
|
||||||
case el_f64: s = taga(cpyF64Arr(s)); break;
|
case el_f64: s = taga(cpyF64Arr(s)); break;
|
||||||
}
|
}
|
||||||
*(we<xe?w:x) = s;
|
*p = s;
|
||||||
return we|xe;
|
return we|xe;
|
||||||
}
|
}
|
||||||
static NOINLINE B bit_sel1Fn(BBB2B f, B w, B x, bool bitX) { // consumes both
|
static NOINLINE B bit_sel1Fn(BBB2B f, B w, B x, bool bitX) { // consumes both
|
||||||
|
|||||||
@ -69,7 +69,8 @@
|
|||||||
|
|
||||||
|
|
||||||
static NOINLINE u8 aMakeEq(B* w, B* x, u8 we, u8 xe) { // returns el_MAX if failed
|
static NOINLINE u8 aMakeEq(B* w, B* x, u8 we, u8 xe) { // returns el_MAX if failed
|
||||||
B s = we<xe?*w:*x;
|
B* p = we<xe?w:x;
|
||||||
|
B s = *p;
|
||||||
u8 me = we>xe?we:xe;
|
u8 me = we>xe?we:xe;
|
||||||
if (elNum(we) & elNum(xe)) {
|
if (elNum(we) & elNum(xe)) {
|
||||||
switch(me) { default: UD;
|
switch(me) { default: UD;
|
||||||
@ -84,7 +85,7 @@ static NOINLINE u8 aMakeEq(B* w, B* x, u8 we, u8 xe) { // returns el_MAX if fail
|
|||||||
case el_c32: s = taga(cpyC32Arr(s)); break;
|
case el_c32: s = taga(cpyC32Arr(s)); break;
|
||||||
}
|
}
|
||||||
} else return el_MAX;
|
} else return el_MAX;
|
||||||
*(we<xe?w:x) = s;
|
*p = s;
|
||||||
return me;
|
return me;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user