Numworks Epsilon  1.4.1
Graphing Calculator Operating System
objint.h File Reference
#include "py/mpz.h"
#include "py/obj.h"

Go to the source code of this file.

Classes

struct  _mp_obj_int_t
 

Typedefs

typedef struct _mp_obj_int_t mp_obj_int_t
 

Functions

size_t mp_int_format_size (size_t num_bits, int base, const char *prefix, char comma)
 
mp_obj_int_tmp_obj_int_new_mpz (void)
 
void mp_obj_int_print (const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind)
 
char * mp_obj_int_formatted (char **buf, size_t *buf_size, size_t *fmt_size, mp_const_obj_t self_in, int base, const char *prefix, char base_char, char comma)
 
char * mp_obj_int_formatted_impl (char **buf, size_t *buf_size, size_t *fmt_size, mp_const_obj_t self_in, int base, const char *prefix, char base_char, char comma)
 
mp_int_t mp_obj_int_hash (mp_obj_t self_in)
 
mp_obj_t mp_obj_int_from_bytes_impl (bool big_endian, size_t len, const byte *buf)
 
void mp_obj_int_to_bytes_impl (mp_obj_t self_in, bool big_endian, size_t len, byte *buf)
 
int mp_obj_int_sign (mp_obj_t self_in)
 
mp_obj_t mp_obj_int_unary_op (mp_unary_op_t op, mp_obj_t o_in)
 
mp_obj_t mp_obj_int_binary_op (mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_in)
 
mp_obj_t mp_obj_int_binary_op_extra_cases (mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_in)
 
mp_obj_t mp_obj_int_pow3 (mp_obj_t base, mp_obj_t exponent, mp_obj_t modulus)
 

Variables

const mp_obj_int_t mp_maxsize_obj
 

Typedef Documentation

◆ mp_obj_int_t

typedef struct _mp_obj_int_t mp_obj_int_t

Function Documentation

◆ mp_int_format_size()

size_t mp_int_format_size ( size_t  num_bits,
int  base,
const char *  prefix,
char  comma 
)

Definition at line 207 of file objint.c.

◆ mp_obj_int_binary_op()

mp_obj_t mp_obj_int_binary_op ( mp_binary_op_t  op,
mp_obj_t  lhs_in,
mp_obj_t  rhs_in 
)

Definition at line 321 of file objint.c.

◆ mp_obj_int_binary_op_extra_cases()

mp_obj_t mp_obj_int_binary_op_extra_cases ( mp_binary_op_t  op,
mp_obj_t  lhs_in,
mp_obj_t  rhs_in 
)

Definition at line 373 of file objint.c.

◆ mp_obj_int_formatted()

char* mp_obj_int_formatted ( char **  buf,
size_t buf_size,
size_t fmt_size,
mp_const_obj_t  self_in,
int  base,
const char *  prefix,
char  base_char,
char  comma 
)

Definition at line 222 of file objint.c.

◆ mp_obj_int_formatted_impl()

char* mp_obj_int_formatted_impl ( char **  buf,
size_t buf_size,
size_t fmt_size,
mp_const_obj_t  self_in,
int  base,
const char *  prefix,
char  base_char,
char  comma 
)

Definition at line 91 of file objint_mpz.c.

◆ mp_obj_int_from_bytes_impl()

mp_obj_t mp_obj_int_from_bytes_impl ( bool  big_endian,
size_t  len,
const byte buf 
)

Definition at line 46 of file objint_longlong.c.

◆ mp_obj_int_hash()

mp_int_t mp_obj_int_hash ( mp_obj_t  self_in)

◆ mp_obj_int_new_mpz()

mp_obj_int_t* mp_obj_int_new_mpz ( void  )

Definition at line 75 of file objint_mpz.c.

◆ mp_obj_int_pow3()

mp_obj_t mp_obj_int_pow3 ( mp_obj_t  base,
mp_obj_t  exponent,
mp_obj_t  modulus 
)

◆ mp_obj_int_print()

void mp_obj_int_print ( const mp_print_t print,
mp_obj_t  self_in,
mp_print_kind_t  kind 
)

Definition at line 177 of file objint.c.

◆ mp_obj_int_sign()

int mp_obj_int_sign ( mp_obj_t  self_in)

Definition at line 304 of file objint.c.

◆ mp_obj_int_to_bytes_impl()

void mp_obj_int_to_bytes_impl ( mp_obj_t  self_in,
bool  big_endian,
size_t  len,
byte buf 
)

Definition at line 60 of file objint_longlong.c.

◆ mp_obj_int_unary_op()

mp_obj_t mp_obj_int_unary_op ( mp_unary_op_t  op,
mp_obj_t  o_in 
)

Definition at line 316 of file objint.c.

Variable Documentation

◆ mp_maxsize_obj

const mp_obj_int_t mp_maxsize_obj