Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ divmod12
Function
divmod12
libraries/fast_math/fast_math.cpp:61–68 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
59
60
61
void divmod12(uint32_t in, uint32_t *div, uint8_t *mod)
62
{
63
uint32_t d;
64
uint8_t m;
65
divmod3(in, &d, &m);
66
*div = d >> 2;
67
*mod = m + (d & 0x03) * 3;
68
}
69
70
71
void divmod24(uint32_t in, uint32_t *div, uint8_t *mod)
Callers
nothing calls this directly
Calls
1
divmod3
Function · 0.85
Tested by
no test coverage detected