mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Add support for Num.abs to Dec type
This commit is contained in:
parent
8f210241ab
commit
fa65d89a3c
4 changed files with 56 additions and 47 deletions
|
@ -2168,12 +2168,13 @@ fn build_dec_unary_op<'a, 'ctx>(
|
|||
use roc_module::low_level::LowLevel::*;
|
||||
|
||||
match op {
|
||||
NumSin => dec_unary_op(env, bitcode::DEC_SIN, arg),
|
||||
NumCos => dec_unary_op(env, bitcode::DEC_COS, arg),
|
||||
NumTan => dec_unary_op(env, bitcode::DEC_TAN, arg),
|
||||
NumAsin => dec_unary_op(env, bitcode::DEC_ASIN, arg),
|
||||
NumAbs => dec_unary_op(env, bitcode::DEC_ABS, arg),
|
||||
NumAcos => dec_unary_op(env, bitcode::DEC_ACOS, arg),
|
||||
NumAsin => dec_unary_op(env, bitcode::DEC_ASIN, arg),
|
||||
NumAtan => dec_unary_op(env, bitcode::DEC_ATAN, arg),
|
||||
NumCos => dec_unary_op(env, bitcode::DEC_COS, arg),
|
||||
NumSin => dec_unary_op(env, bitcode::DEC_SIN, arg),
|
||||
NumTan => dec_unary_op(env, bitcode::DEC_TAN, arg),
|
||||
|
||||
_ => {
|
||||
unreachable!("Unrecognized dec unary operation: {:?}", op);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue