Careful with compare/3 and Brent algorithm

From previous thread:

I had a quick look at do_compare() but it’s beyond my capabilities to figure out what’s going on. Somebody with a better understanding of the C FLI might have a chance.