OLD | NEW |
1 /* fpu.c --- FPU emulator for stand-alone RX simulator. | 1 /* fpu.c --- FPU emulator for stand-alone RX simulator. |
2 | 2 |
3 Copyright (C) 2008-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2008-2013 Free Software Foundation, Inc. |
4 Contributed by Red Hat, Inc. | 4 Contributed by Red Hat, Inc. |
5 | 5 |
6 This file is part of the GNU simulators. | 6 This file is part of the GNU simulators. |
7 | 7 |
8 This program is free software; you can redistribute it and/or modify | 8 This program is free software; you can redistribute it and/or modify |
9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
10 the Free Software Foundation; either version 3 of the License, or | 10 the Free Software Foundation; either version 3 of the License, or |
11 (at your option) any later version. | 11 (at your option) any later version. |
12 | 12 |
13 This program is distributed in the hope that it will be useful, | 13 This program is distributed in the hope that it will be useful, |
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 if (whole_bits & 0xff000000UL) | 783 if (whole_bits & 0xff000000UL) |
784 { | 784 { |
785 a.mant >>= 1; | 785 a.mant >>= 1; |
786 a.exp ++; | 786 a.exp ++; |
787 } | 787 } |
788 | 788 |
789 rv = fp_implode (&a); | 789 rv = fp_implode (&a); |
790 return rv; | 790 return rv; |
791 } | 791 } |
792 | 792 |
OLD | NEW |