number 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/interval.c +8 -0
  2. metadata +1 -1
@@ -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;
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: number
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.1
5
+ version: 0.9.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jesse Sielaff