Hi Bruce, notes on a few of the points you raised (I'll look at others later):

On 19 November 2017 at 04:07, Bruce Evans <b...@optusnet.com.au> wrote:
>
> The vendor version is in libc/string.  It has been ANSIfied, but the
> libkern version has large churning to "optimize" it.  It is the libkern
> version that should have been optimized, since bcmp is unimportant in
> the kernel and in most applications, but applications have a wider range
> so a few might benefit from optimizing it.

I presume you meant "it is the _libc_ version that should have been
optimized", but could also read this as a distinction between
optimized and scare-quotes "optimized."

> bcmp is actually optimized
> in the kernel in support.[sS] for all arches except powerpc and riscv,
> so optimizing the kernel MI version of it is especially unimportant.
> In libc where MD optimizations are more important, they are also not
> done for arm, arm64 and sparc64.

This could make a nice small project for someone to take on.

> - libc version copyright comment not marked for indent protection using
>   "/*-" (this has been subverted to have another meaning which I forget).

I don't believe there's another meaning. IIRC imp@ has pointed out
that it means precisely what you've mentioned above.

>> Modified: head/sys/libkern/cmpdi2.c
>> Modified: head/sys/libkern/divdi3.c
>> Modified: head/sys/libkern/lshrdi3.c
>
> Like ashrdi3.c (not ANSIfied in libc/quad).

Ok, I will update libc/quad to match.

> The above declaration was already correctly ANSIfied in libc/gmon.  This
> unimproves the style by keeping the comment misplaced at the right of the
> code where it is a larger style bug than before -- not the line is too long.
> ANSIfication in libc/gmon put it on a separate line.

Will update the comment along with other mcount tidying.

>> Modified: head/sys/libkern/strcmp.c
>
> The vendor version is in libc/string.  It has been ANSIfied, but the commit
> that did that also made another style fix.  This change catches up with half
> of the older change.

Will update.
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to