Fix single-precision builds
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
1721f7a715
commit
9c93838c20
1 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,11 @@ float max(const float a, const double b) {
|
||||||
return std::max<float>(a, static_cast<float>(b));
|
return std::max<float>(a, static_cast<float>(b));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline
|
||||||
|
float min(const float a, const double b) {
|
||||||
|
return std::min<float>(a, static_cast<float>(b));
|
||||||
|
}
|
||||||
|
|
||||||
static inline
|
static inline
|
||||||
std::complex<float> operator*(const std::complex<double>& a, const float b) {
|
std::complex<float> operator*(const std::complex<double>& a, const float b) {
|
||||||
return static_cast<std::complex<float>>(a) * b;
|
return static_cast<std::complex<float>>(a) * b;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue