153432Sbostic /*- 2*61154Sbostic * Copyright (c) 1992, 1993 3*61154Sbostic * The Regents of the University of California. All rights reserved. 453432Sbostic * 553794Sbostic * This software was developed by the Computer Systems Engineering group 653794Sbostic * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 753794Sbostic * contributed to Berkeley. 853794Sbostic * 953432Sbostic * %sccs.include.redist.c% 1053432Sbostic */ 1153432Sbostic 1253432Sbostic #if defined(LIBC_SCCS) && !defined(lint) 13*61154Sbostic static char sccsid[] = "@(#)anddi3.c 8.1 (Berkeley) 06/04/93"; 1453432Sbostic #endif /* LIBC_SCCS and not lint */ 1553432Sbostic 1653794Sbostic #include "quad.h" 1753459Sbostic 1853794Sbostic /* 1953794Sbostic * Return a & b, in quad. 2053794Sbostic */ 2154431Sbostic quad_t __anddi3(a,b)2254431Sbostic__anddi3(a, b) 2354431Sbostic quad_t a, b; 2453432Sbostic { 2553794Sbostic union uu aa, bb; 2653432Sbostic 2753794Sbostic aa.q = a; 2853794Sbostic bb.q = b; 2953794Sbostic aa.ul[0] &= bb.ul[0]; 3053794Sbostic aa.ul[1] &= bb.ul[1]; 3153794Sbostic return (aa.q); 3253432Sbostic } 33