From 5ac39fca4e90169609545491bdbb8a2f676d9000 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Wed, 27 Feb 2019 18:56:31 +0100 Subject: [PATCH] use exp10() --- decibel.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); } }