mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
target/m68k: add fmod/frem
Using a local m68k floatx80_mod() [copied from previous: Written by Andreas Grabher for Previous, NeXT Computer Emulator.] The quotient byte of the FPSR is updated with the result of the operation. Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20180224201802.911-3-laurent@vivier.eu>
This commit is contained in:
parent
88857aca93
commit
591596b77a
7 changed files with 176 additions and 2 deletions
26
target/m68k/softfloat.h
Normal file
26
target/m68k/softfloat.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Ported from a work by Andreas Grabher for Previous, NeXT Computer Emulator,
|
||||
* derived from NetBSD M68040 FPSP functions,
|
||||
* derived from release 2a of the SoftFloat IEC/IEEE Floating-point Arithmetic
|
||||
* Package. Those parts of the code (and some later contributions) are
|
||||
* provided under that license, as detailed below.
|
||||
* It has subsequently been modified by contributors to the QEMU Project,
|
||||
* so some portions are provided under:
|
||||
* the SoftFloat-2a license
|
||||
* the BSD license
|
||||
* GPL-v2-or-later
|
||||
*
|
||||
* Any future contributions to this file will be taken to be licensed under
|
||||
* the Softfloat-2a license unless specifically indicated otherwise.
|
||||
*/
|
||||
|
||||
/* Portions of this work are licensed under the terms of the GNU GPL,
|
||||
* version 2 or later. See the COPYING file in the top-level directory.
|
||||
*/
|
||||
|
||||
#ifndef TARGET_M68K_SOFTFLOAT_H
|
||||
#define TARGET_M68K_SOFTFLOAT_H
|
||||
#include "fpu/softfloat.h"
|
||||
|
||||
floatx80 floatx80_mod(floatx80 a, floatx80 b, float_status *status);
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue