actually expose Num.rem

This commit is contained in:
Folkert 2023-04-26 14:32:17 +02:00
parent 9bdf9e4b99
commit dd85f51745
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -578,6 +578,8 @@ trait Backend<'a> {
); );
self.build_num_div(sym, &args[0], &args[1], ret_layout) self.build_num_div(sym, &args[0], &args[1], ret_layout)
} }
LowLevel::NumRemUnchecked => self.build_num_rem(sym, &args[0], &args[1], ret_layout),
LowLevel::NumNeg => { LowLevel::NumNeg => {
debug_assert_eq!( debug_assert_eq!(
1, 1,
@ -1307,6 +1309,9 @@ trait Backend<'a> {
/// build_num_mul stores `src1 / src2` into dst. /// build_num_mul stores `src1 / src2` into dst.
fn build_num_div(&mut self, dst: &Symbol, src1: &Symbol, src2: &Symbol, layout: &InLayout<'a>); fn build_num_div(&mut self, dst: &Symbol, src1: &Symbol, src2: &Symbol, layout: &InLayout<'a>);
/// build_num_mul stores `src1 % src2` into dst.
fn build_num_rem(&mut self, dst: &Symbol, src1: &Symbol, src2: &Symbol, layout: &InLayout<'a>);
/// build_num_neg stores the negated value of src into dst. /// build_num_neg stores the negated value of src into dst.
fn build_num_neg(&mut self, dst: &Symbol, src: &Symbol, layout: &InLayout<'a>); fn build_num_neg(&mut self, dst: &Symbol, src: &Symbol, layout: &InLayout<'a>);