summaryrefslogtreecommitdiff
path: root/lib/libc/arch
AgeCommit message (Collapse)Author
2009-06-21fix rcs ids. ok sthen@Martynas Venckus
2009-05-03Fix signed vs unsigned issue with memcmp/strncmp where the size parameterDale Rahn
was incorrectly being treated as signed. ok miod@
2009-04-29junk spaceTheo de Raadt
2009-04-21remove from gen so that lint doesn't check gen if assembly versionsMartynas Venckus
are available. spotted by theo
2009-04-19- ldexp implementation has issues. switch to the one from libmMartynas Venckus
- remove frexp in hppa64, cloned from hppa - move generic ieee754 implementations of modf and ldexp to gen ok kettenis@, "looks good" millert@
2009-04-05this is not a write-only register. might have caused to optimizeMartynas Venckus
it away. ok miod@
2008-12-12__isinff and __isnanfMartynas Venckus
2008-12-12do the same as was done in mi version: do not include math.h, since isinf,Martynas Venckus
and isnan would expand to macros and compatibility aliases won't work
2008-12-10no spaces allowed in the macro arguments. completely insanity!Theo de Raadt
2008-12-10use sys/cdefs.h; pointed out by theoMartynas Venckus
2008-12-10use sys/cdefs.hTheo de Raadt
2008-12-09these were not neededMartynas Venckus
2008-12-09ditto frexpl and ldexplMartynas Venckus
2008-12-09alias fabsl to fabs on these archsMartynas Venckus
2008-12-09remove unusedMartynas Venckus
2008-12-09- add long double signbitMartynas Venckus
- make long double versions weak aliases to double versions, on archs where long doubles are 64 bits - no need to have two finites. finite() and finitef() are non-standard 3BSD obsolete versions of isfinite. remove from libm. make them weak_alias in libc to __isfinite and __isfinitef instead. similarly make 3BSD obsolete versions of isinf, isinff, isnan, isnanf weak_aliases to C99's __isinf, __isinff, __isnan, __isnanf - bump major ok millert@
2008-09-29Use large pic asm for access to errno (needed for pie). Originally fromKurt Miller
drahn@ but tweaked to use same scratch reg as PIC_PROLOGUE. okay miod@ drahn@
2008-09-07- replace dtoa w/ David's gdtoa, version 2008-03-15Martynas Venckus
- 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
2008-07-25fix apps that use isinff, isnanf; use ieee 754 mi code, as allMartynas Venckus
other ieee fp archs do; pointed out by theo. tested by theo
2008-07-24- move isinf, isnan dups to gen, since most is ieee 754Martynas Venckus
- 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
2008-07-23clear sign bit, instead of comparing to zero and setting x=-x.Martynas Venckus
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
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
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@
2008-05-21Use _C_LABEL when appropriate.Miod Vallat
2008-05-21Use _PROF_PROLOGUE insteaf of rolling our own.Miod Vallat
2007-10-27Repair FLT_ROUNDS operation. ok kettenis@Miod Vallat
2007-10-24Change the syscall invocation sequences to no longer fetch the last fewMiod Vallat
arguments from the stack, since the kernel will now copyin() them when necessary. This makes all system calls (but mmap()) slightly faster. WARNING! After this commit, your binaries must run against a kernel featuring m88k/m88k/trap.c r1.34 or better - i.e. a 4.1 or later kernel.
2007-05-25"boundries" -> "boundaries" in various comments. Started by Diego Casati.Kenneth R Westerback
2007-05-17LSRCS should refer to the C source version of asm files 'put it in' deraadt@Dale Rahn
2007-05-17Unbreak libc on arm. -mojMats O Jansson
2007-05-15fix some lint 'xxx used, but not defined' warnings by properly addingOtto Moerbeek
stuff to LSRCS
2007-03-02Move landisk to hardware floating point. At the moment the FPU context isMiod Vallat
always saved upon context switches, as FPU registers are heavily used for long long computations (don't ask). Gcc default to -m4. Credits to drahn@ otto@ and deraadt@ for feedback and help testing. Upgrade procedure if you don't want to use the damn snapshots: - build and install new kernel, reboot off it - build new gcc, do not install it yet - make includes - install new gcc - build and install lib/csu and lib/libc - make build
2007-02-12from FreeBSD via Jung (moorang at gmail), fix obvious typo in __fpu_ftox()Jason Wright
which caused all negative numbers returned to be == -1.
2006-12-23please gccTheo de Raadt
2006-11-14Do not use fpu in the softfloat case. Fixes lib/libc/ieeefp/roundOtto Moerbeek
regress test; ok miod@
2006-11-13missing ;Otto Moerbeek
2006-11-12fix infinity, taking into account endianess. ok drahn@ miod@Otto Moerbeek
2006-11-07Load the syscall number into the scratch register (r12) so that we dontDale Rahn
need the copyin.
2006-11-07Build the correct arch softfloat code.Dale Rahn
2006-11-07forgot to commit the new files for sh softfloat support.Dale Rahn
2006-11-06Move (back) to softfloat on sh for now.Dale Rahn
2006-11-03Dont double fork, and since the assembles the same, use -1, instead of 0xffDale Rahn
to subtract one.
2006-10-11and I forgot ldexp.cDale Rahn
2006-10-11build modf.cDale Rahn
2006-10-10Preliminary userland bits for OpenBSD/landisk, many things coming fromMiod Vallat
NetBSD.
2006-05-09The int (32bit) argument must be sign extended on the 64 bit amd64 beforeDale Rahn
the add. ok miod@, toby@. olrite mickey@
2006-04-24Properly terminate ENTRY with a semicolon, required for asm profiling.Dale Rahn
ok miod, espie
2006-03-31Gently cast to make lint happy.Dale Rahn
2006-03-31Be kind to lint, and specify the correct width on these constants.Dale Rahn
2006-02-06typos from alexey dobriyan;Jason McIntyre
2006-01-05System call stubs don't have a frame of their own, so use EMTRY_LEAF insteadMark Kettenis
of ENTRY. This avoids emitting bogus unwind entries, which makes gdb a lot happier. ok mickey@