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:
Damien George
2020-09-04 00:32:39 +10:00
parent 40ad8f1666
commit 38959ed8f1
3 changed files with 5 additions and 5 deletions

View File

@@ -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,