summaryrefslogtreecommitdiff
path: root/index.htm
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2025-02-02 14:38:13 +0100
committerMitya Selivanov <automainint@guattari.tech>2025-02-02 14:38:13 +0100
commit27b4343c2a7e2583881485a5ac667894fec729f0 (patch)
tree018df2c4df87ef39f9c828a1d6e255825ee7ed9b /index.htm
parentbc9e6042e709b7790f2f130dde08b13c929653b1 (diff)
downloadreduced_system_layer-27b4343c2a7e2583881485a5ac667894fec729f0.zip
Refactor, renaming (work in progress)perf
Diffstat (limited to 'index.htm')
-rw-r--r--index.htm43
1 files changed, 22 insertions, 21 deletions
diff --git a/index.htm b/index.htm
index 5e0dd3c..2e3ebe8 100644
--- a/index.htm
+++ b/index.htm
@@ -34,7 +34,7 @@
fd_seek : () => { throw new Error("Unexpected fd_seek call"); },
},
env : {
- p_clipboard_write_text_impl : (size, text) => {
+ write_clipboard_text_impl : (size, text) => {
let text_buffer = new ArrayBuffer(size);
new Uint8Array(text_buffer).set(new Uint8Array(this.memory_buffer, text, size));
@@ -43,7 +43,7 @@
text_buffer : text_buffer,
});
},
- p_time : () => { return BigInt(Date.now()); },
+ current_time_in_milliseconds : () => { return BigInt(Date.now()); },
floor : Math.floor,
ceil : Math.ceil,
@@ -275,25 +275,26 @@
wasm,
{
env : {
- p_clipboard_write_impl : () => {},
- p_time : () => {},
- floor : () => {},
- ceil : () => {},
- trunc : () => {},
- sqrt : () => {},
- cbrt : () => {},
- pow : () => {},
- log : () => {},
- log2 : () => {},
- log10 : () => {},
- exp : () => {},
- sin : () => {},
- cos : () => {},
- tan : () => {},
- asin : () => {},
- acos : () => {},
- atan : () => {},
- atan2 : () => {},
+ write_clipboard_impl : () => {},
+ current_time_in_milliseconds : () => {},
+
+ floor : () => {},
+ ceil : () => {},
+ trunc : () => {},
+ sqrt : () => {},
+ cbrt : () => {},
+ pow : () => {},
+ log : () => {},
+ log2 : () => {},
+ log10 : () => {},
+ exp : () => {},
+ sin : () => {},
+ cos : () => {},
+ tan : () => {},
+ asin : () => {},
+ acos : () => {},
+ atan : () => {},
+ atan2 : () => {},
},
}
);