complex.h revision 133725
176861Skris/*- 276861Skris * Copyright (c) 2001 The FreeBSD Project. 376861Skris * All rights reserved. 476861Skris * 576861Skris * Redistribution and use in source and binary forms, with or without 676861Skris * modification, are permitted provided that the following conditions 7265830Simp * are met: 876861Skris * 1. Redistributions of source code must retain the above copyright 9233052Sdim * notice, this list of conditions and the following disclaimer. 1096316Sobrien * 2. Redistributions in binary form must reproduce the above copyright 11240468Sbrooks * notice, this list of conditions and the following disclaimer in the 12240468Sbrooks * documentation and/or other materials provided with the distribution. 13189801Srdivacky * 14233052Sdim * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15189801Srdivacky * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16220863Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17233052Sdim * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18220863Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19233052Sdim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20220863Sdim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21233052Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22220863Sdim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23233052Sdim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24233052Sdim * SUCH DAMAGE. 25233052Sdim * 26233052Sdim * $FreeBSD: head/include/complex.h 133725 2004-08-14 18:03:21Z stefanf $ 27161214Sdes */ 28233052Sdim 29233052Sdim#ifndef _COMPLEX_H 30233052Sdim#define _COMPLEX_H 31233052Sdim 32264932Simp#ifdef __GNUC__ 33233052Sdim#if __STDC_VERSION__ < 199901 34264932Simp#define _Complex __complex__ 35233052Sdim#endif 36233052Sdim#define _Complex_I 1.0fi 37233052Sdim#endif 38233052Sdim 39233052Sdim#define complex _Complex 40233052Sdim#define I _Complex_I 41233052Sdim 42233052Sdim#include <sys/cdefs.h> 43233052Sdim 44233052Sdim__BEGIN_DECLS 45233052Sdim 46264932Simpdouble cabs(double complex); 47233052Sdimfloat cabsf(float complex); 48264932Simpdouble cimag(double complex); 49233052Sdimfloat cimagf(float complex); 5094332Sobrienlong double cimagl(long double complex); 51233052Sdimdouble complex conj(double complex); 52233052Sdimfloat complex conjf(float complex); 53233052Sdimlong double complex 54265401Simp conjl(long double complex); 55265400Simpdouble creal(double complex); 56249657Sedfloat crealf(float complex); 57270951Sedlong double creall(long double complex); 58270951Sed 59270951Sed__END_DECLS 60233052Sdim 61233052Sdim#endif /* _COMPLEX_H */ 6288936Sdwmalone