Update.
1998-12-31 Ulrich Drepper <drepper@cygnus.com>
* iconvdata/Makefile: Use rpath $ORIGIN for modules which use any of
the conversion libraries.
* include/features.h: Mention latest extensions in _POSIX_C_SOURCE
description.
* libio/genops.c (list_all_lock): New variable.
(_IO_un_link, _IO_link_in): Acquire lock before modifying _IO_list_all.
[PR libc/911].
* sysdeps/i386/i686/strtok.s: Add missing cld.
* sysdeps/i386/i686/mempcpy.S: New file.
1998-12-30 Geoff Keating <geoffk@ozemail.com.au>
Suppress parentheses warnings:
* sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
(DL_FIND_ARG_COMPONENTS): here,
* sysdeps/powerpc/dl-machine.c: here,
* sysdeps/powerpc/fclrexcpt.c (feclearexcept): here,
* sysdeps/powerpc/fesetround.c (fesetround): here,
* sysdeps/powerpc/feupdateenv.c (feupdateenv): here,
* sysdeps/powerpc/fraiseexcpt.c (feraiseexcept): here,
* sysdeps/powerpc/fsetexcptflg.c (fesetexceptflag): here,
* sysdeps/powerpc/s_rint.c (__rint): here,
* sysdeps/powerpc/s_rintf.c (__rintf): here,
* sysdeps/powerpc/w_sqrt.c (__sqrt): here,
* sysdeps/powerpc/w_sqrtf.c (__sqrtf): and here.
1998-12-30 Geoff Keating <geoffk@ozemail.com.au>
* wcsmbs/wcstold.c [__NO_LONG_DOUBLE_MATH]: Include wchar.h.
* wcsmbs/wcstold_l.c [__NO_LONG_DOUBLE_MATH]: Likewise. Also define
appropropriate prototypes, correct procedure names.
1998-12-30 Geoff Keating <geoffk@ozemail.com.au>
* sysdeps/generic/crypt-entry.c: Prototype __crypt_r, suppress
warning.
(__crypt_r): Add __restrict.
* sysdeps/generic/crypt.h: Remove internal routine. Add __restrict.
1998-12-31 Ulrich Drepper <drepper@cygnus.com>
* stdlib/longlong.h: Add missing #else in SPARC definitions.
1998-12-30 Andreas Jaeger <aj@arthur.rhein-neckar.de>
Patches by Ralf Baechle <ralf@gnu.org>:
* sysdeps/unix/sysv/linux/mips/sgidefs.h: Removed.
* sysdeps/unix/sysv/linux/mips/sys/asm.h: Removed.
* sysdeps/unix/sysv/linux/mips/sys/regdef.h: Removed.
* sysdeps/unix/sysv/linux/mips/sys/fpregdef.h: Removed.
* sysdeps/unix/sysv/linux/mips/regdef.h: Removed.
* sysdeps/unix/sysv/linux/mips/fpregdef.h: Removed.
* sysdeps/unix/sysv/linux/mips/Makefile: Remove delete files.
* sysdeps/unix/sysv/linux/mips/Dist: Remove deleted files.
* sysdeps/mips/sys/fpregdef.h: New files, enhanced versions of deleted
linux specific files.
* sysdeps/mips/sys/asm.h: Likewise.
* sysdeps/mips/sgidefs.h: Likewise.
* sysdeps/mips/fpregdef.h: Likewise.
* sysdeps/mips/regdef.h: Likewise.
* sysdeps/mips/Makefile: Add new headers.
* sysdeps/mips/Dist: Add new files.
* sysdeps/mips/fpu_control.h (_FPU_DEFAULT): Change value.
1998-12-28 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* iconvdata/Makefile: Remove variable assignments and rules that
are now auto-generated. Include $(objpfx)iconv-rules instead.
Btw, that removes a few typos.
(charmaps): New variable.
($(objpfx)iconv-rules): New target.
(gen-8bit-modules): Renamed from sed-generated-headers, remove .h
suffixes.
(gen-8bit-gap-modules): Renamed from awk-generated-headers, remove
.h suffixes.
(gen-special-modules): New variable.
(generated-modules): New variable.
(headers): Use it.
(before-compile): Likewise.
(generated): Likewise, and add iconv-rules.
* iconvdata/euc-cn.c: Renamed from euccn.c.
* iconvdata/euc-jp.c: Renamed from eucjp.c.
* iconvdata/euc-kr.c: Renamed from euckr.c.
* iconvdata/euc-tw.c: Renamed from euctw.c.
* iconvdata/iso_6937.c: Renamed from iso6937.c.
* iconvdata/iso_6937-2.c: Renamed from iso6937-2.c.
* iconvdata/t.61.c: Renamed from t61.c.
* iconvdata/Makefile (distribute): Adjusted for those renames.
Remove $(objpfx) from names.
1998-12-28 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* sysdeps/generic/hp-timing.h: Fix comment.
* sysdeps/generic/dl-hash.h: Likewise.
* sysdeps/i386/i686/hp-timing.h: Likewise.
1998-12-28 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* posix/fnmatch.c (fnmatch): Always pass unsigned char values to
FOLD macro.
1998-12-28 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* nss/db-Makefile ($(VAR_DB)/shadow.db): Fix last change.
1998-12-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Sync with
current Linux 2.1.132 kernel sources.
1998-12-28 Andreas Jaeger <aj@arthur.rhein-neckar.de>
Patches by Ralf Baechle <ralf@gnu.org> for Linux/MIPS:
* sysdeps/unix/sysv/linux/mips/syscalls.list: Add ipc, change
pread/pwrite and llseek calls.
* sysdeps/unix/sysv/linux/mips/sysdep.S: New file.
1998-12-29 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
* malloc/thread-m.h [_LIBC] : Fix for NO_THREADS case.
1999-01-01 02:19:19 +08:00
|
|
|
/* High precision, low overhead timing functions. Generic version.
|
2000-04-18 14:35:08 +08:00
|
|
|
Copyright (C) 1998, 2000 Free Software Foundation, Inc.
|
1998-12-28 01:29:47 +08:00
|
|
|
This file is part of the GNU C Library.
|
|
|
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
|
|
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
2001-07-06 12:58:11 +08:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
1998-12-28 01:29:47 +08:00
|
|
|
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2001-07-06 12:58:11 +08:00
|
|
|
Lesser General Public License for more details.
|
1998-12-28 01:29:47 +08:00
|
|
|
|
2001-07-06 12:58:11 +08:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2012-02-10 07:18:22 +08:00
|
|
|
License along with the GNU C Library; if not, see
|
|
|
|
<http://www.gnu.org/licenses/>. */
|
1998-12-28 01:29:47 +08:00
|
|
|
|
|
|
|
#ifndef _HP_TIMING_H
|
|
|
|
#define _HP_TIMING_H 1
|
|
|
|
|
|
|
|
|
|
|
|
/* There are no generic definitions for the times. We could write something
|
|
|
|
using the `gettimeofday' system call where available but the overhead of
|
|
|
|
the system call might be too high.
|
|
|
|
|
|
|
|
In case a platform supports timers in the hardware the following macros
|
|
|
|
and types must be defined:
|
|
|
|
|
|
|
|
- HP_TIMING_AVAIL: test for availability.
|
|
|
|
|
|
|
|
- HP_TIMING_INLINE: this macro is non-zero if the functionality is not
|
|
|
|
implemented using function calls but instead uses some inlined code
|
|
|
|
which might simply consist of a few assembler instructions. We have to
|
|
|
|
know this since we might want to use the macros here in places where we
|
|
|
|
cannot make function calls.
|
|
|
|
|
|
|
|
- hp_timing_t: This is the type for variables used to store the time
|
|
|
|
values.
|
|
|
|
|
|
|
|
- HP_TIMING_ZERO: clear `hp_timing_t' object.
|
|
|
|
|
|
|
|
- HP_TIMING_NOW: place timestamp for current time in variable given as
|
|
|
|
parameter.
|
|
|
|
|
|
|
|
- HP_TIMING_DIFF_INIT: do whatever is necessary to be able to use the
|
|
|
|
HP_TIMING_DIFF macro.
|
|
|
|
|
|
|
|
- HP_TIMING_DIFF: compute difference between two times and store it
|
|
|
|
in a third. Source and destination might overlap.
|
|
|
|
|
|
|
|
- HP_TIMING_ACCUM: add time difference to another variable. This might
|
|
|
|
be a bit more complicated to implement for some platforms as the
|
|
|
|
operation should be thread-safe and 64bit arithmetic on 32bit platforms
|
|
|
|
is not.
|
|
|
|
|
|
|
|
- HP_TIMING_ACCUM_NT: this is the variant for situations where we know
|
|
|
|
there are no threads involved.
|
|
|
|
|
|
|
|
- HP_TIMING_PRINT: write decimal representation of the timing value into
|
|
|
|
the given string. This operation need not be inline even though
|
|
|
|
HP_TIMING_INLINE is specified.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Provide dummy definitions. */
|
|
|
|
#define HP_TIMING_AVAIL (0)
|
|
|
|
#define HP_TIMING_INLINE (0)
|
|
|
|
typedef int hp_timing_t;
|
|
|
|
#define HP_TIMING_ZERO(Var)
|
|
|
|
#define HP_TIMING_NOW(var)
|
|
|
|
#define HP_TIMING_DIFF_INIT()
|
|
|
|
#define HP_TIMING_DIFF(Diff, Start, End)
|
|
|
|
#define HP_TIMING_ACCUM(Sum, Diff)
|
|
|
|
#define HP_TIMING_ACCUM_NT(Sum, Diff)
|
|
|
|
#define HP_TIMING_PRINT(Buf, Len, Val)
|
|
|
|
|
2000-04-18 14:35:08 +08:00
|
|
|
/* Since this implementation is not available we tell the user about it. */
|
|
|
|
#define HP_TIMING_NONAVAIL 1
|
|
|
|
|
1998-12-28 01:29:47 +08:00
|
|
|
#endif /* hp-timing.h */
|