Skip to content
Snippets Groups Projects
Commit e19d002f authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
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 89b08bb9
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,11 @@ 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