• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  */
5 #include "drc_math.h"
6 
7 float db_to_linear[201]; /* from -100dB to 100dB */
8 
drc_math_init()9 void drc_math_init()
10 {
11 	int i;
12 	for (i = -100; i <= 100; i++)
13 		db_to_linear[i + 100] = pow(10, i/20.0);
14 }
15