sw_engine: fix loss of data when it's converting.

if SwCoord type is determined to 4byte,
it could lose remarkable value that occur stroking jiggling.

This fixes the issue.

Change-Id: Ib2fed2a3bfc9188a30522f35837439364d446a73
This commit is contained in:
Hermet Park 2020-08-20 12:18:51 +09:00
parent 06d8d06993
commit 9d58643a6c

View file

@ -29,7 +29,7 @@
/* Internal Class Implementation */
/************************************************************************/
constexpr SwCoord CORDIC_FACTOR = 0xDBD95B16UL; //the Cordic shrink factor 0.858785336480436 * 2^32
constexpr SwFixed CORDIC_FACTOR = 0xDBD95B16UL; //the Cordic shrink factor 0.858785336480436 * 2^32
//this table was generated for SW_FT_PI = 180L << 16, i.e. degrees
constexpr static auto ATAN_MAX = 23;