writing functions for bytecode and literal frame exchange with other vms
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-12-23 12:43:26 +09:00
parent 5f91536a38
commit 58d913e3da
11 changed files with 775 additions and 80 deletions

View File

@ -472,6 +472,33 @@ typedef struct hcl_bcs_t hcl_bcs_t;
typedef unsigned int hcl_bitmask_t;
/* =========================================================================
* BIGINT TYPES AND MACROS
* ========================================================================= */
#if defined(HCL_ENABLE_FULL_LIW) && (HCL_SIZEOF_UINTMAX_T > HCL_SIZEOF_OOW_T)
# define HCL_USE_OOW_FOR_LIW
#endif
#if defined(HCL_USE_OOW_FOR_LIW)
typedef hcl_oow_t hcl_liw_t; /* large integer word */
typedef hcl_ooi_t hcl_lii_t;
typedef hcl_uintmax_t hcl_lidw_t; /* large integer double word */
typedef hcl_intmax_t hcl_lidi_t;
# define HCL_SIZEOF_LIW_T HCL_SIZEOF_OOW_T
# define HCL_SIZEOF_LIDW_T HCL_SIZEOF_UINTMAX_T
# define HCL_LIW_BITS HCL_OOW_BITS
# define HCL_LIDW_BITS (HCL_SIZEOF_UINTMAX_T * HCL_BITS_PER_BYTE)
#else
typedef hcl_oohw_t hcl_liw_t;
typedef hcl_oohi_t hcl_lii_t;
typedef hcl_oow_t hcl_lidw_t;
typedef hcl_ooi_t hcl_lidi_t;
# define HCL_SIZEOF_LIW_T HCL_SIZEOF_OOHW_T
# define HCL_SIZEOF_LIDW_T HCL_SIZEOF_OOW_T
# define HCL_LIW_BITS HCL_OOHW_BITS
# define HCL_LIDW_BITS HCL_OOW_BITS
#endif
/* =========================================================================
* BASIC OOP ENCODING
* ========================================================================= */