CVS commit: src/sys/arch/m68k/fpe

2021-03-08 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Mon Mar 8 14:37:55 UTC 2021 Modified Files: src/sys/arch/m68k/fpe: fpu_explode.c Log Message: Remove incorrect byte and word conversions from fpu_explode. The correct operation here is arithmetic right shift, but nobody calls it.

CVS commit: src/sys/arch/m68k/fpe

2017-01-16 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Mon Jan 16 12:05:40 UTC 2017 Modified Files: src/sys/arch/m68k/fpe: fpu_trig.c Log Message: FSINCOS: Fix register address which writes cosine value back. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18

CVS commit: src/sys/arch/m68k/fpe

2017-01-15 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sun Jan 15 11:56:11 UTC 2017 Modified Files: src/sys/arch/m68k/fpe: fpu_exp.c Log Message: exp(>11356) is +inf even if extended precision. exp(<-11401) is 0 even if extended precision. To generate a diff of this commit: cvs

CVS commit: src/sys/arch/m68k/fpe

2016-12-07 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Wed Dec 7 11:27:18 UTC 2016 Modified Files: src/sys/arch/m68k/fpe: fpu_exp.c Log Message: Fix sign of zero in case of x > -(2^18). # By the way, I will modify this case later. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/arch/m68k/fpe

2016-12-05 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Tue Dec 6 06:41:14 UTC 2016 Modified Files: src/sys/arch/m68k/fpe: fpu_mul.c Log Message: Fix sign of NAN. Found by XM6i. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/m68k/fpe/fpu_mul.c Please note

CVS commit: src/sys/arch/m68k/fpe

2016-12-05 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Tue Dec 6 05:58:19 UTC 2016 Modified Files: src/sys/arch/m68k/fpe: fpu_cordic.c fpu_emulate.h Log Message: Remove fpu_cordit2() and atanh_table[] completely. Since cordit1 (for trigonometric functions) and cordit2 (for hyperbolic

CVS commit: src/sys/arch/m68k/fpe

2016-12-05 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Mon Dec 5 15:31:01 UTC 2016 Modified Files: src/sys/arch/m68k/fpe: fpu_exp.c fpu_hyperb.c Log Message: Improve the exponential and hyperbolic function's performance 10..100 times faster. PR port-m68k/51645 from rin@ (and modified

CVS commit: src/sys/arch/m68k/fpe

2016-08-05 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Aug 6 00:58:55 UTC 2016 Modified Files: src/sys/arch/m68k/fpe: fpu_trig.c Log Message: Modify fpu_sin()'s logic to avoid GCC's warning that has been pointed out in the previous commit. For fpu_cos() there is no such problem,

CVS commit: src/sys/arch/m68k/fpe

2016-08-03 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Thu Aug 4 05:35:19 UTC 2016 Modified Files: src/sys/arch/m68k/fpe: fpu_cordic.c fpu_emulate.h Log Message: Move fpu_cordit2() to #ifdef CORDIC_BOOTSTRAP section. This reduces ~2KB text segment. Reported by Krister Walfridsson on

CVS commit: src/sys/arch/m68k/fpe

2016-03-22 Thread matthew green
Module Name:src Committed By: mrg Date: Wed Mar 23 05:25:51 UTC 2016 Modified Files: src/sys/arch/m68k/fpe: fpu_trig.c Log Message: avoid a GCC warning with this: +#if defined(__GNUC__) && (__GNUC__ >= 5) && defined(__OPTIMIZE__) + x.fp_sign = 0; +#endif

CVS commit: src/sys/arch/m68k/fpe

2015-02-05 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Thu Feb 5 12:22:06 UTC 2015 Modified Files: src/sys/arch/m68k/fpe: fpu_rem.c Log Message: Fix typo in comment. pointed out by Y.Sugahara. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17

CVS commit: src/sys/arch/m68k/fpe

2015-02-05 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Thu Feb 5 12:23:27 UTC 2015 Modified Files: src/sys/arch/m68k/fpe: fpu_explode.c Log Message: For the extended precision, the MSB of the mantissa is an integer part, and this bit must be ignored at Infinity. found by

CVS commit: src/sys/arch/m68k/fpe

2014-01-04 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Jan 4 13:23:22 UTC 2014 Modified Files: src/sys/arch/m68k/fpe: fpu_log.c Log Message: FLOGNP1(-0.0) is -0.0, not +0.0. Found by XM6i. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18

CVS commit: src/sys/arch/m68k/fpe

2013-12-31 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Wed Jan 1 05:22:22 UTC 2014 Modified Files: src/sys/arch/m68k/fpe: fpu_div.c Log Message: Fix a sign when a source or destination is either (plus/minus)zero or (plus/minus)infinity. Found by XM6i. To generate a diff of this

CVS commit: src/sys/arch/m68k/fpe

2013-12-31 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Wed Jan 1 05:23:40 UTC 2014 Modified Files: src/sys/arch/m68k/fpe: fpu_div.c Log Message: indent fix in a comment. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/m68k/fpe/fpu_div.c Please note that

CVS commit: src/sys/arch/m68k/fpe

2013-10-25 Thread Martin Husemann
Module Name:src Committed By: martin Date: Fri Oct 25 21:32:46 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_emulate.c Log Message: Comment unused stuff (for documentation purposes) To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38

CVS commit: src/sys/arch/m68k/fpe

2013-10-10 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Fri Oct 11 03:37:08 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_hyperb.c Log Message: FATANH(-0) is -0, not +0. This bug was introduced by the mistake of my test program. Last week, I talked about the probelm (my

CVS commit: src/sys/arch/m68k/fpe

2013-05-11 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat May 11 12:52:43 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_rem.c Log Message: Revise the algorithm after Step3. almost written by Y.Sugahara and minor modify by me. This works for all input of FMOD/FREM and of course

CVS commit: src/sys/arch/m68k/fpe

2013-05-05 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sun May 5 13:17:15 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_rem.c Log Message: Rename modrem - is_mod for a readability. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/m68k/fpe/fpu_rem.c

CVS commit: src/sys/arch/m68k/fpe

2013-05-05 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sun May 5 13:25:20 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_rem.c Log Message: R := X even if L 0 in Step2, according to algorithm of the comment. This solves many cases of |X| |Y|. To generate a diff of this

CVS commit: src/sys/arch/m68k/fpe

2013-04-20 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Apr 20 07:32:45 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_trig.c Log Message: Support sin(-0.0). To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/arch/m68k/fpe/fpu_trig.c Please note that

CVS commit: src/sys/arch/m68k/fpe

2013-04-20 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Apr 20 09:32:28 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_subr.c Log Message: Rewrite around BFFFO inline asm. o Prepare C version of BFFFO (from XM6i). It is helpful in running FPE on other platforms (for example,

CVS commit: src/sys/arch/m68k/fpe

2013-04-20 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sun Apr 21 02:50:49 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_subr.c Log Message: M68010 - __mc68010__, pointed out by tsutsui@ To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12

CVS commit: src/sys/arch/m68k/fpe

2013-04-19 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Fri Apr 19 13:57:53 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_trig.c Log Message: Implement inverse trigonometric functions (i.e., FACOS, FASIN, FATAN instructions). o arccos is calculated using arcsin. o arcsin is

CVS commit: src/sys/arch/m68k/fpe

2013-04-19 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Apr 20 01:48:20 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_cordic.c Log Message: s/tayler/taylor/. pointed out by christos@ To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2

CVS commit: src/sys/arch/m68k/fpe

2013-04-19 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Apr 20 03:26:12 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: README Log Message: Update a list of implement/unimplement functions. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/m68k/fpe/README

CVS commit: src/sys/arch/m68k/fpe

2013-04-19 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Apr 20 04:38:51 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_exp.c fpu_hyperb.c Log Message: Break a loop off to avoid a long loop even if the precision is not enough. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/arch/m68k/fpe

2013-04-19 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Apr 20 04:54:22 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_exp.c fpu_hyperb.c Log Message: Terminate a loop in EXT_FRACBITS(64bits) instead of FP_NMANT(83bits). I don't know why the mantissa of the accumulator is

CVS commit: src/sys/arch/m68k/fpe

2013-04-19 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Apr 20 04:55:44 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_hyperb.c Log Message: Fix typo in comment. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/arch/m68k/fpe/fpu_hyperb.c Please note

CVS commit: src/sys/arch/m68k/fpe

2013-04-19 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Apr 20 05:27:05 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_hyperb.c fpu_log.c fpu_trig.c Log Message: Clean up some useless codes. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14

CVS commit: src/sys/arch/m68k/fpe

2013-04-18 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Thu Apr 18 13:40:25 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_trig.c Log Message: Improve how to use cmp/sub. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/m68k/fpe/fpu_trig.c Please note

CVS commit: src/sys/arch/m68k/fpe

2013-04-11 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Thu Apr 11 13:27:11 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_emulate.h fpu_hyperb.c fpu_log.c fpu_trig.c Log Message: Introduce FPU_CONST_* constants to avoid a magic number. To generate a diff of this commit: cvs

CVS commit: src/sys/arch/m68k/fpe

2013-04-01 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Mon Apr 1 13:59:21 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_arith.h Log Message: quad_t - uint64_t To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/m68k/fpe/fpu_arith.h Please note that diffs

CVS commit: src/sys/arch/m68k/fpe

2013-03-26 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Tue Mar 26 10:57:13 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_rem.c Log Message: Fix a wrong raw comparison in step3.2. It should solve a PR kern/47692. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12

CVS commit: src/sys/arch/m68k/fpe

2013-03-26 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Tue Mar 26 11:30:21 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_add.c fpu_arith.h fpu_div.c fpu_emulate.c fpu_emulate.h fpu_explode.c fpu_fmovecr.c fpu_fscale.c fpu_fstore.c fpu_implode.c fpu_log.c

CVS commit: src/sys/arch/m68k/fpe

2013-03-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Mar 23 12:06:24 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_hyperb.c fpu_trig.c Log Message: Remove about updating fpsr. It was introduced by me but obviously duplicated with fpu_emul_arith(). To generate a diff of

CVS commit: src/sys/arch/m68k/fpe

2013-03-23 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Mar 23 12:08:47 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_fmovecr.c Log Message: Use the #error directive. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/arch/m68k/fpe/fpu_fmovecr.c Please

CVS commit: src/sys/arch/m68k/fpe

2013-03-22 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Fri Mar 22 13:46:38 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_implode.c Log Message: Fix fpu_ftox(). Update not only exponential but also mantissa when an integer part becomes 2 by rounding up. Without this fix, the

CVS commit: src/sys/arch/m68k/fpe

2013-03-19 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Tue Mar 19 09:17:17 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_add.c fpu_arith.h fpu_div.c fpu_emulate.h fpu_explode.c fpu_implode.c fpu_int.c fpu_mul.c fpu_sqrt.c fpu_subr.c Log Message: Remove

CVS commit: src/sys/arch/m68k/fpe

2013-03-19 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Tue Mar 19 09:28:40 UTC 2013 Modified Files: src/sys/arch/m68k/fpe: fpu_emulate.h fpu_explode.c Log Message: const-ify. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sys/arch/m68k/fpe/fpu_emulate.h cvs rdiff

CVS commit: src/sys/arch/m68k/fpe

2012-06-24 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Mon Jun 25 04:52:23 UTC 2012 Modified Files: src/sys/arch/m68k/fpe: fpu_int.c Log Message: Rewrite fpu_int(). Especially, remove the special treatment when |x| 1 because it forgets to consider FPCR round mode. See PR/46627 for

CVS commit: src/sys/arch/m68k/fpe

2011-10-15 Thread Izumi Tsutsui
Module Name:src Committed By: tsutsui Date: Sat Oct 15 15:14:30 UTC 2011 Modified Files: src/sys/arch/m68k/fpe: fpu_emulate.c fpu_emulate.h fpu_hyperb.c fpu_trig.c Log Message: Add hyperboric and trigonometric functions to m68k FPE, written by isaki@. With

CVS commit: src/sys/arch/m68k/fpe

2011-10-15 Thread Izumi Tsutsui
Module Name:src Committed By: tsutsui Date: Sat Oct 15 15:24:28 UTC 2011 Modified Files: src/sys/arch/m68k/fpe: README Log Message: Update implemented/unimplemented FP functions. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/m68k/fpe/README

CVS commit: src/sys/arch/m68k/fpe

2011-10-15 Thread Izumi Tsutsui
Module Name:src Committed By: tsutsui Date: Sat Oct 15 15:34:06 UTC 2011 Modified Files: src/sys/arch/m68k/fpe: fpu_emulate.h Log Message: - remove variable names from function declarations - some KNF To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19

CVS commit: src/sys/arch/m68k/fpe

2011-10-08 Thread Izumi Tsutsui
Module Name:src Committed By: tsutsui Date: Sun Oct 9 01:34:20 UTC 2011 Modified Files: src/sys/arch/m68k/fpe: fpu_emulate.h Log Message: Use static inline structure assignment for CPYFPN(). From isaki@. Tested on XM6i. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/arch/m68k/fpe

2011-07-18 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Mon Jul 18 14:11:27 UTC 2011 Modified Files: src/sys/arch/m68k/fpe: fpu_calcea.c fpu_emulate.c fpu_fmovecr.c fpu_fscale.c fpu_fstore.c fpu_int.c fpu_log.c fpu_rem.c Log Message: fix indent again. - Second level indents

CVS commit: src/sys/arch/m68k/fpe

2011-05-25 Thread Izumi Tsutsui
Module Name:src Committed By: tsutsui Date: Wed May 25 15:17:21 UTC 2011 Modified Files: src/sys/arch/m68k/fpe: fpu_calcea.c Log Message: KNF. No binary change. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sys/arch/m68k/fpe/fpu_calcea.c Please note

CVS commit: src/sys/arch/m68k/fpe

2011-05-25 Thread Izumi Tsutsui
Module Name:src Committed By: tsutsui Date: Wed May 25 15:47:19 UTC 2011 Modified Files: src/sys/arch/m68k/fpe: fpu_calcea.c Log Message: - consistently use #ifdef DEBUG_FPE and #ifdef DIAGNOSTIC - use DPRINTF() style debug printfs - use __func__ to print function names

CVS commit: src/sys/arch/m68k/fpe

2011-05-23 Thread Izumi Tsutsui
Module Name:src Committed By: tsutsui Date: Mon May 23 14:52:31 UTC 2011 Modified Files: src/sys/arch/m68k/fpe: fpu_emulate.c Log Message: KNF, mostly indent. No binary change. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32

CVS commit: src/sys/arch/m68k/fpe

2011-05-14 Thread Izumi Tsutsui
Module Name:src Committed By: tsutsui Date: Sat May 14 16:17:55 UTC 2011 Modified Files: src/sys/arch/m68k/fpe: fpu_emulate.c Log Message: Fix botch in rev 1.28 that causes wrong results of fcmp and ftst in FPE. fpu_upd_fpsr() should be called even in discard_result case