mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-18 09:21:35 +00:00
refactor into stdlib
This commit is contained in:
13
std/assembly/rt/common.ts
Normal file
13
std/assembly/rt/common.ts
Normal file
@ -0,0 +1,13 @@
|
||||
// Alignment guarantees
|
||||
|
||||
// @ts-ignore: decorator
|
||||
@inline export const AL_BITS: u32 = 4; // 16 bytes to fit up to v128
|
||||
// @ts-ignore: decorator
|
||||
@inline export const AL_SIZE: usize = 1 << <usize>AL_BITS;
|
||||
// @ts-ignore: decorator
|
||||
@inline export const AL_MASK: usize = AL_SIZE - 1;
|
||||
|
||||
// Extra debugging
|
||||
|
||||
// @ts-ignore: decorator
|
||||
@inline export const DEBUG = true;
|
Reference in New Issue
Block a user