Loading...
1/*
2
3 fp_trig.h: floating-point math routines for the Linux-m68k
4 floating point emulator.
5
6 Copyright (c) 1998 David Huggins-Daines.
7
8 I hereby give permission, free of charge, to copy, modify, and
9 redistribute this software, in source or binary form, provided that
10 the above copyright notice and the following disclaimer are included
11 in all such copies.
12
13 THIS SOFTWARE IS PROVIDED "AS IS", WITH ABSOLUTELY NO WARRANTY, REAL
14 OR IMPLIED.
15
16*/
17
18#ifndef FP_TRIG_H
19#define FP_TRIG_H
20
21#include "fp_emu.h"
22
23/* floating point trigonometric instructions:
24
25 the arguments to these are in the "internal" extended format, that
26 is, an "exploded" version of the 96-bit extended fp format used by
27 the 68881.
28
29 they return a status code, which should end up in %d0, if all goes
30 well. */
31
32#endif /* FP_TRIG__H */
1/*
2
3 fp_trig.h: floating-point math routines for the Linux-m68k
4 floating point emulator.
5
6 Copyright (c) 1998 David Huggins-Daines.
7
8 I hereby give permission, free of charge, to copy, modify, and
9 redistribute this software, in source or binary form, provided that
10 the above copyright notice and the following disclaimer are included
11 in all such copies.
12
13 THIS SOFTWARE IS PROVIDED "AS IS", WITH ABSOLUTELY NO WARRANTY, REAL
14 OR IMPLIED.
15
16*/
17
18#ifndef _FP_TRIG_H
19#define _FP_TRIG_H
20
21#include "fp_emu.h"
22
23/* floating point trigonometric instructions:
24
25 the arguments to these are in the "internal" extended format, that
26 is, an "exploded" version of the 96-bit extended fp format used by
27 the 68881.
28
29 they return a status code, which should end up in %d0, if all goes
30 well. */
31
32struct fp_ext *fp_fsin(struct fp_ext *dest, struct fp_ext *src);
33struct fp_ext *fp_fcos(struct fp_ext *dest, struct fp_ext *src);
34struct fp_ext *fp_ftan(struct fp_ext *dest, struct fp_ext *src);
35struct fp_ext *fp_fasin(struct fp_ext *dest, struct fp_ext *src);
36struct fp_ext *fp_facos(struct fp_ext *dest, struct fp_ext *src);
37struct fp_ext *fp_fatan(struct fp_ext *dest, struct fp_ext *src);
38struct fp_ext *fp_fsinh(struct fp_ext *dest, struct fp_ext *src);
39struct fp_ext *fp_fcosh(struct fp_ext *dest, struct fp_ext *src);
40struct fp_ext *fp_ftanh(struct fp_ext *dest, struct fp_ext *src);
41struct fp_ext *fp_fatanh(struct fp_ext *dest, struct fp_ext *src);
42struct fp_ext *fp_fsincos0(struct fp_ext *dest, struct fp_ext *src);
43struct fp_ext *fp_fsincos1(struct fp_ext *dest, struct fp_ext *src);
44struct fp_ext *fp_fsincos2(struct fp_ext *dest, struct fp_ext *src);
45struct fp_ext *fp_fsincos3(struct fp_ext *dest, struct fp_ext *src);
46struct fp_ext *fp_fsincos4(struct fp_ext *dest, struct fp_ext *src);
47struct fp_ext *fp_fsincos5(struct fp_ext *dest, struct fp_ext *src);
48struct fp_ext *fp_fsincos6(struct fp_ext *dest, struct fp_ext *src);
49struct fp_ext *fp_fsincos7(struct fp_ext *dest, struct fp_ext *src);
50
51#endif /* _FP_TRIG_H */