[b83ec692] | 1 | /*
|
---|
[de53138] | 2 | * Copyright (c) 2018 Jaroslav Jindrak
|
---|
[b83ec692] | 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 |
|
---|
[7bbf91e] | 32 | #include <__bits/common.hpp>
|
---|
[a1aecb1] | 33 |
|
---|
[de53138] | 34 | namespace std::hel
|
---|
| 35 | {
|
---|
| 36 | extern "C" {
|
---|
| 37 | #include <stdint.h>
|
---|
| 38 | }
|
---|
| 39 | }
|
---|
| 40 |
|
---|
[b83ec692] | 41 | namespace std
|
---|
| 42 | {
|
---|
[de53138] | 43 | using int8_t = std::hel::int8_t;
|
---|
| 44 | using int16_t = std::hel::int16_t;
|
---|
| 45 | using int32_t = std::hel::int32_t;
|
---|
| 46 | using int64_t = std::hel::int64_t;
|
---|
[b83ec692] | 47 |
|
---|
[de53138] | 48 | using intmax_t = std::hel::intmax_t;
|
---|
| 49 | using intptr_t = std::hel::intptr_t;
|
---|
| 50 |
|
---|
| 51 | using int_fast8_t = std::hel::int8_t;
|
---|
| 52 | using int_fast16_t = std::hel::int16_t;
|
---|
| 53 | using int_fast32_t = std::hel::int32_t;
|
---|
| 54 | using int_fast64_t = std::hel::int64_t;
|
---|
[b83ec692] | 55 |
|
---|
[de53138] | 56 | using int_least8_t = std::hel::int8_t;
|
---|
| 57 | using int_least16_t = std::hel::int16_t;
|
---|
| 58 | using int_least32_t = std::hel::int32_t;
|
---|
| 59 | using int_least64_t = std::hel::int64_t;
|
---|
[6702d7e] | 60 |
|
---|
[de53138] | 61 | using uint8_t = std::hel::uint8_t;
|
---|
| 62 | using uint16_t = std::hel::uint16_t;
|
---|
| 63 | using uint32_t = std::hel::uint32_t;
|
---|
| 64 | using uint64_t = std::hel::uint64_t;
|
---|
[6702d7e] | 65 |
|
---|
[de53138] | 66 | using uintmax_t = std::hel::uintmax_t;
|
---|
| 67 | using uintptr_t = std::hel::uintptr_t;
|
---|
[6702d7e] | 68 |
|
---|
[de53138] | 69 | using uint_fast8_t = std::hel::uint8_t;
|
---|
| 70 | using uint_fast16_t = std::hel::uint16_t;
|
---|
| 71 | using uint_fast32_t = std::hel::uint32_t;
|
---|
| 72 | using uint_fast64_t = std::hel::uint64_t;
|
---|
[6702d7e] | 73 |
|
---|
[de53138] | 74 | using uint_least8_t = std::hel::uint8_t;
|
---|
| 75 | using uint_least16_t = std::hel::uint16_t;
|
---|
| 76 | using uint_least32_t = std::hel::uint32_t;
|
---|
| 77 | using uint_least64_t = std::hel::uint64_t;
|
---|
[b83ec692] | 78 | }
|
---|
| 79 |
|
---|
[ffd94b9] | 80 | using int8_t = std::hel::int8_t;
|
---|
| 81 | using int16_t = std::hel::int16_t;
|
---|
| 82 | using int32_t = std::hel::int32_t;
|
---|
| 83 | using int64_t = std::hel::int64_t;
|
---|
| 84 |
|
---|
| 85 | using intmax_t = std::hel::intmax_t;
|
---|
| 86 | using intptr_t = std::hel::intptr_t;
|
---|
| 87 |
|
---|
| 88 | using int_fast8_t = std::hel::int8_t;
|
---|
| 89 | using int_fast16_t = std::hel::int16_t;
|
---|
| 90 | using int_fast32_t = std::hel::int32_t;
|
---|
| 91 | using int_fast64_t = std::hel::int64_t;
|
---|
| 92 |
|
---|
| 93 | using int_least8_t = std::hel::int8_t;
|
---|
| 94 | using int_least16_t = std::hel::int16_t;
|
---|
| 95 | using int_least32_t = std::hel::int32_t;
|
---|
| 96 | using int_least64_t = std::hel::int64_t;
|
---|
| 97 |
|
---|
| 98 | using uint8_t = std::hel::uint8_t;
|
---|
| 99 | using uint16_t = std::hel::uint16_t;
|
---|
| 100 | using uint32_t = std::hel::uint32_t;
|
---|
| 101 | using uint64_t = std::hel::uint64_t;
|
---|
| 102 |
|
---|
| 103 | using uintmax_t = std::hel::uintmax_t;
|
---|
| 104 | using uintptr_t = std::hel::uintptr_t;
|
---|
| 105 |
|
---|
| 106 | using uint_fast8_t = std::hel::uint8_t;
|
---|
| 107 | using uint_fast16_t = std::hel::uint16_t;
|
---|
| 108 | using uint_fast32_t = std::hel::uint32_t;
|
---|
| 109 | using uint_fast64_t = std::hel::uint64_t;
|
---|
| 110 |
|
---|
| 111 | using uint_least8_t = std::hel::uint8_t;
|
---|
| 112 | using uint_least16_t = std::hel::uint16_t;
|
---|
| 113 | using uint_least32_t = std::hel::uint32_t;
|
---|
| 114 | using uint_least64_t = std::hel::uint64_t;
|
---|
| 115 |
|
---|
[b83ec692] | 116 | #endif
|
---|