RISC-V: Add __clzdi2 symbol

This is needed for the zstd module build for riscv64-emu.

Signed-off-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Andreas Schwab 2019-09-19 09:39:04 +02:00 committed by Daniel Kiper
parent f9e28d250a
commit a57977b5fa
2 changed files with 6 additions and 1 deletions

View file

@ -74,6 +74,11 @@ unsigned
EXPORT_FUNC (__ctzsi2) (grub_uint32_t x);
#endif
#ifdef HAVE___CLZDI2
int
EXPORT_FUNC (__clzdi2) (grub_uint64_t x);
#endif
#ifdef HAVE___AEABI_UIDIV
grub_uint32_t
EXPORT_FUNC (__aeabi_uidiv) (grub_uint32_t a, grub_uint32_t b);