brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 17a38fa Raw
33 lines · cpp
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-exception6//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, isHostLittleEndian, 16, std::uint16_t, std::uint32_t,18    128>;19template class Integer<128>;20 21// Sanity checks against misconfiguration bugs22static_assert(Integer<8>::partBits == 8);23static_assert(std::is_same_v<typename Integer<8>::Part, std::uint8_t>);24static_assert(Integer<16>::partBits == 16);25static_assert(std::is_same_v<typename Integer<16>::Part, std::uint16_t>);26static_assert(Integer<32>::partBits == 32);27static_assert(std::is_same_v<typename Integer<32>::Part, std::uint32_t>);28static_assert(Integer<64>::partBits == 32);29static_assert(std::is_same_v<typename Integer<64>::Part, std::uint32_t>);30static_assert(Integer<128>::partBits == 32);31static_assert(std::is_same_v<typename Integer<128>::Part, std::uint32_t>);32} // namespace Fortran::evaluate::value33