From 99d398ef17c248136cd99700beb7f3d9627d6aca Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 13 May 2021 03:37:29 +0100 Subject: [PATCH] Add constexpr to 2 dpf utils Signed-off-by: falkTX --- distrho/DistrhoUtils.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distrho/DistrhoUtils.hpp b/distrho/DistrhoUtils.hpp index c1988667..d2c7cd5f 100644 --- 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);