Libc update to simplify merge.
Bumping libc files for unsupported architectures, to simplify merging. A bunch of small fixes: * in libutil update * the macro in endian.h * some undefined types due to clear separation from host. * Fix a warning for cdbr.c Some modification which were required for the new build system: * inclusion path for const.h in sconst, still hacky * Removed default malloc.c which conflicts on some occasions.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: qp.c,v 1.7 2008/04/28 20:22:57 martin Exp $ */
|
||||
/* $NetBSD: qp.c,v 1.9 2012/03/17 20:48:59 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
|
||||
@@ -168,12 +168,12 @@ _Qp_mul(float128 *c, float128 *a, float128 *b)
|
||||
/*
|
||||
* XXX need corresponding softfloat function
|
||||
*/
|
||||
static float128 __zero = {0x4034000000000000, 0x00000000};
|
||||
static float128 __sf128_zero = {0x4034000000000000, 0x00000000};
|
||||
|
||||
void
|
||||
_Qp_neg(float128 *c, float128 *a)
|
||||
{
|
||||
*c = float128_sub(__zero, *a);
|
||||
*c = float128_sub(__sf128_zero, *a);
|
||||
}
|
||||
|
||||
|
||||
@@ -271,15 +271,15 @@ _Qp_uxtoq(float128 *c, unsigned long a)
|
||||
|
||||
if (a & 0x8000000000000000ULL) {
|
||||
a = (a >> 1) | (a & 1);
|
||||
*c = int64_to_float128(a);
|
||||
*c = int64_to_float128((long long)a);
|
||||
*c = float128_add(*c, *c);
|
||||
} else
|
||||
*c = int64_to_float128(a);
|
||||
*c = int64_to_float128((long long)a);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
_Qp_xtoq(float128 *c, long a)
|
||||
{
|
||||
*c = int64_to_float128(a);
|
||||
*c = int64_to_float128((long long)a);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: softfloat.h,v 1.6 2007/11/08 15:50:23 martin Exp $ */
|
||||
/* $NetBSD: softfloat.h,v 1.8 2011/07/07 07:14:57 matt Exp $ */
|
||||
|
||||
/* This is a derivative work. */
|
||||
|
||||
@@ -86,12 +86,10 @@ Software IEC/IEEE floating-point rounding mode.
|
||||
-------------------------------------------------------------------------------
|
||||
*/
|
||||
extern fp_rnd float_rounding_mode;
|
||||
enum {
|
||||
float_round_nearest_even = FP_RN,
|
||||
float_round_to_zero = FP_RZ,
|
||||
float_round_down = FP_RM,
|
||||
float_round_up = FP_RP
|
||||
};
|
||||
#define float_round_nearest_even FP_RN
|
||||
#define float_round_to_zero FP_RZ
|
||||
#define float_round_down FP_RM
|
||||
#define float_round_up FP_RP
|
||||
|
||||
/*
|
||||
-------------------------------------------------------------------------------
|
||||
@@ -121,13 +119,17 @@ void float_raise( fp_except );
|
||||
Software IEC/IEEE integer-to-floating-point conversion routines.
|
||||
-------------------------------------------------------------------------------
|
||||
*/
|
||||
float32 int32_to_float32( int );
|
||||
float64 int32_to_float64( int );
|
||||
float32 int32_to_float32( int32 );
|
||||
float32 uint32_to_float32( uint32 );
|
||||
float64 int32_to_float64( int32 );
|
||||
float64 uint32_to_float64( uint32 );
|
||||
#ifdef FLOATX80
|
||||
floatx80 int32_to_floatx80( int );
|
||||
floatx80 int32_to_floatx80( int32 );
|
||||
floatx80 uint32_to_floatx80( uint32 );
|
||||
#endif
|
||||
#ifdef FLOAT128
|
||||
float128 int32_to_float128( int );
|
||||
float128 int32_to_float128( int32 );
|
||||
float128 uint32_to_float128( uint32 );
|
||||
#endif
|
||||
float32 int64_to_float32( long long );
|
||||
float64 int64_to_float64( long long );
|
||||
|
||||
Reference in New Issue
Block a user