aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/common/whwasmutil.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-12-14 18:06:01 +0000
committerstephan <stephan@noemail.net>2022-12-14 18:06:01 +0000
commit1a1d8bbdc3c96559e7bd64c020d21a567b78bcb1 (patch)
treedfa48deb72576c9ac4f0367bf578aad86394d27d /ext/wasm/common/whwasmutil.js
parentdaa46142ecf8dd3b886fb5940e1faf4366a36df3 (diff)
downloadsqlite-1a1d8bbdc3c96559e7bd64c020d21a567b78bcb1.tar.gz
sqlite-1a1d8bbdc3c96559e7bd64c020d21a567b78bcb1.zip
Rename the new peek/pokeF32() and peek/pokeF64() to peek/poke32f() and peek/poke64f() for consistency with related APIs and because they're easier on both the eyes and the fingers.
FossilOrigin-Name: cc86f03ed698a071cd02ef3dfaba69092226bff20c917d662f808061627ad285
Diffstat (limited to 'ext/wasm/common/whwasmutil.js')
-rw-r--r--ext/wasm/common/whwasmutil.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/wasm/common/whwasmutil.js b/ext/wasm/common/whwasmutil.js
index d607799c8..a662d5a1e 100644
--- a/ext/wasm/common/whwasmutil.js
+++ b/ext/wasm/common/whwasmutil.js
@@ -795,13 +795,13 @@ self.WhWasmUtilInstaller = function(target){
a BigInt-type value, not a Number-type value. */
target.poke64 = (ptr, value)=>target.poke(ptr, value, 'i64');
/** f32 variant of peek8(). */
- target.peekF32 = (...ptr)=>target.peek( (1===ptr.length ? ptr[0] : ptr), 'f32' );
+ target.peek32f = (...ptr)=>target.peek( (1===ptr.length ? ptr[0] : ptr), 'f32' );
/** f32 variant of poke8(). */
- target.pokeF32 = (ptr, value)=>target.poke(ptr, value, 'f32');
+ target.poke32f = (ptr, value)=>target.poke(ptr, value, 'f32');
/** f64 variant of peek8(). */
- target.peekF64 = (...ptr)=>target.peek( (1===ptr.length ? ptr[0] : ptr), 'f64' );
+ target.peek64f = (...ptr)=>target.peek( (1===ptr.length ? ptr[0] : ptr), 'f64' );
/** f64 variant of poke8(). */
- target.pokeF64 = (ptr, value)=>target.poke(ptr, value, 'f64');
+ target.poke64f = (ptr, value)=>target.poke(ptr, value, 'f64');
/** Deprecated alias for getMemValue() */