Module Name: src Committed By: martin Date: Wed Feb 22 18:50:42 UTC 2023
Modified Files: src/lib/libc/string [netbsd-8]: swab.c src/tests/lib/libc/string [netbsd-8]: t_swab.c Log Message: Pull up following revision(s) (requested by riastradh in ticket #1798): 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.38.1 src/lib/libc/string/swab.c cvs rdiff -u -r1.2 -r1.2.34.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.