summaryrefslogtreecommitdiffstatshomepage
path: root/py/intdivmod.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-22 20:34:22 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-22 20:34:22 +0000
commit4ab128bbee5d0b0d05fec897182eef6a3a2e629f (patch)
treea77e126adcea8ac1057e33bf528dee9be382851f /py/intdivmod.h
parent365274da13cc701e3e8f6c72a24dd4eb4083a88d (diff)
parent26a4506da7725ce88f05361214b705b157630e2c (diff)
downloadmicropython-4ab128bbee5d0b0d05fec897182eef6a3a2e629f.tar.gz
micropython-4ab128bbee5d0b0d05fec897182eef6a3a2e629f.zip
Merge branch 'master' of github.com:micropython/micropython
Diffstat (limited to 'py/intdivmod.h')
-rw-r--r--py/intdivmod.h4
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);