Skip to content

Commit 10659e3

Browse files
jklmnnbrobecke
authored andcommitted
Use Ada.Numerics.Aux wrapper for float on x86 vx7r2cert
TN: U126-004 Change-Id: I4634eb4c7a7c52dbe297d5ef67a683e9f0d5ccdd (cherry picked from commit 952571b)
1 parent 43c4f29 commit 10659e3

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

src/system/system-vxworks7-x86-ravenscar-sfp.ads

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ package System is
7878
Max_Binary_Modulus : constant := 2 ** Standard'Max_Integer_Size;
7979
Max_Nonbinary_Modulus : constant := 2 ** Integer'Size - 1;
8080

81-
Max_Base_Digits : constant := Long_Long_Float'Digits;
82-
Max_Digits : constant := Long_Long_Float'Digits;
81+
Max_Base_Digits : constant := Long_Float'Digits;
82+
Max_Digits : constant := Long_Float'Digits;
8383

8484
Max_Mantissa : constant := Standard'Max_Integer_Size - 1;
8585
Fine_Delta : constant := 2.0 ** (-Max_Mantissa);

src/system/system-vxworks7-x86-zfp.ads

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ package System is
7575
Max_Binary_Modulus : constant := 2 ** Standard'Max_Integer_Size;
7676
Max_Nonbinary_Modulus : constant := 2 ** Integer'Size - 1;
7777

78-
Max_Base_Digits : constant := Long_Long_Float'Digits;
79-
Max_Digits : constant := Long_Long_Float'Digits;
78+
Max_Base_Digits : constant := Long_Float'Digits;
79+
Max_Digits : constant := Long_Float'Digits;
8080

8181
Max_Mantissa : constant := Standard'Max_Integer_Size - 1;
8282
Fine_Delta : constant := 2.0 ** (-Max_Mantissa);

support/rts_sources/sources.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -912,11 +912,11 @@
912912
]
913913
},
914914
'math/long_long_64bit': {
915-
'conditions': ['Add_Math_Lib:!no', 'CPU_Family:!x86_64'],
915+
'conditions': ['Add_Math_Lib:!no', 'CPU_Family:!x86,!x86_64'],
916916
'srcs': ['libgnat/a-nllefu.ads']
917917
},
918918
'math/long_long_80bit': {
919-
'conditions': ['Add_Math_Lib:!no', 'CPU_Family:x86_64'],
919+
'conditions': ['Add_Math_Lib:!no', 'CPU_Family:x86,x86_64'],
920920
'bb_srcs': [
921921
'hie/s-lilodo__ada.ads', 'hie/s-lilodo__ada.adb',
922922
'hie/s-lldosq__ada.ads', 'hie/s-lldosq__fpu.adb',
@@ -925,7 +925,10 @@
925925
'hie/s-lilodo__ada.ads', 'hie/s-lilodo__ada.adb',
926926
'hie/s-lldosq__ada.ads', 'hie/s-lldosq__fpu.adb',
927927
'hie/a-nllefu__ada.ads'],
928-
'vx7r2cert_srcs': ['hie/a-nllefu__cert.ads']
928+
'vx7r2cert_srcs': ['hie/a-nllefu__cert.ads',
929+
'libgnat/a-nalofl.ads',
930+
'libgnat/a-nallfl__wraplf.ads',
931+
'libgnat/a-naliop__nolibm.ads']
929932
},
930933
'math/complex': {
931934
'conditions': ['Add_Math_Lib:!no', 'Add_Complex_Type_Support:yes'],

0 commit comments

Comments
 (0)