mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
try a different formulation. Maybe it will avoid lookup table
This commit is contained in:
parent
f3cae9147c
commit
d028aa3c74
1 changed files with 4 additions and 4 deletions
|
@ -1032,10 +1032,10 @@ pub fn listConcatUtf8(
|
|||
|
||||
fn copy_element_fn(element_width: usize) CopyFn {
|
||||
const max_inline = @sizeOf(u256);
|
||||
return switch (element_width) {
|
||||
inline 0...max_inline => |i| memcpy_sized(i),
|
||||
else => &memcpy_opaque,
|
||||
};
|
||||
switch (element_width) {
|
||||
inline 0...max_inline => |i| return memcpy_sized(i),
|
||||
else => return &memcpy_opaque,
|
||||
}
|
||||
}
|
||||
|
||||
fn memcpy_opaque(dst: Opaque, src: Opaque, element_width: usize) void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue