mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Remove unused sign() (C++11 has signbit)
This commit is contained in:
parent
af0fcf8773
commit
67286a4971
|
@ -9,11 +9,6 @@
|
||||||
|
|
||||||
using std::clamp;
|
using std::clamp;
|
||||||
|
|
||||||
constexpr inline float sign(float f)
|
|
||||||
{
|
|
||||||
return f < 0.0f ? -1.0f : 1.0f;
|
|
||||||
}
|
|
||||||
|
|
||||||
constexpr inline int round_to_int(float f)
|
constexpr inline int round_to_int(float f)
|
||||||
{
|
{
|
||||||
return f > 0 ? (int)(f + 0.5f) : (int)(f - 0.5f);
|
return f > 0 ? (int)(f + 0.5f) : (int)(f - 0.5f);
|
||||||
|
|
Loading…
Reference in a new issue