grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / mathtrans / spsincos.c
blob1240e869741ba32a83ec8a37b4dea43aeab4a661
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "mathtrans_intern.h"
8 /*****************************************************************************
10 NAME */
12 AROS_LH2(float, SPSincos,
14 /* SYNOPSIS */
15 AROS_LHA(IPTR *, pfnum2, D1),
16 AROS_LHA(float, fnum1, D0),
18 /* LOCATION */
19 struct Library *, MathTransBase, 9, MathTrans)
21 /* FUNCTION
22 Calculate the cosine and the sine of the given ffp-number
23 fnum1 that represents an angle in radians. The function
24 returns the sine of that number as a result and puts
25 the cosine of that number into *pfnum2 which must represent
26 a valid pointer to a ffp-number.
28 INPUTS
30 RESULT
31 *pfnum2 - Motorola fast floating point number
32 direct result - Motorola fast floating point number
34 BUGS
36 INTERNALS
38 *****************************************************************************/
40 AROS_LIBFUNC_INIT
42 *pfnum2 = SPCos(fnum1);
43 return SPSin(fnum1);
45 AROS_LIBFUNC_EXIT