Skip to content
Commit 54548050 authored by Junxian Zhu's avatar Junxian Zhu Committed by Adhemerval Zanella
Browse files

mips: Use builtins for ffs and ffsll



__builtin_ffs{,ll} basically on __builtin_ctz{,ll} in MIPS GCC compiler.
The hardware ctz instructions were available after MIPS{32,64} Release1. By using builtin ctz. It can also reduce code size of ffs/ffsll.

Checked on mips o32. mips64.

Signed-off-by: default avatarJunxian Zhu <zhujunxian@oss.cipunited.com>
Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
Reviewed-by: default avatarMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
parent 491e55be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment