py/emitnative: Implement floor-division and modulo for viper emitter.

This commit is contained in:
Damien George
2017-10-11 18:54:34 +11:00
parent 1b7d6a7951
commit a3afa8cfc4
5 changed files with 67 additions and 0 deletions

View File

@@ -29,6 +29,7 @@
#include <assert.h>
#include "py/runtime.h"
#include "py/smallint.h"
#include "py/emitglue.h"
#include "py/bc.h"
@@ -170,6 +171,8 @@ void *const mp_fun_table[MP_F_NUMBER_OF] = {
mp_obj_new_cell,
mp_make_closure_from_raw_code,
mp_setup_code_state,
mp_small_int_floor_divide,
mp_small_int_modulo,
};
/*