You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
343 B
14 lines
343 B
7 months ago
|
const makeType = (valueSize, indexSize) => ({
|
||
|
struct: `Uint${valueSize}Heap`,
|
||
|
node: `Uint${valueSize}HeapNode`,
|
||
|
valueSize,
|
||
|
valueType: `uint${valueSize}`,
|
||
|
indexSize,
|
||
|
indexType: `uint${indexSize}`,
|
||
|
blockSize: Math.ceil((valueSize + 2 * indexSize) / 256),
|
||
|
});
|
||
|
|
||
|
module.exports = {
|
||
|
TYPES: [makeType(256, 64), makeType(208, 24)],
|
||
|
};
|