comparison README @ 2:ead9f84d11db

*: make it work on non-x86 too
author Paper <paper@tflc.us>
date Mon, 09 Feb 2026 01:21:00 -0500
parents 90cb48b87dcc
children
comparison
equal deleted inserted replaced
1:90cb48b87dcc 2:ead9f84d11db
5 In fact, *all* of the tables in this library are generated at compile-time. 5 In fact, *all* of the tables in this library are generated at compile-time.
6 The polynomial is #define'd in crc32i.h, and all of the tables are generated 6 The polynomial is #define'd in crc32i.h, and all of the tables are generated
7 through a combination of enums and preprocessor trickery. Note that this 7 through a combination of enums and preprocessor trickery. Note that this
8 may cause this code to compile slowly on some machines or compilers. 8 may cause this code to compile slowly on some machines or compilers.
9 9
10 At the moment it is hardcoded for x86-64 and gcc, but it could be adapted to 10 At the moment it is hardcoded for gcc, but it could be adapted to other
11 other compilers if they also have features like e.g. alignas() or whatever. 11 compilers if they also have features like e.g. alignas() or whatever.
12 You'd also need to disable the x86 code which isn't difficult but is a bit 12 The code relies on C99 stdint.h but if that's not available you can just
13 annoying. 13 typedef to the suitable C89 types on your system.
14
15 --paper <paper@tflc.us>