Changeset 3d6526d in sasmodels


Ignore:
Timestamp:
Aug 21, 2018 12:13:12 PM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
296c52b
Parents:
aa44a6a
Message:

tcc doesn't have the C99 cbrt function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernel_header.c

    r108e70e r3d6526d  
    6868         #define NEED_EXPM1 
    6969         #define NEED_TGAMMA 
     70         #define NEED_CBRT 
    7071         // expf missing from windows? 
    7172         #define expf exp 
     
    8586#  define pown(a,b) pow(a,b) 
    8687#endif // !USE_OPENCL 
     88 
     89#if defined(NEED_CBRT) 
     90   #define cbrt(_x) (pow(_x, 0.33333333333333333333333)) 
     91#endif 
    8792 
    8893#if defined(NEED_EXPM1) 
Note: See TracChangeset for help on using the changeset viewer.