Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197060
b: refs/heads/master
c: 20dbe69
h: refs/heads/master
v: v3
  • Loading branch information
Sankar P authored and Greg Kroah-Hartman committed May 11, 2010
1 parent 55ef731 commit 5db0de1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2de975336fbcf5a7b76703b00276668d0f932ebe
refs/heads/master: 20dbe695c37e832ad48352ebfdd6234086620608
9 changes: 3 additions & 6 deletions trunk/drivers/staging/winbond/phy_calibration.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@
#define FIXED(X) ((s32)((X) * 32768.0))
#define DEG2RAD(X) 0.017453 * (X)

/****************** LOCAL TYPE DEFINITION SECTION ***************************/
typedef s32 fixed; /* 16.16 fixed-point */

static const fixed Angles[]=
static const s32 Angles[] =
{
FIXED(DEG2RAD(45.0)), FIXED(DEG2RAD(26.565)), FIXED(DEG2RAD(14.0362)),
FIXED(DEG2RAD(7.12502)), FIXED(DEG2RAD(3.57633)), FIXED(DEG2RAD(1.78991)),
Expand Down Expand Up @@ -300,7 +297,7 @@ u32 _sqrt(u32 sqsum)
/****************************************************************************/
void _sin_cos(s32 angle, s32 *sin, s32 *cos)
{
fixed X, Y, TargetAngle, CurrAngle;
s32 X, Y, TargetAngle, CurrAngle;
unsigned Step;

X=FIXED(AG_CONST); // AG_CONST * cos(0)
Expand All @@ -310,7 +307,7 @@ void _sin_cos(s32 angle, s32 *sin, s32 *cos)

for (Step=0; Step < 12; Step++)
{
fixed NewX;
s32 NewX;

if(TargetAngle > CurrAngle)
{
Expand Down

0 comments on commit 5db0de1

Please sign in to comment.