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-exception
6//
7//===---------------------------------------------------------------------===//
8
9#ifndef LLVM_LIBC_TEST_SRC_FENV_EXCEPTS_H
10#define LLVM_LIBC_TEST_SRC_FENV_EXCEPTS_H
11
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_EXCEPT
19// as it can include non-standard extensions. Note that we should be able
20// 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_H
25

source code of libc/test/src/fenv/excepts.h