xref: /csrg-svn/lib/libc/quad/anddi3.c (revision 53432)
1*53432Sbostic /*-
2*53432Sbostic  * Copyright (c) 1992 The Regents of the University of California.
3*53432Sbostic  * All rights reserved.
4*53432Sbostic  *
5*53432Sbostic  * %sccs.include.redist.c%
6*53432Sbostic  */
7*53432Sbostic 
8*53432Sbostic #if defined(LIBC_SCCS) && !defined(lint)
9*53432Sbostic static char sccsid[] = "@(#)anddi3.c	5.1 (Berkeley) 05/12/92";
10*53432Sbostic #endif /* LIBC_SCCS and not lint */
11*53432Sbostic 
12*53432Sbostic #include "longlong.h"
13*53432Sbostic 
14*53432Sbostic long long
15*53432Sbostic __anddi3 (u, v)
16*53432Sbostic      long long u, v;
17*53432Sbostic {
18*53432Sbostic   long_long w;
19*53432Sbostic   long_long uu, vv;
20*53432Sbostic 
21*53432Sbostic   uu.ll = u;
22*53432Sbostic   vv.ll = v;
23*53432Sbostic 
24*53432Sbostic   w.s.high = uu.s.high & vv.s.high;
25*53432Sbostic   w.s.low = uu.s.low & vv.s.low;
26*53432Sbostic 
27*53432Sbostic   return w.ll;
28*53432Sbostic }
29