03-15-2012, 07:26 AM
I've had a hunch that the GetNibble() and SetNibble() functions might be a bit faster on unsigned chars. So I tried it out, turns out there's no differrence at all. Weird, considering that the signed char version has a few more assembly instructions in the code, converting between signed and unsigned. One would expect that on millions of calls that would have matterred. Seems like my knowledge of the x86 processors is being deprecated by the new models.
Anyway, we can now choose between the signed and unsigned variant simply by defining the BLOCKTYPE typedef in ChunkDef.h
Anyway, we can now choose between the signed and unsigned variant simply by defining the BLOCKTYPE typedef in ChunkDef.h