FTMulFix
function · unassigned · primitive
- Address
0x7cd0e0· 115 bytes, up to0x7cd152- Signature
int32_t __fastcall (int32_t a, int32_t b)- Meaning
- Returns a times b over 65536, rounded for small operands and truncated above them
- Confidence
- verified, proof one
- Finding
- font/freetype#fixed-point-multiply
- Test
font::mul_fix_difftest
Finding: Fixed-point multiply in font: the FreeType calls
FT_MulFix(a, b) returns a when a is 0 or b is 0x10000. Otherwise it multiplies the
magnitudes and gives the result the sign of a ^ b. With |a| at most 0x800 and |b| at most
0x100000 the product rounds, (|a|·|b| + 0x8000) >> 16. Above either bound it truncates:
((|b| & 0xffff)·(|a| & 0xffff) >> 16) + (|b| >> 16)·(|a| & 0xffff) + (|a| >> 16)·|b|, in
32 bits. FT_Vector_Transform applies a 16.16 matrix with it.
The derivation is in the doc.
Callers 18
- 0x7ce700 unassigned
- FTGetKerning unassigned
- FTVectorTransform unassigned
- 0x7d2ea0 unassigned
- T1LoadGlyph unassigned
- LoadTrueTypeGlyph unassigned
- 0x7d4350 unassigned
- 0x7d44b0 unassigned
- 0x7d5000 unassigned
- 0x7dd6a0 unassigned
- 0x7df170 unassigned
- 0x7e0ab0 unassigned
- 0x7e0f40 unassigned
- 0x7e2850 unassigned
- 0x7e2e50 unassigned
- 0x7e3930 unassigned
- 0x7e3e40 unassigned
- 0x7e4100 unassigned
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.