|
|
1.1 ! root 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.2 11/3/86 ! 7: */ ! 8: ! 9: #include "complex" ! 10: #ifdef tahoe ! 11: #include <tahoemath/FP.h> ! 12: #endif tahoe ! 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: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.