Change hardware divider results structure order

Putting the quotient first makes the compiler emit slightly better
code by putting the quotient in r0 which is generally what the
intrinsics want.
This commit is contained in:
Derek Hageman 2022-02-19 16:22:08 -07:00
parent b8ef969d92
commit a15c109e8d

View file

@ -43,10 +43,10 @@ pub struct HwDivider {
/// Result of divide/modulo operation
pub struct DivResult<T> {
/// The remainder of divide/modulo operation
pub remainder: T,
/// The quotient of divide/modulo operation
pub quotient: T,
/// The remainder of divide/modulo operation
pub remainder: T,
}
/// Struct containing ownership markers for managing ownership of the SIO registers.