This change does not try to move the common parts of x86 and aarch64 and build few abstractions over them. While this is possible, x86 story needs a bit of cleanup, especially around manipulation of the mxcsr register. Moreover, on x86 one can raise exceptions without performing exception raising operations. So, all of this can be done in follow up patches. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D94947
21 lines
623 B
C++
21 lines
623 B
C++
//===-- Utilities for manipulating floating point environment ---*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIBC_UTILS_FPUTIL_FENV_H
|
|
#define LLVM_LIBC_UTILS_FPUTIL_FENV_H
|
|
|
|
#ifdef __x86_64__
|
|
#include "x86_64/FEnv.h"
|
|
#elif defined(__aarch64__)
|
|
#include "aarch64/FEnv.h"
|
|
#else
|
|
#include "DummyFEnv.h"
|
|
#endif
|
|
|
|
#endif // LLVM_LIBC_UTILS_FPUTIL_FP_BITS_H
|