Skip to content

Commit 438c88d

Browse files
committed
Add arbitrary precision integer support.
Some functionality is still missing (eg and, or, bit shift), and some things are buggy (eg subtract).
1 parent 2077397 commit 438c88d

12 files changed

Lines changed: 1267 additions & 6 deletions

File tree

py/binary.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "mpconfig.h"
77
#include "qstr.h"
88
#include "obj.h"
9-
#include "objint.h"
109
#include "binary.h"
1110

1211
// Helpers to work with binary-encoded data

py/mpconfig.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
// Long int implementation
6969
#define MICROPY_LONGINT_IMPL_NONE (0)
7070
#define MICROPY_LONGINT_IMPL_LONGLONG (1)
71+
#define MICROPY_LONGINT_IMPL_MPZ (2)
7172

7273
#ifndef MICROPY_LONGINT_IMPL
7374
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_NONE)

0 commit comments

Comments
 (0)