• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// -*- C++ -*-
2//===----------------------------------------------------------------------===//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9
10module;
11#if __has_include(<stdfloat>)
12#  error "include this header unconditionally"
13#  include <stdfloat>
14#endif
15
16export module std:stdfloat;
17export namespace std {
18#if defined(__STDCPP_FLOAT16_T__)
19  using std::float16_t;
20#endif
21#if defined(__STDCPP_FLOAT32_T__)
22  using std::float32_t;
23#endif
24#if defined(__STDCPP_FLOAT64_T__)
25  using std::float64_t;
26#endif
27#if defined(__STDCPP_FLOAT128_T__)
28  using std::float128_t;
29#endif
30#if defined(__STDCPP_BFLOAT16_T__)
31  using std::bfloat16_t;
32#endif
33} // namespace std
34