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