2018-04-03 23:56:48 +02:00
|
|
|
/** Number of alignment bits. */
|
2019-03-14 05:11:03 +01:00
|
|
|
// @ts-ignore: decorator
|
2019-02-21 00:11:22 +01:00
|
|
|
@inline export const AL_BITS: u32 = 3;
|
2019-03-14 05:11:03 +01:00
|
|
|
|
2018-04-03 23:56:48 +02:00
|
|
|
/** Number of possible alignment values. */
|
2019-03-14 05:11:03 +01:00
|
|
|
// @ts-ignore: decorator
|
2019-02-21 00:11:22 +01:00
|
|
|
@inline export const AL_SIZE: usize = 1 << <usize>AL_BITS;
|
2019-03-14 05:11:03 +01:00
|
|
|
|
2018-04-03 23:56:48 +02:00
|
|
|
/** Mask to obtain just the alignment bits. */
|
2019-03-14 05:11:03 +01:00
|
|
|
// @ts-ignore: decorator
|
2019-02-21 00:11:22 +01:00
|
|
|
@inline export const AL_MASK: usize = AL_SIZE - 1;
|
2019-03-14 05:11:03 +01:00
|
|
|
|
2018-04-03 23:56:48 +02:00
|
|
|
/** Maximum 32-bit allocation size. */
|
2019-03-14 05:11:03 +01:00
|
|
|
// @ts-ignore: decorator
|
2019-02-21 00:11:22 +01:00
|
|
|
@inline export const MAX_SIZE_32: usize = 1 << 30; // 1GB
|