189857Sobrien/*- 289857Sobrien * Copyright (c) 1992, 1993 389857Sobrien * The Regents of the University of California. All rights reserved. 489857Sobrien * 589857Sobrien * This software was developed by the Computer Systems Engineering group 689857Sobrien * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 789857Sobrien * contributed to Berkeley. 889857Sobrien * 989857Sobrien * Redistribution and use in source and binary forms, with or without 1089857Sobrien * modification, are permitted provided that the following conditions 1189857Sobrien * are met: 1289857Sobrien * 1. Redistributions of source code must retain the above copyright 1389857Sobrien * notice, this list of conditions and the following disclaimer. 14218822Sdim * 2. Redistributions in binary form must reproduce the above copyright 1589857Sobrien * notice, this list of conditions and the following disclaimer in the 1689857Sobrien * documentation and/or other materials provided with the distribution. 1789857Sobrien * 3. Neither the name of the University nor the names of its contributors 1889857Sobrien * may be used to endorse or promote products derived from this software 1989857Sobrien * without specific prior written permission. 2089857Sobrien * 2189857Sobrien * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2289857Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2389857Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2489857Sobrien * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2589857Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2689857Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#include "quad.h" 35 36/* 37 * Return a & b, in quad. 38 */ 39quad_t 40__anddi3(quad_t a, quad_t b) 41{ 42 union uu aa, bb; 43 44 aa.q = a; 45 bb.q = b; 46 aa.ul[0] &= bb.ul[0]; 47 aa.ul[1] &= bb.ul[1]; 48 return (aa.q); 49} 50