Ticket #7007: 0005-Add-gamma-f-_r-declarations-and-aliases.patch

File 0005-Add-gamma-f-_r-declarations-and-aliases.patch, 2.1 KB (added by scottmc, 7 years ago)
  • headers/posix/math.h

    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);  
    317317extern double       j1(double x);
    318318extern double       jn(int x, double y);
    319319extern double       lgamma_r(double x, int *y);
     320extern double       gamma_r(double x, int *y);
    320321extern double       y0(double x);
    321322extern double       y1(double x);
    322323extern double       yn(int x, double y);
    extern float y0f(float x);  
    337338extern float        y1f(float x);
    338339extern float        ynf(int x, float y);
    339340extern float        lgammaf_r(float x, int *y);
     341extern float        gammaf_r(float x, int *y);
    342344/* prototypes for functions used in the macros below */
  • src/system/libroot/posix/glibc/arch/generic/w_lgamma_r.c

    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)  
    4848#ifdef NO_LONG_DOUBLE
    4949strong_alias (__lgamma_r, __lgammal_r)
    5050weak_alias (__lgamma_r, lgammal_r)
     51weak_alias (__lgamma_r, gamma_r)
  • src/system/libroot/posix/glibc/arch/generic/w_lgammaf_r.c

    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  
    5252weak_alias (__lgammaf_r, lgammaf_r)
     53weak_alias (__lgammaf_r, gammaf_r)