mirror of
https://github.com/aicodix/dsp.git
synced 2026-04-27 14:30:36 +00:00
use exp10()
This commit is contained in:
parent
4e57633034
commit
5ac39fca4e
1 changed files with 3 additions and 1 deletions
|
|
@ -6,6 +6,8 @@ Copyright 2018 Ahmet Inan <inan@aicodix.de>
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "exp.hh"
|
||||
|
||||
namespace DSP {
|
||||
|
||||
template <typename TYPE>
|
||||
|
|
@ -37,7 +39,7 @@ TYPE decibel(TYPE v)
|
|||
template <typename TYPE>
|
||||
TYPE idecibel(TYPE dB)
|
||||
{
|
||||
return pow(TYPE(10), dB / TYPE(10));
|
||||
return exp10(dB / TYPE(10));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue