mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-22 19:21:47 +00:00
Implement function types / indirect calls / trampolines (#39)
This commit is contained in:
8
std/assembly/allocator/common/alignment.ts
Normal file
8
std/assembly/allocator/common/alignment.ts
Normal file
@ -0,0 +1,8 @@
|
||||
/** 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;
|
Reference in New Issue
Block a user