source: mainline/uspace/lib/cpp/include/cstdint@ b251af5a

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since b251af5a was b251af5a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 6 years ago

Remove <lib/cpp/include/bits/common.hpp>, which is no longer necessary

  • Property mode set to 100644
File size: 3.8 KB
Line 
1/*
2 * Copyright (c) 2018 Jaroslav Jindrak
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * - The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#ifndef LIBCPP_CSTDINT
30#define LIBCPP_CSTDINT
31
32
33namespace std::hel
34{
35 extern "C" {
36 #include <stdint.h>
37 }
38}
39
40namespace std
41{
42 using int8_t = std::hel::int8_t;
43 using int16_t = std::hel::int16_t;
44 using int32_t = std::hel::int32_t;
45 using int64_t = std::hel::int64_t;
46
47 using intmax_t = std::hel::intmax_t;
48 using intptr_t = std::hel::intptr_t;
49
50 using int_fast8_t = std::hel::int8_t;
51 using int_fast16_t = std::hel::int16_t;
52 using int_fast32_t = std::hel::int32_t;
53 using int_fast64_t = std::hel::int64_t;
54
55 using int_least8_t = std::hel::int8_t;
56 using int_least16_t = std::hel::int16_t;
57 using int_least32_t = std::hel::int32_t;
58 using int_least64_t = std::hel::int64_t;
59
60 using uint8_t = std::hel::uint8_t;
61 using uint16_t = std::hel::uint16_t;
62 using uint32_t = std::hel::uint32_t;
63 using uint64_t = std::hel::uint64_t;
64
65 using uintmax_t = std::hel::uintmax_t;
66 using uintptr_t = std::hel::uintptr_t;
67
68 using uint_fast8_t = std::hel::uint8_t;
69 using uint_fast16_t = std::hel::uint16_t;
70 using uint_fast32_t = std::hel::uint32_t;
71 using uint_fast64_t = std::hel::uint64_t;
72
73 using uint_least8_t = std::hel::uint8_t;
74 using uint_least16_t = std::hel::uint16_t;
75 using uint_least32_t = std::hel::uint32_t;
76 using uint_least64_t = std::hel::uint64_t;
77}
78
79using int8_t = std::hel::int8_t;
80using int16_t = std::hel::int16_t;
81using int32_t = std::hel::int32_t;
82using int64_t = std::hel::int64_t;
83
84using intmax_t = std::hel::intmax_t;
85using intptr_t = std::hel::intptr_t;
86
87using int_fast8_t = std::hel::int8_t;
88using int_fast16_t = std::hel::int16_t;
89using int_fast32_t = std::hel::int32_t;
90using int_fast64_t = std::hel::int64_t;
91
92using int_least8_t = std::hel::int8_t;
93using int_least16_t = std::hel::int16_t;
94using int_least32_t = std::hel::int32_t;
95using int_least64_t = std::hel::int64_t;
96
97using uint8_t = std::hel::uint8_t;
98using uint16_t = std::hel::uint16_t;
99using uint32_t = std::hel::uint32_t;
100using uint64_t = std::hel::uint64_t;
101
102using uintmax_t = std::hel::uintmax_t;
103using uintptr_t = std::hel::uintptr_t;
104
105using uint_fast8_t = std::hel::uint8_t;
106using uint_fast16_t = std::hel::uint16_t;
107using uint_fast32_t = std::hel::uint32_t;
108using uint_fast64_t = std::hel::uint64_t;
109
110using uint_least8_t = std::hel::uint8_t;
111using uint_least16_t = std::hel::uint16_t;
112using uint_least32_t = std::hel::uint32_t;
113using uint_least64_t = std::hel::uint64_t;
114
115#endif
Note: See TracBrowser for help on using the repository browser.