Logo
Explore Help
Sign In
fluencelabs/musl
1
0
Fork 0
You've already forked musl
mirror of https://github.com/fluencelabs/musl synced 2025-06-01 09:01:40 +00:00
Code Issues Projects Releases Wiki Activity
musl/src/linux/sincos.c

9 lines
115 B
C
Raw Normal View History

workaround gcc bug 46926 by providing a dumb sincos implementation note that this library itself is built with -ffreestanding so sincos.c should not be miscompiled even if the gcc used to compile musl has this bug.
2011-02-19 17:56:57 -05:00
#define _GNU_SOURCE
#include <math.h>
void sincos(double t, double *y, double *x)
{
*y = sin(t);
*x = cos(t);
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 429ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API