stdio.h defines BUFSIZ
[unix-history] / usr / src / usr.bin / f77 / libF77 / d_cnjg.c
CommitLineData
ceb0890f 1/*
9fee1f06
RE
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 *
a8b283ea 6 * @(#)d_cnjg.c 5.3 %G%
ceb0890f
DW
7 */
8
9#include "complex"
af857331 10#ifdef tahoe
a8b283ea
KB
11#include <tahoe/math/FP.h>
12#endif
ceb0890f
DW
13
14d_cnjg(r, z)
15dcomplex *r, *z;
16{
17r->dreal = z->dreal;
af857331 18#ifndef tahoe
ceb0890f 19r->dimag = - z->dimag;
af857331
KM
20#else tahoe
21r->dimag = z->dimag;
22if (z->dimag == 0.0)
23 return;
24else
25 *(unsigned long *)&(z->dimag) ^= SIGN_BIT;
26#endif tahoe
ceb0890f 27}