FastLED 3.10.6
Loading...
Searching...
No Matches

◆ fnv1a_mix()

fl::u32 autoresearch::mp3_check::fnv1a_mix ( fl::u32 hash,
fl::u32 value )
inline

Fold one stream's checksum into the run-wide one, so a single reported value covers every stream in order.

Definition at line 75 of file AutoResearchMp3.h.

75 {
76 for (int byte = 0; byte < 4; ++byte) {
77 hash = (hash ^ (fl::u8)((value >> (byte * 8)) & 0xFF)) * 16777619u;
78 }
79 return hash;
80}
uint8_t byte
Definition midi_Defs.h:36
unsigned char u8
Definition stdint.h:131

Referenced by run().

+ Here is the caller graph for this function: