Implement hash for Dec

This commit is contained in:
Ayaz Hafiz 2023-05-26 11:32:59 -05:00
parent 0b475ae979
commit 3585d5bb5b
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
12 changed files with 44 additions and 6 deletions

View file

@ -1187,6 +1187,11 @@ pub(crate) fn run_low_level<'a, 'ctx>(
// which could be useful to look at when implementing this.
todo!("implement checked float conversion");
}
I128OfDec => {
arguments!(dec);
call_bitcode_fn(env, &[dec], bitcode::DEC_TO_I128)
}
Eq => {
arguments_with_layouts!((lhs_arg, lhs_layout), (rhs_arg, rhs_layout));