mirror of
http://cgit.git.savannah.gnu.org/git/grub.git
synced 2026-04-28 06:33:17 +00:00
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>
This commit is contained in:
@@ -431,7 +431,7 @@ __clzsi2 (grub_uint32_t val)
|
||||
|
||||
for (; j; j >>= 1)
|
||||
{
|
||||
if ((temp = val) >> j)
|
||||
if ((temp = val >> j))
|
||||
{
|
||||
if (j == 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user