Use builtins for byteswapping

Make use of XCHG/BSWAP on x86, REV16 and REV on ARMv6-m and above,
and whatever other optimized instructions on other platforms.

Defines extra CONFIG variables, and removes the unused functions for
endian-swapping. Fixes some oversights in using the macros.
This commit is contained in:
Nimish Telang
2022-06-19 16:24:55 -04:00
committed by Xiang Xiao
parent 7e6d93da4d
commit 903a186304
14 changed files with 54 additions and 225 deletions
-1
View File
@@ -27,7 +27,6 @@ include builtin/Make.defs
include ctype/Make.defs
include dirent/Make.defs
include dlfcn/Make.defs
include endian/Make.defs
include errno/Make.defs
include eventfd/Make.defs
include fixedmath/Make.defs