Le quartidi 4 brumaire, an CCXXIV, Ganesh Ajjanagadde a écrit :
> Seems like the (x > y) - (x < y) trick works very well: GCC optimizes
> it to branch-less code, and it is overflow safe:
> https://stackoverflow.com/questions/10996418/efficient-integer-compare-function/10997428#10997428
> 
> Will submit patch to convert all qsort comparators (the ones for
> integers) to this form, yielding two benefits:

Nice. Maybe make it a macro: AV_DIFFSIGN(x, y).

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to