mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-02 20:11:48 +00:00
Clean up complex<int16_t> -> complex<float> casting.
This commit is contained in:
@@ -105,6 +105,13 @@ public:
|
||||
return _rep;
|
||||
}
|
||||
|
||||
constexpr operator std::complex<float>() const {
|
||||
return {
|
||||
static_cast<float>(_v[0]),
|
||||
static_cast<float>(_v[1])
|
||||
};
|
||||
}
|
||||
|
||||
private:
|
||||
union {
|
||||
int16_t _v[2];
|
||||
|
||||
Reference in New Issue
Block a user