Changeset 07142f3 in sasmodels
- Timestamp:
- Mar 17, 2016 7:10:38 AM (9 years ago)
- 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:
- 38daeec
- Parents:
- 16afd49
- Location:
- sasmodels/models
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/lib/j0d.c
r0a9d219 r07142f3 99 99 100 100 //Cephes single precission 101 if ( FLOAT_SIZE>4 ) { 101 #if FLOAT_SIZE>4 102 102 double w, z, p, q, xn; 103 103 … … 222 222 223 223 return( p * SQ2OPI / sqrt(x) ); 224 }225 224 //Cephes single precission 226 else { 225 #else 227 226 double xx, w, z, p, q, xn; 228 227 … … 299 298 p = p * cosf(xn + xx); 300 299 return(p); 300 #endif 301 301 302 } 302 } 303 304 303 304 -
sasmodels/models/lib/j1d.c
r0a9d219 r07142f3 81 81 82 82 //Cephes double pression function 83 if (FLOAT_SIZE>4) { 83 #if FLOAT_SIZE>4 84 84 85 85 double w, z, p, q, xn; … … 183 183 return( p * SQ2OPI / sqrt(x) ); 184 184 185 } 185 186 186 //Single precission version of cephes 187 else { 187 #else 188 188 double xx, w, z, p, q, xn; 189 189 … … 245 245 246 246 return(p); 247 #endif 247 248 } 248 } 249 249 -
sasmodels/models/lib/jnd.c
r0a9d219 r07142f3 82 82 return( 0.0 ); 83 83 84 if (FLOAT_SIZE > 4)84 #if FLOAT_SIZE > 4 85 85 k = 53; 86 else86 #else 87 87 k = 24; 88 #endif 88 89 89 90 pk = 2 * (n + k); … … 100 101 pk = 1.0; 101 102 102 if (FLOAT_SIZE > 4) {103 #if FLOAT_SIZE > 4 103 104 ans = x/ans; 104 105 pkm1 = 1.0/ans; … … 120 121 121 122 return( sign * ans ); 122 } 123 else {123 124 #else 124 125 xinv = 1.0/x; 125 126 pkm1 = ans * xinv; … … 147 148 ans = sign * j0(x)/pkm1; 148 149 return( ans ); 149 }150 #endif 150 151 } 151 152
Note: See TracChangeset
for help on using the changeset viewer.