-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
25 lines (21 loc) · 840 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const wasm = require('./next-pow2.js')()
console.log(wasm.exports.align_i16(0))
console.log(wasm.exports.align_i16(1))
console.log(wasm.exports.align_i16(2))
console.log(wasm.exports.align_i16(7))
console.log(wasm.exports.align_i32(0))
console.log(wasm.exports.align_i32(1))
console.log(wasm.exports.align_i32(4))
console.log(wasm.exports.align_i32(5))
console.log(wasm.exports.align_i32(7))
console.log(wasm.exports.align_i64(0))
console.log(wasm.exports.align_i64(1))
console.log(wasm.exports.align_i64(4))
console.log(wasm.exports.align_i64(5))
console.log(wasm.exports.align_i64(7))
console.log(wasm.exports.align_i64(8))
console.log(wasm.exports.align_i64(9))
console.log(wasm.exports.align_i64(33))
console.log(wasm.exports.next_pow2(0, 16))
console.log(wasm.exports.next_pow2(32, 16))
console.log(wasm.exports.next_pow2(33, 16))