kleines Filmröllchen
98058f7efe
AK: Add FixedPoint base 2 logarithm
...
The log base 2 is implemented using the binary logarithm algorithm
by Clay Turner (see the link in the comment)
2022-02-28 13:59:31 +01:00
kleines Filmröllchen
5d6e3441fe
AK: Fix FixedPoint to integral comparisons
...
Add tests to ensure that the fixed point numbers compare correctly to
integrals
2022-02-28 13:59:31 +01:00
Tom
c468a9cc2d
AK: Add FixedPoint cast operator for up/downcasting to other sizes
...
This enables casting between different size FixedPoint variables or
constructing them from other sized FixedPoint values.
2022-01-23 22:45:21 +00:00
Tom
f021baf255
AK: Add Formatter<FixedPoint<...>> without floating point
...
Rather than casting the FixedPoint to double, format the FixedPoint
directly. This avoids using floating point instruction, which in
turn enables this to be used even in the kernel.
2022-01-23 22:45:21 +00:00
Hediadyoin1
fdef6e5f76
AK: Add FixedPoint arithmetic helper
...
Co-authored-by: Hendiadyoin1 <leon2002.la@gmail.com>
Co-authored-by: kleines Filmröllchen <malu.bertsch@gmail.com>
2021-08-31 17:03:55 +04:30