cvs commit: src/lib/libc/amd64/stdlib Makefile.inc div.S ldiv.S lldiv.S

Jung-uk Kim jkim at FreeBSD.org
Wed Apr 4 19:54:57 UTC 2007


On Tuesday 03 April 2007 09:19 pm, Jung-uk Kim wrote:
> jkim        2007-04-04 01:19:54 UTC
>
>   FreeBSD src repository
>
>   Added files:
>     lib/libc/amd64/stdlib Makefile.inc div.S ldiv.S lldiv.S
>   Log:
>   Import amd64 assembly implementations of div(3) family from
> NetBSD.
>
>   Obtained from:  NetBSD
>
>   Revision  Changes    Path
>   1.1       +4 -0      src/lib/libc/amd64/stdlib/Makefile.inc (new)
>   1.1       +17 -0     src/lib/libc/amd64/stdlib/div.S (new)
>   1.1       +15 -0     src/lib/libc/amd64/stdlib/ldiv.S (new)
>   1.1       +15 -0     src/lib/libc/amd64/stdlib/lldiv.S (new)

bde reminded me that C version contains bogus fixup.  If we remove the 
fixup, GCC with -O option generates identical code for ldiv(3) and 
lldiv(3) on amd64.

Jung-uk Kim


More information about the cvs-src mailing list