mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
add more Num.bytesTo* functions
This commit is contained in:
parent
785da377c8
commit
e6964536b2
12 changed files with 308 additions and 60 deletions
|
@ -929,6 +929,28 @@ pub(crate) fn run_low_level<'a, 'ctx, 'env>(
|
|||
bitcode::NUM_BYTES_TO_U32,
|
||||
)
|
||||
}
|
||||
NumBytesToU64 => {
|
||||
arguments!(list, position);
|
||||
|
||||
call_list_bitcode_fn(
|
||||
env,
|
||||
&[list.into_struct_value()],
|
||||
&[position],
|
||||
BitcodeReturns::Basic,
|
||||
bitcode::NUM_BYTES_TO_U64,
|
||||
)
|
||||
}
|
||||
NumBytesToU128 => {
|
||||
arguments!(list, position);
|
||||
|
||||
call_list_bitcode_fn(
|
||||
env,
|
||||
&[list.into_struct_value()],
|
||||
&[position],
|
||||
BitcodeReturns::Basic,
|
||||
bitcode::NUM_BYTES_TO_U128,
|
||||
)
|
||||
}
|
||||
NumCompare => {
|
||||
arguments_with_layouts!((lhs_arg, lhs_layout), (rhs_arg, rhs_layout));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue