heinrich5991
eb2823231f
Work around Windows's definition of min
/max
...
This allows us to use `std::min`/`std::max`.
2022-05-31 17:26:35 +02:00
Dennis Felsing
6a7c7ff4cc
Use std::gcd
2022-04-28 17:01:53 +02:00
Dennis Felsing
67286a4971
Remove unused sign() (C++11 has signbit)
2022-04-28 17:01:51 +02:00
Dennis Felsing
af0fcf8773
Use std::clamp
...
Not sure if we want to, there are some easy functions like this we could
take from stdlib now
2022-04-28 17:01:30 +02:00
Robert Müller
c14889e18a
Code format: use multiple lines for function
2022-04-10 15:41:22 +02:00
Robert Müller
05bc25610b
Fix undefined behavior in fixed point number conversion
2022-04-10 15:38:45 +02:00
Alexander Akulich
ed8955e60f
math: Rename frandom() to random_float() to match with random_int()
...
(cherry picked from commit 5e4c7b66c5
)
2021-08-03 14:29:52 +02:00
def
3be8a592e5
Run clang-format
...
Purely automatic change. In case of conflict with this change, apply the
other change and rerun the formatting to restore it:
$ python scripts/fix_style.py
2020-09-26 21:50:15 +02:00
Learath
bbdcb7035d
Style
2020-09-22 15:47:21 +03:00
Learath
586043fc64
Use fixed point conversion consistently
2020-09-22 15:29:16 +03:00
yeojingkang
de6ea67663
Update math.h
2020-08-20 05:02:33 +08:00
yeojingkang
6e9c370eca
Added constexpr to math functions
2020-08-20 04:47:09 +08:00
Learath
37d9e4fa26
Add a saner way to select angles. Close #1916
2019-09-20 23:57:35 +03:00
Learath
93d14a1eca
Inconvenience for windows
2019-04-26 22:36:49 +03:00
Learath
5e5def314f
Add tests
2019-04-24 23:53:38 +03:00
Learath
cc36af73be
Cleanup colors
2019-04-24 23:53:26 +03:00
trml
0b3f3b03b5
Rewrite of prediction code, with additional prediction
2019-04-21 16:12:20 +02:00
def
15ecbb71d1
fixed compiling using visual studio 2013 by renaming the round function
2014-04-22 23:46:55 +02:00
oy
7df537fd68
fixed last commit
2011-06-02 17:38:36 +02:00
Choupom
101d9de3c3
added aspect ratio in display modes list in settings
2011-06-02 17:36:17 +02:00
Sworddragon
fc9211c777
Updated copyrights
2010-11-20 21:26:06 +01:00
Magnus Auvinen
72c06a2589
copied refactor to trunk
2010-05-29 07:25:38 +00:00