From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: Tad Hunt Message-ID: Subject: [9fans] more libc/power assembly bits Date: Thu, 3 Jul 2003 18:58:00 -0700 Topicbox-Message-UUID: e7f64012-eacb-11e9-9e20-41e7f4b1d025 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