* optimization of string (and math) routines in (g)libc
1996-07-22 15:00 optimization of string " Martin Ostermann
@ 1996-07-22 19:47 ` Scott Locklin ESG
1996-07-22 20:17 ` Richard Henderson
0 siblings, 1 reply; 4+ messages in thread
From: Scott Locklin ESG @ 1996-07-22 19:47 UTC (permalink / raw)
On Mon, 22 Jul 1996, Martin Ostermann wrote:
> I intend to do some Alpha specific optimizations on the string
> routines of libc, but I wanted to ask if anybody else already made
> improvements. It makes little sense to do things twice.
>
> David, in patches on azstarnet I saw you've been writing math routines
> in glibc. But I havn't found any string routines beyond libc-0.43,
> which contains strlen.S. If there's more, please let me know.
I have not seen any of these; could you point me to the correct file?
This is something I was thinking of doing as well, though I have
something of a steep learning curve ahead, as I am only now
learning about how "these things" (the insides of alpha chips and gcc :)
work.
The axp really shines in raw number crunching abilities; it would be nice
if we could juice up those awful BSD routines that are being used now &
get Linux-AXP somewhat closer to the abilities of the hardware.
-Scott
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: optimization of string (and math) routines in (g)libc
1996-07-22 19:47 ` optimization of string (and math) " Scott Locklin ESG
@ 1996-07-22 20:17 ` Richard Henderson
0 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 1996-07-22 20:17 UTC (permalink / raw)
> The axp really shines in raw number crunching abilities; it would be nice
> if we could juice up those awful BSD routines that are being used now &
> get Linux-AXP somewhat closer to the abilities of the hardware.
FWIW, glibc uses a slightly modified version of Sun's fdlibm.
Not really being a number cruncher, I've no idea how that compares
with the BSD functions or how optimal they are.
r~
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: optimization of string (and math) routines in (g)libc
@ 1996-07-23 16:10 Martin Ostermann
0 siblings, 0 replies; 4+ messages in thread
From: Martin Ostermann @ 1996-07-23 16:10 UTC (permalink / raw)
>> David, in patches on azstarnet I saw you've been writing math routines
>> in glibc. But I havn't found any string routines beyond libc-0.43,
>> which contains strlen.S. If there's more, please let me know.
> I have not seen any of these; could you point me to the correct file?
Hm, don't know if we mean the same with "math routines". I just
scanned the patches, and in the latest I found:
53 [charly] tmp> zcat libc-960712-alpha.diff.gz | grep libc-960712/sysdeps/alph
a | grep diff
diff -urN libc-orig/sysdeps/alpha/add_n.S libc-960712/sysdeps/alpha/add_n.S
diff -urN libc-orig/sysdeps/alpha/add_n.s libc-960712/sysdeps/alpha/add_n.s
diff -urN libc-orig/sysdeps/alpha/addmul_1.S libc-960712/sysdeps/alpha/addmul_1.S
diff -urN libc-orig/sysdeps/alpha/addmul_1.s libc-960712/sysdeps/alpha/addmul_1.s
diff -urN libc-orig/sysdeps/alpha/lshift.S libc-960712/sysdeps/alpha/lshift.S
diff -urN libc-orig/sysdeps/alpha/lshift.s libc-960712/sysdeps/alpha/lshift.s
diff -urN libc-orig/sysdeps/alpha/mul_1.S libc-960712/sysdeps/alpha/mul_1.S
diff -urN libc-orig/sysdeps/alpha/mul_1.s libc-960712/sysdeps/alpha/mul_1.s
diff -urN libc-orig/sysdeps/alpha/rshift.S libc-960712/sysdeps/alpha/rshift.S
diff -urN libc-orig/sysdeps/alpha/rshift.s libc-960712/sysdeps/alpha/rshift.s
diff -urN libc-orig/sysdeps/alpha/sqrt-strict.c libc-960712/sysdeps/alpha/sqrt-strict.c
diff -urN libc-orig/sysdeps/alpha/sub_n.S libc-960712/sysdeps/alpha/sub_n.S
diff -urN libc-orig/sysdeps/alpha/sub_n.s libc-960712/sysdeps/alpha/sub_n.s
diff -urN libc-orig/sysdeps/alpha/submul_1.S libc-960712/sysdeps/alpha/submul_1.S
diff -urN libc-orig/sysdeps/alpha/submul_1.s libc-960712/sysdeps/alpha/submul_1.s
diff -urN libc-orig/sysdeps/alpha/udiv_qrnnd.S libc-960712/sysdeps/alpha/udiv_qrnnd.S
diff -urN libc-orig/sysdeps/alpha/w_sqrt.S libc-960712/sysdeps/alpha/w_sqrt.S
54 [charly] tmp>
So apperantly the machine generated .s variants were replaced by
hand-crafted assembler.
> This is something I was thinking of doing as well, though I have
> something of a steep learning curve ahead, as I am only now
> learning about how "these things" (the insides of alpha chips and gcc :)
> work.
Well, concerning integer instruction the Alpha has a VRISC (very
reduced instruction set), I'd say. Floats will be more difficult. I
will just do the string stuff.
Bye, Martin
--
Martin Ostermann | mailto:ost@comnets.rwth-aachen.de
Communication Networks | http://www.comnets.rwth-aachen.de/~ost
Aachen University of Technology | phoneto:++49/241/807917
Germany | faxto:++49/241/8890378
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: optimization of string (and math) routines in (g)libc
@ 1996-07-28 23:23 David Mosberger-Tang
0 siblings, 0 replies; 4+ messages in thread
From: David Mosberger-Tang @ 1996-07-28 23:23 UTC (permalink / raw)
>>>>> On Tue, 23 Jul 1996 18:10:11 +0200, Martin Ostermann <ost@comnets.rwth-aachen.de> said:
>>> David, in patches on azstarnet I saw you've been writing math
>>> routines in glibc. But I havn't found any string routines beyond
>>> libc-0.43, which contains strlen.S. If there's more, please let
>>> me know.
>> I have not seen any of these; could you point me to the correct
>> file?
The only improved function is sqrt(). The math library could use a
lot of work, though Sun's fdlibm seems a lot better than the BSD code
(and, it's fairly complete as far as I can tell).
--david
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1996-07-28 23:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-07-28 23:23 optimization of string (and math) routines in (g)libc David Mosberger-Tang
-- strict thread matches above, loose matches on Subject: below --
1996-07-23 16:10 Martin Ostermann
1996-07-22 15:00 optimization of string " Martin Ostermann
1996-07-22 19:47 ` optimization of string (and math) " Scott Locklin ESG
1996-07-22 20:17 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox