Displaying 4 results from an estimated 4 matches for "__div".
Did you mean:
a_div
2006 Jun 26
0
[klibc 23/43] cris support for klibc
...akefile.inc
+#
+# Special rules for this architecture. Note that this is actually
+# included from the main Makefile, and that pathnames should be
+# accordingly.
+#
+
+KLIBCARCHOBJS = \
+ arch/$(KLIBCARCH)/__Umod.o \
+ arch/$(KLIBCARCH)/__Udiv.o \
+ arch/$(KLIBCARCH)/__Mod.o \
+ arch/$(KLIBCARCH)/__Div.o \
+ arch/$(KLIBCARCH)/__negdi2.o \
+ arch/$(KLIBCARCH)/setjmp.o \
+ arch/$(KLIBCARCH)/syscall.o \
+ arch/$(KLIBCARCH)/vfork.o \
+ libgcc/__divdi3.o \
+ libgcc/__moddi3.o \
+ libgcc/__udivdi3.o \
+ libgcc/__umoddi3.o \
+ libgcc/__udivmoddi4.o
+
+arch/$(KLIBCARCH)/__Umod.o: arch/$(KLIBCARCH)/divide...
2020 Apr 30
0
[klibc:master] arch: Remove cris port
...s/Kbuild b/usr/klibc/arch/cris/Kbuild
deleted file mode 100644
index 13ceeecd..00000000
--- a/usr/klibc/arch/cris/Kbuild
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# klibc files fora cris
-#
-
-always := crt0.o
-targets := crt0.o
-
-klib-y += __negdi2.o setjmp.o syscall.o vfork.o
-
-klib-y += ../../libgcc/__divdi3.o ../../libgcc/__moddi3.o
-klib-y += ../../libgcc/__udivdi3.o ../../libgcc/__umoddi3.o
-klib-y += ../../libgcc/__udivmoddi4.o
-
-# Divide support
-klib-y := __Umod.o __Udiv.o __Mod.o __Div.o
-
-quiet_cmd_cc-div = DIV-CC $@
- cmd_cc-div = $(KLIBCC) $(klibccflags) -c -o $@ $<
-
-
-...
2004 Jun 23
4
CRIS port of klibc
...if (b == 0)
+ return 0xffffffff;
+ tmp = LZ (b);
+
+ if ((b << tmp) > a)
+ {
+ extra = 1 << (tmp-1);
+ a -= b << (tmp - 1);
+ }
+ else
+ {
+ extra = 1 << tmp;
+ a -= b << tmp;
+ }
+ }
+
+ return do_31div (a, b).quot+extra;
+}
+
+
+long
+__Div (long a, long b) __attribute__ ((__const__));
+
+long
+__Div (long a, long b)
+{
+ long sign;
+ long result;
+
+ /* Do *not* call do_31div since abs (-2147483648) == 2147483648
+ <=> abs (-0x80000000) == 0x80000000
+ which is still 32 bits. */
+
+ sign = a ^ b;
+ result = __Udiv...
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In
particular, the patchset has been reorganized so as not to break
git-bisect.
Additionally, this updates the patch base to 2.6.17-git12
(d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main
difference on the klibc side is removal of obsolete code.
This is also available as a git tree at: