Changeset c7b058e in sasmodels


Ignore:
Timestamp:
Apr 26, 2016 12:18:20 PM (9 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
e9dc7df
Parents:
e07b470
Message:

code cleanup: don't leak #defines from cephes tgamma function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/models/lib/sas_gamma.c

    re07b470 rc7b058e  
    1212static double cephes_stirf(double x) 
    1313{ 
    14 #define MAXSTIR 143.01608 
    15 #define SQTPI 2.50662827463100050242E0 
     14        const double MAXSTIR=143.01608; 
     15        const double SQTPI=2.50662827463100050242E0; 
    1616        double y, w, v; 
    1717 
     
    4040 
    4141double sas_gamma(double x) { 
    42 #define MAXGAM 171.624376956302725 
    43 #define LOGPI 1.14472988584940017414 
     42        const double MAXGAM=171.624376956302725; 
     43        const double LOGPI=1.14472988584940017414; 
    4444        double p, q, z; 
    4545        int sgngam; 
Note: See TracChangeset for help on using the changeset viewer.