Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Portability. Is this portable? Will it work on all common platforms (x86, arm, etc.) and possibly some uncommon ones?
Comments. The comments I've put here seem to already document the code well enough, but is there any additional information I could add?
Hidden Bugs. This definitely works (and has a noticeable improvement in speed), but are there any hidden bugs relating to alignment requirements or otherwise (such as extended ASCII)? For context, this is part of a standard C/POSIX library implementation.
Portability. Is this portable? Will it work on all common platforms (x86, arm, etc.) and possibly some uncommon ones?
Comments. The comments I've put here seem to already document the code well enough, but is there any additional information I could add?
Hidden Bugs. This definitely works (and has a noticeable improvement in speed), but are there any hidden bugs relating to alignment requirements or otherwise (such as extended ASCII)? For context, this is part of a standard C library implementation.
Portability. Is this portable? Will it work on all common platforms (x86, arm, etc.) and possibly some uncommon ones?
Comments. The comments I've put here seem to already document the code well enough, but is there any additional information I could add?
Hidden Bugs. This definitely works (and has a noticeable improvement in speed), but are there any hidden bugs relating to alignment requirements or otherwise (such as extended ASCII)? For context, this is part of a standard C/POSIX library implementation.