1 /* 1 /* 2 2 3 fp_log.h: floating-point math routines for t 3 fp_log.h: floating-point math routines for the Linux-m68k 4 floating point emulator. 4 floating point emulator. 5 5 6 Copyright (c) 1998-1999 David Huggins-Daines 6 Copyright (c) 1998-1999 David Huggins-Daines / Roman Zippel. 7 7 8 I hereby give permission, free of charge, to 8 I hereby give permission, free of charge, to copy, modify, and 9 redistribute this software, in source or bin 9 redistribute this software, in source or binary form, provided that 10 the above copyright notice and the following 10 the above copyright notice and the following disclaimer are included 11 in all such copies. 11 in all such copies. 12 12 13 THIS SOFTWARE IS PROVIDED "AS IS", WITH ABSO 13 THIS SOFTWARE IS PROVIDED "AS IS", WITH ABSOLUTELY NO WARRANTY, REAL 14 OR IMPLIED. 14 OR IMPLIED. 15 15 16 */ 16 */ 17 17 18 #ifndef _FP_LOG_H 18 #ifndef _FP_LOG_H 19 #define _FP_LOG_H 19 #define _FP_LOG_H 20 20 21 #include "fp_emu.h" 21 #include "fp_emu.h" 22 22 23 /* floating point logarithmic instructions: 23 /* floating point logarithmic instructions: 24 24 25 the arguments to these are in the "internal 25 the arguments to these are in the "internal" extended format, that 26 is, an "exploded" version of the 96-bit ext 26 is, an "exploded" version of the 96-bit extended fp format used by 27 the 68881. 27 the 68881. 28 28 29 they return a status code, which should end 29 they return a status code, which should end up in %d0, if all goes 30 well. */ 30 well. */ 31 31 32 struct fp_ext *fp_fsqrt(struct fp_ext *dest, s 32 struct fp_ext *fp_fsqrt(struct fp_ext *dest, struct fp_ext *src); 33 struct fp_ext *fp_fetoxm1(struct fp_ext *dest, 33 struct fp_ext *fp_fetoxm1(struct fp_ext *dest, struct fp_ext *src); 34 struct fp_ext *fp_fetox(struct fp_ext *dest, s 34 struct fp_ext *fp_fetox(struct fp_ext *dest, struct fp_ext *src); 35 struct fp_ext *fp_ftwotox(struct fp_ext *dest, 35 struct fp_ext *fp_ftwotox(struct fp_ext *dest, struct fp_ext *src); 36 struct fp_ext *fp_ftentox(struct fp_ext *dest, 36 struct fp_ext *fp_ftentox(struct fp_ext *dest, struct fp_ext *src); 37 struct fp_ext *fp_flogn(struct fp_ext *dest, s 37 struct fp_ext *fp_flogn(struct fp_ext *dest, struct fp_ext *src); 38 struct fp_ext *fp_flognp1(struct fp_ext *dest, 38 struct fp_ext *fp_flognp1(struct fp_ext *dest, struct fp_ext *src); 39 struct fp_ext *fp_flog10(struct fp_ext *dest, 39 struct fp_ext *fp_flog10(struct fp_ext *dest, struct fp_ext *src); 40 struct fp_ext *fp_flog2(struct fp_ext *dest, s 40 struct fp_ext *fp_flog2(struct fp_ext *dest, struct fp_ext *src); 41 struct fp_ext *fp_fgetexp(struct fp_ext *dest, 41 struct fp_ext *fp_fgetexp(struct fp_ext *dest, struct fp_ext *src); 42 struct fp_ext *fp_fgetman(struct fp_ext *dest, 42 struct fp_ext *fp_fgetman(struct fp_ext *dest, struct fp_ext *src); 43 43 44 #endif /* _FP_LOG_H */ 44 #endif /* _FP_LOG_H */ 45 45
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.