mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
ecf5b77123
Previous overflow test was inadequate.
6 lines
272 B
C
6 lines
272 B
C
// Functions for small integer arithmetic
|
|
|
|
bool mp_small_int_mul_overflow(machine_int_t x, machine_int_t y);
|
|
machine_int_t mp_small_int_modulo(machine_int_t dividend, machine_int_t divisor);
|
|
machine_int_t mp_small_int_floor_divide(machine_int_t num, machine_int_t denom);
|