From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "signature" |
|---|
| subject | "Library:FreeType" |
|---|
| claim | "FreeType's CORDIC trigonometry (fttrigon.c, used by FT_Vector_Rotate, FT_Atan2, the stroker and outline emboldening) uses ft_trig_arctan_table, 22 FT_Fixed angles 1740967, 919879, 466945, 234379, ... 4, 2, 1 (16.16 degrees) since 2.4.12, with FT_TRIG_SCALE 0xDBD95B16. This pattern is the 4-byte little-endian form (Windows x64, all 32-bit targets). Unverified: on LP64 (64-bit Linux/macOS/Android) FT_Fixed is long, so the table is 22 8-byte values. Before 2.4.12 the table had 24 entries starting 4157273, 2949120 (this pattern then matches 8 bytes into it). Code copied from FreeType elsewhere can contain it too." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:FreeType" |
|---|
| observed_in | |
|---|
|
|---|
| data | | pattern | "A7 90 1A 00 47 09 0E 00 01 20 07 00 8B 93 03 00 38 CA 01 00 2A E5 00 00 97 72 00 00 4C 39 00 00 A6 1C 00 00 53 0E 00 00 29 07 00 00 95 03 00 00 CA 01 00 00 E5 00 00 00 73 00 00 00 39 00 00 00 1D 00 00 00 0E 00 00 00 07 00 00 00 04 00 00 00 02 00 00 00 01 00 00 00" |
|---|
| matches | "ft_trig_arctan_table (2.4.12+, int32 little endian)" |
|---|
| name | "ft_trig_arctan_table" |
|---|
| multiple | true |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "ft_trig_arctan_table[] = { 1740967L, 919879L, 466945L, 234379L, 117304L, 58666L, 29335L, 14668L, 7334L, 3667L, 1833L, 917L, 458L, 229L, 115L, 57L, 29L, 14L, 7L, 4L, 2L, 1L }; #define FT_TRIG_SCALE 0xDBD95B16UL" |
|---|
| repo | "https://github.com/freetype/freetype" |
|---|
| commit | "37515cf56ba3349656049edbed89ffc6f6466f2d" |
|---|
| path | "src/base/fttrigon.c" |
|---|
| lines | "38-53" |
|---|
|
| type | "source" |
|---|
| detail | "Old table ft_trig_arctan_table[24] = { 4157273L, 2949120L, 1740967L, ... } and FT_TRIG_SCALE 0x4585BA38 in VER-2-4-0; changed by commit b4ac30b0 (2013-01-02, 'Reduce trigonometric algorithms'), first released in 2.4.12" |
|---|
| repo | "https://github.com/freetype/freetype" |
|---|
| commit | "cecf93ef90c660a8b0b45e5adbbfb5ea443fb6b9" |
|---|
| path | "src/base/fttrigon.c" |
|---|
| lines | "36-53" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "Once in six of seven builds (Win64 PE, ELF32, COFF lib); twice in Steam's SDL3_ttf.dll (FreeType 2.13.3 + HarfBuzz). No match in 3386 Windows System32 DLLs." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | | "Code:FreeType/ftscan (Python)" |
|
|---|
| key | "ft_trig_arctan_table int32" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T15:56:45.701Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:18:38.199Z" |
|---|
| result | "confirmed" |
|---|
| method | "Parsed ft_trig_arctan_table[] from src/base/fttrigon.c at 37515cf5: 22 values 1740967,...,1; LE int32 bytes equal the 88-byte pattern; FT_TRIG_SCALE is 0xDBD95B16UL (line 38). The pre-2.4.12 table was not re-read." |
|---|
|
|
|---|