Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ getFletcher
Method
getFletcher
libraries/Fletcher/Fletcher16.cpp:65–70 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
63
64
65
uint16_t Fletcher16::getFletcher()
66
{
67
if (_s1 >= FLETCHER_16) _s1 -= FLETCHER_16;
68
if (_s2 >= FLETCHER_16) _s2 -= FLETCHER_16;
69
return (((uint16_t)_s2) << 8) | _s1;
70
};
71
72
73
uint32_t Fletcher16::count()
Callers
4
unittest
Function · 0.45
fletcher16_next
Function · 0.45
fletcher32_next
Function · 0.45
fletcher64_next
Function · 0.45
Calls
no outgoing calls
Tested by
1
unittest
Function · 0.36