mirror of
https://github.com/reactos/reactos.git
synced 2025-03-01 03:45:16 +00:00
[UCRT:MATH] Implement _dtest, _fdtest
This commit is contained in:
parent
59c55e003e
commit
9f15d9ee57
3 changed files with 48 additions and 0 deletions
23
sdk/lib/ucrt/math/_dtest.c
Normal file
23
sdk/lib/ucrt/math/_dtest.c
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
//
|
||||||
|
// _dtest.c
|
||||||
|
//
|
||||||
|
// Copyright (c) 2024 Timo Kreuzer
|
||||||
|
//
|
||||||
|
// Implementation of _dtest.
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
//
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma function(_dtest)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
_Check_return_
|
||||||
|
short
|
||||||
|
__cdecl
|
||||||
|
_dtest(_In_ double* _Px)
|
||||||
|
{
|
||||||
|
return _dclass(*_Px);
|
||||||
|
}
|
23
sdk/lib/ucrt/math/_fdtest.c
Normal file
23
sdk/lib/ucrt/math/_fdtest.c
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
//
|
||||||
|
// _fdtest.c
|
||||||
|
//
|
||||||
|
// Copyright (c) 2024 Timo Kreuzer
|
||||||
|
//
|
||||||
|
// Implementation of _fdtest.
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
//
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma function(_fdtest)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
_Check_return_
|
||||||
|
short
|
||||||
|
__cdecl
|
||||||
|
_fdtest(_In_ float* _Px)
|
||||||
|
{
|
||||||
|
return _fdclass(*_Px);
|
||||||
|
}
|
|
@ -1,6 +1,8 @@
|
||||||
|
|
||||||
list(APPEND UCRT_MATH_SOURCES
|
list(APPEND UCRT_MATH_SOURCES
|
||||||
math/_dclass.c
|
math/_dclass.c
|
||||||
|
math/_dtest.c
|
||||||
math/_fdclass.c
|
math/_fdclass.c
|
||||||
|
math/_fdtest.c
|
||||||
math/matherr.cpp
|
math/matherr.cpp
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue