// 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);
}
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,
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);