Changeset 79290f for pcp/src/mymath.c


Ignore:
Timestamp:
Jun 7, 2008, 1:13:29 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
02bc3c
Parents:
a97897
Message:

config.h is included in each and every file. After trying to compile on JUMP (with xlc).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pcp/src/mymath.c

    ra97897 r79290f  
    2121*/
    2222
     23#ifdef HAVE_CONFIG_H
     24#include <config.h>
     25#endif
     26
    2327#include<stdlib.h>
    2428#include<stdio.h>
     
    2933
    3034// use double precision fft when we have it
    31 #ifdef HAVE_CONFIG_H
    32 #include <config.h>
    33 #endif
    34 
    3535#ifdef HAVE_DFFTW_H
    3636#include "dfftw.h"
     
    338338 * \note formula and coefficients are taken from "Numerical Receipes in C"
    339339 */
    340 static double gammln(double xx) {
     340#ifdef HAVE_INLINE
     341inline double gammln(double xx)
     342#else
     343double gammln(double xx)
     344#endif
     345{
    341346  int j;
    342347  double x,tmp,ser;
     
    361366 * \warning maximum precision 1e-7
    362367 */
    363 static double gser(double a, double x) {
     368#ifdef HAVE_INLINE
     369inline double gser(double a, double x)
     370#else
     371double gser(double a, double x)
     372#endif
     373{
    364374  double gln = gammln(a);
    365375  double ap,sum,del;
     
    389399 * \note formula and coefficients are taken from "Numerical Receipes in C"
    390400 */
    391 static double gcf(double a, double x) {
     401#ifdef HAVE_INLINE
     402inline double gcf(double a, double x)
     403#else
     404double gcf(double a, double x)
     405#endif
     406{
    392407  double gln = gammln(a);
    393408  double gold = 0.0;
     
    429444 * \note formula and coefficients are taken from "Numerical Receipes in C"
    430445 */
    431 static double gammp(double a, double x) {
     446#ifdef HAVE_INLINE
     447inline double gammp(double a, double x)
     448#else
     449double gammp(double a, double x)
     450#endif
     451{
    432452  double res;
    433453  if (x < a+1.) {
Note: See TracChangeset for help on using the changeset viewer.