153448Sbostic /*- 253448Sbostic * Copyright (c) 1992 The Regents of the University of California. 353448Sbostic * All rights reserved. 453448Sbostic * 5*53794Sbostic * This software was developed by the Computer Systems Engineering group 6*53794Sbostic * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 7*53794Sbostic * contributed to Berkeley. 8*53794Sbostic * 953448Sbostic * %sccs.include.redist.c% 1053448Sbostic */ 1153448Sbostic 1253448Sbostic #if defined(LIBC_SCCS) && !defined(lint) 13*53794Sbostic static char sccsid[] = "@(#)xordi3.c 5.3 (Berkeley) 06/02/92"; 1453448Sbostic #endif /* LIBC_SCCS and not lint */ 1553448Sbostic 16*53794Sbostic #include "quad.h" 1753459Sbostic 18*53794Sbostic /* 19*53794Sbostic * Return a ^ b, in quad. 20*53794Sbostic */ 21*53794Sbostic quad 22*53794Sbostic __xordi3(quad a, quad b) 2353448Sbostic { 24*53794Sbostic union uu aa, bb; 2553448Sbostic 26*53794Sbostic aa.q = a; 27*53794Sbostic bb.q = b; 28*53794Sbostic aa.ul[0] ^= bb.ul[0]; 29*53794Sbostic aa.ul[1] ^= bb.ul[1]; 30*53794Sbostic return (aa.q); 3153448Sbostic } 32