summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix Buildworld WITHOUT_OPENSSL.kientzle2011-10-222-4/+32
| | | | | PR: kern/160922 MFC after: 3 days
* Correct the spelling of getgrgid and getpwuid in the man page.kientzle2011-10-221-6/+6
| | | | MFC after: 3 days
*-. Upgrade our copy of llvm/clang to r142614, from upstream's release_30dim2011-10-2237-88/+150
|\ \ | | | | | | | | | | | | | | | | | | branch. This brings us very close to the 3.0 release, which is expected in a week or two. MFC after: 1 week
| | * Vendor import of clang release_30 branch r142614:dim2011-10-20398-31469/+50270
| | | | | | | | | | | | http://llvm.org/svn/llvm-project/cfe/branches/release_30@142614
| * | Vendor import of llvm release_30 branch r142614:dim2011-10-20849-33915/+63160
| | | | | | | | | | | | http://llvm.org/svn/llvm-project/llvm/branches/release_30@142614
* | | Revert the previous commit and add a comment explaining why it was wrong.des2011-10-221-2/+14
| | |
* | | openpam_static.c isn't auto-generated.des2011-10-221-5/+2
| | |
* | | Minor corrections and clarifications regarding exceptions.das2011-10-211-12/+23
| | |
* | | Replace a proliferation of buggy MD implementations of modf() with adas2011-10-2128-987/+149
| | | | | | | | | | | | | | | | | | | | | working MI one. The MI one only needs to be overridden on machines with non-IEEE754 arithmetic. (The last supported one was the VAX.) It can also be overridden if someone comes up with a faster one that actually passes the regression tests -- but this is harder than it sounds.
* | | Add support for the 'x' mode option in fopen() as specified in the C1Xdas2011-10-212-49/+60
| | | | | | | | | | | | | | | | | | draft standard. The option is equivalent to O_EXCL. MFC after: 1 month
* | | Fix a regression introduced in r226371: When the high part of x*ydas2011-10-212-6/+6
| | | | | | | | | | | | | | | exactly cancels with z, return the low part of x*y instead of discarding it.
* | | Fix a corner case: tan(large + Inf i) == NaN + NaN i.das2011-10-212-0/+10
| | |
* | | Improved handling of large x in ccosh{,f}():das2011-10-214-15/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Handle cases where exp(x) would overflow, but ccosh(x) ~= exp(x) / 2 shouldn't. - Use the ccosh(x) ~= exp(x) / 2 approximation to simplify the calculation when x is large. Similarly for csinh(). Also fixed the return value of csinh(-Inf +- 0i).
* | | Use __ldexp_exp() to simplify things and improve accuracy for x neardas2011-10-214-27/+10
| | | | | | | | | | | | the overflow threshold.
* | | The cexp() and {,c}{cos,sin}h functions all need to be able to computedas2011-10-216-33/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exp(x) scaled down by some factor, and the challenge is doing this accurately when exp(x) would overflow. This change replaces all of the tricks we've been using with common __ldexp_exp() and __ldexp_cexp() routines that handle all the scaling. bde plans to improve on this further by moving the guts of exp() into k_exp.c and handling the scaling in a more direct manner. But the current approach is simple and adequate for now.
* | | Use STRICT_ASSIGN() to ensure that the compiler doesn't screw thingsdas2011-10-214-5/+13
| | | | | | | | | | | | | | | | | | up by storing x in a wider type than it's supposed to. Submitted by: bde
* | | Per IEEE754r, pow(1, y) is 1 even if y is NaN, and pow(-1, +-Inf) is 1.das2011-10-212-2/+8
| | | | | | | | | | | | MFC after: 2 weeks
* | | Bugfix: feenableexcept() and fedisableexcept() should just return thedas2011-10-212-8/+8
| | | | | | | | | | | | | | | | | | old exception mask, not mask | ~FE_ALL_EXCEPT. MFC after: 2 weeks
* | | latin1 -> utf8des2011-10-198-9/+9
| | |
* | | Add a flush of the current PMC log buffer before displaying the next top.fabient2011-10-184-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | As the underlying block is 4KB if the PMC throughput is low the measurement will be reported on the next tick. pmcstat(8) use the modified flush API to reclaim current buffer before displaying next top. MFC after: 1 month
* | | Update llvm/clang's target triple (confusingly named LLVM_HOSTTRIPLE) todim2011-10-171-2/+1
| | | | | | | | | | | | $arch-unknown-freebsd10.0.
* | | It's no longer accurate to say that math.h "constitute[s] the C mathdas2011-10-171-1/+16
| | | | | | | | | | | | | | | | | | library," since complex.h, tgmath.h, and fenv.h are also part of the math library. Replace the outdated sentence with some references to the other parts.
* | | Add c{cos,sin,tan}{,h}{,f} functions. This is joint work withdas2011-10-1717-12/+871
| | | | | | | | | | | | bde and kargl.
* | | In pidfile_open(), if the pidfile is locked, but empty (PID is not stored yet)pjd2011-10-162-22/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and the caller requested other process' PID by passing non-NULL pidptr argument, we will wait at most 100ms for the PID to show up in the file and if it won't, we will store -1 in *pidptr. From now on, pidfile_open() function never sets errno to EAGAIN on failure. In collaboration with: des MFC after: 1 week
* | | - change "is is" to "is" or "it is"eadler2011-10-165-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | - change "the the" to "the" Approved by: lstewart Approved by: sahil (mentor) MFC after: 3 days
* | | Change the SDP_GET* macros to cast to a const buffer.ed2011-10-161-3/+3
| | | | | | | | | | | | This fixes a compiler warning when passing a const buffer to them.
* | | Change ncp_scan_bindery_object() to pass a constant search string.ed2011-10-161-1/+1
| | | | | | | | | | | | | | | The ncp_scan_bindery_object() function does not modify search_string internally, so there is no need to declare it as `char *'.
* | | Use #include "fenv.h" instead of #include <fenv.h>. This makes itdas2011-10-167-7/+7
| | | | | | | | | | | | | | | | | | more convenient to compile the math library by itself. Requested by: bde
* | | Fix some non-standard variable declarations.das2011-10-161-10/+10
| | |
* | | Optimize the case of pure imaginary arguments. Calls like this aredas2011-10-162-2/+9
| | | | | | | | | | | | | | | | | | common, e.g., in DFT implementations. Discussed with: bde, kargl
* | | Move the macros GET_LDBL_EXPSIGN() and SET_LDBL_EXPSIGN() intodas2011-10-162-15/+19
| | | | | | | | | | | | math_private.h, so they can be used elsewhere in the math library.
* | | Remove an unused variable.das2011-10-161-1/+1
| | |
* | | Remove some unnecessary initializations.das2011-10-156-6/+2
| | | | | | | | | | | | Obtained from: DragonFlyBSD
* | | Various changes to improve the accuracy and speed of log{2,10}{,f}.das2011-10-156-72/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rename __kernel_log() to k_log1p(). - Move some of the work that was previously done in the kernel log into the callers. This enables further refactoring to improve accuracy or speed, although I don't recall the details. - Use extra precision when adding the final scaling term, which improves accuracy. - Describe and work around compiler problems that break some of the multiprecision calculations. A fix for a small bug is also included: - Add a special case for log*(1). This is needed to ensure that log*(1) == +0 instead of -0, even when the rounding mode is FE_DOWNWARD. Submitted by: bde
* | | Style fixes and updates to comments.das2011-10-154-32/+34
| | | | | | | | | | | | Submitted by: bde
* | | Don't define FP_FAST_FMA on sparc64; with the recent fixes, fma() isdas2011-10-151-5/+2
| | | | | | | | | | | | | | | | | | no longer "fast" on sparc64. (It really wasn't to begin with, since the old implementation was using long doubles, and long doubles are emulated in software on sparc64.)
* | | Add INSERT_WORD64 and EXTRACT_WORD64 macros for use in s_fma.c.das2011-10-151-0/+24
| | |
* | | Replace two lines accidentally removed in r226218. Thanks to bdedas2011-10-151-0/+3
| | | | | | | | | | | | for noticing this.
* | | Fix a double-rounding bug in fma{,f,l}. The bug would occur indas2011-10-153-125/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | round-to-nearest mode when the result, rounded to twice machine precision, was exactly halfway between two machine-precision values. The essence of the fix is to simulate a "sticky bit" in the pathological cases, which is how hardware implementations break the ties. MFC after: 1 month
* | | Add a new trace point, KTRFAC_CAPFAIL, which traces capability checkdes2011-10-111-3/+4
| | | | | | | | | | | | failures. It is included in the default set for ktrace(1) and kdump(1).
* | | Refactor this code by introducing separate functions to handle thedas2011-10-112-92/+164
| | | | | | | | | | | | | | | extra-precision add and multiply operations. This simplifies future work but shouldn't result in any functional change.
* | | Fix how libusb20_dev_kernel_driver_active() andhselasky2011-10-103-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | libusb_dev_kernel_driver_active() works. In case of libusb20 the manpage was wrong and in case of libusb10 the implementation was wrong. Submitted by: Kai Wang MFC after: 3 days
* | | Provide external definitions of all of the standardized functions indas2011-10-1022-91/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fenv.h that are currently inlined. The definitions are provided in fenv.c via 'extern inline' declaractions. This assumes the compiler handles 'extern inline' as specified in C99, which has been true under FreeBSD since 8.0. The goal is to eventually remove the 'static' keyword from the inline definitions in fenv.h, so that non-inlined references all wind up pointing to the same external definition like they're supposed to. I am deferring the second step to provide a window where newly-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
* | | Add a FBSD_1.3 namespace for FreeBSD 10.das2011-10-101-1/+5
| | |
* | | Line up the struct declaration (yes, I know this isn't what it looksdes2011-10-091-6/+6
| | | | | | | | | | | | like in the header file)
* | | Document some not-so-recently added trace points.des2011-10-091-2/+7
| | | | | | | | | | | | MFC after: 1 week
* | | Fix whitespace inconsistencies found in homegrown Symbol.maps.ed2011-10-076-16/+16
| | |
* | | Load the ECDSA key if there is one.des2011-10-072-2/+7
| | | | | | | | | | | | MFC after: 1 week
* | | Remove no longer needed BUGS section.kib2011-10-061-9/+1
| | | | | | | | | | | | MFC after: 1 month
* | | Remove no longer valid statement about ARM.kib2011-10-041-2/+2
| | | | | | | | | | | | MFC after: 1 month
OpenPOWER on IntegriCloud