Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [netbsd-9] src
Module Name: src
Committed By: martin
Date: Wed Feb 22 18:49:17 UTC 2023
Modified Files:
src/lib/libc/string [netbsd-9]: swab.c
src/tests/lib/libc/string [netbsd-9]: t_swab.c
Log Message:
Pull up following revision(s) (requested by riastradh in ticket #1601):
tests/lib/libc/string/t_swab.c: revision 1.3
lib/libc/string/swab.c: revision 1.20
swab(3): Rewrite this to be understandable.
And make the tests work, and exercise all lengths up to 100.
Evidently the previous definition, presumably tightly optimized for
1980s-era compilers and CPUs, was too hard to understand, because it
was incorrectly tested for two decades and broken for years.
PR lib/57141
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.18.48.1 src/lib/libc/string/swab.c
cvs rdiff -u -r1.2 -r1.2.44.1 src/tests/lib/libc/string/t_swab.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index