Changeset caf768d in sasmodels
- Timestamp:
- Feb 4, 2016 10:11:33 PM (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:
- e6a5556
- Parents:
- 199d40d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/kernel_template.c
r9c79c32 rcaf768d 16 16 using namespace std; 17 17 #if defined(_MSC_VER) 18 # define kernel extern "C" __declspec( dllexport ) 18 #include <float.h> 19 #define kernel extern "C" __declspec( dllexport ) 19 20 inline double trunc(double x) { return x>=0?floor(x):-floor(-x); } 20 inline double fmin(double x, double y) { return x>y ? y : x; } 21 inline double fmax(double x, double y) { return x<y ? y : x; } 21 inline double fmin(double x, double y) { return x>y ? y : x; } 22 inline double fmax(double x, double y) { return x<y ? y : x; } 23 inline double isnan(double x) { return _isnan(x); } 22 24 #else 23 #define kernel extern "C"25 #define kernel extern "C" 24 26 #endif 25 27 inline void SINCOS(double angle, double &svar, double &cvar) { svar=sin(angle); cvar=cos(angle); }
Note: See TracChangeset
for help on using the changeset viewer.