Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
Remove $FreeBSD$: one-line .h patternRemove /^\s*\*+\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
show more ...
libm: Add missing END() directives for amd64 routinesNo functional change. Related to D22122.Reviewed by: emaste, kib (earlier version both)
Resolve conflicts between macros in fenv.h and ieeefp.hThis is a follow-up to r321483, which disabled -Wmacro-redefined forsome lib/msun tests.If an application included both fenv.h and ieeefp.h
Resolve conflicts between macros in fenv.h and ieeefp.hThis is a follow-up to r321483, which disabled -Wmacro-redefined forsome lib/msun tests.If an application included both fenv.h and ieeefp.h, several macros suchas __fldcw(), __fldenv() were defined in both headers, with slightlydifferent arguments, leading to conflicts.Fix this by putting all the common macros in the machine-specificversions of ieeefp.h. Where needed, update the arguments in placeswhere the macros are invoked.This also slightly reduces the differences between the amd64 and i386versions of ieeefp.h.Reviewed by: kibMFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D15633
lib: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using mis-identified many licenses so this was mostly a manual - errorpr
lib: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using mis-identified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
Add asm versions of fmod(), fmodf() and fmodl() on amd64. Add asmversions of fmodf() amd fmodl() on i387.fmod is similar to remainder, and the C versions are 3 to 9 timesslower than the asm vers
Add asm versions of fmod(), fmodf() and fmodl() on amd64. Add asmversions of fmodf() amd fmodl() on i387.fmod is similar to remainder, and the C versions are 3 to 9 timesslower than the asm versions on x86 for both, but we had the strangemixture of all 6 variants of remainder in asm and only 1 of 6variants of fmod in asm.
Merge the 386 and amd64 versions of the fenv.h, to make cc -m32compilations which use fenv.h work.Reviewed by: tjilSponsored by: The FreeBSD Foundation
Bugfix: feenableexcept() and fedisableexcept() should just return theold exception mask, not mask | ~FE_ALL_EXCEPT.MFC after: 2 weeks
Use #include "fenv.h" instead of #include <fenv.h>. This makes itmore convenient to compile the math library by itself.Requested by: bde
Provide external definitions of all of the standardized functions infenv.h that are currently inlined.The definitions are provided in fenv.c via 'extern inline'declaractions. This assumes the co
Provide external definitions of all of the standardized functions infenv.h that are currently inlined.The definitions are provided in fenv.c via 'extern inline'declaractions. This assumes the compiler handles 'extern inline' asspecified in C99, which has been true under FreeBSD since 8.0.The goal is to eventually remove the 'static' keyword from the inlinedefinitions in fenv.h, so that non-inlined references all wind uppointing to the same external definition like they're supposed to.I am deferring the second step to provide a window wherenewly-compiled apps will still link against old math libraries.(This isn't supported, but there's no need to cause undue breakage.)Reviewed by: stefanf, bde
Remove duplicate .note.GNU-stack section declaration.Reported by: arundel
Add section .note.GNU-stack for assembly files used by 386 and amd64.
Use __FBSDID() instead of RCSID() in most .S files under lib/msun/i386,and one under lib/msun/amd64. This avoids adding the identifiers to the.text section, and moves them to the .comment section
Use __FBSDID() instead of RCSID() in most .S files under lib/msun/i386,and one under lib/msun/amd64. This avoids adding the identifiers to the.text section, and moves them to the .comment section instead.Suggested by: bdeApproved by: rpaulo (mentor)
Placate new binutils, by using 16-bit %ax instead of 32-bit %eax as anargument for fnstsw. Explicitely specify sizes for the XMM control andstatus word and X87 control and status words.Reviewed b
Placate new binutils, by using 16-bit %ax instead of 32-bit %eax as anargument for fnstsw. Explicitely specify sizes for the XMM control andstatus word and X87 control and status words.Reviewed by: dasTested by: avgMFC after: 2 weeks
Use, in uncovered part, the END() macro in order to improve debugging.In this specific case, Valgrind won't get confused when analyzing suchfunctions.Sponsored by: Sandvine IncorporatedTested by
Use, in uncovered part, the END() macro in order to improve debugging.In this specific case, Valgrind won't get confused when analyzing suchfunctions.Sponsored by: Sandvine IncorporatedTested by: emasteMFC: 3 days
Add assembly versions of remquol() and remainderl().
Hook up sqrtl() to the build.
MD implementations of sqrtl().
Use hardware remainder on amd64 since it is 5 to 10 times faster thansoftware remainder and is already used for remquo().
Implement rintl(), nearbyintl(), lrintl(), and llrintl().Thanks to bde@ for feedback and testing of rintl().
Translate from the i386 so that this compiles and runs.I hope that this and the i386 version of it will not be needed, butthis is currently about 16 cycles or 36% faster than the C version,and th
Translate from the i386 so that this compiles and runs.I hope that this and the i386 version of it will not be needed, butthis is currently about 16 cycles or 36% faster than the C version,and the i386 version is about 8 cycles or 19% faster than the Cversion, due to poor optimization of the C version.
Add logbl(3) to libm.
12