News for hackers. Stuff that matters.
Re:Why do RET instructions have a REPZ prepended on x86? by tristanj on Monday August 26, 2013 @11:23PM (#6281285)
This is an issue with AMD's branch predictor, not with the x86 ISA. The code would work fine with a single "ret" instead, however people found using "rep ret" made it nanoseconds faster. it just shows how you can find optimizations in the most unexpected of places.
Re:Why do RET instructions have a REPZ prepended on x86? by rbanffy on Tuesday August 27, 2013 @09:03AM (#6283124)
Good point. This is not ISA-mandated behavior, but an implementation quirk.