redo <inttypes.h> conversion
This commit is contained in:
parent
8d7585309c
commit
a41c3721f6
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: milieu.h,v 1.1 2001/03/13 07:18:38 ross Exp $ */
|
||||
/* $NetBSD: milieu.h,v 1.2 2001/04/06 02:35:08 ross Exp $ */
|
||||
|
||||
/* This is a derivative work. */
|
||||
|
||||
|
@ -106,7 +106,7 @@ typedef int int16;
|
|||
typedef unsigned int uint32;
|
||||
typedef signed int int32;
|
||||
#ifdef BITS64
|
||||
typedef u_int64_t uint64;
|
||||
typedef uint64_t uint64;
|
||||
typedef int64_t int64;
|
||||
#endif
|
||||
|
||||
|
@ -118,14 +118,14 @@ implementation of C, `bits16' and `sbits16' should be `typedef'ed to
|
|||
`unsigned short int' and `signed short int' (or `short int'), respectively.
|
||||
-------------------------------------------------------------------------------
|
||||
*/
|
||||
typedef u_int8_t bits8;
|
||||
typedef uint8_t bits8;
|
||||
typedef int8_t sbits8;
|
||||
typedef u_int16_t bits16;
|
||||
typedef uint16_t bits16;
|
||||
typedef int16_t sbits16;
|
||||
typedef u_int32_t bits32;
|
||||
typedef uint32_t bits32;
|
||||
typedef int32_t sbits32;
|
||||
#ifdef BITS64
|
||||
typedef u_int64_t bits64;
|
||||
typedef uint64_t bits64;
|
||||
typedef int64_t sbits64;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: random.h,v 1.2 2001/03/13 07:47:01 ross Exp $ */
|
||||
/* $NetBSD: random.h,v 1.3 2001/04/06 02:35:09 ross Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -44,9 +44,9 @@
|
|||
|
||||
#include "milieu.h"
|
||||
|
||||
#define randomUint8() ((u_int8_t)random())
|
||||
#define randomUint16() ((u_int16_t)random())
|
||||
#define randomUint32() ((u_int32_t)random())
|
||||
#define randomUint64() ((u_int64_t)random() << 32 | random())
|
||||
#define randomUint8() ((uint8_t)random())
|
||||
#define randomUint16() ((uint16_t)random())
|
||||
#define randomUint32() ((uint32_t)random())
|
||||
#define randomUint64() ((uint64_t)random() << 32 | random())
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: softfloat.h,v 1.1 2001/03/13 07:37:59 ross Exp $ */
|
||||
/* $NetBSD: softfloat.h,v 1.2 2001/04/06 02:35:09 ross Exp $ */
|
||||
|
||||
/* This is a derivative work. */
|
||||
|
||||
|
@ -89,22 +89,22 @@ the `FLOAT128' macro and the quadruple-precision format `float128'.
|
|||
Software IEC/IEEE floating-point types.
|
||||
-------------------------------------------------------------------------------
|
||||
*/
|
||||
typedef u_int32_t float32;
|
||||
typedef u_int64_t float64;
|
||||
typedef uint32_t float32;
|
||||
typedef uint64_t float64;
|
||||
#ifdef FLOATX80
|
||||
typedef struct {
|
||||
#if BYTE_ORDER == BIG_ENDIAN
|
||||
u_int16_t high;
|
||||
u_int64_t low;
|
||||
uint16_t high;
|
||||
uint64_t low;
|
||||
#else
|
||||
u_int64_t low;
|
||||
u_int16_t high;
|
||||
uint64_t low;
|
||||
uint16_t high;
|
||||
#endif
|
||||
} floatx80;
|
||||
#endif
|
||||
#ifdef FLOAT128
|
||||
typedef struct {
|
||||
u_int64_t high, low;
|
||||
uint64_t high, low;
|
||||
} float128;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue