xref: /original-bsd/lib/libc/quad/notdi2.c (revision d601c47c)
1 /*-
2  * Copyright (c) 1992 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * This software was developed by the Computer Systems Engineering group
6  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
7  * contributed to Berkeley.
8  *
9  * %sccs.include.redist.c%
10  */
11 
12 #if defined(LIBC_SCCS) && !defined(lint)
13 static char sccsid[] = "@(#)notdi2.c	5.4 (Berkeley) 06/25/92";
14 #endif /* LIBC_SCCS and not lint */
15 
16 #include "quad.h"
17 
18 /*
19  * Return ~a.  For some reason gcc calls this `one's complement' rather
20  * than `not'.
21  */
22 quad_t
23 __one_cmpldi2(a)
24 	quad_t a;
25 {
26 	union uu aa;
27 
28 	aa.q = a;
29 	aa.ul[0] = ~aa.ul[0];
30 	aa.ul[1] = ~aa.ul[1];
31 	return (aa.q);
32 }
33