Mercurial > forge
comparison extra/NaN/src/sumskipnan_mex.cpp @ 12702:29b7963bf748 octave-forge
define typeof() when missing; support for clang compiler added
author | schloegl |
---|---|
date | Tue, 22 Dec 2015 10:28:53 +0000 |
parents | 13815b367946 |
children |
comparison
equal
deleted
inserted
replaced
12701:794b03395bbd | 12702:29b7963bf748 |
---|---|
56 math.h has isnan() defined for all sizes of floating point numbers, | 56 math.h has isnan() defined for all sizes of floating point numbers, |
57 but c++ assumes isnan(double), causing possible conversions for float and long double | 57 but c++ assumes isnan(double), causing possible conversions for float and long double |
58 */ | 58 */ |
59 #define ISNAN(a) (a!=a) | 59 #define ISNAN(a) (a!=a) |
60 | 60 |
61 #ifndef typeof | |
62 #define typeof __typeof__ | |
63 #endif | |
61 | 64 |
62 inline void __sumskipnan2w__(double *data, size_t Ni, double *s, double *No, char *flag_anyISNAN, double *W); | 65 inline void __sumskipnan2w__(double *data, size_t Ni, double *s, double *No, char *flag_anyISNAN, double *W); |
63 inline void __sumskipnan3w__(double *data, size_t Ni, double *s, double *s2, double *No, char *flag_anyISNAN, double *W); | 66 inline void __sumskipnan3w__(double *data, size_t Ni, double *s, double *s2, double *No, char *flag_anyISNAN, double *W); |
64 inline void __sumskipnan2wr__(double *data, size_t Ni, double *s, double *No, char *flag_anyISNAN, double *W); | 67 inline void __sumskipnan2wr__(double *data, size_t Ni, double *s, double *No, char *flag_anyISNAN, double *W); |
65 inline void __sumskipnan3wr__(double *data, size_t Ni, double *s, double *s2, double *No, char *flag_anyISNAN, double *W); | 68 inline void __sumskipnan3wr__(double *data, size_t Ni, double *s, double *s2, double *No, char *flag_anyISNAN, double *W); |