mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 15:32:16 +00:00
14 lines
332 B
TypeScript
14 lines
332 B
TypeScript
/**
|
|
* Shared alignment constants.
|
|
* @module std/assembly/allocator/common/alignment
|
|
*//***/
|
|
|
|
/** 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;
|