mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Float.div implemented, Int.div WIP-ish
This commit is contained in:
parent
17e9f0b8c3
commit
a5c2844f54
4 changed files with 69 additions and 7 deletions
|
@ -578,6 +578,28 @@ fn call_with_args<'a, 'ctx, 'env>(
|
|||
|
||||
BasicValueEnum::IntValue(int_val)
|
||||
}
|
||||
Symbol::FLOAT_DIV => {
|
||||
debug_assert!(args.len() == 2);
|
||||
|
||||
let float_val = env.builder.build_float_div(
|
||||
args[0].into_float_value(),
|
||||
args[1].into_float_value(),
|
||||
"DIV_F64",
|
||||
);
|
||||
|
||||
BasicValueEnum::FloatValue(float_val)
|
||||
}
|
||||
// Symbol::INT_DIV => {
|
||||
// debug_assert!(args.len() == 2);
|
||||
//
|
||||
// let int_val = env.builder.build_int_signed_div(
|
||||
// args[0].into_int_value(),
|
||||
// args[1].into_int_value(),
|
||||
// "DIV_I64",
|
||||
// );
|
||||
//
|
||||
// BasicValueEnum::IntValue(int_val)
|
||||
// }
|
||||
Symbol::LIST_GET_UNSAFE => {
|
||||
debug_assert!(args.len() == 2);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue