/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <sys/isa_defs.h>
#include "libm_inlines.h"
#ifdef _LITTLE_ENDIAN
#define LO(x) *(unsigned*)x
#else
#define HI(x) *(int*)x
#endif
#ifdef __RESTRICT
#define restrict _Restrict
#else
#define restrict
#endif
extern const double __vlibm_TBL_atan2[];
static const double
/* Don't __ the following; acomp will handle it */
extern double fabs(double);
void
{
do
{
hy &= ~0x80000000;
hx &= ~0x80000000;
{
i = hx;
hy = i;
if (sx)
{
}
else
{
}
}
else
{
if (sx)
{
}
else
}
{
if (hx >= 0x7ff00000)
{
else if (hy >= 0x7ff00000)
x += stridex;
y += stridey;
z += stridez;
i = 0;
if (--n <= 0)
break;
goto loop0;
}
{
if ((int) ah0 == 0)
x += stridex;
y += stridey;
z += stridez;
i = 0;
if (--n <= 0)
break;
goto loop0;
}
hy -= 0x00300000;
hx -= 0x00300000;
}
else if (hy < 0x00100000)
{
{
x += stridex;
y += stridey;
z += stridez;
i = 0;
if (--n <= 0)
break;
goto loop0;
}
}
if (k > 644)
k = 644;
ah0 += __vlibm_TBL_atan2[k];
pz0 = z;
x += stridex;
y += stridey;
z += stridez;
i = 1;
if (--n <= 0)
break;
hy &= ~0x80000000;
hx &= ~0x80000000;
{
i = hx;
hy = i;
if (sx)
{
}
else
{
}
}
else
{
if (sx)
{
}
else
}
{
if (hx >= 0x7ff00000)
{
else if (hy >= 0x7ff00000)
x += stridex;
y += stridey;
z += stridez;
i = 1;
if (--n <= 0)
break;
goto loop1;
}
{
if ((int) ah1 == 0)
x += stridex;
y += stridey;
z += stridez;
i = 1;
if (--n <= 0)
break;
goto loop1;
}
hy -= 0x00300000;
hx -= 0x00300000;
}
else if (hy < 0x00100000)
{
{
x += stridex;
y += stridey;
z += stridez;
i = 1;
if (--n <= 0)
break;
goto loop1;
}
}
if (k > 644)
k = 644;
ah1 += __vlibm_TBL_atan2[k];
pz1 = z;
x += stridex;
y += stridey;
z += stridez;
i = 2;
if (--n <= 0)
break;
hy &= ~0x80000000;
hx &= ~0x80000000;
{
i = hx;
hy = i;
if (sx)
{
}
else
{
}
}
else
{
if (sx)
{
}
else
}
{
if (hx >= 0x7ff00000)
{
else if (hy >= 0x7ff00000)
x += stridex;
y += stridey;
z += stridez;
i = 2;
if (--n <= 0)
break;
goto loop2;
}
{
if ((int) ah2 == 0)
x += stridex;
y += stridey;
z += stridez;
i = 2;
if (--n <= 0)
break;
goto loop2;
}
hy -= 0x00300000;
hx -= 0x00300000;
}
else if (hy < 0x00100000)
{
{
x += stridex;
y += stridey;
z += stridez;
i = 2;
if (--n <= 0)
break;
goto loop2;
}
}
if (k > 644)
k = 644;
ah2 += __vlibm_TBL_atan2[k];
pz2 = z;
x += stridex;
y += stridey;
z += stridez;
i = 0;
} while (--n > 0);
if (i > 0)
{
if (i > 1)
{
}
}
}