freebsd-dev/lib
Steve Kargl 99843eb899 Clean up libm use of the __ieee754_ prefix
This removes the __ieee754_ prefix from a number of the math functions.
msun/src/math_private.h contains the statement that

  /*
   * ieee style elementary functions
   *
   * We rename functions here to improve other sources' diffability
   * against fdlibm.
   */
   #define        __ieee754_sqrt  sqrt
   ...

Here, fdlibm refers to https://netlib.org/fdlibm. It is seen from
https://netlib.org/fdlibm/readme that this prefix was used to
differentiate between different standards:

   Wrapper functions will twist the result of the ieee754
   function to comply to the standard specified by the value
   of _LIB_VERSION
      if _LIB_VERSION = _IEEE_, return the ieee754 result;
      if _LIB_VERSION = _SVID_, return SVID result;
      if _LIB_VERSION = _XOPEN_, return XOPEN result;
      if _LIB_VERSION = _POSIX_, return POSIX/ANSI result.
   (These are macros, see fdlibm.h for their definition.)

AFAICT, FreeBSD has never supported these wrappers. In addition, as C99,
principally the long double, functions were added to libm, this
convention was not maintained. Given that only 148 of 324 files under
lib/msun contain a "Copyright (C) 1993 by Sun Microsystems" statement,
the removal of the __ieee754_ prefix provides consistency across all
source files.

The last time someone compared lib/msun to fdlibm appears to be

  commit 3f70824172
  Author: David Schultz <das@FreeBSD.org>
  Date:   Fri Feb 4 18:26:06 2005 +0000

  Reduce diffs against vendor source (Sun fdlibm 5.3).

The most recent fdlibm RCS string that appears in a Sun Microsystem
copyrighted file is date "95/01/18". With Oracle Corporation's
acquisition of Sun Microsystems in 2009, it is unlikely that fdlibm will
ever be updated. A search for fdlibm at https://opensource.oracle.com/
yields no hits.

Finally, OpenBSD removed the use of this prefix over 21 years ago. pSee
revision 1.6 of OpenBSD's math_private.h.

Note: this does not drop the __ieee754_ prefix from the trigonometric
argument reduction functions, e.g., __ieee754_rem_pio2. These functions
are internal to the libm and exported through Symbol.map; and thus,
reserved for the implementation.

