summaryrefslogtreecommitdiffstats
path: root/lib/libc/sparc64/gen
Commit message (Collapse)AuthorAgeFilesLines
* Fix some aliasing problems.das2004-02-161-6/+14
|
* style cleanup: Remove duplicate $FreeBSD$ tags.cperciva2004-02-101-2/+0
| | | | | | | | These files had tags after teh copyright notice, inside the comment block (incorrect, removed), and outside the comment block (correct). Approved by: rwatson (mentor)
* Remove unused variables. Add required headers and functionnectar2004-01-061-1/+2
| | | | declarations.
* Implement signalcontext.jake2003-08-082-2/+78
|
* Implement makecontext.jake2003-04-013-3/+129
|
* o Implement C99 classification macros isfinite(), isinf(), isnan(),mike2003-02-121-0/+5
| | | | | | | | | isnormal(). The current isinf() and isnan() are perserved for binary compatibility with 5.0, but new programs will use the macros. o Implement C99 comparison macros isgreater(), isgreaterequal(), isless(), islessequal(), islessgreater(), isunordered(). Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
* Implement fpclassify():mike2003-02-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | o Add a MD header private to libc called _fpmath.h; this header contains bitfield layouts of MD floating-point types. o Add a MI header private to libc called fpmath.h; this header contains bitfield layouts of MI floating-point types. o Add private libc variables to lib/libc/$arch/gen/infinity.c for storing NaN values. o Add __double_t and __float_t to <machine/_types.h>, and provide double_t and float_t typedefs in <math.h>. o Add some C99 manifest constants (FP_ILOGB0, FP_ILOGBNAN, HUGE_VALF, HUGE_VALL, INFINITY, NAN, and return values for fpclassify()) to <math.h> and others (FLT_EVAL_METHOD, DECIMAL_DIG) to <float.h> via <machine/float.h>. o Add C99 macro fpclassify() which calls __fpclassify{d,f,l}() based on the size of its argument. __fpclassifyl() is never called on alpha because (sizeof(long double) == sizeof(double)), which is good since __fpclassifyl() can't deal with such a small `long double'. This was developed by David Schultz and myself with input from bde and fenner. PR: 23103 Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> (significant portions) Reviewed by: bde, fenner (earlier versions)
* Rewrite longjmp() and _longjmp() to directly restore the saved frame,tmm2003-01-052-55/+19
| | | | | | | | | instead of unwinding the call stack. This makes them usable to switch stacks, e.g. for libc_r. Do not save the frame pointer in setjmp() and _setjmp(), it is not needed any more. Rename _longjmp() to ___longjmp(), with a weak alias to _longjmp(), like the other architectures did.
* Rename siglongjmp() to __siglongjmp(), with a weak alias to siglongjmp(),tmm2003-01-051-2/+4
| | | | like the other architectures do.
* Re-apply the previously backed-out commit that fixes the problem wherearchie2002-10-311-1/+1
| | | | | | | | HUGE_VAL is not properly aligned on some architectures. The previous fix now works because the two versions of 'math.h' (include/math.h and lib/msun/src/math.h) have since been merged into one. PR: bin/43544
* Revert previous commit to unbreak world until we figure out thearchie2002-09-201-1/+1
| | | | right way to do it.
* Fix a problem with the definition of HUGE_VAL causing the gcc warningarchie2002-09-191-1/+1
| | | | | | "cast increases required alignment of target type" on some platforms. Reviewed by: bde
* Use the macros from machine/fsr.h; some minor cleanups.tmm2002-09-141-5/+6
|
* Add implementations of fpgetmask(), fpgetround(), fpgetsticky(),tmm2002-09-146-1/+126
| | | | | fpsetround(), fpsetsticky(), obtained from NetBSD and tweaked a little to use definitions from machine/fsr.h instead of magic numbers.
* Add an implementation of fabs() (which is quite trivial).tmm2002-09-132-1/+38
| | | | | | | | | When it is called directly, gcc is smart enough to generate inline code for it, which is why it wasn't noticed before that it was missing. fabs() would probably better fit into libm, but it has traditionally been in libc on FreeBSD, so there is probably software around that makes assumptions about this by now.
* Use __FBSDID.obrien2002-06-295-36/+9
|
* Add frexp(3).obrien2002-06-292-2/+80
| | | | Obtained from: OpenBSD
* Fix the style of the SCM ID's.obrien2002-03-223-1/+5
| | | | I believe have made all of libc .c's as consistent as possible.
* Remove 'register' keyword.obrien2002-03-212-3/+3
|
* Account for <machine/fsr.h> no longer being usable for assembler code.tmm2002-03-112-2/+6
|
* Fix __dtoul to work on sparc64 (it used a half-way v8 stack layout),tmm2002-03-111-13/+13
| | | | and make it PIC-aware.
* Add fpsetmask(). Needed to build miniperl.jake2002-03-052-2/+29
| | | | Obtained from: netbsd
* Fix a bug where siglongjmp would clobber the argument to return fromjake2002-03-051-2/+2
| | | | | | sigsetjmp. It would return the value of the signal flag, instead. Pointy hat to: jake
* Use jmpbuf offsets, not ucontext_t.jake2001-12-291-3/+2
|
* Add .register directives for gcc3.jake2001-12-291-13/+42
| | | | | | Adapt to jmpbuf no longer being a ucontext_t. Restore the context "by hand" in longjmp and call sigprocmask, instead of just using sigreturn.
* __infinity is not const.jake2001-12-291-1/+1
|
* Add jmpbuf offsets. Remove ucontext offsets.jake2001-12-291-9/+8
|
* Add .register directives for gcc3.jake2001-12-291-6/+11
| | | | | Adapt to jmpbuf no longer being a ucontext_t. Call abort if longjmperror returns.
* Actually build new files.jake2001-11-191-1/+2
| | | | Forgotten by: jake
* Add more libc stuff.jake2001-11-186-0/+601
| | | | Obtained from: netbsd
* Catch up to jmpbuf changes. Define offsets used from assmebly languagejake2001-11-182-24/+39
| | | | | in another file so that it is easy to see what they are and keep them in sync with the headers (grafted from the kernel generated assym.s).
* Minimal libc for sparc64.jake2001-10-264-0/+186
Reviewed by: obrien
OpenPOWER on IntegriCloud