8000 Updated version of CrC calculations by Mecanix by fromport · Pull Request #933 · bitaxeorg/ESP-Miner · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Updated version of CrC calculations by Mecanix #933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 23, 2025

Conversation

fromport
Copy link
Contributor
@fromport fromport commented May 19, 2025

Updated crc files from Mecanix

[quote from Mecanix]
Had a pretty severe sense of humour failure today after finding out that my ISR was choking on sending & receiving asic packets. Turned out to be that dead-slow array shuffling madness (a.k.a.crcin[]/crcout[]) from that 1968 style CRC5().

See attached for a reworked ver of that. Some more on the crc16. Benchmark below:

GCC, Optimization level: -Ofast (production/release)
Cycles (Optimized): 529
Cycles (Slow crc5): 1114
Cycles (Optimized): 452
Cycles (Slow crc5): 1103
Verdict: 2.44X FASTER

GCC, Optimization level: -Og (dev/debug)
Cycles (Optimized): 3266
Cycles (Slow crc5): 3938
Cycles (Optimized): 3227
Cycles (Slow crc5): 3931
Verdict: 1.22X FASTER

When protocol timing and latency matters...

fromport added 5 commits May 19, 2025 14:08
crc files from Mecanix
Part of the crc alternative suggested by Mecanix
Wrong cut& paste, sorry
File in wrong directory
@WantClue WantClue requested a review from Georges760 May 20, 2025 04:07
@mutatrum mutatrum changed the base branch from master to dev-latest May 20, 2025 14:21
Initialize variables so the code can be compiled with -O2 option.
@mutatrum mutatrum merged commit 28b43a8 into bitaxeorg:dev-latest May 23, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0