mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
lib/libm: Reduce size of static two_over_pi array.
Thanks to Jeff Epler for the idea. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -35,9 +35,9 @@
|
||||
* Table of constants for 2/pi, 396 Hex digits (476 decimal) of 2/pi
|
||||
*/
|
||||
#ifdef __STDC__
|
||||
static const __int32_t two_over_pi[] = {
|
||||
static const __uint8_t two_over_pi[] = {
|
||||
#else
|
||||
static __int32_t two_over_pi[] = {
|
||||
static __uint8_t two_over_pi[] = {
|
||||
#endif
|
||||
0xA2, 0xF9, 0x83, 0x6E, 0x4E, 0x44, 0x15, 0x29, 0xFC,
|
||||
0x27, 0x57, 0xD1, 0xF5, 0x34, 0xDD, 0xC0, 0xDB, 0x62,
|
||||
|
||||
Reference in New Issue
Block a user