Skip to content
Snippets Groups Projects
Commit 84534254 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Add another work-around for CCE.

* Apparently craycc also makes some optimistic assumptions about the effect
  of comparing -0.0 to 0.0.
parent 602e14ca
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -23,7 +23,11 @@ void var_scale(int datatype, double *mscale, double *mrscale);
static inline double
sign_flat(double v)
{
#ifdef _CRAYC
if (v == 0 && copysign(1.0, v) < 0.0) return 0.0;
#else
if (!(v < 0.0 || v > 0.0)) return 0.0;
#endif
// if (v == 0.0) return 0.0;
return v;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment