mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-03 10:51:09 +00:00
23 lines
361 B
JavaScript
23 lines
361 B
JavaScript
|
import * as wasm from './reference_test_bg.wasm';
|
||
|
|
||
|
/**
|
||
|
* @param {number} a
|
||
|
* @param {number} b
|
||
|
* @returns {number}
|
||
|
*/
|
||
|
export function add_u32(a, b) {
|
||
|
var ret = wasm.add_u32(a, b);
|
||
|
return ret >>> 0;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param {number} a
|
||
|
* @param {number} b
|
||
|
* @returns {number}
|
||
|
*/
|
||
|
export function add_i32(a, b) {
|
||
|
var ret = wasm.add_i32(a, b);
|
||
|
return ret;
|
||
|
}
|
||
|
|