PhantomGamesDevelopment / Galactic-2D

Open source engine technology created in C++.
1 stars 1 forks source link

Compiler Type Sizes #12

Closed Phantom139 closed 10 years ago

Phantom139 commented 10 years ago

As discussed with 3DX (@Ragora) yesterday, most compilers use the standard IEEE-754 floating point format during compilation, however, this is not a standard that is 100% enforced across all platforms which could lead to some issues where

sizeof(F32) == sizeof(F64)

One of the key problems has already been resolved with the implementation of a platform defined SIZE_T definition and pointer integer values being enforced based on the sizeof the standard void* value. It is also advised that all F32s be replaced with F64 at the earliest convenience since 64-bit platforms can rely on precision with F64, and 32-bit platforms can simply emulate F64 by means of combining two F32s.

Phantom139 commented 10 years ago

Resolved in commit 3984f11. All instances of F32 have been converted to F64.