PrismLauncher/libraries/classparser
AbigailBuccaneer 6995a2e1ba Avoid undefined behaviour when byteswapping
`a << b` is undefined when `a` is negative, and `a >> b` is
implementation-defined. The correct thing to do here is to cast to
unsigned, swap the bytes there and then swap back.

This also improves performance on some compilers: Clang is smart enough
to recognise that we're byteswapping here and reduce it to a single
`bswap` instruction on x86_64, but only for the unsigned versions.
2020-08-24 18:52:08 +01:00
..
include Update Copyright Year 2019-01-16 21:14:24 +01:00
src Avoid undefined behaviour when byteswapping 2020-08-24 18:52:08 +01:00
CMakeLists.txt NOISSUE tabs -> spaces 2018-07-15 14:51:05 +02:00