This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
rework U8TOxx_LE macros to force unsigned access
authorYves Orton <demerphq@gmail.com>
Tue, 5 Nov 2019 23:05:17 +0000 (00:05 +0100)
committerYves Orton <demerphq@gmail.com>
Tue, 5 Nov 2019 23:05:17 +0000 (00:05 +0100)
commited16b18d62c264e7e9331ea67931b66b7d976bb9
treecfc54ada5ae9b26a3151749bc09636402da3fd9a
parent783bd734e8c8eb06c400a471004e329244ef995f
rework U8TOxx_LE macros to force unsigned access

This introduces a _shifted_octet() utility macro to make things
more clear, it also adds support for USE_UNALIGNED_PTR_DEREF for
little-endian platforms that allow unaligned access. This must
be manually defined and ONLY affects little endian builds currently,
and is there primarily for -g builds on x86 (eg for perl developers
themselves).
hv_macro.h