From d47c66666c13266c567731280a880411c4afbdf7 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Thu, 4 Feb 2021 22:18:24 -0600 Subject: [PATCH] tiny and insignificant changes --- bin/onyx | Bin 340488 -> 340488 bytes core/math.onyx | 2 +- onyx.exe | Bin 395264 -> 395264 bytes src/onyxwasm.c | 3 +-- src/onyxwasm_output.c | 2 +- 5 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/onyx b/bin/onyx index 684526469291386e579e35316863a19f99caac77..3705eefbd27d343434fb7ec8923be949744bc31b 100755 GIT binary patch delta 59 zcmeBpBGU0hWJ3nCh}~|LgXW=%XBv1Je3(moH}7*)U({T~++M@X2*ga=YnYisH#4%d OU)sjJ{n9oTvuXgGoE7{4 delta 59 zcmeBpBGU0hWJ3nC$jVvEgr>IWC^kL+xOd|u$vr^_dLK5|Ft^t*GXgQw_8Mm9(9MjD P?U%MOZ@;vS#jF|tCaD>k diff --git a/core/math.onyx b/core/math.onyx index 241c1642..08a5d3c7 100644 --- a/core/math.onyx +++ b/core/math.onyx @@ -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); diff --git a/onyx.exe b/onyx.exe index 5f5be401eb678c65e012b5bcfb50b1f3d9b4d702..9da7accf9ae8d021b40a4e6adc2275be94b726c6 100644 GIT binary patch delta 131 zcmZpeAki>EVgm;w^WS4K&D@Ob+>DIdxfz+5&NH&K^Ic#9V&?697g&x>wgxIlU;qLp zAl3!qhI&?phE!IN5Ccq(2gnuy;tfE#4G6jI{3)!Zi~$cOR{HL`Qu{Gf`^b^) KQ&L%T76AYS{w1sc delta 131 zcmZpeAki>EVgm;w^G93hW^TrIZbruK+>A_2=NTE>`7SU4G4po53oOSbTLTp&FaQA) z5bFYQLp>`)Lnnext_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, diff --git a/src/onyxwasm_output.c b/src/onyxwasm_output.c index 2e802b87..6e19836c 100644 --- a/src/onyxwasm_output.c +++ b/src/onyxwasm_output.c @@ -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); -- 2.25.1