153432Sbostic /*- 253432Sbostic * Copyright (c) 1992 The Regents of the University of California. 353432Sbostic * All rights reserved. 453432Sbostic * 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 * 953432Sbostic * %sccs.include.redist.c% 1053432Sbostic */ 1153432Sbostic 1253432Sbostic #if defined(LIBC_SCCS) && !defined(lint) 13*53794Sbostic static char sccsid[] = "@(#)anddi3.c 5.3 (Berkeley) 06/02/92"; 1453432Sbostic #endif /* LIBC_SCCS and not lint */ 1553432Sbostic 16*53794Sbostic #include "quad.h" 1753459Sbostic 18*53794Sbostic /* 19*53794Sbostic * Return a & b, in quad. 20*53794Sbostic */ 21*53794Sbostic quad 22*53794Sbostic __anddi3(quad a, quad b) 2353432Sbostic { 24*53794Sbostic union uu aa, bb; 2553432Sbostic 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); 3153432Sbostic } 32