comparison gcc/dfp.h @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents a06113de4d67
children 84e7813d76e9
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* Decimal floating point support functions for GNU compiler. 1 /* Decimal floating point support functions for GNU compiler.
2 Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 2 Copyright (C) 2005-2017 Free Software Foundation, Inc.
3 3
4 This file is part of GCC. 4 This file is part of GCC.
5 5
6 GCC is free software; you can redistribute it and/or modify it under 6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free 7 the terms of the GNU General Public License as published by the Free
32 32
33 /* Arithmetic and conversion functions. */ 33 /* Arithmetic and conversion functions. */
34 int decimal_do_compare (const REAL_VALUE_TYPE *, const REAL_VALUE_TYPE *, int); 34 int decimal_do_compare (const REAL_VALUE_TYPE *, const REAL_VALUE_TYPE *, int);
35 void decimal_real_from_string (REAL_VALUE_TYPE *, const char *); 35 void decimal_real_from_string (REAL_VALUE_TYPE *, const char *);
36 void decimal_round_for_format (const struct real_format *, REAL_VALUE_TYPE *); 36 void decimal_round_for_format (const struct real_format *, REAL_VALUE_TYPE *);
37 void decimal_real_convert (REAL_VALUE_TYPE *, enum machine_mode, const REAL_VALUE_TYPE *); 37 void decimal_real_convert (REAL_VALUE_TYPE *, const real_format *,
38 const REAL_VALUE_TYPE *);
38 void decimal_real_to_decimal (char *, const REAL_VALUE_TYPE *, size_t, size_t, int); 39 void decimal_real_to_decimal (char *, const REAL_VALUE_TYPE *, size_t, size_t, int);
39 void decimal_do_fix_trunc (REAL_VALUE_TYPE *, const REAL_VALUE_TYPE *); 40 void decimal_do_fix_trunc (REAL_VALUE_TYPE *, const REAL_VALUE_TYPE *);
40 void decimal_real_maxval (REAL_VALUE_TYPE *, int, enum machine_mode); 41 void decimal_real_maxval (REAL_VALUE_TYPE *, int, machine_mode);
41 void decimal_real_to_integer2 (HOST_WIDE_INT *, HOST_WIDE_INT *, const REAL_VALUE_TYPE *); 42 wide_int decimal_real_to_integer (const REAL_VALUE_TYPE *, bool *, int);
42 HOST_WIDE_INT decimal_real_to_integer (const REAL_VALUE_TYPE *); 43 HOST_WIDE_INT decimal_real_to_integer (const REAL_VALUE_TYPE *);
43 44
44 #ifdef TREE_CODE 45 #ifdef TREE_CODE
45 bool decimal_real_arithmetic (REAL_VALUE_TYPE *, enum tree_code, const REAL_VALUE_TYPE *, 46 bool decimal_real_arithmetic (REAL_VALUE_TYPE *, enum tree_code, const REAL_VALUE_TYPE *,
46 const REAL_VALUE_TYPE *); 47 const REAL_VALUE_TYPE *);