Re: Question about BITSET_WORD

2024-08-21 Thread Marek Olšák
All 32-bit operations are generally faster than 64-bit. If both happen to have the same performance per clock (that would have to be a deliberate hw design choice), 32-bit opcodes have likely lower power consumption, which allows a higher core frequency. That doesn't even scratch the surface. Expl

Re: Question about BITSET_WORD

2024-08-21 Thread Brian Paul
Maybe there should be a comment regarding the performance and risk of change? -Brian On 8/21/24 07:54, Faith Ekstrand wrote: I've actually benchmarked this and 32bit is still faster on many modern CPUs. Also, I would be very surprised if we could change it without breaking the universe. I'm

Re: Question about BITSET_WORD

2024-08-21 Thread Faith Ekstrand
I've actually benchmarked this and 32bit is still faster on many modern CPUs. Also, I would be very surprised if we could change it without breaking the universe. I'm sure there are hard-coded 32s various places. ~Faith On Wed, Aug 21, 2024 at 8:13 AM Christophe JAILLET < christophe.jail...@wana

Question about BITSET_WORD

2024-08-21 Thread Christophe JAILLET
Hi, I'm new to this list, so sorry if it is not the correct place. I've started to looked at the source code of mesa and I wonder why in src/util/bitset.h we have: #define BITSET_WORD unsigned int This is as-is since at least 2015, probably 2011. Would it make sense to have it as a long