aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils.c
diff options
context:
space:
mode:
authorEd Schonberg <schonberg@adacore.com>2018-12-11 11:11:06 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2018-12-11 11:11:06 +0000
commit62ebfa527237ba42c9d93032dc008e82d482d271 (patch)
treeba2bcd82f026df41318ff05a4967bd6291a6bc74 /gcc/ada/gcc-interface/utils.c
parent5e366628853651e5d7a98e7bc12f5fb7746ce993 (diff)
downloadgcc-62ebfa527237ba42c9d93032dc008e82d482d271.zip
gcc-62ebfa527237ba42c9d93032dc008e82d482d271.tar.gz
gcc-62ebfa527237ba42c9d93032dc008e82d482d271.tar.bz2
[Ada] Uintp: add a new UI_From_Integral generic constructor
2018-12-11 Ed Schonberg <schonberg@adacore.com> gcc/ada/ * uintp.ads, uintp.adb (UI_From_Integral): New generic function, to simplify construction of Universal_Integer representations from any Integer type. If type is small enough the code is equivalent to a call to UI_To_Int with appropriate conversions; otherwise the routine uses the existing mechanism of building a vector of suitable integer values and calling Vector_To_Uint. The routine must not be applied to a biased type. From-SVN: r267000
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
0 files changed, 0 insertions, 0 deletions