search for: __divsi3

Displaying 16 results from an estimated 16 matches for "__divsi3".

Did you mean: __divdi3
2018 Dec 03
3
The builtins library of compiler-rt is a performance HOG^WKILLER
...quot; (introduced October 1985) is a 32-bit processor, it has instructions to divide 64-bit integers by 32-bit integers, and to multiply two 32-bit integers giving a 64-bit product! I expect that a library written 20+ years later takes advantage of these instructions! __divsi3 (18 instructions) perform a DIV after 2 calls of abs(), plus a final negation, instead of just a single IDIV __modsi3 (14 instructions) calls __divsi3 (18 instructions) __divmodsi4 (17 instructions) calls __divsi3 (18 instructions) __udivsi3 (5...
2011 Mar 10
1
[LLVMdev] compiler-rt: Infinite loop/stack overflow in __modsi3()
...39;s the patch, patterned after the correct implementation in umodsi3.c: diff --git a/lib/compiler-rt/lib/modsi3.c b/lib/compiler-rt/lib/modsi3.c index 388418a..3759ce0 100644 --- a/lib/compiler-rt/lib/modsi3.c +++ b/lib/compiler-rt/lib/modsi3.c @@ -16,8 +16,10 @@ /* Returns: a % b */ +su_int __divsi3(si_int a, si_int b); + si_int __modsi3(si_int a, si_int b) { - return a - (a / b) * b; + return a - __divsi3(a, b) * b; } Best, Matt
2018 Dec 03
3
The builtins library of compiler-rt is a performance HOG^WKILLER
...cessor, it has instructions to divide 64-bit >> integers by 32-bit integers, and to multiply two 32-bit >> integers giving a 64-bit product! >> I expect that a library written 20+ years later takes >> advantage of these instructions! >> >> __divsi3 (18 instructions) perform a DIV after 2 calls of abs(), >> plus a final negation, instead of just >> a single IDIV >> __modsi3 (14 instructions) calls __divsi3 (18 instructions) >> __divmodsi4 (17 instructions) calls __di...
2017 Dec 25
2
Proposal: On re-purposing/reorganizing MIR sigils ('&', '$', '%').
...sters and external symbols so our proposal is to swap the sigil used for external symbols ('$') for the ampersand ('&') and re-purpose dollar-sign for physregs so that physregs have the dollar-sign sigil and vregs have the percentage ('%') sigil: essentially: BL *&*__divsi3 ... ... $eax = ... %123 = ... %vregFooBar = ... I have an initial patch attached (replaces '$' for '&' for external symbols). Hoping to open some dialog with the community before doing more implementation work. Thanks PL -------------- next part -------------- An HTML at...
2018 Jan 08
2
Proposal: On re-purposing/reorganizing MIR sigils ('&', '$', '%').
...symbols so our proposal is to swap the sigil used for external symbols ('$') for the ampersand ('&') and re-purpose dollar-sign for physregs so that physregs have the dollar-sign sigil and vregs have the percentage ('%') sigil: > > essentially: > > BL &__divsi3 ... > > ... > > $eax = ... > > %123 = ... > > %vregFooBar = ... > > > I have an initial patch attached (replaces '$' for '&' for external symbols). Hoping to open some dialog with the community before doing more implementation work. > &...
2017 Dec 26
0
Proposal: On re-purposing/reorganizing MIR sigils ('&', '$', '%').
...proposal is to swap the sigil used for external > symbols ('$') for the ampersand ('&') and re-purpose dollar-sign for > physregs so that physregs have the dollar-sign sigil and vregs have the > percentage ('%') sigil: > > essentially: > > BL *&*__divsi3 ... > > ... > > $eax = ... > > %123 = ... > > %vregFooBar = ... > > > I have an initial patch attached (replaces '$' for '&' for external > symbols). Hoping to open some dialog with the community before doing more > implementation work. &gt...
2018 Jan 08
0
Proposal: On re-purposing/reorganizing MIR sigils ('&', '$', '%').
...il used for external >> symbols ('$') for the ampersand ('&') and re-purpose dollar-sign for >> physregs so that physregs have the dollar-sign sigil and vregs have the >> percentage ('%') sigil: >> >> essentially: >> >> BL *&*__divsi3 ... >> >> ... >> >> $eax = ... >> >> %123 = ... >> >> %vregFooBar = ... >> >> >> I have an initial patch attached (replaces '$' for '&' for external >> symbols). Hoping to open some dialog with the community...
2003 Dec 08
0
[PATCH] Add some libgcc stuff to ia64's Makefile.inc
...-05:00 mort@green.i.bork.org +9 -1 B hpa@zytor.com|ChangeSet|20020723064121|00000|f8a756c36aa22cad C c Add a bunch of libgcc objects. K 41984 O -rw-rw-r-- P klibc/arch/ia64/Makefile.inc ------------------------------------------------ D13 1 I13 9 arch/$(ARCH)/pipe.o \ libgcc/__divdi3.o \ libgcc/__divsi3.o \ libgcc/__udivdi3.o \ libgcc/__udivsi3.o \ libgcc/__umodsi3.o \ libgcc/__umoddi3.o \ libgcc/__udivmodsi4.o \ libgcc/__udivmoddi4.o # Patch checksum=c61569d9 -------------- next part -------------- A non-text attachment was scrubbed... Name: klibc-libgcc-fixes.diff Type: text/x-patch Size:...
2020 Aug 29
0
[klibc:master] ia64: Fix sigaction function implementation
...index 49070ff3..41b8ca06 100644 --- a/usr/klibc/arch/ia64/Kbuild +++ b/usr/klibc/arch/ia64/Kbuild @@ -2,7 +2,7 @@ # klibc files for ia64 # -klib-y := vfork.o setjmp.o pipe.o syscall.o +klib-y := vfork.o setjmp.o sigaction.o pipe.o syscall.o klib-y += ../../libgcc/__divdi3.o ../../libgcc/__divsi3.o klib-y += ../../libgcc/__udivdi3.o ../../libgcc/__udivsi3.o diff --git a/usr/klibc/arch/ia64/sigaction.c b/usr/klibc/arch/ia64/sigaction.c new file mode 100644 index 00000000..c1ea5fdd --- /dev/null +++ b/usr/klibc/arch/ia64/sigaction.c @@ -0,0 +1,50 @@ +/* + * sigaction.c + */ + +#include &l...
2020 Aug 28
0
[klibc:ia64-signal-fix] ia64: Fix sigaction struct layout and function implementation
...index 49070ff3..41b8ca06 100644 --- a/usr/klibc/arch/ia64/Kbuild +++ b/usr/klibc/arch/ia64/Kbuild @@ -2,7 +2,7 @@ # klibc files for ia64 # -klib-y := vfork.o setjmp.o pipe.o syscall.o +klib-y := vfork.o setjmp.o sigaction.o pipe.o syscall.o klib-y += ../../libgcc/__divdi3.o ../../libgcc/__divsi3.o klib-y += ../../libgcc/__udivdi3.o ../../libgcc/__udivsi3.o diff --git a/usr/klibc/arch/ia64/sigaction.c b/usr/klibc/arch/ia64/sigaction.c new file mode 100644 index 00000000..e512bdcd --- /dev/null +++ b/usr/klibc/arch/ia64/sigaction.c @@ -0,0 +1,50 @@ +/* + * sigaction.c + */ + +#include &l...
2004 Feb 22
3
ARM/Thumb updates and some other minor tweaks
...e <stdint.h> diff -ruN klibc-0.114_orig/klibc/libgcc/__udivsi3.c klibc-0.114/klibc/libgcc/__udivsi3.c --- klibc-0.114_orig/klibc/libgcc/__udivsi3.c 2002-09-16 09:45:47.000000000 -0700 +++ klibc-0.114/klibc/libgcc/__udivsi3.c 2004-02-22 04:39:00.000000000 -0800 @@ -1,5 +1,5 @@ /* - * libgcc/__divsi3.c + * libgcc/__udivsi3.c */ #include <stdint.h> diff -ruN klibc-0.114_orig/klibc/libgcc/__umoddi3.c klibc-0.114/klibc/libgcc/__umoddi3.c --- klibc-0.114_orig/klibc/libgcc/__umoddi3.c 2002-08-27 22:16:15.000000000 -0700 +++ klibc-0.114/klibc/libgcc/__umoddi3.c 2004-02-22 04:39:00.00000000...
2006 Jul 09
6
[PATCH/RFC] klibc/kbuild: use separate kbuild files for each klibc subdirectory
This fixes a long standing issue where it was not possible to do "make usr/klibc/arch/x86_64/longjmp.o" in the kernel. The principle is that all .o files to be part of klibc are listed with klib-y. For each directory a klib.list file is made that specify all .o file and the final AR then adds all .o files to create libc.a. This patch introduce the infrastructure and converts x86_64 to
2006 Jun 26
0
[klibc 25/43] ia64 support for klibc
...architecture. Note that this is actually +# included from the main Makefile, and that pathnames should be +# accordingly. +# + +KLIBCARCHOBJS = \ + arch/$(KLIBCARCH)/vfork.o \ + arch/$(KLIBCARCH)/setjmp.o \ + arch/$(KLIBCARCH)/pipe.o \ + arch/$(KLIBCARCH)/syscall.o \ + libgcc/__divdi3.o \ + libgcc/__divsi3.o \ + libgcc/__udivdi3.o \ + libgcc/__udivsi3.o \ + libgcc/__umodsi3.o \ + libgcc/__umoddi3.o \ + libgcc/__udivmodsi4.o \ + libgcc/__udivmoddi4.o + +KLIBCARCHSOOBJS = $(patsubst %o,%.lo,%(KLIBCARCHOBJS)) + +archclean: diff --git a/usr/klibc/arch/ia64/crt0.S b/usr/klibc/arch/ia64/crt0.S new file mod...
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:
2012 Jan 09
39
[PATCH v4 00/25] xen: ARMv7 with virtualization extensions
Hello everyone, this is the fourth version of the patch series that introduces ARMv7 with virtualization extensions support in Xen. The series allows Xen and Dom0 to boot on a Cortex-A15 based Versatile Express simulator. See the following announce email for more informations about what we are trying to achieve, as well as the original git history: See
2011 Dec 06
57
[PATCH RFC 00/25] xen: ARMv7 with virtualization extensions
Hello everyone, this is the very first version of the patch series that introduces ARMv7 with virtualization extensions support in Xen. The series allows Xen and Dom0 to boot on a Cortex-A15 based Versatile Express simulator. See the following announce email for more informations about what we are trying to achieve, as well as the original git history: See