VirtualBox

Changeset 47406 in vbox for trunk/include


Ignore:
Timestamp:
Jul 25, 2013 7:36:57 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
87556
Message:

x86.h: Added MSXCR macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/x86.h

    r47381 r47406  
    22322232/** Bits which should be zero, apparently. */
    22332233#define X86_FCW_ZERO_MASK   UINT16_C(0xf080)
     2234/** @} */
     2235
     2236/** @name SSE MXCSR
     2237 * @{ */
     2238/** Exception Flag: Invalid operation.  */
     2239#define X86_MSXCR_IE          RT_BIT(0)
     2240/** Exception Flag: Denormalized operand.  */
     2241#define X86_MSXCR_DE          RT_BIT(1)
     2242/** Exception Flag: Zero divide.  */
     2243#define X86_MSXCR_ZE          RT_BIT(2)
     2244/** Exception Flag: Overflow.  */
     2245#define X86_MSXCR_OE          RT_BIT(3)
     2246/** Exception Flag: Underflow.  */
     2247#define X86_MSXCR_UE          RT_BIT(4)
     2248/** Exception Flag: Precision.  */
     2249#define X86_MSXCR_PE          RT_BIT(5)
     2250
     2251/** Denormals are zero. */
     2252#define X86_MSXCR_DAZ         RT_BIT(6)
     2253
     2254/** Exception Mask: Invalid operation. */
     2255#define X86_MSXCR_IM          RT_BIT(7)
     2256/** Exception Mask: Denormalized operand. */
     2257#define X86_MSXCR_DM          RT_BIT(8)
     2258/** Exception Mask: Zero divide.  */
     2259#define X86_MSXCR_ZM          RT_BIT(9)
     2260/** Exception Mask: Overflow.  */
     2261#define X86_MSXCR_OM          RT_BIT(10)
     2262/** Exception Mask: Underflow.  */
     2263#define X86_MSXCR_UM          RT_BIT(11)
     2264/** Exception Mask: Precision.  */
     2265#define X86_MSXCR_PM          RT_BIT(12)
     2266
     2267/** Rounding control mask. */
     2268#define X86_MSXCR_RC_MASK     UINT16_C(0x6000)
     2269/** Rounding control: To nearest. */
     2270#define X86_MSXCR_RC_NEAREST  UINT16_C(0x0000)
     2271/** Rounding control: Down. */
     2272#define X86_MSXCR_RC_DOWN     UINT16_C(0x2000)
     2273/** Rounding control: Up. */
     2274#define X86_MSXCR_RC_UP       UINT16_C(0x4000)
     2275/** Rounding control: Towards zero. */
     2276#define X86_MSXCR_RC_ZERO     UINT16_C(0x6000)
     2277
     2278/** Flush-to-zero for masked underflow.  */
     2279#define X86_MSXCR_FZ          RT_BIT(15)
     2280
     2281/** Misaligned Exception Mask.  */
     2282#define X86_MSXCR_MM          RT_BIT(16)
    22342283/** @} */
    22352284
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette