3 /* originally file `afangles.c' (2011-Mar-28) from FreeType */
5 /* heavily modified 2011 by Werner Lemberg <wl@gnu.org> */
11 /* two bubble sort routines */
14 ta_sort_pos(FT_UInt count
,
22 for (i
= 1; i
< count
; i
++)
24 for (j
= i
; j
> 0; j
--)
26 if (table
[j
] > table
[j
- 1])
30 table
[j
] = table
[j
- 1];
38 ta_sort_widths(FT_UInt count
,
46 for (i
= 1; i
< count
; i
++)
48 for (j
= i
; j
> 0; j
--)
50 if (table
[j
].org
> table
[j
- 1].org
)
54 table
[j
] = table
[j
- 1];