mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
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:
parent
d9aa5141be
commit
4c3beb1cb1
2 changed files with 3 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue