Pharap
def0ef29f1
Fix SFixed conversion by making ShiftType signed ( #100 )
...
`SFixed`'s conversion operator isn't functioning correctly because the shifting is being done with an unsigned type.
This rectifies that by changing `SFixed`'s `ShiftType` to a signed integer type.
1 year ago
Pharap
5eadcbadf3
Add integer conversion operators ( #94 )
...
Adds operators for converting to all the main integer types.
3 years ago
Pharap
ea71949e81
Add conversion operators for SFixed and UFixed ( #93 )
...
This will finally allow SFixed and UFixed to be converted to and from each other.
3 years ago
Pharap
d84ac2517b
Update licence year ( #77 )
3 years ago
Pharap
36c5368696
Remove redundant inline specifiers ( #72 )
3 years ago
Pharap
daae25615f
Ensure that 'static' comes before 'constexpr' ( #65 )
...
This commit is purely to bring the code in the library more in line with my personal code style.
5 years ago
Pharap
080ffa2f5d
Remove redundant consts ( #64 )
...
Remove consts where constexpr is also in effect as constexpr implies const.
5 years ago
Pharap
15b1b3010e
Remove void in zero-parameter functions ( #63 )
...
The isocpp FAQ recommends against this practice.
5 years ago
Pharap
4126403121
Update licence year ( #54 )
6 years ago
Pharap
64c83ca5ce
Reorganise constants and type aliases ( #53 )
...
This new arrangement is more logical and reduces the amount of repetition involved in the definitions.
6 years ago
Pharap
4d3f82c3ca
Fix width of integer literal in Scale definition ( #52 )
...
Previously the literal was of type `unsigned long long`.
This uses a macro from the fixed-width literal API to give the literal a type of `uintmax_t`.
6 years ago
Pharap
529692d81c
Change member constants to uintmax_t ( #51 )
...
This makes the typing of `SFixed`'s constants match the typing of `UFixed`'s constants.
6 years ago
Pharap
6054d11516
Remove UFixedBase and SFixedBase ( #46 )
...
* Delete SFixedBase.h
* Delete UFixedBase.h
6 years ago
Pharap
ff3308fd96
Remove superfluous constructors ( #45 )
6 years ago
Pharap
d0c20218ca
Add long double conversion operator ( #34 )
6 years ago
Pharap
952a8594d5
Add workaround for gcc bug 58541 ( #9 )
...
The bug in question causes a "redeclaration differs in constexpr" error, despite the standard not requiring this.
This bug is fixed in newer versions of gcc.
More information can be found [here](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58541 ).
7 years ago
Pharap
e6b69559db
Prepend licence message to all source files
7 years ago
Pharap
393acd2f49
Add files via upload
7 years ago