DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 99d398ef17c248136cd99700beb7f3d9627d6aca
parent 77e0bde010a83e4bb46d5a76aaa3101b86f95288
Author: falkTX <falktx@falktx.com>
Date:   Thu, 13 May 2021 03:37:02 +0100

Add constexpr to 2 dpf utils

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdistrho/DistrhoUtils.hpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/distrho/DistrhoUtils.hpp b/distrho/DistrhoUtils.hpp @@ -64,7 +64,7 @@ inline float round(float __x) /* * Return a 64-bit number from 4 8-bit numbers. */ -static inline +static inline constexpr int64_t d_cconst(const uint8_t a, const uint8_t b, const uint8_t c, const uint8_t d) noexcept { return (a << 24) | (b << 16) | (c << 8) | (d << 0); @@ -73,7 +73,7 @@ int64_t d_cconst(const uint8_t a, const uint8_t b, const uint8_t c, const uint8_ /* * Return an hexadecimal representation of a MAJ.MIN.MICRO version number. */ -static inline +static inline constexpr uint32_t d_version(const uint8_t major, const uint8_t minor, const uint8_t micro) noexcept { return uint32_t(major << 16) | uint32_t(minor << 8) | (micro << 0);