mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-22 03:01:55 +00:00
Things the optimizer does not catch
This commit is contained in:
@ -4,7 +4,7 @@ export function memcpy(dest: usize, src: usize, n: usize): usize {
|
||||
let w: u32, x: u32;
|
||||
|
||||
// copy 1 byte each until src is aligned to 4 bytes
|
||||
while (n != 0 && s % 4 != 0) {
|
||||
while (n && s % 4) {
|
||||
store<u8>(d++, load<u8>(s++));
|
||||
n--;
|
||||
}
|
||||
|
Reference in New Issue
Block a user