зеркало из https://github.com/microsoft/STL.git
49 строки
1.3 KiB
C++
49 строки
1.3 KiB
C++
// cfenv standard header (core)
|
|
|
|
// Copyright (c) Microsoft Corporation.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
#ifndef _CFENV_
|
|
#define _CFENV_
|
|
#include <yvals_core.h>
|
|
#if _STL_COMPILER_PREPROCESSOR
|
|
|
|
#include <fenv.h>
|
|
|
|
#pragma pack(push, _CRT_PACKING)
|
|
#pragma warning(push, _STL_WARNING_LEVEL)
|
|
#pragma warning(disable : _STL_DISABLED_WARNINGS)
|
|
_STL_DISABLE_CLANG_WARNINGS
|
|
#pragma push_macro("new")
|
|
#undef new
|
|
|
|
_STD_BEGIN
|
|
_EXPORT_STD using _CSTD fegetround;
|
|
_EXPORT_STD using _CSTD fesetround;
|
|
|
|
#if !defined(_M_CEE) || defined(_CRTBLD)
|
|
_EXPORT_STD using _CSTD feclearexcept;
|
|
_EXPORT_STD using _CSTD fegetenv;
|
|
_EXPORT_STD using _CSTD fegetexceptflag;
|
|
_EXPORT_STD using _CSTD feholdexcept;
|
|
_EXPORT_STD using _CSTD fenv_t;
|
|
_EXPORT_STD using _CSTD fesetenv;
|
|
_EXPORT_STD using _CSTD fesetexceptflag;
|
|
_EXPORT_STD using _CSTD fetestexcept;
|
|
_EXPORT_STD using _CSTD fexcept_t;
|
|
#endif // !defined(_M_CEE) || defined(_CRTBLD)
|
|
|
|
#if !defined(_M_CEE) && !defined(_CRTBLD)
|
|
_EXPORT_STD using _CSTD feraiseexcept;
|
|
_EXPORT_STD using _CSTD feupdateenv;
|
|
#endif // !defined(_M_CEE) && !defined(_CRTBLD)
|
|
_STD_END
|
|
|
|
#pragma pop_macro("new")
|
|
_STL_RESTORE_CLANG_WARNINGS
|
|
#pragma warning(pop)
|
|
#pragma pack(pop)
|
|
|
|
#endif // _STL_COMPILER_PREPROCESSOR
|
|
#endif // _CFENV_
|