xref: /linux/arch/m68k/math-emu/fp_log.h (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1 /*
2 
3   fp_log.h: floating-point math routines for the Linux-m68k
4   floating point emulator.
5 
6   Copyright (c) 1998-1999 David Huggins-Daines / Roman Zippel.
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_LOG_H
19 #define _FP_LOG_H
20 
21 #include "fp_emu.h"
22 
23 /* floating point logarithmic 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 struct fp_ext *fp_fsqrt(struct fp_ext *dest, struct fp_ext *src);
33 struct fp_ext *fp_fetoxm1(struct fp_ext *dest, struct fp_ext *src);
34 struct fp_ext *fp_fetox(struct fp_ext *dest, struct fp_ext *src);
35 struct fp_ext *fp_ftwotox(struct fp_ext *dest, struct fp_ext *src);
36 struct fp_ext *fp_ftentox(struct fp_ext *dest, struct fp_ext *src);
37 struct fp_ext *fp_flogn(struct fp_ext *dest, struct fp_ext *src);
38 struct fp_ext *fp_flognp1(struct fp_ext *dest, struct fp_ext *src);
39 struct fp_ext *fp_flog10(struct fp_ext *dest, struct fp_ext *src);
40 struct fp_ext *fp_flog2(struct fp_ext *dest, struct fp_ext *src);
41 struct fp_ext *fp_fgetexp(struct fp_ext *dest, struct fp_ext *src);
42 struct fp_ext *fp_fgetman(struct fp_ext *dest, struct fp_ext *src);
43 
44 #endif /* _FP_LOG_H */
45