Changeset 79290f for pcp/src/mymath.c
- Timestamp:
- Jun 7, 2008, 1:13:29 PM (17 years ago)
- Children:
- 02bc3c
- Parents:
- a97897
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pcp/src/mymath.c
ra97897 r79290f 21 21 */ 22 22 23 #ifdef HAVE_CONFIG_H 24 #include <config.h> 25 #endif 26 23 27 #include<stdlib.h> 24 28 #include<stdio.h> … … 29 33 30 34 // use double precision fft when we have it 31 #ifdef HAVE_CONFIG_H32 #include <config.h>33 #endif34 35 35 #ifdef HAVE_DFFTW_H 36 36 #include "dfftw.h" … … 338 338 * \note formula and coefficients are taken from "Numerical Receipes in C" 339 339 */ 340 static double gammln(double xx) { 340 #ifdef HAVE_INLINE 341 inline double gammln(double xx) 342 #else 343 double gammln(double xx) 344 #endif 345 { 341 346 int j; 342 347 double x,tmp,ser; … … 361 366 * \warning maximum precision 1e-7 362 367 */ 363 static double gser(double a, double x) { 368 #ifdef HAVE_INLINE 369 inline double gser(double a, double x) 370 #else 371 double gser(double a, double x) 372 #endif 373 { 364 374 double gln = gammln(a); 365 375 double ap,sum,del; … … 389 399 * \note formula and coefficients are taken from "Numerical Receipes in C" 390 400 */ 391 static double gcf(double a, double x) { 401 #ifdef HAVE_INLINE 402 inline double gcf(double a, double x) 403 #else 404 double gcf(double a, double x) 405 #endif 406 { 392 407 double gln = gammln(a); 393 408 double gold = 0.0; … … 429 444 * \note formula and coefficients are taken from "Numerical Receipes in C" 430 445 */ 431 static double gammp(double a, double x) { 446 #ifdef HAVE_INLINE 447 inline double gammp(double a, double x) 448 #else 449 double gammp(double a, double x) 450 #endif 451 { 432 452 double res; 433 453 if (x < a+1.) {
Note:
See TracChangeset
for help on using the changeset viewer.