Replies: 10 comments 18 replies
-
Cool! I have a framework I've been using to check for collisions, I'll see how this fares. |
Beta Was this translation helpful? Give feedback.
-
I might be missing something here, is this a 32-bit crc? I'm getting a double as the output of |
Beta Was this translation helpful? Give feedback.
-
Treat them as bytes. None should be over FF
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Poindexter Frink ***@***.***>
Sent: Tuesday, January 11, 2022 2:22:55 PM
To: jkotlinski/durexforth ***@***.***>
Cc: Whammo ***@***.***>; Author ***@***.***>
Subject: Re: [jkotlinski/durexforth] Fast table driven crc in forth (Discussion #430)
I might be missing something here, is this a 32-bit crc? I'm getting a double as the output of calc_crc.
—
Reply to this email directly, view it on GitHub<#430 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJEFWZ7QTMFO47DEAH2OJULUVSUT7ANCNFSM5LXJGBJQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
You may but this is a special checksum.
Run the string, and save the checksum
Then run the string again followed by the individual two bytes of the saved checksum
That checksum will be the same as any unchanged strings checksum. $f0b8
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Poindexter Frink ***@***.***>
Sent: Tuesday, January 11, 2022 2:28:09 PM
To: jkotlinski/durexforth ***@***.***>
Cc: Whammo ***@***.***>; Author ***@***.***>
Subject: Re: [jkotlinski/durexforth] Fast table driven crc in forth (Discussion #430)
Can I just combine them together into a 16-bit int instead?
—
Reply to this email directly, view it on GitHub<#430 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJEFWZ6CJ6ICEBB6ZAZCG73UVSVHTANCNFSM5LXJGBJQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Just change the two addresses as you please.
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Poindexter Frink ***@***.***>
Sent: Tuesday, January 11, 2022 2:56:01 PM
To: jkotlinski/durexforth ***@***.***>
Cc: Whammo ***@***.***>; Author ***@***.***>
Subject: Re: [jkotlinski/durexforth] Fast table driven crc in forth (Discussion #430)
Is there a way to move this out of $c000 or is that the magic of $8408 xor?
—
Reply to this email directly, view it on GitHub<#430 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJEFWZZMAQHK23XYZNQ7HZLUVSYQDANCNFSM5LXJGBJQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately this will not work as a hash. Good code for error detection though! |
Beta Was this translation helpful? Give feedback.
-
You might have better results if you pad the strings to a fixed length with a repeatable sequence. |
Beta Was this translation helpful? Give feedback.
-
There's going to have to be some magic in the padded data. Unsurprisingly, the crc of Unprintable characters maybe? |
Beta Was this translation helpful? Give feedback.
-
Or go back to the collisions, pad them equally or inversely 'til they don't match anything anymore. |
Beta Was this translation helpful? Give feedback.
-
Typo? Heh! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions