mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 20:05:14 +07:00
74ba9207e1
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details you should have received a copy of the gnu general public license along with this program if not write to the free software foundation inc 675 mass ave cambridge ma 02139 usa extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 441 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc) Reviewed-by: Richard Fontana <rfontana@redhat.com> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190520071858.739733335@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
52 lines
1.6 KiB
C
52 lines
1.6 KiB
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
NetWinder Floating Point Emulator
|
|
(c) Rebel.COM, 1998,1999
|
|
|
|
Direct questions, comments to Scott Bambrough <scottb@netwinder.org>
|
|
|
|
*/
|
|
|
|
#include "fpa11.h"
|
|
#include "softfloat.h"
|
|
#include "fpopcode.h"
|
|
#include "fpsr.h"
|
|
#include "fpmodule.h"
|
|
#include "fpmodule.inl"
|
|
|
|
#ifdef CONFIG_FPE_NWFPE_XP
|
|
const floatx80 floatx80Constant[] = {
|
|
{ .high = 0x0000, .low = 0x0000000000000000ULL},/* extended 0.0 */
|
|
{ .high = 0x3fff, .low = 0x8000000000000000ULL},/* extended 1.0 */
|
|
{ .high = 0x4000, .low = 0x8000000000000000ULL},/* extended 2.0 */
|
|
{ .high = 0x4000, .low = 0xc000000000000000ULL},/* extended 3.0 */
|
|
{ .high = 0x4001, .low = 0x8000000000000000ULL},/* extended 4.0 */
|
|
{ .high = 0x4001, .low = 0xa000000000000000ULL},/* extended 5.0 */
|
|
{ .high = 0x3ffe, .low = 0x8000000000000000ULL},/* extended 0.5 */
|
|
{ .high = 0x4002, .low = 0xa000000000000000ULL},/* extended 10.0 */
|
|
};
|
|
#endif
|
|
|
|
const float64 float64Constant[] = {
|
|
0x0000000000000000ULL, /* double 0.0 */
|
|
0x3ff0000000000000ULL, /* double 1.0 */
|
|
0x4000000000000000ULL, /* double 2.0 */
|
|
0x4008000000000000ULL, /* double 3.0 */
|
|
0x4010000000000000ULL, /* double 4.0 */
|
|
0x4014000000000000ULL, /* double 5.0 */
|
|
0x3fe0000000000000ULL, /* double 0.5 */
|
|
0x4024000000000000ULL /* double 10.0 */
|
|
};
|
|
|
|
const float32 float32Constant[] = {
|
|
0x00000000, /* single 0.0 */
|
|
0x3f800000, /* single 1.0 */
|
|
0x40000000, /* single 2.0 */
|
|
0x40400000, /* single 3.0 */
|
|
0x40800000, /* single 4.0 */
|
|
0x40a00000, /* single 5.0 */
|
|
0x3f000000, /* single 0.5 */
|
|
0x41200000 /* single 10.0 */
|
|
};
|
|
|