From 9c93838c200afecf93bca991b940bd068c4cd51e Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 21 Oct 2023 20:21:51 +0200 Subject: [PATCH] Fix single-precision builds Signed-off-by: falkTX --- include/single-precision/algorithm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/single-precision/algorithm b/include/single-precision/algorithm index 12cdd75..0142c17 100644 --- a/include/single-precision/algorithm +++ b/include/single-precision/algorithm @@ -26,6 +26,11 @@ float max(const float a, const double b) { return std::max(a, static_cast(b)); } +static inline +float min(const float a, const double b) { + return std::min(a, static_cast(b)); +} + static inline std::complex operator*(const std::complex& a, const float b) { return static_cast>(a) * b;