mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 07:22:21 +00:00
9 lines
338 B
TypeScript
9 lines
338 B
TypeScript
/** Number of alignment bits. */
|
|
export const AL_BITS: u32 = 3;
|
|
/** Number of possible alignment values. */
|
|
export const AL_SIZE: usize = 1 << <usize>AL_BITS;
|
|
/** Mask to obtain just the alignment bits. */
|
|
export const AL_MASK: usize = AL_SIZE - 1;
|
|
/** Maximum 32-bit allocation size. */
|
|
export const MAX_SIZE_32: usize = 1 << 30; // 1GB
|