1//===-- lib/Evaluate/integer.cpp ------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#include "flang/Evaluate/integer.h"
10
11namespace Fortran::evaluate::value {
12
13template class Integer<8>;
14template class Integer<16>;
15template class Integer<32>;
16template class Integer<64>;
17template class Integer<80, true, 16, std::uint16_t, std::uint32_t, 128>;
18template class Integer<128>;
19
20// Sanity checks against misconfiguration bugs
21static_assert(Integer<8>::partBits == 8);
22static_assert(std::is_same_v<typename Integer<8>::Part, std::uint8_t>);
23static_assert(Integer<16>::partBits == 16);
24static_assert(std::is_same_v<typename Integer<16>::Part, std::uint16_t>);
25static_assert(Integer<32>::partBits == 32);
26static_assert(std::is_same_v<typename Integer<32>::Part, std::uint32_t>);
27static_assert(Integer<64>::partBits == 32);
28static_assert(std::is_same_v<typename Integer<64>::Part, std::uint32_t>);
29static_assert(Integer<128>::partBits == 32);
30static_assert(std::is_same_v<typename Integer<128>::Part, std::uint32_t>);
31} // namespace Fortran::evaluate::value
32

source code of flang/lib/Evaluate/integer.cpp