mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:12:59 +00:00
[CRT] Add simplistic fallback implementation of sincos to make GCC 11 happy
This commit is contained in:
parent
28c41b7d22
commit
dacbc603b6
3 changed files with 17 additions and 0 deletions
15
sdk/lib/crt/math/sincos.c
Normal file
15
sdk/lib/crt/math/sincos.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* PROJECT: ReactOS CRT library
|
||||
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||
* PURPOSE: Fallback implementation of sincos
|
||||
* COPYRIGHT: Copyright 2022 Timo Kreuzer <timo.kreuzer@reactos.org>
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
|
||||
// This is a very simplistic implementation to make GCC 11 happy
|
||||
void sincos(double x, double *s, double *c)
|
||||
{
|
||||
*s = sin(x);
|
||||
*c = cos(x);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue