summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/arm (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* restructure libc/string + libc/arch/*/string coperation regardingderaadt2014-11-302-9/+16
| | | | | | | | | | | | | | | | (potentially) MD versions (function dependent, not filename dependent) split out memcpy/memmove/bcopy and strchr/index/strrchr/rindex Bring back amd64 .S versions And the final touch: switch all architectures temporarily to MI memcpy.c, which contains syslog + abort for overlapping copies. A nice harsh undefined behaviour. We will clean the entire userland of the remaining issues in this catagory, then switch to the optimised memcpy which skips the memmove check. I tried to cut this change into pieces, but testing each sub-step on every architecture is too time consuming and mindnumbing. ok miod
* Switch from <sys/endian.h> or <machine/endian.h> to the new,guenther2014-07-212-6/+4
| | | | | | being-standardized <endian.h> ok deraadt@ millert@ beck@
* Nuke the machinery to sync libkern with libc, it's not been used in themiod2014-06-091-5/+1
| | | | | | last 15 years and there is no point to use it in the future. From Jean-Philippe Ouellet
* Apply "unifdef -D__STDC__" to libc/arch/*/SYS.hmatthew2014-06-041-14/+1
| | | | | | | | A while back, pascal@ converted our system call stubs from using "cpp | as" to "cc -x assembler-with-cpp", so there's no need to stay compatible with ancient preprocessor semantics. ok miod
* Remove #ifdef _REENTRANT code that isn't used here. These days, the codekettenis2013-12-311-11/+1
| | | | | | handling per-thread errno lives in librthread. ok miod@, espie@
* yup, we do ELFderaadt2013-12-241-6/+1
|
* bring in math.h to provide prototypesderaadt2013-11-131-1/+2
|
* Switch libc and libm to use strong aliases rather than weak aliasesmartynas2013-03-281-2/+2
| | | | | | | | | | | where appropriate. Among other things makes the symbols consistent across all architectures (notably where ldbl mantissa is 53 bits). While at it, kill unused LINTLIBRARY/PROTOLIB1 cruft which was there to trick lint into recording the right prototypes for aliased functions. Most of the work done at the awesome n2k13 hackathon. Agreed by kettenis@, guenther@, matthew@.
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-051-2/+1
| | | | ok guenther millert kettenis
* remove lint leftovers; ok guenther@okan2012-09-041-4/+1
|
* Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure ccpascal2012-08-223-10/+10
| | | | | | | invocations. This allows us to use the compiler builtin define __PIC__ to check for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot. ok matthew@, conceptually ok kurt@
* The kernel returns the pending set; this stub has to save it throughguenther2012-07-011-4/+8
| | | | | | the pointer ok miod@ kettenis@
* __tfork() needs to set the stack address of the new thread in the kernel,guenther2012-06-211-12/+5
| | | | | | | | | 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@
* rely on the compiler giving us a built-in alloca. any new architecturederaadt2012-04-192-48/+1
| | | | | or compiler we use will. ok millert
* alloca.c cannot be usedderaadt2012-04-121-2/+1
|
* remove rfork(); ok guenther miodderaadt2012-04-121-32/+0
|
* Move __tfork_thread() from rthreads (libpthread) to libc so thatguenther2012-03-221-0/+48
| | | | | | 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-3/+38
| | | | | 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-38/+3
| | | | them in libc for a very long time. OK guenther@.
* Move arm to the 'MI' softfloat code instead of the arm version.drahn2011-07-0529-7171/+2
| | | | YES!! miod@
* Move __cerror to ___cerror with a weak alias so that rthreads can override it.guenther2011-04-042-3/+6
| | | | | | On mips64, also correct the name called from plain cerror to __cerror. "looks correct" miod@
* more rcsid/sccs cleanupderaadt2009-10-282-6/+2
|
* Fix signed vs unsigned issue with memcmp/strncmp where the size parameterdrahn2009-05-032-10/+16
| | | | was incorrectly being treated as signed. ok miod@
* remove from gen so that lint doesn't check gen if assembly versionsmartynas2009-04-211-3/+3
| | | | are available. spotted by theo
* - ldexp implementation has issues. switch to the one from libmmartynas2009-04-193-253/+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.h; pointed out by theomartynas2008-12-101-2/+2
|
* ditto frexpl and ldexplmartynas2008-12-091-2/+3
|
* alias fabsl to fabs on these archsmartynas2008-12-091-1/+4
|
* - replace dtoa w/ David's gdtoa, version 2008-03-15martynas2008-09-073-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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-99/+19
| | | | | | | | | | | | | | | | - 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
* clear sign bit, instead of comparing to zero and setting x=-x.martynas2008-07-231-35/+22
| | | | | | | fixes special cases, such as neg. zero, and makes C99 conformant ok miod@, millert@ since there's nothing else in arm's fabs.c, replace 4-clause license w/ the one at /usr/share/misc/license.template
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-2614-112/+14
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* LSRCS should refer to the C source version of asm files 'put it in' deraadt@drahn2007-05-171-2/+2
|
* Unbreak libc on arm. -mojmaja2007-05-171-2/+2
|
* fix some lint 'xxx used, but not defined' warnings by properly addingotto2007-05-151-1/+4
| | | | stuff to LSRCS
* Load the syscall number into the scratch register (r12) so that we dontdrahn2006-11-071-1/+3
| | | | need the copyin.
* typos from alexey dobriyan;jmc2006-02-061-2/+2
|
* if we pull in a .S file, we must fake out the lint with a .c filederaadt2005-11-291-12/+5
| | | | | for this first cut, we will do this for alloca() using alloca.c by adding it to LSRCS
* undo unrelated commitespie2005-08-071-2/+2
|
* .PATH betterderaadt2005-08-071-2/+2
|
* zap rcsid.espie2005-08-076-23/+7
| | | | okay deraadt@ (tested them all)
* Replace broken frexp() with a working one from FreeBSD. There'smillert2005-02-012-76/+1
| | | | | | 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@
* add some missing $, ok djm@ 'That looks fine to me' millert@jsg2004-10-011-0/+1
|
* fix weak aliases for _thread_sys functions, proper libpthead linking.drahn2004-03-011-31/+18
| | | | rewrittent to more closely model other archs. ok deraadt@ miod@
* Remove WARN_REFERENCES incorrectly imported from NetBSD. ok miod@drahn2004-02-162-8/+2
|
* Update from netbsd, prodded by miod@drahn2004-02-121-2/+2
|
* Do not generate text relocations in PIC code.drahn2004-02-073-11/+11
|
* fix alias definition, was backwards.drahn2004-02-061-2/+2
|
* Correct modf (from alpha) instead of one which doesnt compile from NetBSDdrahn2004-02-032-29/+37
|
* add missing frexpdrahn2004-02-022-1/+76
|