aboutsummaryrefslogtreecommitdiff
path: root/arch/c6x/configs
diff options
context:
space:
mode:
authorNicolas Pitre2018-07-25 04:38:54 +0100
committerRussell King2018-07-30 11:45:53 +0100
commit001a30c4d0e871b21d296e1bcafc6756a1b10607 (patch)
tree513df3ef85de8da961ce9416a8714cbce91c30ce /arch/c6x/configs
parentcbfc5619e0cc8dcdf3020e27426eec362307cc14 (diff)
ARM: 8785/1: use compiler built-ins for ffs and fls
On ARMv5 and above, it is beneficial to use compiler built-ins such as __builtin_ffs() and __builtin_ctzl() to implement ffs(), __ffs(), fls() and __fls(). The compiler does inline the clz instruction and even the rbit instruction when available, or provide a constant value when possible. On ARMv4 the compiler calls out to helper functions for those built-ins so it is best to keep the open coded versions in that case. Signed-off-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/c6x/configs')
0 files changed, 0 insertions, 0 deletions