SFTtech / openage

Free (as in freedom) open source clone of the Age of Empires II engine 🚀
http://openage.dev
Other
12.6k stars 1.11k forks source link

Fixed point intermediary type #1545

Open heinezen opened 11 months ago

heinezen commented 11 months ago

Required Skills: C++

Difficulty: Medium

We could use an optional intermediary type for fixed-point types. Intermediary types are used for temporary values in calculations where intermediary steps can cause the original values to overflow. A common scenario where this can happen are multiplication or division. We take inspiration for this from the fpm library.

Intermediary types are only strictly necessary if the base type is small, e.g. int16_t. Therefore, their usage should be optional.

Tasks

Further Reading

heinezen commented 11 months ago

@ArcXeon Sure, go ahead :)

Pranshu-S commented 5 months ago

Hey, I'd like to give this a shot. Thanks!

heinezen commented 5 months ago

@Pranshu-S go for it :)