RISC-V: Add libgcc helpers for clz

Gcc may decide it wants to call helper functions to execute clz. Provide
them in our own copy of libgcc.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Alexander Graf authored and Daniel Kiper committed 2019-02-25 14:02:05 +01:00
1 parent 861212333e
commit e795b9011f
2 files changed
+49

No files matched your search

+7
View File
@@ -108,6 +108,13 @@ EXPORT_FUNC (__aeabi_llsr) (grub_uint64_t u, int b);
#endif
#ifdef __riscv
int
EXPORT_FUNC (__clzsi2) (grub_uint32_t val);
int
EXPORT_FUNC (__clzdi2) (grub_uint64_t val);
#endif
#if defined (__powerpc__)