PR:		272783
MFC after:	1 week
2023-08-03 21:51:53 +02:00
..
atf Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
clang arm64 lib32: change clang to allow -m32 on arm64 2023-07-25 18:58:51 -05:00
csu amd64 crt1: Explicitly use a PLT entry for main in the PIC case. 2023-07-19 11:53:33 -07:00
flua spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
geom base: Remove support for the VTOC8 partitioning scheme 2023-07-26 13:16:12 +02:00
googletest googletest: remove unused auto_ptr warning suppression 2022-11-30 19:34:52 -05:00
lib9p Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
lib80211
libalias Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
libarchive libarchive: merge from vendor branch 2023-07-24 07:42:43 +02:00
libauditd Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
libbe libbe: recursively promote deep BE datasets 2023-07-17 14:08:32 -05:00
libbearssl Fix DIRDEPS_BUILD for libgcc_eh 2023-04-14 16:56:30 -07:00
libbegemot libbegemot: Disable -Wuse-after-free. 2022-10-03 16:10:43 -07:00
libblacklist
libblocksruntime
libbluetooth spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libbsddialog Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
libbsdstat spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libbsm
libbsnmp
libbz2
libc inet.3: remove mention of VAX endianness 2023-08-01 13:23:42 -04:00
libc_nonshared spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libc++ Merge llvm-project main llvmorg-16-init-18548-gb0daacf58f41 2023-06-22 20:20:56 +02:00
libc++experimental Merge llvm-project main llvmorg-16-init-18548-gb0daacf58f41 2023-06-22 20:20:56 +02:00
libcalendar spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libcam libcam: Migrate to modern uintXX_t from u_intXX_t 2023-07-24 21:35:10 -06:00
libcapsicum
libcasper cap_net.3: fix typo 2023-06-21 11:26:34 -04:00
libcbor libcbor: update to 0.10.2 2023-04-21 16:10:03 -04:00
libclang_rt Merge llvm-project main llvmorg-16-init-18548-gb0daacf58f41 2023-06-22 20:20:56 +02:00
libcom_err
libcompat
libcompiler_rt Remove a few more references to riscv64sf. 2023-04-20 11:00:46 -07:00
libcrypt spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libcuse cuse(3): Make some clarifications in the manual page. 2022-07-20 10:41:11 +02:00
libcxxrt
libdevctl
libdevdctl libdevdctl: update deprecated deprecation warning comment 2022-12-04 10:17:37 -05:00
libdevinfo spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libdevstat
libdl Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
libdpv Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
libdwarf Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
libedit Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
libefivar libefivar: Use a void cast in unimplemented stubs. 2023-06-27 10:19:31 -07:00
libelf
libelftc pkgbase: Create a FreeBSD-elftoolchain package 2023-02-08 08:49:12 +01:00
libevent1
libexecinfo tests: Test libexecinfo backtrace call througth signal trampoline 2023-07-28 12:10:27 +03:00
libexpat Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
libfetch libfetch: remove all old OpenSSL support 2023-06-24 01:45:02 -07:00
libfido2 libfido2: specify OpenSSL 1.1 API 2023-05-09 09:46:09 -04:00
libfigpar
libgcc_eh Fix DIRDEPS_BUILD for libgcc_eh 2023-04-14 16:56:30 -07:00
libgcc_s libcompiler_rt/libgcc_s: Remove MIPS build glue. 2023-03-29 15:05:42 -07:00
libgeom spdx: The BSD-3-Clause-FreeBSD identifier never was, drop -FreeBSD 2023-05-12 10:44:04 -06:00
libgpio
libgssapi libgssapi: Remove a set but unused variable. 2023-06-20 09:29:00 -07:00
libiconv_modules libiconv_modules: Migrate from COMPAT_32BIT to generic COMPAT_libcompat 2023-07-09 18:49:35 +01:00
libifconfig libifconfig: fix carp key configuration 2023-04-30 20:11:54 +02:00
libipsec libipsec: ansify 2023-04-03 22:48:48 +03:00
libipt
libiscsiutil spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libjail spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libkiconv spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libkvm arm: Rename pte-v6.h to pte.h 2023-07-24 17:58:15 +01:00
libldns ldns: Silence -Wstrict-prototypes warnings. 2023-05-25 07:11:38 -07:00
liblua lua: Update to 5.4.4 2023-02-08 10:33:26 -07:00
liblutok Explicitly set CXXSTD to c++11 for old C++ code using std::auto_ptr<>. 2022-12-04 16:25:21 -08:00
liblzma MFV: xz 5.4.4. 2023-08-03 00:52:36 -07:00
libmagic file: upgrade to 5.43. 2022-09-24 19:16:39 -07:00
libmd libmd: ansify 2023-03-16 19:02:56 +00:00
libmemstat spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libmilter libmilter: Silence -Wdeprecated-non-prototype warnings. 2023-04-19 10:52:51 -07:00
libmixer Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
libmp spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libmt mt(3): Fix a typo in the manual page 2022-04-06 18:41:08 +02:00
libnetbsd spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD 2023-05-12 10:44:04 -06:00
libnetgraph ng_atmllc: remove 2023-03-09 18:04:21 +00:00
libnetmap spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libnv spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libomp Merge llvm-project main llvmorg-16-init-18548-gb0daacf58f41 2023-06-22 20:20:56 +02:00
libopenbsd
libopencsd Include Embedded Trace Extensions (ETE) source code to the OpenCSD build. 2023-03-27 17:10:26 +01:00
libpam pam_krb5: Add missing patch 2023-07-07 20:09:18 -07:00
libpathconv Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
libpcap libpcap: Update PACKAGE_VERSION definition to 1.10.4 2023-05-29 15:41:01 -03:00
libpe
libpfctl libpfct: ensure the initial allocation is large enough 2023-07-26 10:30:22 +02:00
libpjdlog spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libpmc pmclog(3): Drop .Ud 2023-07-10 14:30:03 -03:00
libpmcstat pmc: Rework PROCEXEC event to support PIEs 2023-05-31 00:20:36 +01:00
libproc dtrace: remove dead code for PR_REQUESTED 2023-08-01 12:28:50 -05:00
libprocstat spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libradius libradius: specify OpenSSL 1.1 APIs 2023-05-25 13:15:45 -04:00
libregex spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
librpcsec_gss spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
librpcsvc
librss librss: Remove rss_socket_set_rss_bucket() 2023-02-28 15:57:11 -05:00
librt spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
librtld_db spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libsbuf
libsdp spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libsecureboot libsecureboot: do not accept certificate we cannot decode 2023-07-05 12:37:14 -07:00
libsm sendmail: Silence -Wdeprecated-non-prototype warnings. 2023-04-18 11:19:48 -07:00
libsmb Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
libsmdb libsmdb: Silence -Wstrict-prototype warnings. 2023-04-24 08:53:49 -07:00
libsmutil Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
libsqlite3
libssp Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
libssp_nonshared Fix DIRDEPS_BUILD for libgcc_eh 2023-04-14 16:56:30 -07:00
libstats Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
libstdbuf libstdbuf: Add proper SEE ALSO section. 2023-06-29 16:23:45 +00:00
libstdthreads spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libsysdecode libsysdecode: Migrate from COMPAT_32BIT to generic COMPAT_LIBCOMPAT 2023-07-09 18:49:43 +01:00
libtacplus libtacplus: Allow additional AV pairs to be configured. 2023-06-13 16:08:08 +00:00
libtelnet libtelnet: specify OpenSSL 1.1 APIs 2023-05-24 14:31:14 -04:00
libthr thr_mutex.c: style 2023-07-26 17:24:51 +03:00
libthread_db spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libucl
libufs spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libugidfw spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libulog spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libunbound libunbound: Request the OpenSSL 1.1 API 2023-05-31 10:05:07 -04:00
libusb spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libusbhid spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD 2023-05-12 10:44:04 -06:00
libutil login_getclassbyname(3): use calloc. 2023-07-23 11:18:24 -07:00
libveriexec libveriexec: add function to check a label based on a path 2023-04-17 11:47:33 -04:00
libvgl libvgl: Remove set but unused andmask variable from VGLMouseInit. 2023-06-20 09:28:59 -07:00
libvmmapi libvmmapi: Remove some unneeded includes 2023-06-08 15:03:46 -04:00
libwrap pkgbase: Put libwrap in FreeBSD-tcpd package 2022-10-26 19:46:32 +02:00
libxo Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
liby spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libypclnt spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
libz zlib: Silence -Wstrict-prototype warnings. 2023-04-24 08:53:49 -07:00
libzstd cppcheck: explicitly exclude kernel code from userspace checks 2022-05-10 10:20:55 -07:00
msun Clean up libm use of the __ieee754_ prefix 2023-08-03 21:51:53 +02:00
ncurses ncurses: Silence -Wunused-but-set-variable for various files. 2023-06-27 10:19:32 -07:00
nss_tacplus nss_tacplus: Support setting the login class. 2023-06-13 16:08:32 +00:00
ofed libirdma: Drop clang-specific -ferror-limit. 2022-10-03 16:10:42 -07:00
tests
Makefile arm64 lib32: enable building of lib32 on arm64 2023-07-25 18:59:52 -05:00
Makefile.inc