xref: /original-bsd/usr.bin/f77/libF77/d_cnjg.c (revision 3588a932)
1 /*
2  * Copyright (c) 1980 Regents of the University of California.
3  * All rights reserved.  The Berkeley software License Agreement
4  * specifies the terms and conditions for redistribution.
5  *
6  *	@(#)d_cnjg.c	5.3	01/15/91
7  */
8 
9 #include "complex"
10 #ifdef tahoe
11 #include <tahoe/math/FP.h>
12 #endif
13 
14 d_cnjg(r, z)
15 dcomplex *r, *z;
16 {
17 r->dreal = z->dreal;
18 #ifndef tahoe
19 r->dimag = - z->dimag;
20 #else tahoe
21 r->dimag = z->dimag;
22 if (z->dimag == 0.0)
23 	return;
24 else
25 	*(unsigned long *)&(z->dimag) ^= SIGN_BIT;
26 #endif tahoe
27 }
28