[CRT] Add some missing #pragma function

This commit is contained in:
Timo Kreuzer 2021-07-10 13:24:42 +02:00
parent db41787951
commit aea4cfba55
23 changed files with 79 additions and 10 deletions

View file

@ -1,6 +1,10 @@
#include <math.h>
#if (_MSC_VER >= 1920)
#pragma function(_hypotf)
#endif
_Check_return_
float
__cdecl

View file

@ -1,6 +1,10 @@
#include <math.h>
#ifdef _MSC_VER
#pragma function(acosf)
#endif
_Check_return_
float
__cdecl

View file

@ -1,6 +1,10 @@
#include <math.h>
#ifdef _MSC_VER
#pragma function(asinf)
#endif
_Check_return_
float
__cdecl

View file

@ -1,6 +1,10 @@
#include <math.h>
#ifdef _MSC_VER
#pragma function(atan2f)
#endif
_Check_return_
float
__cdecl

View file

@ -1,6 +1,10 @@
#include <math.h>
#ifdef _MSC_VER
#pragma function(atanf)
#endif
_Check_return_
float
__cdecl

View file

@ -1,6 +1,10 @@
#include <math.h>
#ifdef _MSC_VER
#pragma function(ceilf)
#endif
_Check_return_
float
__cdecl

View file

@ -3,12 +3,10 @@
* This file is part of the w64 mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#define cosf _dummy_cosf
#include <math.h>
#undef cosf
#if defined(_MSC_VER) && (defined(_M_ARM) || defined(_M_AMD64))
#pragma warning(suppress:4164) /* intrinsic not declared */
#pragma function(cosf)
#endif /* _MSC_VER */

View file

@ -1,6 +1,10 @@
#include <math.h>
#ifdef _MSC_VER
#pragma function(coshf)
#endif
_Check_return_
float
__cdecl

View file

@ -1,6 +1,10 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <precomp.h>
#if (_MSC_VER >= 1920)
#pragma function(div)
#endif
/*
* @implemented
*/

View file

@ -1,6 +1,10 @@
#include <math.h>
#ifdef _MSC_VER
#pragma function(expf)
#endif
_Check_return_
float
__cdecl

View file

@ -1,6 +1,10 @@
#include <math.h>
#ifdef _MSC_VER
#pragma function(floorf)
#endif
_Check_return_
float
__cdecl

View file

@ -1,6 +1,10 @@
#include <math.h>
#ifdef _MSC_VER
#pragma function(fmodf)
#endif
_Check_return_
float
__cdecl

View file

@ -17,6 +17,10 @@
*/
#include <precomp.h>
#if (_MSC_VER >= 1920)
#pragma function(_hypot)
#endif
/* Approximate square roots of DBL_MAX and DBL_MIN. Numbers
between these two shouldn't neither overflow nor underflow
when squared. */

View file

@ -1,6 +1,10 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <precomp.h>
#if (_MSC_VER >= 1920)
#pragma function(ldiv)
#endif
/*
* @implemented
*/

View file

@ -1,6 +1,10 @@
#include <math.h>
#ifdef _MSC_VER
#pragma function(log10f)
#endif
_Check_return_
float
__cdecl

View file

@ -3,12 +3,9 @@
* This file is part of the w64 mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#define logf _dummy_logf
#include <math.h>
#undef logf
#if defined(_MSC_VER) && (defined(_M_ARM) || defined(_M_AMD64))
#pragma warning(suppress:4164) /* intrinsic not declared */
#pragma function(logf)
#endif /* _MSC_VER */

View file

@ -3,12 +3,10 @@
* This file is part of the w64 mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#define sinf _dummy_sinf
#include <math.h>
#undef sinf
#if defined(_MSC_VER) && (defined(_M_ARM) || defined(_M_AMD64))
#pragma warning(suppress:4164) /* intrinsic not declared */
#pragma function(sinf)
#endif /* _MSC_VER */

View file

@ -1,6 +1,10 @@
#include <math.h>
#ifdef _MSC_VER
#pragma function(sinhf)
#endif
_Check_return_
float
__cdecl

View file

@ -5,6 +5,10 @@
*/
#include <math.h>
#ifdef _MSC_VER
#pragma function(sqrtf)
#endif
_Check_return_
float
__cdecl

View file

@ -1,6 +1,10 @@
#include <math.h>
#ifdef _MSC_VER
#pragma function(tanf)
#endif
_Check_return_
float
__cdecl

View file

@ -1,6 +1,10 @@
#include <math.h>
#ifdef _MSC_VER
#pragma function(tanhf)
#endif
_Check_return_
float
__cdecl

View file

@ -1,7 +1,7 @@
#include <string.h>
#if defined(_MSC_VER) && defined(_M_ARM)
#if defined(_MSC_VER)
#pragma function(memchr)
#endif /* _MSC_VER */

View file

@ -1,5 +1,9 @@
#include <string.h>
#if defined(_MSC_VER)
#pragma function(memmove)
#endif /* _MSC_VER */
/* NOTE: This code is duplicated in memcpy function */
void * __cdecl memmove(void *dest,const void *src,size_t count)
{