summaryrefslogtreecommitdiff
path: root/COPYING.LGPLv2.1
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-10-30 14:21:15 -0400
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-11-03 16:28:12 -0500
commit265f83fd35977a80e93b3cc13ceb65f52f129a3c (patch)
tree201254e4c394e0f977d78b66be9e7cf16174c486 /COPYING.LGPLv2.1
parent03f5bcd92123f632ef3f24f3acde050431423099 (diff)
avutil/common: add FFDIFFSIGN macro
This is of use for defining comparator callbacks. Common approaches like return x-y are not safe due to the risks of overflow. Furthermore, the (x > y) - (x < y) trick is optimized to branchless code. This also documents this macro accordingly. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'COPYING.LGPLv2.1')
0 files changed, 0 insertions, 0 deletions