arch:arc: use FLS instruction to get clz

Signed-off-by: Jingru <jingru@synopsys.com>
This commit is contained in:
Jingru
2020-05-25 17:25:52 +08:00
parent 204d269794
commit f8c58778bd
4 changed files with 7 additions and 5 deletions

View File

@@ -313,7 +313,7 @@ firq_return:
.align 4
port_cpu_clz:
breq r0, 0, cpu_clz_return
ffs r1, r0
fls r1, r0
add r0, r1, 1
cpu_clz_return:
j [blink]