diff options
author | Rachel Dowdall <rjdowdall@gmail.com> | 2014-03-22 20:29:56 +0000 |
---|---|---|
committer | Rachel Dowdall <rjdowdall@gmail.com> | 2014-03-22 20:29:56 +0000 |
commit | 2d15deebdcf7d6fb8f78907e0c6ca9cb9c2aa000 (patch) | |
tree | 4dba583967542dd95ebdf3f62865f9bb56db2350 /py/intdivmod.h | |
parent | cde8631f15db9941986f8d04534e52462a76094b (diff) | |
download | micropython-2d15deebdcf7d6fb8f78907e0c6ca9cb9c2aa000.tar.gz micropython-2d15deebdcf7d6fb8f78907e0c6ca9cb9c2aa000.zip |
Fixed floor division on mp ints and small ints. Added a floordivide test case.
Diffstat (limited to 'py/intdivmod.h')
-rw-r--r-- | py/intdivmod.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/intdivmod.h b/py/intdivmod.h new file mode 100644 index 0000000000..7716bd21e9 --- /dev/null +++ b/py/intdivmod.h @@ -0,0 +1,4 @@ +// Functions for integer modulo and floor division + +machine_int_t python_modulo(machine_int_t dividend, machine_int_t divisor); +machine_int_t python_floor_divide(machine_int_t num, machine_int_t denom); |