summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/hppa (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Do not use <machine/float.h>, that is an deformed BSD-ism.deraadt2012-06-251-2/+2
| | | | | It turns out <float.h> is the right file to pull in. ok millert
* __tfork() needs to set the stack address of the new thread in the kernel,guenther2012-06-211-15/+3
| | | | | | | | | so that it can't get a signal while still running on the parent thread's stack. Also, pass in sizeof(struct __tfork) to provide forward compat when more members are added. This is an ABI change, so switch syscall numbers and bump lib majors this time. ok deraadt@ matthew@
* alloca.c cannot be usedderaadt2012-04-121-3/+1
|
* remove rfork(); ok guenther miodderaadt2012-04-121-38/+0
|
* Move __tfork_thread() from rthreads (libpthread) to libc so thatguenther2012-03-221-0/+65
| | | | | | it can be used for not-strictly-threading purposes ok matthew@ kurt@
* Revert (leaving the complex math part alone). Some stuff is dependingmartynas2011-07-082-2/+20
| | | | | on this historical behavior; so we're stuck in this stupid situation. No cookie for me.
* Move fabs(3), frexp(3), and modf(3) to libm--nothing has been usingmartynas2011-07-082-20/+2
| | | | them in libc for a very long time. OK guenther@.
* Sticky flags are in the left half of fpsr; not the undefined bitsmartynas2011-04-221-2/+2
| | | | in the right half. OK miod@.
* Remove wrong check.ariane2011-04-151-10/+1
| | | | | | | | | | | | | HPPA longjmp tests that the env parameter < the current stack pointer. The test relies on the stack being at the end of the memory space. This test is wrong for a couple of reasons: - the main stack is at 0x78000000-0x80000000, but allocations between 0x80000000-0xc0000000 are available to the program, - pthread stacks may be at any place in the address space, allowing a heap-allocated env parameter to fail the check. ok deraadt@, kettenis@, guenther@ at least
* Move __cerror to ___cerror with a weak alias so that rthreads can override it.guenther2011-04-041-3/+5
| | | | | | On mips64, also correct the name called from plain cerror to __cerror. "looks correct" miod@
* Provide a WEAK_ALIAS macro in <machine/asm.h> for the few platformsguenther2010-10-011-2/+2
| | | | | | | that didn't already have one, and then immediately use it in libc's SYS.h ok miod@
* remove from gen so that lint doesn't check gen if assembly versionsmartynas2009-04-211-2/+2
| | | | are available. spotted by theo
* - ldexp implementation has issues. switch to the one from libmmartynas2009-04-193-450/+2
| | | | | | - remove frexp in hppa64, cloned from hppa - move generic ieee754 implementations of modf and ldexp to gen ok kettenis@, "looks good" millert@
* use sys/cdefs.hderaadt2008-12-102-4/+3
|
* ditto frexpl and ldexplmartynas2008-12-091-1/+4
|
* alias fabsl to fabs on these archsmartynas2008-12-091-1/+5
|
* - replace dtoa w/ David's gdtoa, version 2008-03-15martynas2008-09-073-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - provide proper dtoa locks - use the real strtof implementation - add strtold, __hdtoa, __hldtoa - add %a/%A support - don't lose precision in printf, don't round to double anymore - implement extended-precision versions of libc functions: fpclassify, isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is fixed - separate vax versions of strtof, and __hdtoa - add complex math support. added functions: cacos, casin, catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp, clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf, casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf, ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf, cimagf, conjf, cprojf, crealf - add fdim, fmax, fmin - add log2. (adapted implementation e_log.c. could be more acruate & faster, but it's good enough for now) - remove wrappers & cruft in libm, supposed to work-around mistakes in SVID, etc.; use ieee versions. fixes issues in python 2.6 for djm@ - make _digittoint static - proper definitions for i386, and amd64 in ieee.h - sh, powerpc don't really have extended-precision - add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h for LDBL_* - merge lead to frac for m{6,8}k, for gdtoa to work properly - add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa to use - add EXT_IMPLICIT_NBIT definition, which indicates implicit normalization bit - add regression tests for libc: fpclassify and printf - arith.h & gd_qnan.h definitions - update ieee.h: hppa doesn't have quad-precision, hppa64 does - add missing prototypes to gdtoaimp - on 64-bit platforms make sure gdtoa doesn't use a long when it really wants an int - etc., what i may have forgotten... - bump libm major, due to removed&changed symbols - no libc bump, since this is riding on djm's libc major crank from a day ago discussed with / requested by / testing theo, sthen@, djm@, jsg@, merdely@, jsing@, tedu@, brad@, jakemsr@, and others. looks good to millert@ parts of the diff ok kettenis@ this commit does not include: - man page changes
* - move isinf, isnan dups to gen, since most is ieee 754martynas2008-07-244-96/+11
| | | | | | | | | | | | | | | | - is{inf,nan} should be macros for real-floating, so rename to __is{inf,nan}, per C99 - implement C99 __fpclassify(), __fpclassifyf(), __isfinite(), __isfinitef(), __isnormal(), __isnormalf(), __signbit(), __signbitf() - long functions added, but not yet enabled, till ieee.h is fixed - implement vax equivalents of the functions - reimplement isinff, isnanf in a better way, and move to libc - add qnan bytes for all archs - bump major man pages will follow ok millert@. arm bits looked over by drahn@ discussed w/ theo, who showed the right direction, to put these functions in libc
* System call stubs don't have a frame of their own, so use EMTRY_LEAF insteadkettenis2006-01-059-21/+21
| | | | | | of ENTRY. This avoids emitting bogus unwind entries, which makes gdb a lot happier. ok mickey@
* if we pull in a .S file, we must fake out the lint with a .c filederaadt2005-11-291-1/+2
| | | | | for this first cut, we will do this for alloca() using alloca.c by adding it to LSRCS
* zap rcsid.espie2005-08-0717-109/+17
| | | | okay deraadt@ (tested them all)
* Replace broken frexp() with a working one from FreeBSD. There'smillert2005-02-012-76/+2
| | | | | | no need to have a copy for each platform with ieee floating point, only vax needs a special version (which probably has similar bugs). OK and with help from otto@
* rcsidmickey2004-10-261-1/+2
|
* include whole SYS.h instead of just machine/asm.hmickey2004-06-101-2/+2
|
* PICy stuffmickey2004-05-256-31/+86
|
* Use correct type for old values. No binary change.otto2004-01-052-4/+4
| | | | ok mickey@ miod@
* three four kill ...mickey2003-06-0212-83/+23
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-025-34/+14
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Add Doug Gwyn's portable alloca() for platforms w/o an assemblermillert2003-05-021-1/+2
| | | | | | | version. Normally, gcc provides its own alloca() (unless -fno-builtin is specified). The C version is decidedly suboptimal--we really need proper assembler versions but this will work as a stop-gap measure.
* minbrk is exposed, gmon uses itmickey2003-01-151-6/+6
|
* gotta define SYSEXIT() and make all the rest of sys/*S be thread-safe now, missed this fuct in the previous take on thread-safe libcmickey2002-10-319-39/+41
|
* marc@ said we should be always thread-safe, accomodate for that, also defining the weak symbols which we did not before in either casemickey2002-10-311-50/+17
|
* reversed condition checking for sig*jmp(, savemask)mickey2002-10-211-4/+4
|
* deal w/ longjmp(, 0)mickey2002-10-211-2/+4
|
* make an ieeefp regress pass; miod@ okmickey2002-10-218-35/+36
|
* name space pollution; after art@mickey2002-10-072-18/+18
|
* better, faster scooter; fix cerror in mi somedaymickey2002-09-101-9/+3
|
* mi versions are good enoughmickey2002-09-103-348/+4
|
* sync from libkern (where the major fix was done or the kernel piece of this)mickey2002-08-271-18/+22
|
* forgot to fix this while was fixing copy_on_fault shitzmickey2002-08-131-4/+4
|
* no more of the French Favourite Symbolmickey2002-08-081-2/+2
|
* fix KMSRCS after some files removelancemickey2002-08-081-2/+2
|
* real vforkmickey2002-07-251-4/+16
|
* we can live very well w/ MI ffs()mickey2002-07-082-62/+2
|
* I was on drugs when I commited this initially, and still do not understandmiod2002-05-228-244/+53
| | | | | | | | | how I got libc to compile with this. Blush. Replace this with a correct implementation, and write a faster fabs() while there. ok mickey@
* save the old onfault where the handler expects it to be, do not zero out on exit, but restoremickey2002-05-201-2/+3
|
* kill unused linemickey2002-05-171-2/+1
|
* More fp-related libc pieces for hppa.miod2002-03-1112-1/+887
| | | | This enables awk to link.
* reverse the conditionmickey2002-03-081-2/+2
|
* set ret for mem*, no mycopy, better reverse copy checkmickey2002-03-081-5/+3
|