mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 15:12:12 +00:00
9 lines
236 B
TypeScript
9 lines
236 B
TypeScript
/** Number of alignment bits. */
|
|
export const BITS: u32 = 3;
|
|
|
|
/** Number of possible alignment values. */
|
|
export const SIZE: usize = 1 << <usize>BITS;
|
|
|
|
/** Mask to obtain just the alignment bits. */
|
|
export const MASK: usize = SIZE - 1;
|