Picking the correct endian test is quite complex, if we should believe <URL: https://stackoverflow.com/questions/8978935/detecting-endianness >.
Note, there are middle endian architetures in addition to big and little endian architectures, and some architectures have different endianness for integeres and floating point numbers. No idea if this affect libhsa-runtime-dev, but thought it best to mention it just in case. -- Happy hacking Petter Reinholdtsen