source: sasview/src/sas/sascalc/calculator/c_extensions/libfunc.h @ 60a4e71

Last change on this file since 60a4e71 was f54e82cf, checked in by Torin Cooper-Bennun <torin.cooper-bennun@…>, 6 years ago

Cherry-pick changes from master for tinycc compatibility (note: tinycc compilation not yet supported fully):

144e032af2 tinycc doesn't return structures, so must pass return structure as pointer
a1daf86c0d hack around broken isfinite/isnan in tinycc
7e82256ecb declare all variables at the start of the block so C89 compilers don't complain

  • Property mode set to 100644
File size: 602 bytes
RevLine 
[9e531f2]1#if !defined(o_h)
2#define libfunc_h
3typedef struct {
4        double uu;
5        double dd;
6        double re_ud;
7        double im_ud;
8        double re_du;
9        double im_du;
10} polar_sld;
11
12int factorial(int i);
13
14double Si(double x);
15
16double sinc(double x);
17
[b6c8abe]18//double gamln(double x);
[9e531f2]19
[f54e82cf]20void cal_msld(polar_sld*, int isangle, double qx, double qy, double bn, double m01, double mtheta1, 
[9e531f2]21                        double mphi1, double spinfraci, double spinfracf, double spintheta);
22
[b6c8abe]23//void gser(float *gamser, float a, float x, float *gln);
[9e531f2]24
[b6c8abe]25//void gcf(float *gammcf, float a, float x, float *gln);
[9e531f2]26
[b6c8abe]27//float gammp(float a,float x);
[9e531f2]28
[b6c8abe]29//float erff(float x);
[9e531f2]30
31#endif
Note: See TracBrowser for help on using the repository browser.