Revision 5aea4c58

b/fpu/softfloat.c
6443 6443
    return res;
6444 6444
}
6445 6445

  
6446
uint16 float32_to_uint16_round_to_zero( float32 a STATUS_PARAM )
6446
uint_fast16_t float32_to_uint16_round_to_zero(float32 a STATUS_PARAM)
6447 6447
{
6448 6448
    int64_t v;
6449
    uint16 res;
6449
    uint_fast16_t res;
6450 6450

  
6451 6451
    v = float32_to_int64_round_to_zero(a STATUS_VAR);
6452 6452
    if (v < 0) {
......
6497 6497
    return res;
6498 6498
}
6499 6499

  
6500
uint16 float64_to_uint16_round_to_zero( float64 a STATUS_PARAM )
6500
uint_fast16_t float64_to_uint16_round_to_zero(float64 a STATUS_PARAM)
6501 6501
{
6502 6502
    int64_t v;
6503
    uint16 res;
6503
    uint_fast16_t res;
6504 6504

  
6505 6505
    v = float64_to_int64_round_to_zero(a STATUS_VAR);
6506 6506
    if (v < 0) {
b/fpu/softfloat.h
44 44

  
45 45
#include <inttypes.h>
46 46
#include "config-host.h"
47
#include "osdep.h"
47 48

  
48 49
/*----------------------------------------------------------------------------
49 50
| Each of the following `typedef's defines the most convenient type that holds
......
57 58
typedef uint8_t uint8;
58 59
typedef int8_t int8;
59 60
#ifndef _AIX
60
typedef int uint16;
61 61
typedef int int16;
62 62
#endif
63 63
typedef unsigned int uint32;
......
263 263
| Software IEC/IEEE single-precision conversion routines.
264 264
*----------------------------------------------------------------------------*/
265 265
int16 float32_to_int16_round_to_zero( float32 STATUS_PARAM );
266
uint16 float32_to_uint16_round_to_zero( float32 STATUS_PARAM );
266
uint_fast16_t float32_to_uint16_round_to_zero(float32 STATUS_PARAM);
267 267
int32 float32_to_int32( float32 STATUS_PARAM );
268 268
int32 float32_to_int32_round_to_zero( float32 STATUS_PARAM );
269 269
uint32 float32_to_uint32( float32 STATUS_PARAM );
......
367 367
| Software IEC/IEEE double-precision conversion routines.
368 368
*----------------------------------------------------------------------------*/
369 369
int16 float64_to_int16_round_to_zero( float64 STATUS_PARAM );
370
uint16 float64_to_uint16_round_to_zero( float64 STATUS_PARAM );
370
uint_fast16_t float64_to_uint16_round_to_zero(float64 STATUS_PARAM);
371 371
int32 float64_to_int32( float64 STATUS_PARAM );
372 372
int32 float64_to_int32_round_to_zero( float64 STATUS_PARAM );
373 373
uint32 float64_to_uint32( float64 STATUS_PARAM );

Also available in: Unified diff