On 31.05.25 11:55, Will Godfrey wrote:
I wasn't aware of that, however we already have extensive bit testing, so it would just be a matter of overloading the functions in Misc/NumericFuncs.h with 64bit versions.
The class Kristian is mentioning is called std::bitset; just #include <bitset> https://en.cppreference.com/w/cpp/utility/bitset.html We are using it already, to keep track of the actually running instances. See Config::activeInstances This class takes the maximum number of bits to use as a template parameter. In this example, activeInstances is a std::bitset<32> but you can use any number of bits, and the implementation will just use the optimal way to map that on storage space for the given architecture. Maybe its a good idea not to add further tinkerers functions, it is just not worth the effort wasting brain cycles on tricky low level details with a lot of potential for errors, when there is a perfectly fine and readable alternative available from the standard library. -- Hermann _______________________________________________ Yoshimi-devel mailing list Yoshimi-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/yoshimi-devel