Skip to content

Commit

Permalink
* sysdeps/powerpc/powerpc32/fpu/s_ceil.S (TWO52.0): Delete.
Browse files Browse the repository at this point in the history
	* sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (TWO23.0): Delete.
	* sysdeps/powerpc/powerpc32/fpu/s_floor.S (TWO52.0): Delete.
	* sysdeps/powerpc/powerpc32/fpu/s_floorf.S (TWO23.0): Delete.
	* sysdeps/powerpc/powerpc32/fpu/s_lround.S: Comment typo.
	(NEGZERO.0, POINTFIVE.0): Delete.
	* sysdeps/powerpc/powerpc32/fpu/s_rint.S (TWO52.0): Delete.
	* sysdeps/powerpc/powerpc32/fpu/s_rintf.S (TWO23.0): Delete.
	* sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Code in .text.
	(TWO52.0, POINTFIVE.0): Delete.
	* sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Code in .text.
	(TWO23.0, POINTFIVE.0): Delete.
	* sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Code in .text.
	(TWO52.0): Delete.
	* sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Code in .text.
	(TWO23.0): Delete.
	* sysdeps/powerpc/powerpc32/memset.S (memset): Formatting.
  • Loading branch information
Ulrich Drepper committed May 21, 2005
1 parent 363dd97 commit f7d78e1
Show file tree
Hide file tree
Showing 19 changed files with 110 additions and 159 deletions.
20 changes: 20 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
2005-05-17 Alan Modra <amodra@bigpond.net.au>

* sysdeps/powerpc/powerpc32/fpu/s_ceil.S (TWO52.0): Delete.
* sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (TWO23.0): Delete.
* sysdeps/powerpc/powerpc32/fpu/s_floor.S (TWO52.0): Delete.
* sysdeps/powerpc/powerpc32/fpu/s_floorf.S (TWO23.0): Delete.
* sysdeps/powerpc/powerpc32/fpu/s_lround.S: Comment typo.
(NEGZERO.0, POINTFIVE.0): Delete.
* sysdeps/powerpc/powerpc32/fpu/s_rint.S (TWO52.0): Delete.
* sysdeps/powerpc/powerpc32/fpu/s_rintf.S (TWO23.0): Delete.
* sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Code in .text.
(TWO52.0, POINTFIVE.0): Delete.
* sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Code in .text.
(TWO23.0, POINTFIVE.0): Delete.
* sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Code in .text.
(TWO52.0): Delete.
* sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Code in .text.
(TWO23.0): Delete.
* sysdeps/powerpc/powerpc32/memset.S (memset): Formatting.

2005-05-19 Richard Henderson <rth@redhat.com>

* sysdeps/unix/clock_gettime.c (clock_gettime): Fix typo around
Expand Down
6 changes: 6 additions & 0 deletions linuxthreads/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2005-05-19 Richard Henderson <rth@redhat.com>

* sysdeps/ia64/pspinlock.c (__pthread_spin_lock): Use
__sync_val_compare_and_swap, not explicit _si variant.
(__pthread_spin_trylock): Likewise.

2005-05-05 Daniel Jacobowitz <dan@codesourcery.com>

* sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Remove explicit
Expand Down
11 changes: 11 additions & 0 deletions nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
2005-05-20 Jakub Jelinek <jakub@redhat.com>

* sysdeps/i386/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN): Define to
size/alignment of struct pthread rather than tcbhead_t.
* sysdeps/x86_64/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
Likewise.
* sysdeps/s390/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
Likewise.
* sysdeps/sparc/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN):
Likewise.

2005-05-19 Richard Henderson <rth@redhat.com>

* sysdeps/ia64/pthread_spin_lock.c (pthread_spin_lock): Use
Expand Down
10 changes: 6 additions & 4 deletions nptl/sysdeps/i386/tls.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Definition for thread-local data handling. nptl/i386 version.
Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -102,11 +102,13 @@ union user_desc_init
/* Get the thread descriptor definition. */
# include <nptl/descr.h>

/* This is the size of the initial TCB. */
# define TLS_INIT_TCB_SIZE sizeof (tcbhead_t)
/* This is the size of the initial TCB. Can't be just sizeof (tcbhead_t),
because NPTL getpid, __libc_alloca_cutoff etc. need (almost) the whole
struct pthread even when not linked with -lpthread. */
# define TLS_INIT_TCB_SIZE sizeof (struct pthread)

/* Alignment requirements for the initial TCB. */
# define TLS_INIT_TCB_ALIGN __alignof__ (tcbhead_t)
# define TLS_INIT_TCB_ALIGN __alignof__ (struct pthread)

/* This is the size of the TCB. */
# define TLS_TCB_SIZE sizeof (struct pthread)
Expand Down
8 changes: 5 additions & 3 deletions nptl/sysdeps/s390/tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ typedef struct
/* Get the thread descriptor definition. */
# include <nptl/descr.h>

/* This is the size of the initial TCB. */
# define TLS_INIT_TCB_SIZE sizeof (tcbhead_t)
/* This is the size of the initial TCB. Can't be just sizeof (tcbhead_t),
because NPTL getpid, __libc_alloca_cutoff etc. need (almost) the whole
struct pthread even when not linked with -lpthread. */
# define TLS_INIT_TCB_SIZE sizeof (struct pthread)

/* Alignment requirements for the initial TCB. */
# define TLS_INIT_TCB_ALIGN __alignof__ (tcbhead_t)
# define TLS_INIT_TCB_ALIGN __alignof__ (struct pthread)

/* This is the size of the TCB. */
# define TLS_TCB_SIZE sizeof (struct pthread)
Expand Down
8 changes: 5 additions & 3 deletions nptl/sysdeps/sparc/tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ typedef struct

register struct pthread *__thread_self __asm__("%g7");

/* This is the size of the initial TCB. */
# define TLS_INIT_TCB_SIZE sizeof (tcbhead_t)
/* This is the size of the initial TCB. Can't be just sizeof (tcbhead_t),
because NPTL getpid, __libc_alloca_cutoff etc. need (almost) the whole
struct pthread even when not linked with -lpthread. */
# define TLS_INIT_TCB_SIZE sizeof (struct pthread)

/* Alignment requirements for the initial TCB. */
# define TLS_INIT_TCB_ALIGN __alignof__ (tcbhead_t)
# define TLS_INIT_TCB_ALIGN __alignof__ (struct pthread)

/* This is the size of the TCB. */
# define TLS_TCB_SIZE sizeof (struct pthread)
Expand Down
10 changes: 6 additions & 4 deletions nptl/sysdeps/x86_64/tls.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Definition for thread-local data handling. nptl/x86_64 version.
Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -82,11 +82,13 @@ typedef struct
# endif
#endif

/* This is the size of the initial TCB. */
# define TLS_INIT_TCB_SIZE sizeof (tcbhead_t)
/* This is the size of the initial TCB. Can't be just sizeof (tcbhead_t),
because NPTL getpid, __libc_alloca_cutoff etc. need (almost) the whole
struct pthread even when not linked with -lpthread. */
# define TLS_INIT_TCB_SIZE sizeof (struct pthread)

/* Alignment requirements for the initial TCB. */
# define TLS_INIT_TCB_ALIGN __alignof__ (tcbhead_t)
# define TLS_INIT_TCB_ALIGN __alignof__ (struct pthread)

/* This is the size of the TCB. */
# define TLS_TCB_SIZE sizeof (struct pthread)
Expand Down
8 changes: 0 additions & 8 deletions sysdeps/powerpc/powerpc32/fpu/s_ceil.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@

#include <sysdep.h>

.section .rodata
.align 3
.type TWO52.0,@object
.size TWO52.0,8
TWO52.0:
.long 0x43300000
.long 0

.section .rodata.cst8,"aM",@progbits,8
.align 3
.LC0: /* 2**52 */
Expand Down
7 changes: 0 additions & 7 deletions sysdeps/powerpc/powerpc32/fpu/s_ceilf.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@

#include <sysdep.h>

.section .rodata
.align 2
.type TWO23.0,@object
.size TWO23.0,4
TWO23.0:
.long 0x4b000000

.section .rodata.cst4,"aM",@progbits,4
.align 2
.LC0: /* 2**23 */
Expand Down
8 changes: 0 additions & 8 deletions sysdeps/powerpc/powerpc32/fpu/s_floor.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@

#include <sysdep.h>

.section .rodata
.align 3
.type TWO52.0,@object
.size TWO52.0,8
TWO52.0:
.long 0x43300000
.long 0

.section .rodata.cst8,"aM",@progbits,8
.align 3
.LC0: /* 2**52 */
Expand Down
7 changes: 0 additions & 7 deletions sysdeps/powerpc/powerpc32/fpu/s_floorf.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@

#include <sysdep.h>

.section .rodata
.align 2
.type TWO23.0,@object
.size TWO23.0,4
TWO23.0:
.long 0x4b000000

.section .rodata.cst4,"aM",@progbits,4
.align 2
.LC0: /* 2**23 */
Expand Down
17 changes: 2 additions & 15 deletions sysdeps/powerpc/powerpc32/fpu/s_lround.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,6 @@

#include <sysdep.h>

.section .rodata
.align 3
.type NEGZERO.0,@object
.size NEGZERO.0,8
NEGZERO.0:
.long 0x00000000
.long 0
.type POINTFIVE.0,@object
.size POINTFIVE.0,8
POINTFIVE.0:
.long 0x3fe00000
.long 0

.section .rodata.cst8,"aM",@progbits,8
.align 3
.LC0: /* 0.0 */
Expand Down Expand Up @@ -78,8 +65,8 @@ ENTRY (__lround)
.L9:
fctiwz fp2,fp1 /* Convert To Integer DW lround toward 0. */
stfd fp2,-8(r1)
nop /* Insure the following load is in a different dispatch group */
nop /* to avoid pipe stall on POWER4&5. */
nop /* Ensure the following load is in a different dispatch */
nop /* group to avoid pipe stall on POWER4&5. */
nop
lwz r3,-4(r1)
blr
Expand Down
8 changes: 0 additions & 8 deletions sysdeps/powerpc/powerpc32/fpu/s_rint.S
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@

#include <sysdep.h>

.section .rodata
.align 3
.type TWO52.0,@object
.size TWO52.0,8
TWO52.0:
.long 0x43300000
.long 0

.section .rodata.cst8,"aM",@progbits,8
.align 3
.LC0: /* 2**52 */
Expand Down
8 changes: 0 additions & 8 deletions sysdeps/powerpc/powerpc32/fpu/s_rintf.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@

#include <sysdep.h>


.section .rodata
.align 2
.type TWO23.0,@object
.size TWO23.0,4
TWO23.0:
.long 0x4b000000

.section .rodata.cst4,"aM",@progbits,4
.align 2
.LC0: /* 2**23 */
Expand Down
14 changes: 1 addition & 13 deletions sysdeps/powerpc/powerpc32/fpu/s_round.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,6 @@

#include <sysdep.h>

.section .rodata
.align 3
.type TWO52.0,@object
.size TWO52.0,8
TWO52.0:
.long 0x43300000
.long 0
.type POINTFIVE.0,@object
.size POINTFIVE.0,8
POINTFIVE.0:
.long 0x3fe00000
.long 0

.section .rodata.cst8,"aM",@progbits,8
.align 3
.LC0: /* 2**52 */
Expand All @@ -51,6 +38,7 @@ POINTFIVE.0:
"Round toward Zero" mode and round by adding +-0.5 before rounding
to the integer value. */

.section ".text"
ENTRY (__round)
mffs fp11 /* Save current FPU rounding mode. */
#ifdef SHARED
Expand Down
12 changes: 1 addition & 11 deletions sysdeps/powerpc/powerpc32/fpu/s_roundf.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@

#include <sysdep.h>

.section .rodata
.align 2
.type TWO23.0,@object
.size TWO23.0,4
TWO23.0:
.long 0x4b000000
.type POINTFIVE.0,@object
.size POINTFIVE.0,4
POINTFIVE.0:
.long 0x3f000000

.section .rodata.cst4,"aM",@progbits,4
.align 2
.LC0: /* 2**23 */
Expand All @@ -47,6 +36,7 @@ POINTFIVE.0:
"Round toward Zero" mode and round by adding +-0.5 before rounding
to the integer value. */

.section ".text"
ENTRY (__roundf )
mffs fp11 /* Save current FPU rounding mode. */
#ifdef SHARED
Expand Down
9 changes: 1 addition & 8 deletions sysdeps/powerpc/powerpc32/fpu/s_trunc.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@

#include <sysdep.h>

.section .rodata
.align 3
.type TWO52.0,@object
.size TWO52.0,8
TWO52.0:
.long 0x43300000
.long 0

.section .rodata.cst8,"aM",@progbits,8
.align 3
.LC0: /* 2**52 */
Expand All @@ -40,6 +32,7 @@ TWO52.0:
We set "round toward Zero" mode and trunc by adding +-2**52 then
subtracting +-2**52. */

.section ".text"
ENTRY (__trunc)
mffs fp11 /* Save current FPU rounding mode. */
#ifdef SHARED
Expand Down
8 changes: 1 addition & 7 deletions sysdeps/powerpc/powerpc32/fpu/s_truncf.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@

#include <sysdep.h>

.section .rodata
.align 2
.type TWO23.0,@object
.size TWO23.0,2
TWO23.0:
.long 0x4b000000

.section .rodata.cst4,"aM",@progbits,4
.align 2
.LC0: /* 2**23 */
Expand All @@ -38,6 +31,7 @@ TWO23.0:
We set "round toward Zero" mode and trunc by adding +-2**23 then
subtracting +-2**23. */

.section ".text"
ENTRY (__truncf)
mffs fp11 /* Save current FPU rounding mode. */
#ifdef SHARED
Expand Down
Loading

0 comments on commit f7d78e1

Please sign in to comment.