summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7f0e1e0)
SCCS-vsn: sys/vax/vax/in_cksum.c 6.3
-/* in_cksum.c 6.2 84/08/28 */
+/* in_cksum.c 6.3 85/05/01 */
#include "types.h"
#include "mbuf.h"
#include "types.h"
#include "mbuf.h"
*/
while ((mlen -= 32) >= 0) {
#undef ADD
*/
while ((mlen -= 32) >= 0) {
#undef ADD
- asm("clrl r0"); /* clears carry */
+#ifdef unneeded /* The loop construct clears carry for us... */
+ asm("bicpsr $1"); /* clears carry */
+#endif
#define ADD asm("adwc (r9)+,r8;");
ADD; ADD; ADD; ADD; ADD; ADD; ADD; ADD;
asm("adwc $0,r8");
}
mlen += 32;
while ((mlen -= 8) >= 0) {
#define ADD asm("adwc (r9)+,r8;");
ADD; ADD; ADD; ADD; ADD; ADD; ADD; ADD;
asm("adwc $0,r8");
}
mlen += 32;
while ((mlen -= 8) >= 0) {
+#ifdef unneeded /* The loop construct clears carry for us... */
+ asm("bicpsr $1"); /* clears carry */
+#endif
ADD; ADD;
asm("adwc $0,r8");
}
ADD; ADD;
asm("adwc $0,r8");
}