sof/test/cmocka/include/log2_tables.h

37 lines
2.4 KiB
C

/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2021 Intel Corporation. All rights reserved.
*
* Author: Shriram Shastry <malladi.sastry@linux.intel.com>
*/
/* Include Files */
#include <stdint.h>
/* Reference table generated by Matlab log2() */
static const double log2_lookup_table[] = {
0.0000000000000000, 25.3706434118312352, 26.3706433952040058, 26.9556058903827527,
27.3706433868903893, 27.6925714801150313, 27.9556058848403417, 28.1779983053850174,
28.3706433827335829, 28.5405683837140280, 28.6925714767895848, 28.8300750002372048,
28.9556058820691362, 29.0710830992759028, 29.1779983030096979, 29.2775339764022569,
29.3706433806551779, 29.4581062237394029, 29.5405683837140280, 29.6185708955208291,
29.6925714767895848, 29.7629608045226277, 29.8300750002372048, 29.8942053375254808,
29.9556058820691362, 30.0144995710118572, 30.0710830992759028, 30.1255308832035382,
30.1779983030096979, 30.2286243759977573, 30.2775339764022569, 30.3248396911091014,
30.3706433806551779, 30.4150374999506496, 30.4581062217832610, 30.4999263974219978,
30.5405683818665565, 30.5800967460032638, 30.6185708937705954, 30.6560455991443810,
30.6925714751268615, 30.7281953848170275, 30.7629608029390802, 30.7969081348255926,
30.8300749987256388, 30.8624964763844254, 30.8942053360796365, 30.9252322316694972,
30.9556058806835352, 30.9853532240493088, 31.0144995703467679, 31.0430687225044153,
31.0710830986363931, 31.0985638350223041, 31.1255308825877144, 31.1520030939153152,
31.1779983024158689, 31.2035333944917532, 31.2286243754244062, 31.2532864296295223,
31.2775339758480158, 31.3013807177751282, 31.3248396905727375, 31.3479233036602380,
31.3706433801355793, 31.3930111931400511, 31.4150374994467967, 31.4367325705235530,
31.4581062212942228, 31.4791678368007908, 31.4999263969469325, 31.5203904994865773,
31.5405683814046895, 31.5604679388234146, 31.5800967455538810, 31.5994620704028364,
31.6185708933330361, 31.6374299205673069, 31.6560455987180411, 31.6744241280167067,
31.6925714747111797, 31.7104933826930484, 31.7281953844114852, 31.7456828115263257,
31.7629608029390802, 31.7800343162793943, 31.7969081348255926, 31.8135868759544458,
31.8300749987256388, 31.8463768110377572, 31.8624964763844254, 31.8784380202372049,
31.8942053360796365, 31.9098021911151051, 31.9252322316694972, 31.9404989883079118,
31.9556058806835352, 31.9705562221352224, 31.9853532240493088, 31.9999999996640980};