number 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/interval.c +8 -0
- metadata +1 -1
data/ext/interval.c
CHANGED
@@ -323,6 +323,14 @@ Interval* interval_divide (Interval* a, Interval* b)
|
|
323
323
|
real_bounds_update(bounds, (Real*)real_divide(a->l, b->u, ROUND_NEAREST), a->L && b->R);
|
324
324
|
real_bounds_update(bounds, (Real*)real_divide(a->u, b->l, ROUND_NEAREST), a->R && b->L);
|
325
325
|
real_bounds_update(bounds, (Real*)real_divide(a->u, b->u, ROUND_NEAREST), a->R && b->R);
|
326
|
+
real_bounds_update(bounds, (Real*)real_divide(a->l, b->l, ROUND_DOWN), a->L && b->L);
|
327
|
+
real_bounds_update(bounds, (Real*)real_divide(a->l, b->u, ROUND_DOWN), a->L && b->R);
|
328
|
+
real_bounds_update(bounds, (Real*)real_divide(a->u, b->l, ROUND_DOWN), a->R && b->L);
|
329
|
+
real_bounds_update(bounds, (Real*)real_divide(a->u, b->u, ROUND_DOWN), a->R && b->R);
|
330
|
+
real_bounds_update(bounds, (Real*)real_divide(a->l, b->l, ROUND_UP), a->L && b->L);
|
331
|
+
real_bounds_update(bounds, (Real*)real_divide(a->l, b->u, ROUND_UP), a->L && b->R);
|
332
|
+
real_bounds_update(bounds, (Real*)real_divide(a->u, b->l, ROUND_UP), a->R && b->L);
|
333
|
+
real_bounds_update(bounds, (Real*)real_divide(a->u, b->u, ROUND_UP), a->R && b->R);
|
326
334
|
|
327
335
|
L = bounds->min_closed;
|
328
336
|
R = bounds->max_closed;
|