Changeset 73860b6 in sasmodels


Ignore:
Timestamp:
Feb 29, 2016 11:45:56 AM (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:
cf85329
Parents:
e7678b2
Message:

use fast version of square()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernel_template.c

    re7678b2 r73860b6  
    102102#  define M_4PI_3 4.18879020478639 
    103103#endif 
    104 inline double square(double x) { return pow(x,2.0); } 
     104//inline double square(double x) { return pow(x,2.0); } 
    105105//inline double square(double x) { return pown(x,2); } 
    106 //inline double square(x) { return x*x; } 
     106inline double square(x) { return x*x; } 
    107107inline double cube(double x) { return x*x*x; } 
    108108 
Note: See TracChangeset for help on using the changeset viewer.