Changeset deac08c in sasmodels
 Timestamp:
 Feb 26, 2016 4:42:27 PM (7 years ago)
 Branches:
 master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket1257vesicleproduct, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
 Children:
 e7678b2
 Parents:
 a8bd500
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

sasmodels/kernel_template.c
r960cd80 rdeac08c 67 67 # define pown(a,b) pow(a,b) 68 68 #else 69 # if def USE_SINCOS69 # if defined(USE_SINCOS) 70 70 # define SINCOS(angle,svar,cvar) svar=sincos(angle,&cvar) 71 71 # else … … 89 89 #endif 90 90 91 // Nonstandard pi/180, used for converting between degrees and radians 91 // Nonstandard function library 92 // pi/180, used for converting between degrees and radians 93 // 4/3 pi for computing sphere volumes 94 // square and cube for computing squares and cubes 92 95 #ifndef M_PI_180 93 96 # define M_PI_180 0.017453292519943295 94 97 #endif 98 #ifndef M_4PI_3 99 # define M_4PI_3 4.18879020478639 100 #endif 101 inline double square(double x) { return pow(x,2.0); } 102 //inline double square(double x) { return pown(x,2); } 103 //inline double square(x) { return x*x; } 104 inline double cube(double x) { return x*x*x; } 95 105 96 106
Note: See TracChangeset
for help on using the changeset viewer.