Subject: ns_cksum.c - why are they duplicated ?
To: None <tech-kern@netbsd.org>
From: Jaromir Dolecek <dolecek@ics.muni.cz>
List: tech-kern
Date: 04/05/2000 12:30:34
Hi,
identical ns_cksum.c are present in

syssrc/sys/arch/i386/i386/ns_cksum.c
syssrc/sys/arch/m68k/m68k/ns_cksum.c
syssrc/sys/arch/sh3/sh3/ns_cksum.c

very similar (modulo some u_int8_t <--> u_char) version
is in:

syssrc/sys/netns/ns_cksum.c

Only VAX has something different, with some assemply code in.

Why the duplication is there ? Shouldn't the i386/m68k/sh3
copies be killed ? Probably even the VAX one, the compiler
does probably better job in optimizing the code than
hand crafted assembly.

Other architectures than the above three seem to use
the ns_cksum.c in netns/ns_cksum.c.

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
@@@@  Wanna a real operating system ? Go and get NetBSD, damn!  @@@@