mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-03-01 05:27:20 +00:00
Remove some pointless GCC-isms.
This commit is contained in:
parent
3151100e50
commit
b65cd72a68
@ -27,15 +27,15 @@
|
|||||||
class volume_t {
|
class volume_t {
|
||||||
public:
|
public:
|
||||||
constexpr volume_t operator-() const {
|
constexpr volume_t operator-() const {
|
||||||
return { .cb = -cb };
|
return { -cb };
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr volume_t operator+(const volume_t& other) const {
|
constexpr volume_t operator+(const volume_t& other) const {
|
||||||
return { .cb = cb + other.cb };
|
return { cb + other.cb };
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr volume_t operator-(const volume_t& other) const {
|
constexpr volume_t operator-(const volume_t& other) const {
|
||||||
return { .cb = cb - other.cb };
|
return { cb - other.cb };
|
||||||
}
|
}
|
||||||
|
|
||||||
volume_t& operator+=(const volume_t& other) {
|
volume_t& operator+=(const volume_t& other) {
|
||||||
@ -52,11 +52,11 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static constexpr volume_t centibel(const int cb) {
|
static constexpr volume_t centibel(const int cb) {
|
||||||
return { .cb = cb };
|
return { cb };
|
||||||
}
|
}
|
||||||
|
|
||||||
static constexpr volume_t decibel(const int db) {
|
static constexpr volume_t decibel(const int db) {
|
||||||
return { .cb = db * 10 };
|
return { db * 10 };
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t centibel() const {
|
int32_t centibel() const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user