From 1a467c93d6132ed0245dd778a370db883bfe852c Mon Sep 17 00:00:00 2001
From: Sam Toyer <sam@qxcv.net>
Date: Sun, 2 Dec 2012 00:43:13 +1000
Subject: [PATCH 5/5] Add gamma(f)_r declarations and aliases
---
headers/posix/math.h | 2 ++
src/system/libroot/posix/glibc/arch/generic/w_lgamma_r.c | 1 +
src/system/libroot/posix/glibc/arch/generic/w_lgammaf_r.c | 1 +
3 files changed, 4 insertions(+)
diff --git a/headers/posix/math.h b/headers/posix/math.h
index d094d0e..d077d14 100644
a
|
b
|
extern double j0(double x);
|
317 | 317 | extern double j1(double x); |
318 | 318 | extern double jn(int x, double y); |
319 | 319 | extern double lgamma_r(double x, int *y); |
| 320 | extern double gamma_r(double x, int *y); |
320 | 321 | extern double y0(double x); |
321 | 322 | extern double y1(double x); |
322 | 323 | extern double yn(int x, double y); |
… |
… |
extern float y0f(float x);
|
337 | 338 | extern float y1f(float x); |
338 | 339 | extern float ynf(int x, float y); |
339 | 340 | extern float lgammaf_r(float x, int *y); |
| 341 | extern float gammaf_r(float x, int *y); |
340 | 342 | |
341 | 343 | |
342 | 344 | /* prototypes for functions used in the macros below */ |
diff --git a/src/system/libroot/posix/glibc/arch/generic/w_lgamma_r.c b/src/system/libroot/posix/glibc/arch/generic/w_lgamma_r.c
index f3e7d82..f9c8fd2 100644
a
|
b
|
weak_alias (__lgamma_r, lgamma_r)
|
48 | 48 | #ifdef NO_LONG_DOUBLE |
49 | 49 | strong_alias (__lgamma_r, __lgammal_r) |
50 | 50 | weak_alias (__lgamma_r, lgammal_r) |
| 51 | weak_alias (__lgamma_r, gamma_r) |
51 | 52 | #endif |
diff --git a/src/system/libroot/posix/glibc/arch/generic/w_lgammaf_r.c b/src/system/libroot/posix/glibc/arch/generic/w_lgammaf_r.c
index 66962ac..49348b9 100644
a
|
b
|
static char rcsid[] = "$NetBSD: w_lgammaf_r.c,v 1.3 1995/05/10 20:49:32 jtc Exp
|
50 | 50 | #endif |
51 | 51 | } |
52 | 52 | weak_alias (__lgammaf_r, lgammaf_r) |
| 53 | weak_alias (__lgammaf_r, gammaf_r) |