diff --git a/decibel.hh b/decibel.hh index 256f041..6258c62 100644 --- a/decibel.hh +++ b/decibel.hh @@ -6,6 +6,8 @@ Copyright 2018 Ahmet Inan #pragma once +#include "exp.hh" + namespace DSP { template @@ -37,7 +39,7 @@ TYPE decibel(TYPE v) template TYPE idecibel(TYPE dB) { - return pow(TYPE(10), dB / TYPE(10)); + return exp10(dB / TYPE(10)); } }