Skip to content

Commit 9a21e27

Browse files
author
Daniel Kroening
committed
gcc floating-point types now return a float_typet
1 parent 9bc6369 commit 9a21e27

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/ansi-c/gcc_types.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ Author: Daniel Kroening, [email protected]
1111
#include <util/config.h>
1212
#include <util/c_types.h>
1313

14-
bitvector_typet gcc_float16_type()
14+
floatbv_typet gcc_float16_type()
1515
{
1616
floatbv_typet result=
1717
ieee_float_spect::half_precision().to_type();
1818
result.set(ID_C_c_type, ID_gcc_float16);
1919
return result;
2020
}
2121

22-
bitvector_typet gcc_float32_type()
22+
floatbv_typet gcc_float32_type()
2323
{
2424
// not same as float!
2525
floatbv_typet result=
@@ -28,7 +28,7 @@ bitvector_typet gcc_float32_type()
2828
return result;
2929
}
3030

31-
bitvector_typet gcc_float32x_type()
31+
floatbv_typet gcc_float32x_type()
3232
{
3333
// not same as float!
3434
floatbv_typet result=
@@ -37,7 +37,7 @@ bitvector_typet gcc_float32x_type()
3737
return result;
3838
}
3939

40-
bitvector_typet gcc_float64_type()
40+
floatbv_typet gcc_float64_type()
4141
{
4242
// not same as double!
4343
floatbv_typet result=
@@ -46,7 +46,7 @@ bitvector_typet gcc_float64_type()
4646
return result;
4747
}
4848

49-
bitvector_typet gcc_float64x_type()
49+
floatbv_typet gcc_float64x_type()
5050
{
5151
// not same as double!
5252
floatbv_typet result=
@@ -55,7 +55,7 @@ bitvector_typet gcc_float64x_type()
5555
return result;
5656
}
5757

58-
bitvector_typet gcc_float128_type()
58+
floatbv_typet gcc_float128_type()
5959
{
6060
// not same as long double!
6161
floatbv_typet result=
@@ -64,7 +64,7 @@ bitvector_typet gcc_float128_type()
6464
return result;
6565
}
6666

67-
bitvector_typet gcc_float128x_type()
67+
floatbv_typet gcc_float128x_type()
6868
{
6969
// not same as long double!
7070
floatbv_typet result=

src/ansi-c/gcc_types.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Author: Daniel Kroening, [email protected]
1414
// These are gcc-specific; most are not implemented by clang
1515
// https://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html
1616

17-
bitvector_typet gcc_float16_type();
18-
bitvector_typet gcc_float32_type();
19-
bitvector_typet gcc_float32x_type();
20-
bitvector_typet gcc_float64_type();
21-
bitvector_typet gcc_float64x_type();
22-
bitvector_typet gcc_float128_type();
23-
bitvector_typet gcc_float128x_type();
17+
floatbv_typet gcc_float16_type();
18+
floatbv_typet gcc_float32_type();
19+
floatbv_typet gcc_float32x_type();
20+
floatbv_typet gcc_float64_type();
21+
floatbv_typet gcc_float64x_type();
22+
floatbv_typet gcc_float128_type();
23+
floatbv_typet gcc_float128x_type();
2424
unsignedbv_typet gcc_unsigned_int128_type();
2525
signedbv_typet gcc_signed_int128_type();
2626

0 commit comments

Comments
 (0)