diff --git a/general.h b/general.h index e78da765fc..02c9698025 100644 --- a/general.h +++ b/general.h @@ -129,19 +129,6 @@ extern struct defaults g_defaults; } #endif -/** - * db_to_gain: - * @db : Decibels. - * - * Converts decibels to voltage gain. - * - * Returns: voltage gain value. - **/ -static INLINE float db_to_gain(float db) -{ - return powf(10.0f, db / 20.0f); -} - /** * retro_fail: * @error_code : Error code. diff --git a/libretro-common/include/retro_miscellaneous.h b/libretro-common/include/retro_miscellaneous.h index e395b5da84..5b9a96d0fc 100644 --- a/libretro-common/include/retro_miscellaneous.h +++ b/libretro-common/include/retro_miscellaneous.h @@ -141,6 +141,19 @@ static INLINE uint32_t prev_pow2(uint32_t v) return v - (v >> 1); } +/** + * db_to_gain: + * @db : Decibels. + * + * Converts decibels to voltage gain. + * + * Returns: voltage gain value. + **/ +static INLINE float db_to_gain(float db) +{ + return powf(10.0f, db / 20.0f); +} + /* Helper macros and struct to keep track of many booleans. * To check for multiple bits, use &&, not &. * For OR, | can be used. */