tiny and insignificant changes
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 5 Feb 2021 04:18:24 +0000 (22:18 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 5 Feb 2021 04:18:24 +0000 (22:18 -0600)
bin/onyx
core/math.onyx
onyx.exe
src/onyxwasm.c
src/onyxwasm_output.c

index 684526469291386e579e35316863a19f99caac77..3705eefbd27d343434fb7ec8923be949744bc31b 100755 (executable)
Binary files a/bin/onyx and b/bin/onyx differ
index 241c1642f8594cae68a04a30be72ef6121a70800..08a5d3c7bfdd1d6bfc1bd71191982605b98e2c32 100644 (file)
@@ -136,7 +136,7 @@ atanh :: (t: $T) -> T {
 // are needed. Logarithms are implemented using a polynomial that is accurate in the range of
 // [1, 2], and then utilizes this identity for values outside of that range,
 //
-//      ln(x) = ln(2^n * v) = n * ln(2) + v,   v is in [1, 2]
+//      ln(x) = ln(2^n * v) = n * ln(2) + ln(v),   v is in [1, 2]
 //
 
 exp :: (p: $T) -> T do return pow(base = cast(T) E, p = p);
index 5f5be401eb678c65e012b5bcfb50b1f3d9b4d702..9da7accf9ae8d021b40a4e6adc2275be94b726c6 100644 (file)
Binary files a/onyx.exe and b/onyx.exe differ
index 680475a9a40a20f871864b1a5a0f25243a27eb88..a55cf9c5e8b2a30bc8877fc9cc8b570459db1713 100644 (file)
@@ -2923,8 +2923,7 @@ static void emit_file_contents(OnyxWasmModule* mod, AstFileContents* fc) {
     }
 
     u32 offset = mod->next_datum_offset;
-    if (offset % 16 != 0)
-        offset += 16 - (offset % 16);
+    bh_align(offset, 16);
 
     if (!bh_file_exists(fc->filename->text)) {
         onyx_report_error(fc->filename->pos,
index 2e802b87bfcddf1d825ce5241b2fa4455a262f7f..6e19836cffc5c79c8e3eb2afeba8dc524899ca14 100644 (file)
@@ -170,7 +170,7 @@ static i32 output_memorysection(OnyxWasmModule* module, bh_buffer* buff) {
     u8* leb = uint_to_uleb128((u64) 1, &leb_len);
     bh_buffer_append(&vec_buff, leb, leb_len);
     
-    output_limits(256, -1, &vec_buff);
+    output_limits(1024, -1, &vec_buff);
     
     leb = uint_to_uleb128((u64) (vec_buff.length), &leb_len);
     bh_buffer_append(buff, leb, leb_len);