* src/base/fttrigon.c: Use dedicated `FT_Angle' for arctan table.

This commit is contained in:
Alexei Podtelezhnikov 2014-11-19 21:19:06 -05:00
parent a67c43e1c8
commit f841ad3ec2
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2014-11-19 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/base/fttrigon.c: Use dedicated `FT_Angle' for arctan table.
2014-11-19 Behdad Esfahbod <behdad@behdad.org>
Avoid compiler warnings on x86-64 for `FT_MulFix'.

View File

@ -4,7 +4,7 @@
/* */
/* FreeType trigonometric functions (body). */
/* */
/* Copyright 2001-2005, 2012-2013 by */
/* Copyright 2001-2005, 2012-2014 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@ -45,7 +45,7 @@
/* this table was generated for FT_PI = 180L << 16, i.e. degrees */
#define FT_TRIG_MAX_ITERS 23
static const FT_Fixed
static const FT_Angle
ft_trig_arctan_table[] =
{
1740967L, 919879L, 466945L, 234379L, 117304L, 58666L, 29335L,
@ -165,7 +165,7 @@
{
FT_Int i;
FT_Fixed x, y, xtemp, b;
const FT_Fixed *arctanptr;
const FT_Angle *arctanptr;
x = vec->x;
@ -220,7 +220,7 @@
FT_Angle theta;
FT_Int i;
FT_Fixed x, y, xtemp, b;
const FT_Fixed *arctanptr;
const FT_Angle *arctanptr;
x = vec->x;