Sound Open Firmware
Loading...
Searching...
No Matches
log.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2021 Intel Corporation. All rights reserved.
4 *
5 * Author: Shriram Shastry <malladi.sastry@linux.intel.com>
6 *
7 */
8
9#ifndef __SOF_MATH_BASE_LOGARITHM_H__
10#define __SOF_MATH_BASE_LOGARITHM_H__
11
12#include <stdint.h>
13
14#define ONE_OVER_LOG2_10 2647887844335ULL /* 1/log2(10),Q1.43 */
15#define ONE_OVER_LOG2_E 6096987078286ULL /* 1/log2(exp(1)), Q1.43 */
16/* Function Declarations */
17int32_t base2_logarithm(uint32_t u);
18uint32_t ln_int32(uint32_t numerator);
19uint32_t log10_int32(uint32_t numerator);
20
21#endif
uint32_t ln_int32(uint32_t numerator)
int32_t base2_logarithm(uint32_t u)
uint32_t log10_int32(uint32_t numerator)