]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/x86/ieee.h
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / StdLib / Include / x86 / ieee.h
diff --git a/StdLib/Include/x86/ieee.h b/StdLib/Include/x86/ieee.h
deleted file mode 100644 (file)
index f4326b0..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-/*     $NetBSD: ieee.h,v 1.9.32.1 2007/05/07 19:49:10 pavel Exp $ */\r
-\r
-/*\r
- * Copyright (c) 1992, 1993\r
- *     The Regents of the University of California.  All rights reserved.\r
- *\r
- * This software was developed by the Computer Systems Engineering group\r
- * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and\r
- * contributed to Berkeley.\r
- *\r
- * All advertising materials mentioning features or use of this software\r
- * must display the following acknowledgement:\r
- *     This product includes software developed by the University of\r
- *     California, Lawrence Berkeley Laboratory.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- *    notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- *    notice, this list of conditions and the following disclaimer in the\r
- *    documentation and/or other materials provided with the distribution.\r
- * 3. Neither the name of the University nor the names of its contributors\r
- *    may be used to endorse or promote products derived from this software\r
- *    without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- *     @(#)ieee.h      8.1 (Berkeley) 6/11/93\r
- */\r
-\r
-/*\r
- * ieee.h defines the machine-dependent layout of the machine's IEEE\r
- * floating point.  It does *not* define (yet?) any of the rounding\r
- * mode bits, exceptions, and so forth.\r
- */\r
-\r
-#include <sys/ieee754.h>\r
-\r
-#define        EXT_EXPBITS     15\r
-#define EXT_FRACHBITS  32\r
-#define        EXT_FRACLBITS   32\r
-#define        EXT_FRACBITS    (EXT_FRACLBITS + EXT_FRACHBITS)\r
-\r
-#define        EXT_TO_ARRAY32(u, a) do {                       \\r
-       (a)[0] = (uint32_t)(u).extu_ext.ext_fracl;      \\r
-       (a)[1] = (uint32_t)(u).extu_ext.ext_frach;      \\r
-} while(/*CONSTCOND*/0)\r
-\r
-/*\r
- * struct ieee_ext is the raw storage layout of the 80-bit\r
- * extended-precision type as implemented by the FPU.  Per the\r
- * respective ABI specifications, it is followed by a tail padding of\r
- *\r
- *   amd64: 48 bits,\r
- *   i386:  16 bits.\r
- */\r
-struct ieee_ext {\r
-       u_int   ext_fracl:EXT_FRACLBITS;\r
-       u_int   ext_frach:EXT_FRACHBITS;\r
-#if 0\r
-       u_int   ext_int:1;\r
-#endif\r
-       u_int   ext_exp:EXT_EXPBITS;\r
-       u_int   ext_sign:1;\r
-};\r
-\r
-/*\r
- * Floats whose exponent is in [1..INFNAN) (of whatever type) are\r
- * `normal'.  Floats whose exponent is INFNAN are either Inf or NaN.\r
- * Floats whose exponent is zero are either zero (iff all fraction\r
- * bits are zero) or subnormal values.\r
- *\r
- * A NaN is a `signalling NaN' if its QUIETNAN bit is clear in its\r
- * high fraction; if the bit is set, it is a `quiet NaN'.\r
- */\r
-#define        EXT_EXP_INFNAN  32767\r
-\r
-#if 0\r
-#define        SNG_QUIETNAN    (1 << 22)\r
-#define        DBL_QUIETNAN    (1 << 19)\r
-#define        EXT_QUIETNAN    (1 << 30)\r
-#endif\r
-\r
-/*\r
- * Exponent biases.\r
- */\r
-#define        EXT_EXP_BIAS    16383\r
-\r
-/*\r
- * Convenience data structures.\r
- */\r
-union ieee_ext_u {\r
-       long double             extu_ld;\r
-       struct ieee_ext         extu_ext;\r
-};\r