Math Processor Unit Library

libmpu – library of arithmetic functions for integer, real, and complex numbers of increased digit capacity

16 Commits   0 Branches   2 Tags

#ifndef   __REAL_EINTERNAL_LN_001_32MSB
#define   __REAL_EINTERNAL_LN_001_32MSB

#if BITS_PER_EMUSHORT == 32

#define N_LOG_N128  9

static EMUSHORT _ei_log__N_128_[N_LOG_N128][NPIR_128] =
{
/*   Sign        Exp         hgw         S i g n i f i c a n d               lgw      */
/*  ==========  ==========  ==========  ==================================  ==========*/
  { 0x00000000, 0x3fffffe8, 0x00000000, 0xd888bffd, 0x579c4434, 0x7366f9ea, 0x00000000 }, /* 2.016631695712771780394226802E-7 */
  { 0x00000000, 0x3fffffea, 0x00000000, 0xf0f085d3, 0xdd56265c, 0xddad3997, 0x00000000 }, /* 8.975697385037663772373382873E-7 */
  { 0x00000000, 0x3fffffed, 0x00000000, 0x88888890, 0x31afcec3, 0x63268e04, 0x00000000 }, /* 4.069010430274902145226636372E-6 */
  { 0x00000000, 0x3fffffef, 0x00000000, 0x9d89d89d, 0x8aae83c6, 0x6e8b9242, 0x00000000 }, /* 1.878004807694626793837037080E-5 */
  { 0x00000000, 0x3ffffff1, 0x00000000, 0xba2e8ba2, 0xe8b9e386, 0xa95e7c31, 0x00000000 }, /* 8.877840909090896382122858331E-5 */
  { 0x00000000, 0x3ffffff3, 0x00000000, 0xe38e38e3, 0x8e38e38f, 0xaa196770, 0x00000000 }, /* 4.340277777777777778159532328E-4 */
  { 0x00000000, 0x3ffffff6, 0x00000000, 0x92492492, 0x49249249, 0x24ee1f88, 0x00000000 }, /* 2.232142857142857142857439600E-3 */
  { 0x00000000, 0x3ffffff8, 0x00000000, 0xcccccccc, 0xcccccccc, 0xccccc9ec, 0x00000000 }, /* 1.249999999999999999999999985E-2 */
  { 0x00000000, 0x3ffffffb, 0x00000000, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa, 0x00000000 }  /* 8.333333333333333333333333333E-2 */
};

#else  /* BITS_PER_EMUSHORT != 32 */
#error ei_ln_001_emu32msb.dfn: ERROR: Failed size of EMUSHORT data type.
#endif /* BITS_PER_EMUSHORT == 32 */

#endif /* __REAL_EINTERNAL_LN_001_32MSB */