Displaying 1 result from an estimated 1 matches for "13e636c".
Did you mean:
13636
2007 Nov 05
1
klibc sparc trouble with gcc > 4.0
...@@
# klibc files for sparc64
#
-klib-y := pipe.o setjmp.o syscall.o sysfork.o
+klib-y := pipe.o setjmp.o syscall.o sysfork.o ../../libgcc/__clzdi2.o
always := crt0.o
targets := crt0.o
diff --git a/usr/klibc/libgcc/__clzdi2.c b/usr/klibc/libgcc/__clzdi2.c
new file mode 100644
index 0000000..13e636c
--- /dev/null
+++ b/usr/klibc/libgcc/__clzdi2.c
@@ -0,0 +1,23 @@
+/*
+ * __clzdi2 - Returns the leading number of 0 bits in the argument
+ */
+
+#include <stdint.h>
+#include <stddef.h>
+
+uint64_t __clzdi2(uint64_t v)
+{
+ uint32_t vhi = (uint32_t) (v >> 32);
+ uint32_t vx;
+ int...