Skip to content
Snippets Groups Projects
Commit ae22bfda authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Change variable names inside our homemade sincos() implementation to fight...

Change variable names inside our homemade sincos() implementation to fight against pedantic compilers
parent 8c63b3ed
No related branches found
No related tags found
2 merge requests!1715Update planetary strength after planetary plus's master rebase,!1693More threapool plotting tweaks
......@@ -41,11 +41,11 @@
* @param cos (return) The cosine of x.
*/
__attribute__((always_inline)) INLINE static void sincos(const double x,
double *sin,
double *cos) {
double *restrict s,
double *restrict c) {
*sin = sin(x);
*cos = cos(x);
*s = sin(x);
*c = cos(x);
}
#endif
......@@ -63,11 +63,11 @@ __attribute__((always_inline)) INLINE static void sincos(const double x,
* @param cos (return) The cosine of x.
*/
__attribute__((always_inline)) INLINE static void sincosf(const float x,
float *sin,
float *cos) {
float *restrict s,
float *restrict c) {
*sin = sinf(x);
*cos = cosf(x);
*s = sinf(x);
*c = cosf(x);
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment