]> git.ipfire.org Git - thirdparty/grub.git/commit
kern/compiler-rt: Fix __clzsi2() logic
authorTuan Phan <tphan@ventanamicro.com>
Mon, 3 Oct 2022 18:29:21 +0000 (11:29 -0700)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 4 Oct 2022 16:10:18 +0000 (18:10 +0200)
commit34037747033879287864be289abb911a29751634
tree65b4689c563b328c4fe72f2812a15152a361e29d
parent75e38e86e7d9202f050b093f20500d9ad4c6dad9
kern/compiler-rt: Fix __clzsi2() logic

Fix the incorrect return value of __clzsi2() function.

Fixes: e795b90 (RISC-V: Add libgcc helpers for clz)
Signed-off-by: Tuan Phan <tphan@ventanamicro.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/compiler-rt.c