edit: Ok, I do missed one spot (my mind tricked me), the answer shouldn't be 0.
return((a ^ b) | (a ^ (*rp)) < 0) ? 1 : 0;
doesn't it?
Child, this is why I always add unit tests.
Reply on news.ycombinator.com