summaryrefslogtreecommitdiff
path: root/lib/libc/softfloat
AgeCommit message (Collapse)Author
2024-03-13libc/softfloat: we don't export _fp[gs]et* symbolsBrooks Davis
Remove attempts to use NetBSD __weak_alias macros to export _-prefixed versions of various fp[sg]et* symbols under softfloat. __weak_alias isn't defined so we didn't export them and thus the Symbol.map entries were wrong. Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D44327
2023-11-15libc: Remove empty comments in Symbol.mapBrooks Davis
These were left over from $FreeBSD$ removal. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D42612
2023-11-01libc: Purge unneeded cdefs.hWarner Losh
These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Keep those. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D42385
2023-08-16Remove $FreeBSD$: one-line bare tagWarner Losh
Remove /^\s*\$FreeBSD\$$\n/
2023-08-16Remove $FreeBSD$: one-line sh patternWarner Losh
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
2023-08-16Remove $FreeBSD$: one-line .c comment patternWarner Losh
Remove /^/[*/]\s*\$FreeBSD\$.*\n/
2023-08-16Remove $FreeBSD$: one-line .h patternWarner Losh
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
2023-05-12spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSDWarner Losh
The SPDX folks have obsoleted the BSD-2-Clause-NetBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
2023-05-01libc: Fix a documentation spelling mistakeTom Hukins
Pull Request: https://github.com/freebsd/freebsd-src/pull/704
2021-04-03libc: use standard LF line endings, not CRLFEd Maste
2018-05-13Add implementations for clog(3), clogf(3), and clog(3).Konstantin Belousov
PR: 216863 Submitted by: bde, Steven G. Kargl <sgk@troutmask.apl.washington.edu> MFC after: 2 weeks Notes: svn path=/head/; revision=333577
2018-03-05Move softfloat symbol map entries to softfloat/Symbol.map.John Baldwin
The arm, mips, and riscv MD Symbol.map files listed some (but not all) of the softfloat symbols that were actually defined in softfloat.c. While here, also remove entries for __fixuns[sd]fsi which are provided by libcompiler_rt and not by libc. Sponsored by: DARPA / AFRL Notes: svn path=/head/; revision=330525
2017-11-25libc: further adoption of SPDX licensing ID tags.Pedro F. Giffuni
Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326193
2016-11-16Add full softfloat and hardfloat support for RISC-V.Ruslan Bukin
Hardfloat is now default (use riscv64sf as TARGET_ARCH for softfloat). Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D8529 Notes: svn path=/head/; revision=308731
2016-04-10libc: replace 0 with NULL for pointers.Pedro F. Giffuni
While here also cleanup some surrounding code; particularly drop some malloc() casts. Found with devel/coccinelle. Reviewed by: bde (previous version - all new bugs are mine) Notes: svn path=/head/; revision=297790
2014-03-04Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}Marcel Moolenaar
if not already defined. This allows building libc from outside of lib/libc using a reach-over makefile. A typical use-case is to build a standard ILP32 version and a COMPAT32 version in a single iteration by building the COMPAT32 version using a reach-over makefile. Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=262722
2012-01-20Conditionalize the __floatunsisf and __floatunsidf functions, added inDavid Schultz
NetBSD's rev 1.6 of this file, on !defined(SOFTFLOAT_FOR_GCC). These functions are provided by libgcc, so we don't need them. This should unbreak mips. Notes: svn path=/head/; revision=230380
2012-01-20Merge in the latest SoftFloat changes from NetBSD. (NetBSD isn't theDavid Schultz
original vendor, but we're using their heavily modified version.) This brings in functions for long double emulation (both extended and quad formats), which may be useful for testing, and also for replacing libc/sparc64/fpu/. Notes: svn path=/head/; revision=230363
2012-01-16Remove functions from softfloat's Symbol.map that don't need to be exported.David Schultz
Also use the proper number of underscores for internal names. (Changing the names should be fine, since apparently the symbols are currently unused.) Notes: svn path=/head/; revision=230190
2012-01-16Convert softfloat to use the standard exception flag and rounding macrosDavid Schultz
in fenv.h instead of the non-standard and incomplete ones in ieeefp.h. Thanks to Ian Lepore for testing this patch. Notes: svn path=/head/; revision=230189
2010-08-24Powerpc is special here. powerpc and powerpc64 use different ABIs, soWarner Losh
their implementations aren't in the same files. Introduce LIBC_ARCH and use that in preference to MACHINE_CPUARCH. Tested by amd64 and powerpc64 builds (thanks nathanw@) Notes: svn path=/head/; revision=211774
2010-08-23MFtbemd:Warner Losh
Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform. Notes: svn path=/head/; revision=211725
2010-04-11Add #endif missed in r206490.Marius Strobl
Notes: svn path=/head/; revision=206492
2010-04-11While SPARC V9 allows tininess to be detected either before or afterMarius Strobl
rounding (impl. dep. #55), the SPARC JPS1 responsible for SPARC64 and UltraSPARC processors defines that in all cases tininess is detected before rounding therefore rounding up to the smallest normalized number should set the underflow flag. This change is needed for using SoftFloat on sparc64 for reference purposes. PR: 144900 Submitted by: Peter Jeremy Notes: svn path=/head/; revision=206490
2009-03-10Reflect license change from NetBSD.Xin LI
Obtained from: NetBSD Notes: svn path=/head/; revision=189647
2007-04-29Use C comments since we now preprocess these files with CPP.Daniel Eischen
Notes: svn path=/head/; revision=169092
2006-03-13Add each directory's symbol map file to SYM_MAPS.Daniel Eischen
Notes: svn path=/head/; revision=156613
2006-03-13Add symbol maps and initial symbol version definitions to libc.Daniel Eischen
Reviewed by: davidxu Notes: svn path=/head/; revision=156608
2005-03-15Remove fpsetsticky(). This was added for SysV compatibility, but dueDavid Schultz
to mistakes from day 1, it has always had semantics inconsistent with SVR4 and its successors. In particular, given argument M: - On Solaris and FreeBSD/{alpha,sparc64}, it clobbers the old flags and *sets* the new flag word to M. (NetBSD, too?) - On FreeBSD/{amd64,i386}, it *clears* the flags that are specified in M and leaves the remaining flags unchanged (modulo a small bug on amd64.) - On FreeBSD/ia64, it is not implemented. There is no way to fix fpsetsticky() to DTRT for both old FreeBSD apps and apps ported from other operating systems, so the best approach seems to be to kill the function and fix any apps that break. I couldn't find any ports that use it, and any such ports would already be broken on FreeBSD/ia64 and Linux anyway. By the way, the routine has always been undocumented in FreeBSD, except for an MLINK to a manpage that doesn't describe it. This manpage has stated since 5.3-RELEASE that the functions it describes are deprecated, so that must mean that functions that it is *supposed* to describe but doesn't are even *more* deprecated. ;-) Note that fpresetsticky() has been retained on FreeBSD/i386. As far as I can tell, no other operating systems or ports of FreeBSD implement it, so there's nothing for it to be inconsistent with. PR: 75862 Suggested by: bde Notes: svn path=/head/; revision=143658
2004-12-08Oooops I forgot to commit that.Olivier Houchard
Use fp_rnd_t, not fp_rnd. Reported by: Jia-Shiun Li (jiashiun at gmail dot com) Notes: svn path=/head/; revision=138590
2004-05-14Import the softfloat emulation library, needed for FreeBSD/arm right now.Olivier Houchard
It should become useless when gcc 3.4 will be imported, as libgcc from gcc 3.4 contains this bits for arm. Notes: svn path=/head/; revision=129203