Skip to content
Snippets Groups Projects
Commit 6a30269a authored by René Fritze's avatar René Fritze
Browse files

[common/math] removes deprecated sign function

parent bba5c02d
No related branches found
No related tags found
No related merge requests found
......@@ -177,12 +177,6 @@ T clamp(const T var, const T min, const T max)
return (var < min) ? min : (var > max) ? max : var;
}
//! no-branch sign function
inline long DUNE_DEPRECATED_MSG("Please consider the type safe signum function instead") sign(long x)
{
return long(x != 0) | (long(x >= 0) - 1);
}
/**
* \returns: -1 iff val < 0
* 0 iff val == 0
......
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