mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-09 06:38:04 +00:00
actually expose Num.rem
This commit is contained in:
parent
9bdf9e4b99
commit
dd85f51745
1 changed files with 5 additions and 0 deletions
|
@ -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>);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue