PythonMonkey   v0.8.2 (dev)
Loading...
Searching...
No Matches
IntType.cc File Reference

Struct for representing python ints. More...

#include "include/modules/pythonmonkey/pythonmonkey.hh"
#include "include/IntType.hh"
#include <jsapi.h>
#include <js/BigInt.h>
#include <vector>
Include dependency graph for IntType.cc:

Macros

#define SIGN_BIT_MASK   0b1000
 
#define CELL_HEADER_LENGTH   8
 
#define JS_DIGIT_BIT   JS_BITS_PER_WORD
 
#define PY_DIGIT_BIT   PYLONG_BITS_IN_DIGIT
 
#define js_digit_t   uintptr_t
 
#define JS_DIGIT_BYTE   (sizeof(js_digit_t)/sizeof(uint8_t))
 
#define JS_INLINE_DIGIT_MAX_LEN   1
 

Detailed Description

Struct for representing python ints.

Author
Caleb Aikens (caleb.nosp@m.@dis.nosp@m.tribu.nosp@m.tive.nosp@m..netw.nosp@m.ork) & Giovanni Tedesco (giova.nosp@m.nni@.nosp@m.distr.nosp@m.ibut.nosp@m.ive.n.nosp@m.etwo.nosp@m.rk) & Tom Tang (xmade.nosp@m.r@di.nosp@m.strib.nosp@m.utiv.nosp@m.e.net.nosp@m.work)
Date
2023-03-16

Macro Definition Documentation

◆ CELL_HEADER_LENGTH

#define CELL_HEADER_LENGTH   8

◆ JS_DIGIT_BIT

#define JS_DIGIT_BIT   JS_BITS_PER_WORD

◆ JS_DIGIT_BYTE

#define JS_DIGIT_BYTE   (sizeof(js_digit_t)/sizeof(uint8_t))

◆ js_digit_t

#define js_digit_t   uintptr_t

◆ JS_INLINE_DIGIT_MAX_LEN

#define JS_INLINE_DIGIT_MAX_LEN   1

◆ PY_DIGIT_BIT

#define PY_DIGIT_BIT   PYLONG_BITS_IN_DIGIT

◆ SIGN_BIT_MASK

#define SIGN_BIT_MASK   0b1000