[UCRT:MATH] Implement _dtest, _fdtest

This commit is contained in:
Timo Kreuzer 2024-12-02 08:26:14 +02:00
parent 59c55e003e
commit 9f15d9ee57
3 changed files with 48 additions and 0 deletions

View 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);
}

View 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);
}

View file

@ -1,6 +1,8 @@
list(APPEND UCRT_MATH_SOURCES
math/_dclass.c
math/_dtest.c
math/_fdclass.c
math/_fdtest.c
math/matherr.cpp
)