Skip to content

Added ability for fixed point number to be bigger than 4 byte.#5

Open
RicoP wants to merge 4 commits intoelectronicarts:masterfrom
RicoP:master
Open

Added ability for fixed point number to be bigger than 4 byte.#5
RicoP wants to merge 4 commits intoelectronicarts:masterfrom
RicoP:master

Conversation

@RicoP
Copy link

@RicoP RicoP commented Mar 14, 2020

According to the documentation there should be 64 bit fixed point number types in the lib but they are nowhere to be seen.

So I added my own type.

I had to change some bits in the template schema for FPTemplate to be able to use basetypes greater than sizeof(int). I also fixed some typecasting errors in some operators.

I tested it and added some unit tests for SFixed32.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant