[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] two delta_shift questions
From: |
Alexei Podtelezhnikov |
Subject: |
[ft-devel] two delta_shift questions |
Date: |
Mon, 13 Oct 2014 11:27:43 -0400 |
Werner,
For a while I was staring at
ttinterp.c: B = B * 64 / ( 1L << CUR.GS.delta_shift );
delta_shift is FT_Short, so it can be negative, which is undefined
behavior. Shouldn't we change the type to FT_UShort?
The second question is how often do you see delta_shift larger than 6?
I am basically thinking about this optimization:
B = B * ( 1L << ( 6 - CUR.GS.delta_shift ) );
Alexei
- [ft-devel] two delta_shift questions,
Alexei Podtelezhnikov <=