You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
841 B
33 lines
841 B
//===-- Dummy floating point environment manipulation functins --*- 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_DUMMY_FENV_H
|
|
#define LLVM_LIBC_UTILS_FPUTIL_DUMMY_FENV_H
|
|
|
|
#include <math.h>
|
|
|
|
namespace __llvm_libc {
|
|
namespace fputil {
|
|
|
|
// All dummy functions silently succeed.
|
|
|
|
int clearExcept(int) { return 0; }
|
|
|
|
int testExcept(int) { return 0; }
|
|
|
|
int raiseExcept(int) { return 0; }
|
|
|
|
int getRound() { return FE_TONEAREST; }
|
|
|
|
int setRound(int) { return 0; }
|
|
|
|
} // namespace fputil
|
|
} // namespace __llvm_libc
|
|
|
|
#endif // LLVM_LIBC_UTILS_FPUTIL_DUMMY_FENV_H
|