Hi Jonas,
Of
course, if we are really worried about compilers being too "smart"
we can always do the comparison in asm code, then compilers don't knowYes, but then a simple compiler barrier between the comparison and returning ptr would also do the trick, right? And maybe easier on the eyes.
anything of the equality between 'ptr' and 'head - head_offset'.