utils: add const_* byteswapping functions
authorFelix Fietkau <nbd@nbd.name>
Thu, 7 Jun 2018 13:18:51 +0000 (15:18 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 7 Jun 2018 13:18:52 +0000 (15:18 +0200)
commit3c1b33b7d57ad8b8aeeab8babd48625b86532e0b
treed133866f9eb3993ab5ae62c6a5761181657b04e2
parent6eff829d788b36939325557066f58aafd6a05321
utils: add const_* byteswapping functions

Some gcc versions have issues with the __builtin_choose_expr construct
which attempts to automatically use the const versions of those
functions.

Make it possible to explicitly use const_* versions to avoid that.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
utils.h