fix some fallout from 32-bit fixes for long double functions.

apply namespace.h to remqou*.  add missing weak aliases for some of them,
and normalise checkf for __weak_alias().

now libm.so seems to only have libc undefined symbols.
This commit is contained in:
mrg 2024-02-24 19:32:09 +00:00
parent 3bb75881f8
commit 4629208b15
5 changed files with 22 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: namespace.h,v 1.18 2024/01/21 18:53:18 christos Exp $ */
/* $NetBSD: namespace.h,v 1.19 2024/02/24 19:32:09 mrg Exp $ */
#define atan2 _atan2
#define atan2f _atan2f
@ -37,6 +37,10 @@
#define asinf _asinf
#define asinl _asinl
#define remquo _remquo
#define remquof _remquof
#define remquol _remquol
#define casin _casin
#define casinf _casinf
#define casinl _casinl

View File

@ -19,7 +19,9 @@
#include "math.h"
#include "math_private.h"
#ifdef __weak_alias
__weak_alias(atanl, _atanl)
#endif
#ifdef __HAVE_LONG_DOUBLE

View File

@ -12,11 +12,17 @@
#include <sys/cdefs.h>
#include "namespace.h"
#include <float.h>
#include "math.h"
#include "math_private.h"
#ifdef __weak_alias
__weak_alias(remquo, _remquo)
#endif
static const double Zero[] = {0.0, -0.0,};
/*

View File

@ -12,9 +12,15 @@
#include <sys/cdefs.h>
#include "namespace.h"
#include "math.h"
#include "math_private.h"
#ifdef __weak_alias
__weak_alias(remquof, _remquof)
#endif
static const float Zero[] = {0.0, -0.0,};
/*

View File

@ -10,6 +10,9 @@
*/
#include <sys/cdefs.h>
#include "namespace.h"
#include <float.h>
#include <machine/ieee.h>
#include <stdint.h>