Added integer division and square root #20

Open
Mutex wants to merge 2 commits from Mutex/symphony_stdlib:div_isqrt into main
Showing only changes of commit f259d505b3 - Show all commits
+3 -1
View File
@@ -1,7 +1,7 @@
include errno
; (uint32_t, uint32_t) div(uint32_t, uint32_t);
; Divides two integers.
; Divides two unsigned 32 bit integers.
Mutex marked this conversation as resolved Outdated
Outdated
Review

Maybe specify this is unsigned division in the descreption asa well as the type above?

Maybe specify this is unsigned division in the descreption asa well as the type above?
;
; Arguments:
; - r1: Dividend
@@ -9,6 +9,8 @@ include errno
; Results:
; - r1: Quotient
; - r2: Remainder
; Clobbers:
Mutex marked this conversation as resolved Outdated
Outdated
Review

Missing clobbers: r1-r6

Missing clobbers: r1-r6
; - r1 - r4
; Errors:
; - `ERR_DIV_BY_ZERO`: The divisor was `0`.
;