Merge pull request #6463 from roc-lang/dec-pow

`Num.pow` for `Dec`
This commit is contained in:
Brendan Hansknecht 2024-02-01 09:17:55 -08:00 committed by GitHub
commit fc6b519b59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 125 additions and 2 deletions

View file

@ -1099,7 +1099,7 @@ trait Backend<'a> {
LayoutRepr::Builtin(Builtin::Float(float_width)) => {
&bitcode::NUM_POW[float_width]
}
LayoutRepr::DEC => todo!("exponentiation for decimals"),
LayoutRepr::DEC => bitcode::DEC_POW,
_ => unreachable!("invalid layout for NumPow"),
};