math.intervals: simplify interval-bitand.
parent
52123559f3
commit
f68df75b84
|
@ -422,11 +422,13 @@ PRIVATE>
|
||||||
to>> first 0 swap [a,b]
|
to>> first 0 swap [a,b]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
{
|
[
|
||||||
[ 2dup [ interval-negative? ] both? ]
|
[ min-lower-bound bit-weight neg ]
|
||||||
[ [ min-lower-bound bit-weight neg ] [ min-upper-bound ] 2bi [a,b] ]
|
[
|
||||||
}
|
2dup [ interval-negative? ] both?
|
||||||
[ [ min-lower-bound bit-weight neg ] [ max-upper-bound ] 2bi [a,b] ]
|
[ min-upper-bound ] [ max-upper-bound ] if
|
||||||
|
] 2bi [a,b]
|
||||||
|
]
|
||||||
} cond
|
} cond
|
||||||
] do-empty-interval ;
|
] do-empty-interval ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue