▲ | account42 5 days ago | |
I'm pretty sure the post you are responding to is not seriously suggesting using floating point multiplication and exponentiation as a performance optimization ;) | ||
▲ | voxelghost 4 days ago | parent [-] | |
Offcourse not, that would be silly. Just overload the ^ operator like any normal person. #include <iostream> #include <bitset> class Bits { unsigned value; public: explicit Bits(unsigned v) : value(v) {}
};int main() { Bits x(0b00001111);
|