Changeset 6ee9d39 in sasmodels


Ignore:
Timestamp:
Mar 26, 2015 2:06:26 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:
f3f46cd
Parents:
e7724f5
Message:

windows compiler doesn't have fmin/fmax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernel_template.c

    r750ffa5 r6ee9d39  
    1616     #   define kernel extern "C" __declspec( dllexport ) 
    1717         inline double trunc(double x) { return x>=0?floor(x):-floor(-x); } 
     18         inline double fmin(double x, double y) { return x>y ? y : x; } 
     19         inline double fmax(double x, double y) { return x<y ? y : x; } 
    1820     #else 
    1921     #   define kernel extern "C" 
Note: See TracChangeset for help on using the changeset viewer.