xref: /csrg-svn/lib/libc/quad/notdi2.c (revision 53443)
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[] = "@(#)notdi2.c	5.1 (Berkeley) 05/12/92";
10 #endif /* LIBC_SCCS and not lint */
11 
12 #include "longlong.h"
13 
14 long long
15 __one_cmpldi2 (u)
16      long long u;
17 {
18   long_long w;
19   long_long uu;
20 
21   uu.ll = u;
22 
23   w.s.high = ~uu.s.high;
24   w.s.low = ~uu.s.low;
25 
26   return w.ll;
27 }
28