Link Copied
I haven't looked at the specifics, but it should be easy enough to substitute a bitfield 8 times the size. 8 times 0 is of course still 0, but, for a bitfield, that is a valid size.
(Added 2009-12-14) Some commas.
[cpp]patching file enumerable_thread_specific.h Hunk #1 succeeded at 458 (offset 8 lines). Hunk #3 succeeded at 506 (offset 8 lines).[/cpp]It would have been miore elegant to write the primary template as:
[cpp]stemplatestruct ets_element {[/cpp]
so that the modulo stuff would not be exposed at the point of use of ets_element, but alas the VS.NET 2003 compiler choked on that variation.
- Arch
Might be today we could just make Netburst users to pay the tax, instead of all others.
I'm afraid however that changing that constant to 64 can break backward binary compatibility in weird ways.
For more complete information about compiler optimizations, see our Optimization Notice.