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