summaryrefslogtreecommitdiffstats
path: root/lib/msun
Commit message (Collapse)AuthorAgeFilesLines
...
* Follow up to r284427: fix NaN mixing for ctanhf too.tijl2015-06-151-1/+2
|
* - Change comments to be more consistent with s_ccosh.c and s_csinh.c.tijl2015-06-152-20/+21
| | | | | | | | - Fix a case where NaNs were not mixed correctly and signalling NaNs were not converted to quiet NaNs. - Eliminate two negations from ctan(z). In collaboration with: bde
* Fix some exceptional cases where the sign of the result is unspecifiedtijl2015-06-152-47/+43
| | | | | | | but must still satisfy csinh(conj(z)) == conj(csinh(z)) and csinh(-z) == -csinh(z). This allows eliminating two negations from csin(z). In collaboration with: bde
* Fix some exceptional cases where the sign of the result is unspecifiedtijl2015-06-152-34/+32
| | | | | | | but must still satisfy ccosh(conj(z)) == conj(ccosh(z)) and ccosh(-z) == ccosh(z). In collaboration with: bde
* Revert r284417 it is not necessary anymorebapt2015-06-151-1/+1
|
* Enforce overwritting SHLIBDIRbapt2015-06-151-1/+1
| | | | | | | | | Since METAMODE has been added, sys.mk loads bsd.mkopt.mk which ends load loading bsd.own.mk which then defines SHLIBDIR before all the Makefile.inc everywhere. This makes /lib being populated again. Reported by: many
* Add META_MODE support.sjg2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-2745-328/+649
| |\
| * \ Merge from head@274682sjg2014-11-1917-249/+1049
| |\ \
| * \ \ Merge head from 7/28sjg2014-08-1919-558/+794
| |\ \ \
| * | | | Updated dependenciessjg2014-05-161-1/+1
| | | | |
| * | | | Updated dependenciessjg2014-05-101-0/+2
| | | | |
| * | | | Merge headsjg2014-04-2728-568/+1744
| |\ \ \ \
| * \ \ \ \ Merge head@256284sjg2013-10-131-1/+1
| |\ \ \ \ \
| * \ \ \ \ \ Merge headsjg2013-09-114-1/+80
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge from headsjg2013-09-0548-652/+4227
| |\ \ \ \ \ \ \
| * | | | | | | | Updated dependenciessjg2013-03-111-0/+1
| | | | | | | | |
| * | | | | | | | Updated dependenciessjg2013-02-161-2/+0
| | | | | | | | |
| * | | | | | | | Sync with HEAD.obrien2013-02-082-4/+5
| |\ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \
| *-. \ \ \ \ \ \ \ \ Sync from headsjg2012-11-0422-115/+733
| |\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-222-0/+21
| | |/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | | | | Misc fixes from projects/bmakesjg2015-06-111-0/+2
| |_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: D2748 Reviewed by: brooks imp
* | | | | | | | | | In r279493, the functions pzero[f](), qzero[f], pone[f](),kargl2015-05-174-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and qone[f]() were marked as __inline, but their forward declarations were not updated. Fix the forward declarations to match the actual function declarations. Requested by: bde
* | | | | | | | | | The presence/absence of CPU features should be tested withimp2015-04-281-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MACHINE_CPUARCH or MACHINE_ARCH, not MACHINE. The latter is for kernel only things. Also, I think this should be unconditional since all our architectures have long double support, but I don't have time to test that thoroughly so just add a comment to that effect.
* | | | | | | | | | Remove per-architecture checks for enabling HAVE_FENV_Hngie2015-04-271-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The conditional came from NetBSD, where only select architectures have this header/support All architectures on FreeBSD have the necessary support though, so the conditional's completely unnecessary make tinderbox done on all architectures (including arm64, where the issue occurred before) this time X-MFC with: r282057, r282092 MFC after: 6 days
* | | | | | | | | | Correct the spelling of MACHINE_CPUARCH, MACHINE_CPU is not set on arm64.andrew2015-04-271-1/+1
| | | | | | | | | |
* | | | | | | | | | Build/install libc, librt, libthr, and msun NetBSD test suites on allngie2015-04-273-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | architectures MFC after: 1 week
* | | | | | | | | | mdoc: fix function declarationbapt2015-04-261-2/+2
| | | | | | | | | |
* | | | | | | | | | mdoc: remove empty linebapt2015-04-261-1/+0
| | | | | | | | | |
* | | | | | | | | | Remove end of line whitespacebapt2015-04-261-3/+3
| | | | | | | | | |
* | | | | | | | | | Add the fe* symbols to libm for arm64.andrew2015-03-311-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
* | | | | | | | | | Correct mrs_fpcr and mrs_fpsr macros in arm64 fenv.hemaste2015-03-301-21/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: andrew Sponsored by: The FreeBSD Foundation
* | | | | | | | | | Start to import support for the AArch64 architecture from ARM. This changeandrew2015-03-192-0/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | only adds support for kernel-toolchain, however it is expected further changes to add kernel and userland support will be committed as they are reviewed. As our copy of binutils is too old the devel/aarch64-binutils port needs to be installed to pull in a linker. To build either TARGET needs to be set to arm64, or TARGET_ARCH set to aarch64. The latter is set so uname -p will return aarch64 as existing third party software expects this. Differential Revision: https://reviews.freebsd.org/D2005 Relnotes: Yes Sponsored by: The FreeBSD Foundation
* | | | | | | | | | According to POSIX.1-2008, the Bessel functions of second kindkargl2015-03-107-47/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | should raise a divide-by-zero floating point exception for x = +-0 and an invalid floating point exception for x < 0 including x = -Inf. Update the code to raise the exception and update the documentation with hopefully better description of the behavior. Reviewed by: bde (code only)
* | | | | | | | | | Give compilers a stronger hint to inline the functionskargl2015-03-014-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pzero[f], qzero[f], pone[f], and qone[f]. While here fix the function declarations in accordance with style(9).
* | | | | | | | | | When j0() and j1() were converted to j0f() and j1f(), the thresholdkargl2015-03-012-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | values for the different invervals were not converted correctly. Adjust the threshold values to values, which should agree with the comments. Reported by: cognet (j1f only) Discussed with: pfg, bde Reviewed by: bde
* | | | | | | | | | msun: drop unnecessary checks (part 2).pfg2015-02-244-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop an unnecessary check in some calculations. The check would have Coverity falsely conclude that a variable could be left undefined.
* | | | | | | | | | msun: drop unnecessary checks.pfg2015-02-224-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop an unnecessary check in some calculations. The check would have Coverity falsely conclude that variables could be left undefined. Discussed with: kargl, bde Reviewed by: bde
* | | | | | | | | | Truncate the exponent 'n' of type long to a domain containedkargl2015-02-071-19/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | within [INT_MIN, INT_MAX] where the magnitude of the lower and upper bounds are sufficiently large to span the range of scalbn[fl]. While here, remove the GNU style bug in the function declarations. Reviewed by: bde, pfg
* | | | | | | | | | scanblnl: drop extra braces.pfg2015-02-031-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pointed out by: bde
* | | | | | | | | | Reduce confusion in scalbnl() family of functions.pfg2015-02-031-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The changes unrelated to the bug in r277948 made the code very difficult to understand to both coverity and regular humans so take a step back to something that is much easier to understand for both and follows better the original code. CID: 1267992, 1267993, 1267994 Discussed with: kargl
* | | | | | | | | | msun: use previously ignored value.pfg2015-01-301-22/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes evaluation of exceptional values in scalblnl(). While here, simplify the code as suggested by Bruce Evans. Reported by: clang static analyzer MFC after: 1 week
* | | | | | | | | | mdoc: remove EOL whitespace.joel2014-12-291-1/+1
| | | | | | | | | |
* | | | | | | | | | mdoc: improvements to SEE ALSO.joel2014-12-273-3/+3
| | | | | | | | | |
* | | | | | | | | | Minor Xr fix.joel2014-12-261-1/+1
| | | | | | | | | |
* | | | | | | | | | Clarify to explain that C99 conforming compilers don't need CMPLX*().ed2014-12-241-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Discussed with: kargl@
* | | | | | | | | | Rename cpack*() to CMPLX*().ed2014-12-1624-182/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The C11 standard introduced a set of macros (CMPLX, CMPLXF, CMPLXL) that can be used to construct complex numbers from a pair of real and imaginary numbers. Unfortunately, they require some compiler support, which is why we only define them for Clang and GCC>=4.7. The cpack() function in libm performs the same task as CMPLX(), but cannot be used to generate compile-time constants. This means that all invocations of cpack() can safely be replaced by C11's CMPLX(). To keep the code building with GCC 4.2, provide copies of CMPLX() that can at least be used to generate run-time complex numbers. This makes it easier to build some of the functions outside of libm.
* | | | | | | | | | Adjust the |x| small limit from 0x1p-7 to 0x1p-9. Thiskargl2014-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adjustment increases the number of correctly rounded cases within the interval on i386. Requested by: bde
* | | | | | | | | | Update the constants associated with the evaluation of j0f(x)kargl2014-12-052-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for |x| small. While here, remove the explicit cast of 0.25 to float. Replace a multiplication involving 0.25 by a division using an integer constant 4. Make a similar change in j0() to minimize the diff. Suggested by: bde
OpenPOWER on IntegriCloud