mirror of
https://github.com/fluencelabs/musl
synced 2025-07-04 09:02:02 +00:00
math: define _GNU_SOURCE when implementing non-standard math functions
this makes the prototypes in math.h are visible so they are checked agaist the function definitions
This commit is contained in:
@ -13,6 +13,7 @@
|
|||||||
* ====================================================
|
* ====================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define _GNU_SOURCE
|
||||||
#include "libm.h"
|
#include "libm.h"
|
||||||
|
|
||||||
static float pzerof(float), qzerof(float);
|
static float pzerof(float), qzerof(float);
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
* ====================================================
|
* ====================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define _GNU_SOURCE
|
||||||
#include "libm.h"
|
#include "libm.h"
|
||||||
|
|
||||||
static float ponef(float), qonef(float);
|
static float ponef(float), qonef(float);
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
* should use scalbn() instead.
|
* should use scalbn() instead.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define _GNU_SOURCE
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
double scalb(double x, double fn)
|
double scalb(double x, double fn)
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
* ====================================================
|
* ====================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define _GNU_SOURCE
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
float scalbf(float x, float fn)
|
float scalbf(float x, float fn)
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
* ====================================================
|
* ====================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define _GNU_SOURCE
|
||||||
#include "libm.h"
|
#include "libm.h"
|
||||||
|
|
||||||
void sincos(double x, double *sin, double *cos)
|
void sincos(double x, double *sin, double *cos)
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
* ====================================================
|
* ====================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define _GNU_SOURCE
|
||||||
#include "libm.h"
|
#include "libm.h"
|
||||||
|
|
||||||
/* Small multiples of pi/2 rounded to double precision. */
|
/* Small multiples of pi/2 rounded to double precision. */
|
||||||
|
Reference in New Issue
Block a user