rmp_var.h (27077) | rmp_var.h (27079) |
---|---|
1/* 2 * Copyright (c) 1988, 1992 The University of Utah and the Center 3 * for Software Science (CSS). 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * the Center for Software Science of the University of Utah Computer --- 113 unchanged lines hidden (view full) --- 122 * from this problem, add it to the vax/tahoe/m68k #define below. 123 * 124 * The following macros are used to deal with this problem: 125 * WORDZE(w) Return True if u_word `w' is zero, False otherwise. 126 * ZEROWORD(w) Set u_word `w' to zero. 127 * COPYWORD(w1,w2) Copy u_word `w1' to `w2'. 128 * GETWORD(w,i) Copy u_word `w' into int `i'. 129 * PUTWORD(i,w) Copy int `i' into u_word `w'. | 1/* 2 * Copyright (c) 1988, 1992 The University of Utah and the Center 3 * for Software Science (CSS). 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * the Center for Software Science of the University of Utah Computer --- 113 unchanged lines hidden (view full) --- 122 * from this problem, add it to the vax/tahoe/m68k #define below. 123 * 124 * The following macros are used to deal with this problem: 125 * WORDZE(w) Return True if u_word `w' is zero, False otherwise. 126 * ZEROWORD(w) Set u_word `w' to zero. 127 * COPYWORD(w1,w2) Copy u_word `w1' to `w2'. 128 * GETWORD(w,i) Copy u_word `w' into int `i'. 129 * PUTWORD(i,w) Copy int `i' into u_word `w'. |
130 * | 130 * |
131 * N.B. Endianness is handled by use of ntohl/htonl 132 */ 133#if defined(__vax__) || defined(__tahoe__) || defined(__m68k__) 134 135typedef u_int32_t u_word; 136 137#define WORDZE(w) ((w) == 0) 138#define ZEROWORD(w) (w) = 0 --- 106 unchanged lines hidden --- | 131 * N.B. Endianness is handled by use of ntohl/htonl 132 */ 133#if defined(__vax__) || defined(__tahoe__) || defined(__m68k__) 134 135typedef u_int32_t u_word; 136 137#define WORDZE(w) ((w) == 0) 138#define ZEROWORD(w) (w) = 0 --- 106 unchanged lines hidden --- |