sw_engine: --size reduction

basically, sw engine aims for 32bits, it reduces
the bundle size by 1kb.

Need to carefully see any side effect in practice.
This commit is contained in:
Hermet Park 2025-04-21 17:39:34 +09:00 committed by Hermet Park
parent d9aa5141be
commit 4c3beb1cb1
2 changed files with 3 additions and 4 deletions

View file

@ -33,9 +33,8 @@
#define SW_ANGLE_2PI (SW_ANGLE_PI << 1)
#define SW_ANGLE_PI2 (SW_ANGLE_PI >> 1)
using SwCoord = signed long;
using SwFixed = signed long long;
using SwCoord = int32_t;
using SwFixed = int64_t;
static inline float TO_FLOAT(SwCoord val)
{

View file

@ -196,7 +196,7 @@
/************************************************************************/
constexpr auto PIXEL_BITS = 8; //must be at least 6 bits!
constexpr auto ONE_PIXEL = (1L << PIXEL_BITS);
constexpr auto ONE_PIXEL = (1 << PIXEL_BITS);
using Area = long;