get small int that fits the range
(low, high)
| 31 | |
| 32 | |
| 33 | def _min_int(low, high): |
| 34 | """ get small int that fits the range """ |
| 35 | if high <= i1.max and low >= i1.min: |
| 36 | return int8 |
| 37 | if high <= i2.max and low >= i2.min: |
| 38 | return int16 |
| 39 | if high <= i4.max and low >= i4.min: |
| 40 | return int32 |
| 41 | return int64 |
| 42 | |
| 43 | |
| 44 | def _flip_dispatcher(m): |