VirtualBox

Changeset 13370 in vbox for trunk/src/recompiler_new/fpu


Ignore:
Timestamp:
Oct 17, 2008 11:58:09 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38092
Message:

MSVC related changes

Location:
trunk/src/recompiler_new/fpu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler_new/fpu/softfloat-native.h

    r13359 r13370  
    44#if (defined(_BSD) && !defined(__APPLE__)) || defined(HOST_SOLARIS)
    55#include <ieeefp.h>
     6#define fabsf(f) ((float)fabs(f))
     7#elif defined(_MSC_VER)
     8#include <fpieee.h>
    69#define fabsf(f) ((float)fabs(f))
    710#else
     
    3437#define isinf(x)                ((fpclass(x) == FP_NINF) || (fpclass(x) == FP_PINF))
    3538
     39#elif defined(_MSC_VER)
     40#include <float.h>
     41#define unordered(x1, x2)       ((_fpclass(x1) <= 2) || (_fpclass(x2) <= 2))
     42#define isless(x, y)            ((!unordered(x, y)) && ((x) < (y)))
     43#define islessequal(x, y)       ((!unordered(x, y)) && ((x) <= (y)))
     44#define isunordered(x,y)        unordered(x, y)
    3645#endif
    3746
     
    7786    float_round_to_zero      = 3
    7887};
     88#elif defined(_MSC_VER)
     89enum {
     90    float_round_nearest_even = _FpRoundNearest,
     91    float_round_down         = _FpRoundMinusInfinity,
     92    float_round_up           = _FpRoundPlusInfinity,
     93    float_round_to_zero      = _FpRoundChopped
     94};
    7995#else
    8096enum {
  • trunk/src/recompiler_new/fpu/softfloat.h

    r1 r13370  
    3333#define SOFTFLOAT_H
    3434
     35#ifdef VBOX
     36#ifndef _MSC_VER
    3537#include <inttypes.h>
     38#endif
     39#endif
    3640#include "config.h"
    3741
     
    7074
    7175#define LIT64( a ) a##LL
     76#ifdef _MSC_VER
     77#define INLINE
     78#else
    7279#define INLINE static inline
     80#endif
    7381
    7482/*----------------------------------------------------------------------------
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