Main Page   Compound List   File List   Compound Members   File Members  

junkmath.h

00001 /* Workarounds for missing ISO C99 math functions
00002  *
00003  * $Id: junkmath.h,v 1.1 2003/02/11 03:17:34 mmunro Exp $
00004  */
00005 
00006 #if (!defined __USE_ISOC99 && !defined _ISOC99_SOURCE && \
00007      !defined _ISOC9X_SOURCE && !(defined __STDC_VERSION__ && \
00008                                   (__STDC_VERSION__ >= 199901L)))
00009 
00010 static double fmax(double a, double b)
00011 {
00012   return (a > b) ? a : b;
00013 }
00014 
00015 static double fmin(double a, double b)
00016 {
00017   return (a < b) ? a : b;
00018 }
00019 
00020 static long double atanl(long double t)
00021 {
00022   return (long double)atan((double)t);
00023 }
00024 
00025 static long double atan2l(long double s, long double t)
00026 {
00027   return (long double)atan2((double)s, (double)t);
00028 }
00029 
00030 #endif

Generated on Tue Jun 22 14:32:07 2004 for trees by doxygen1.2.18