core: Provide functions for different byte orders

Rationale: see #1586.

> E.g. with older versions of the CodeSourcery toolchain for ARM.

Then the user has to update.