1 /*- 2 * Copyright (c) 1980 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.proprietary.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)d_cnjg.c 5.4 (Berkeley) 04/12/91"; 10 #endif /* not lint */ 11 12 #include "complex" 13 #ifdef tahoe 14 #include <tahoe/math/FP.h> 15 #endif 16 17 d_cnjg(r, z) 18 dcomplex *r, *z; 19 { 20 r->dreal = z->dreal; 21 #ifndef tahoe 22 r->dimag = - z->dimag; 23 #else tahoe 24 r->dimag = z->dimag; 25 if (z->dimag == 0.0) 26 return; 27 else 28 *(unsigned long *)&(z->dimag) ^= SIGN_BIT; 29 #endif tahoe 30 } 31