summaryrefslogtreecommitdiffstats
path: root/lib/msun
Commit message (Collapse)AuthorAgeFilesLines
* We have long double on arm64, and the tests pass so enable them.andrew2015-10-311-1/+3
| | | | Sponsored by: ABT Systems Ltd
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andngie2015-10-121-4/+0
| | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
* In libm's exp2(3), avoid left-shifting a negative integer, which isdim2015-08-091-2/+2
| | | | | | | undefined. Replace it with the intended value, in a defined way. Reviewed by: bde MFC after: 3 days
* .ie is not supposed to be used in manpagesbapt2015-07-141-6/+2
| | | | Submitted by: carsten.kunze@arcor.de
* Fix compilation when the armv6 world is being compiled without hw floatingian2015-06-241-1/+1
| | | | | | point support. The fenv-vfp.c file overrides -mfloat-abi so it can use floating point instructions if it detects support at runtime. Make it also override -mfpu in case the user has set -mfpu=none.
* new dependssjg2015-06-161-0/+1
|
* 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
| | | | | | | | | |
OpenPOWER on IntegriCloud