view libgsmefr/log2.tab @ 561:cf62fe9fac3a

gsmhr-cod2hex: read native endian by default Let's change gsmhr-* utilities to read *.cod and *.dec files in the local machine's native byte order by default, and support both -b and -l override options. This approach is the only sane one when we write *.cod and *.dec files in the local endian.
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 12 Feb 2025 00:04:33 +0000
parents 37e39cad5838
children
line wrap: on
line source

/*-----------------------------------------------------*
 | Table for routine Log2().                           |
 -----------------------------------------------------*/

static const Word16 table[33] =
{
    0, 1455, 2866, 4236, 5568, 6863, 8124, 9352, 10549, 11716,
    12855, 13967, 15054, 16117, 17156, 18172, 19167, 20142, 21097, 22033,
    22951, 23852, 24735, 25603, 26455, 27291, 28113, 28922, 29716, 30497,
    31266, 32023, 32767
};