mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Style
This commit is contained in:
parent
586043fc64
commit
bbdcb7035d
|
@ -45,8 +45,14 @@ constexpr inline int f2fx(float v) { return (int)(v*(float)(1<<10)); }
|
|||
constexpr inline float fx2f(int v) { return v*(1.0f/(1<<10)); }
|
||||
|
||||
// int to fixed
|
||||
inline int i2fx(int v) { return v<<10; }
|
||||
inline int fx2i(int v) { return v>>10; }
|
||||
inline int i2fx(int v)
|
||||
{
|
||||
return v << 10;
|
||||
}
|
||||
inline int fx2i(int v)
|
||||
{
|
||||
return v >> 10;
|
||||
}
|
||||
|
||||
inline int gcd(int a, int b)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue