summaryrefslogtreecommitdiffstats
path: root/arch/mips/math-emu/cp1emu.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2015-04-03 23:25:00 +0100
committerRalf Baechle <ralf@linux-mips.org>2015-04-08 01:09:12 +0200
commitcb5d4aad6844cdbe2f3b9f5d581ae1c9ec342009 (patch)
tree2a20f707e1c7711f773e05746e5d8342bc576137 /arch/mips/math-emu/cp1emu.c
parent2cfcf8a8313bd9bdb54d62ca4ea581f130869aca (diff)
downloadtalos-op-linux-cb5d4aad6844cdbe2f3b9f5d581ae1c9ec342009.tar.gz
talos-op-linux-cb5d4aad6844cdbe2f3b9f5d581ae1c9ec342009.zip
MIPS: bitops.h: Avoid inline asm for constant FLS
GCC is smart enough to substitute the final result for FLS calculations as implemented in the fallback C code we have in `__fls' and `fls' applied to constant values. The presence of inline asm defeats the compiler though, forcing it to emit extraneous CLZ/DCLZ calculation for processors that support these instructions. Use `__builtin_constant_p' then to avoid inline asm altogether for constants. Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9681/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/math-emu/cp1emu.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud