Mercurial > hg > CbC > CbC_gcc
comparison gcc/ada/uintp.ads @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
4 -- -- | 4 -- -- |
5 -- U I N T P -- | 5 -- U I N T P -- |
6 -- -- | 6 -- -- |
7 -- S p e c -- | 7 -- S p e c -- |
8 -- -- | 8 -- -- |
9 -- Copyright (C) 1992-2018, Free Software Foundation, Inc. -- | 9 -- Copyright (C) 1992-2019, Free Software Foundation, Inc. -- |
10 -- -- | 10 -- -- |
11 -- GNAT is free software; you can redistribute it and/or modify it under -- | 11 -- GNAT is free software; you can redistribute it and/or modify it under -- |
12 -- terms of the GNU General Public License as published by the Free Soft- -- | 12 -- terms of the GNU General Public License as published by the Free Soft- -- |
13 -- ware Foundation; either version 3, or (at your option) any later ver- -- | 13 -- ware Foundation; either version 3, or (at your option) any later ver- -- |
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- | 14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- |
246 -- to be erroneous (and the behavior is undefined) if n is not invertible. | 246 -- to be erroneous (and the behavior is undefined) if n is not invertible. |
247 | 247 |
248 function UI_From_Int (Input : Int) return Uint; | 248 function UI_From_Int (Input : Int) return Uint; |
249 -- Converts Int value to universal integer form | 249 -- Converts Int value to universal integer form |
250 | 250 |
251 generic | |
252 type In_T is range <>; | |
253 function UI_From_Integral (Input : In_T) return Uint; | |
254 -- Likewise, but converts from any integer type. Must not be applied to | |
255 -- biased types (instantiation will provide a warning if actual is a biased | |
256 -- type). | |
257 | |
251 function UI_From_CC (Input : Char_Code) return Uint; | 258 function UI_From_CC (Input : Char_Code) return Uint; |
252 -- Converts Char_Code value to universal integer form | 259 -- Converts Char_Code value to universal integer form |
253 | 260 |
254 function UI_To_Int (Input : Uint) return Int; | 261 function UI_To_Int (Input : Uint) return Int; |
255 -- Converts universal integer value to Int. Constraint_Error if value is | 262 -- Converts universal integer value to Int. Constraint_Error if value is |