aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/softfloat
Commit message (Collapse)AuthorAgeFilesLines
* libc/softfloat: we don't export _fp[gs]et* symbolsBrooks Davis2024-03-133-16/+0
| | | | | | | | | | 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
* libc: Remove empty comments in Symbol.mapBrooks Davis2023-11-151-3/+0
| | | | | | | These were left over from $FreeBSD$ removal. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D42612
* libc: Purge unneeded cdefs.hWarner Losh2023-11-0136-36/+0
| | | | | | | | | 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
* Remove $FreeBSD$: one-line bare tagWarner Losh2023-08-166-6/+0
| | | | Remove /^\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-1636-72/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: one-line .c comment patternWarner Losh2023-08-167-7/+0
| | | | Remove /^/[*/]\s*\$FreeBSD\$.*\n/
* Remove $FreeBSD$: one-line .h patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
* spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSDWarner Losh2023-05-126-6/+6
| | | | | | | | | 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
* libc: Fix a documentation spelling mistakeTom Hukins2023-05-011-1/+1
| | | | Pull Request: https://github.com/freebsd/freebsd-src/pull/704
* libc: use standard LF line endings, not CRLFEd Maste2021-04-033-805/+805
|
* Add implementations for clog(3), clogf(3), and clog(3).Konstantin Belousov2018-05-131-1/+1
| | | | | | | | | PR: 216863 Submitted by: bde, Steven G. Kargl <sgk@troutmask.apl.washington.edu> MFC after: 2 weeks Notes: svn path=/head/; revision=333577
* Move softfloat symbol map entries to softfloat/Symbol.map.John Baldwin2018-03-051-0/+14
| | | | | | | | | | | | | 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
* libc: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-256-0/+12
| | | | | | | | | | | | | | | 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
* Add full softfloat and hardfloat support for RISC-V.Ruslan Bukin2016-11-161-0/+3
| | | | | | | | | | | 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
* libc: replace 0 with NULL for pointers.Pedro F. Giffuni2016-04-101-3/+3
| | | | | | | | | | | | 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
* Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}Marcel Moolenaar2014-03-041-3/+5
| | | | | | | | | | | | | | 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
* Conditionalize the __floatunsisf and __floatunsidf functions, added inDavid Schultz2012-01-201-0/+4
| | | | | | | | | 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
* Merge in the latest SoftFloat changes from NetBSD. (NetBSD isn't theDavid Schultz2012-01-2019-16/+555
| | | | | | | | | | 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
* Remove functions from softfloat's Symbol.map that don't need to be exported.David Schultz2012-01-162-20/+14
| | | | | | | | | 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
* Convert softfloat to use the standard exception flag and rounding macrosDavid Schultz2012-01-163-6/+6
| | | | | | | | | 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
* Powerpc is special here. powerpc and powerpc64 use different ABIs, soWarner Losh2010-08-241-2/+2
| | | | | | | | | 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
* MFtbemd:Warner Losh2010-08-231-2/+2
| | | | | | | | 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
* Add #endif missed in r206490.Marius Strobl2010-04-111-0/+1
| | | | Notes: svn path=/head/; revision=206492
* While SPARC V9 allows tininess to be detected either before or afterMarius Strobl2010-04-111-0/+3
| | | | | | | | | | | | | | 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
* Reflect license change from NetBSD.Xin LI2009-03-106-48/+6
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=189647
* Use C comments since we now preprocess these files with CPP.Daniel Eischen2007-04-291-2/+4
| | | | Notes: svn path=/head/; revision=169092
* Add each directory's symbol map file to SYM_MAPS.Daniel Eischen2006-03-131-0/+2
| | | | Notes: svn path=/head/; revision=156613
* Add symbol maps and initial symbol version definitions to libc.Daniel Eischen2006-03-131-0/+45
| | | | | | | Reviewed by: davidxu Notes: svn path=/head/; revision=156608
* Remove fpsetsticky(). This was added for SysV compatibility, but dueDavid Schultz2005-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Oooops I forgot to commit that.Olivier Houchard2004-12-081-1/+1
| | | | | | | | | Use fp_rnd_t, not fp_rnd. Reported by: Jia-Shiun Li (jiashiun at gmail dot com) Notes: svn path=/head/; revision=138590
* Import the softfloat emulation library, needed for FreeBSD/arm right now.Olivier Houchard2004-05-1439-0/+14975
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