mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-23 18:12:00 -06:00
change HOST_SOLARIS to CONFIG_SOLARIS{_VERSION}
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
a8cd70fc4e
commit
dfe5fff3ea
10 changed files with 28 additions and 23 deletions
|
@ -2,7 +2,7 @@
|
|||
context is supported */
|
||||
#include "softfloat.h"
|
||||
#include <math.h>
|
||||
#if defined(HOST_SOLARIS)
|
||||
#if defined(CONFIG_SOLARIS)
|
||||
#include <fenv.h>
|
||||
#endif
|
||||
|
||||
|
@ -10,7 +10,7 @@ void set_float_rounding_mode(int val STATUS_PARAM)
|
|||
{
|
||||
STATUS(float_rounding_mode) = val;
|
||||
#if defined(HOST_BSD) && !defined(__APPLE__) || \
|
||||
(defined(HOST_SOLARIS) && HOST_SOLARIS < 10)
|
||||
(defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10)
|
||||
fpsetround(val);
|
||||
#elif defined(__arm__)
|
||||
/* nothing to do */
|
||||
|
@ -26,7 +26,8 @@ void set_floatx80_rounding_precision(int val STATUS_PARAM)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(HOST_BSD) || (defined(HOST_SOLARIS) && HOST_SOLARIS < 10)
|
||||
#if defined(HOST_BSD) || \
|
||||
(defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10)
|
||||
#define lrint(d) ((int32_t)rint(d))
|
||||
#define llrint(d) ((int64_t)rint(d))
|
||||
#define lrintf(f) ((int32_t)rint(f))
|
||||
|
@ -34,7 +35,8 @@ void set_floatx80_rounding_precision(int val STATUS_PARAM)
|
|||
#define sqrtf(f) ((float)sqrt(f))
|
||||
#define remainderf(fa, fb) ((float)remainder(fa, fb))
|
||||
#define rintf(f) ((float)rint(f))
|
||||
#if !defined(__sparc__) && defined(HOST_SOLARIS) && HOST_SOLARIS < 10
|
||||
#if !defined(__sparc__) && \
|
||||
(defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10)
|
||||
extern long double rintl(long double);
|
||||
extern long double scalbnl(long double, int);
|
||||
|
||||
|
@ -349,7 +351,8 @@ uint64_t float64_to_uint64_round_to_zero (float64 a STATUS_PARAM)
|
|||
/*----------------------------------------------------------------------------
|
||||
| Software IEC/IEEE double-precision operations.
|
||||
*----------------------------------------------------------------------------*/
|
||||
#if defined(__sun__) && defined(HOST_SOLARIS) && HOST_SOLARIS < 10
|
||||
#if defined(__sun__) && \
|
||||
(defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10)
|
||||
static inline float64 trunc(float64 x)
|
||||
{
|
||||
return x < 0 ? -floor(-x) : floor(x);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue