brintos

brintos / llvm-project-archived public Read only

0
0
Text · 939 B · e9517d3 Raw
25 lines · c
1//===-- List of all FE_* constants for tests -----------------------------===//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#ifndef LLVM_LIBC_TEST_SRC_FENV_EXCEPTS_H10#define LLVM_LIBC_TEST_SRC_FENV_EXCEPTS_H11 12#include "hdr/fenv_macros.h"13 14constexpr int EXCEPTS[] = {15    FE_DIVBYZERO, FE_INVALID, FE_INEXACT, FE_OVERFLOW, FE_UNDERFLOW,16};17 18// We '|' the individual exception flags instead of using FE_ALL_EXCEPT19// as it can include non-standard extensions. Note that we should be able20// to compile this file with headers from other libcs as well.21constexpr int ALL_EXCEPTS =22    FE_DIVBYZERO | FE_INVALID | FE_INEXACT | FE_OVERFLOW | FE_UNDERFLOW;23 24#endif // LLVM_LIBC_TEST_SRC_FENV_EXCEPTS_H25