mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-11 04:51:31 +11:00
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:
parent
b8ef969d92
commit
a15c109e8d
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue