Suggestion: Include my MASM32 assembler and Windows Batch file versions of the xxh32 function #1076

Closed
opened 2025-10-19 15:00:45 -05:00 by Aacini · 3 comments
Aacini commented 2025-10-19 15:00:45 -05:00 (Migrated from github.com)

Hi! First post here, so bear with me... I wrote a highly optimized version of the xxh32 function written in the MASM32 assembler that I'm pretty sure will be faster than any C or C++ version when run under equal circumstances. The function is written in C-compatible format, so you only need to link the generated xxh32.obj file with your standard Windows C program to use it as usual.

I also wrote the program xxHash32.asm as an example of using my xxh32 function that allows calculating xxHash32 values in several ways from the Windows cmd.exe's command line. Additionally, it also calculates the xxHash32 value from the xxHash32 values of all lines in a text file, so it can also be used as a digital signature to confirm the integrity of simple text files.

Finally, and just for fun (well, also for fun), I translated this code into a Windows Batch file... This translation was interesting because Batch files suffer from a number of technicall limitations...

I want to contribute to this site by offering these programs to be included here. Thank you.

Antonio

Hi! First post here, so bear with me... I wrote a highly optimized version of the xxh32 function written in the MASM32 assembler that I'm pretty sure will be faster than any C or C++ version when run under equal circumstances. The function is written in C-compatible format, so you only need to link the generated xxh32.obj file with your standard Windows C program to use it as usual. I also wrote the program xxHash32.asm as an example of using my xxh32 function that allows calculating xxHash32 values in several ways from the Windows cmd.exe's command line. Additionally, it also calculates the xxHash32 value from the xxHash32 values of all lines in a text file, so it can also be used as a digital signature to confirm the integrity of simple text files. Finally, and just for fun (well, _also_ for fun), I translated this code into a Windows Batch file... This translation was interesting because Batch files suffer from a number of technicall limitations... I want to contribute to this site by offering these programs to be included here. Thank you. Antonio
Cyan4973 commented 2025-10-19 15:14:57 -05:00 (Migrated from github.com)

Congratulations for this great work @Aacini !

A typical way to make it available to the public would be to create a fork, for example on github. I would then advertise your version on the xxhash.com webpage.

This can be done quickly and is likely a worthwhile first step.

Integration into upstream typically entails a lot more constraints, and will take more time.

Congratulations for this great work @Aacini ! A typical way to make it available to the public would be to create a fork, for example on github. I would then advertise your version on the xxhash.com webpage. This can be done quickly and is likely a worthwhile first step. Integration into upstream typically entails a lot more constraints, and will take more time.
Aacini commented 2025-10-19 17:41:17 -05:00 (Migrated from github.com)

Ok. I downloaded all my files on my first repository:

https://github.com/Aacini/xxHash32

Thanks!

Ok. I downloaded all my files on my first repository: https://github.com/Aacini/xxHash32 Thanks!
Cyan4973 commented 2026-09-14 18:41:15 -05:00 (Migrated from github.com)

Great work @Aacini !
I've linked your repository from the xxhash homepage

Great work @Aacini ! I've linked your repository from the xxhash homepage
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-Cyan4973/xxHash#1076
No description provided.