clean up asserts
This commit is contained in:
parent
e577dca32e
commit
59241d86ff
@ -147,23 +147,17 @@ B grOrd_c2(B t, B w, B x) { // assumes valid arguments
|
|||||||
}
|
}
|
||||||
|
|
||||||
B asrt_c1(B t, B x) {
|
B asrt_c1(B t, B x) {
|
||||||
if (isF64(x) && o2fu(x)==1) return x;
|
if (LIKELY(isF64(x) && o2fu(x)==1)) return x;
|
||||||
if (isF64(x)) thrM("Assertion error");
|
if (isF64(x)) thrM("Assertion error");
|
||||||
thr(x);
|
thr(x);
|
||||||
}
|
}
|
||||||
B asrt_c2(B t, B w, B x) {
|
B asrt_c2(B t, B w, B x) {
|
||||||
if (isF64(x) && o2fu(x)==1) { dec(w); return x; }
|
if (LIKELY(isF64(x) && o2fu(x)==1)) { dec(w); return x; }
|
||||||
dec(x);
|
dec(x);
|
||||||
thr(w);
|
thr(w);
|
||||||
}
|
}
|
||||||
B casrt_c1(B t, B x) {
|
|
||||||
if (isF64(x) && o2fu(x)==1) return x;
|
|
||||||
unwindCompiler();
|
|
||||||
thr(x);
|
|
||||||
}
|
|
||||||
B casrt_c2(B t, B w, B x) {
|
B casrt_c2(B t, B w, B x) {
|
||||||
if (isI32(x) && 1==(u32)x.u) { dec(w); return x; }
|
if (LIKELY(isF64(x) && o2fu(x)==1)) { dec(w); return x; }
|
||||||
if (isF64(x) && 1==x.f) { dec(w); return x; }
|
|
||||||
unwindCompiler();
|
unwindCompiler();
|
||||||
dec(x);
|
dec(x);
|
||||||
if (isArr(w) && a(w)->ia==2) {
|
if (isArr(w) && a(w)->ia==2) {
|
||||||
@ -179,6 +173,10 @@ B casrt_c2(B t, B w, B x) {
|
|||||||
base:
|
base:
|
||||||
thr(w);
|
thr(w);
|
||||||
}
|
}
|
||||||
|
B casrt_c1(B t, B x) {
|
||||||
|
if (LIKELY(isF64(x) && o2fu(x)==1)) return x;
|
||||||
|
casrt_c2(t, inc(x), x); UD;
|
||||||
|
}
|
||||||
|
|
||||||
B sys_c1(B t, B x);
|
B sys_c1(B t, B x);
|
||||||
B out_c1(B t, B x) {
|
B out_c1(B t, B x) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user