summaryrefslogtreecommitdiff
path: root/src/psaux
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2019-05-03 23:16:42 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2019-05-03 23:16:42 -0400
commit300458eb949f71a486710b69bb6b704139765b26 (patch)
tree9e6f9abf19585962581ce1bfa63cd91b635586e7 /src/psaux
parent65f9516bc7554c15d76ceb303ff110c84e61a55f (diff)
downloadfreetype2-300458eb949f71a486710b69bb6b704139765b26.tar.gz
Miscellaneous macro updates.
* src/base/ftoutln.c (SCALED): Updated. * src/smooth/ftgrays.c (SCALED): Ditto. (FLOOR, ROUND, CEILING): Removed. * src/psaux/psfixed.h (cf2_fracToFixed): Updated.
Diffstat (limited to 'src/psaux')
-rw-r--r--src/psaux/psfixed.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/psaux/psfixed.h b/src/psaux/psfixed.h
index fd3460f34..7dff9ef1b 100644
--- a/src/psaux/psfixed.h
+++ b/src/psaux/psfixed.h
@@ -72,8 +72,7 @@ FT_BEGIN_HEADER
#define cf2_fixedFraction( x ) \
( (x) - cf2_fixedFloor( x ) )
#define cf2_fracToFixed( x ) \
- ( (x) < 0 ? -( ( -(x) + 0x2000 ) >> 14 ) \
- : ( ( (x) + 0x2000 ) >> 14 ) )
+ ( ( (x) + 0x2000 - ( (x) < 0 ) ) >> 14 )
/* signed numeric types */