9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] more libc/power assembly bits
@ 2003-07-04  1:58 Tad Hunt
  0 siblings, 0 replies; only message in thread
From: Tad Hunt @ 2003-07-04  1:58 UTC (permalink / raw)
  To: 9fans


Two more assembler goodies: strchr() and strlen().

NetBSD has an even more optimized strlen().  According to the
comment at the top it originated in 'The PowerPC Compiler Writer's
Guide', by Steve Hoxey, Faraydon Karim, Bill Hay and Hank Warren.

(http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/arch/powerpc/string/strlen.S?rev=1.2)

However, it would have been way too much work to convert the powerpc
assembly source into qa(1) source.

In any case, these ones should be faster than the C versions from
the libc/port directory.

-Tad

# text/plain; name="strlen.s" [ strlen.s ] /usr/home/tad/R1.2.0/plan9/src/libc/power/strlen.s
# text/plain; name="strchr.s" [ strchr.s ] /usr/home/tad/R1.2.0/plan9/src/libc/power/strchr.s


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-04  1:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-04  1:58 [9fans] more libc/power assembly bits Tad Hunt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).