Numworks Epsilon  1.4.1
Graphing Calculator Operating System
objint_mpz.c File Reference
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "py/parsenumbase.h"
#include "py/smallint.h"
#include "py/objint.h"
#include "py/runtime.h"

Go to the source code of this file.

Functions

mp_obj_int_tmp_obj_int_new_mpz (void)
 
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_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_new_int (mp_int_t value)
 
mp_obj_t mp_obj_new_int_from_ll (long long val)
 
mp_obj_t mp_obj_new_int_from_ull (unsigned long long val)
 
mp_obj_t mp_obj_new_int_from_uint (mp_uint_t value)
 
mp_obj_t mp_obj_new_int_from_str_len (const char **str, size_t len, bool neg, unsigned int base)
 
mp_int_t mp_obj_int_get_truncated (mp_const_obj_t self_in)
 
mp_int_t mp_obj_int_get_checked (mp_const_obj_t self_in)
 

Function Documentation

◆ 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 163 of file objint_mpz.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 108 of file objint_mpz.c.

◆ mp_obj_int_get_checked()

mp_int_t mp_obj_int_get_checked ( mp_const_obj_t  self_in)

Definition at line 401 of file objint_mpz.c.

◆ mp_obj_int_get_truncated()

mp_int_t mp_obj_int_get_truncated ( mp_const_obj_t  self_in)

Definition at line 391 of file objint_mpz.c.

◆ 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_sign()

int mp_obj_int_sign ( mp_obj_t  self_in)

Definition at line 121 of file objint_mpz.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 114 of file objint_mpz.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 142 of file objint_mpz.c.

◆ mp_obj_new_int()

mp_obj_t mp_obj_new_int ( mp_int_t  value)

Definition at line 356 of file objint_mpz.c.

◆ mp_obj_new_int_from_ll()

mp_obj_t mp_obj_new_int_from_ll ( long long  val)

Definition at line 363 of file objint_mpz.c.

◆ mp_obj_new_int_from_str_len()

mp_obj_t mp_obj_new_int_from_str_len ( const char **  str,
size_t  len,
bool  neg,
unsigned int  base 
)

Definition at line 384 of file objint_mpz.c.

◆ mp_obj_new_int_from_uint()

mp_obj_t mp_obj_new_int_from_uint ( mp_uint_t  value)

Definition at line 375 of file objint_mpz.c.

◆ mp_obj_new_int_from_ull()

mp_obj_t mp_obj_new_int_from_ull ( unsigned long long  val)

Definition at line 369 of file objint_mpz.c.