Skip to content

Commit fbf329c

Browse files
committed
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into develop
2 parents bea5b89 + cba7921 commit fbf329c

16 files changed

Lines changed: 37 additions & 35 deletions

File tree

docs/links/database.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2896,6 +2896,7 @@
28962896
"wasm",
28972897
"wabt",
28982898
"wast",
2899+
"wat",
28992900
"toolkit"
29002901
]
29012902
},

lib/node_modules/@stdlib/fs/read-wasm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function onRead( error, wasm ) {
9292
if ( bool ) {
9393
wasm = new WebAssembly.Module( wasm );
9494
wasm = new WebAssembly.Instance( wasm, {} );
95-
console.log( wasm.exports.c_hypot( 5.0, 12.0 ) );
95+
console.log( wasm.exports.stdlib_hypot( 5.0, 12.0 ) );
9696
} else {
9797
console.log( wasm );
9898
}
38 Bytes
Binary file not shown.
38 Bytes
Binary file not shown.

lib/node_modules/@stdlib/fs/read-wasm/examples/fixtures/file.wast renamed to lib/node_modules/@stdlib/fs/read-wasm/examples/fixtures/file.wat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
(table 0 anyfunc)
44
(memory $0 1)
55
(export "memory" (memory $0))
6-
(export "c_hypot" (func $c_hypot))
7-
(func $c_hypot (param $0 f64) (param $1 f64) (result f64)
6+
(export "stdlib_hypot" (func $stdlib_hypot))
7+
(func $stdlib_hypot (param $0 f64) (param $1 f64) (result f64)
88
(local $2 i64)
99
(local $3 i64)
1010
(local $4 f64)

lib/node_modules/@stdlib/fs/read-wasm/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function onRead( error, wasm ) {
1818
if ( bool ) {
1919
wasm = new WebAssembly.Module( wasm ); // eslint-disable-line no-undef
2020
wasm = new WebAssembly.Instance( wasm, {} ); // eslint-disable-line no-undef
21-
console.log( wasm.exports.c_hypot( 5.0, 12.0 ) );
21+
console.log( wasm.exports.stdlib_hypot( 5.0, 12.0 ) );
2222
} else {
2323
console.log( wasm );
2424
}
38 Bytes
Binary file not shown.

lib/node_modules/@stdlib/fs/read-wasm/test/fixtures/file.wast renamed to lib/node_modules/@stdlib/fs/read-wasm/test/fixtures/file.wat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
(table 0 anyfunc)
44
(memory $0 1)
55
(export "memory" (memory $0))
6-
(export "c_hypot" (func $c_hypot))
7-
(func $c_hypot (param $0 f64) (param $1 f64) (result f64)
6+
(export "stdlib_hypot" (func $stdlib_hypot))
7+
(func $stdlib_hypot (param $0 f64) (param $1 f64) (result f64)
88
(local $2 i64)
99
(local $3 i64)
1010
(local $4 f64)
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* Header file containing function declarations for computing the hypotenuse while avoiding overflow and underflow.
33
*/
4-
#ifndef C_HYPOT_H
5-
#define C_HYPOT_H
4+
#ifndef STDLIB_HYPOT_H
5+
#define STDLIB_HYPOT_H
66

77
/*
88
* If C++, prevent name mangling so that the compiler emits a binary file having undecorated names, thus mirroring the behavior of a C compiler.
@@ -14,10 +14,10 @@ extern "C" {
1414
/**
1515
* Computes the hypotenuse, avoiding overflow and underflow.
1616
*/
17-
double c_hypot( const double x, const double y );
17+
double stdlib_hypot( const double x, const double y );
1818

1919
#ifdef __cplusplus
2020
}
2121
#endif
2222

23-
#endif // !C_HYPOT_H
23+
#endif // !STDLIB_HYPOT_H

lib/node_modules/@stdlib/math/base/special/hypot/lib/wasm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function load() {
6666
wasm = new WebAssembly.Instance( wasm, imports );
6767

6868
// Return the exported function:
69-
return wasm.exports._c_hypot; // eslint-disable-line no-underscore-dangle
69+
return wasm.exports._stdlib_hypot; // eslint-disable-line no-underscore-dangle
7070
} // end FUNCTION load()
7171

7272

0 commit comments

Comments
 (0)