URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 207 |
Rev 345 |
|
|
/* @(#)z_sin.c 1.0 98/08/13 */
|
/* @(#)z_sin.c 1.0 98/08/13 */
|
/******************************************************************
|
/******************************************************************
|
* Sine
|
* Sine
|
*
|
*
|
* Input:
|
* Input:
|
* x - floating point value
|
* x - floating point value
|
*
|
*
|
* Output:
|
* Output:
|
* sine of x
|
* sine of x
|
*
|
*
|
* Description:
|
* Description:
|
* This routine returns the sine of x.
|
* This routine returns the sine of x.
|
*
|
*
|
*****************************************************************/
|
*****************************************************************/
|
|
|
#include "fdlibm.h"
|
#include "fdlibm.h"
|
#include "zmath.h"
|
#include "zmath.h"
|
|
|
#ifndef _DOUBLE_IS_32BITS
|
#ifndef _DOUBLE_IS_32BITS
|
|
|
void
|
void
|
_DEFUN (sincos, (x, sinx, cosx),
|
_DEFUN (sincos, (x, sinx, cosx),
|
double x _AND
|
double x _AND
|
double *sinx _AND
|
double *sinx _AND
|
double *cosx)
|
double *cosx)
|
{
|
{
|
*sinx = sin (x);
|
*sinx = sin (x);
|
*cosx = cos (x);
|
*cosx = cos (x);
|
}
|
}
|
|
|
#endif /* _DOUBLE_IS_32BITS */
|
#endif /* _DOUBLE_IS_32BITS */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.