Skip to content

Commit

Permalink
* soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
Browse files Browse the repository at this point in the history
* soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int 
as the return type.  Change type of "r" variable to CMPtype. 
* soft-fp/eqsf2.c (__eqsf2): Likewise. 
* soft-fp/eqtf2.c (__eqtf2): Likewise. 
* soft-fp/gedf2.c (__gedf2): Likewise. 
* soft-fp/gesf2.c (__gesf2): Likewise. 
* soft-fp/getf2.c (__getf2): Likewise. 
* soft-fp/ledf2.c (__ledf2): Likewise. 
* soft-fp/lesf2.c (__lesf2): Likewise. 
* soft-fp/letf2.c (__letf2): Likewise. 
* soft-fp/unorddf2 (__unorddf2): Likewise. 
* soft-fp/unordsf2 (__unordsf2): Likewise. 
* soft-fp/unordtf2 (__unordtf2): Likewise.
2007-06-14 Uros Bizjak <[email protected]>

	* soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
	* soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
	as the return type.  Change type of "r" variable to CMPtype.
	* soft-fp/eqsf2.c (__eqsf2): Likewise.
	* soft-fp/eqtf2.c (__eqtf2): Likewise.
	* soft-fp/gedf2.c (__gedf2): Likewise.
	* soft-fp/gesf2.c (__gesf2): Likewise.
	* soft-fp/getf2.c (__getf2): Likewise.
	* soft-fp/ledf2.c (__ledf2): Likewise.
	* soft-fp/lesf2.c (__lesf2): Likewise.
	* soft-fp/letf2.c (__letf2): Likewise.
	* soft-fp/unorddf2 (__unorddf2): Likewise.
	* soft-fp/unordsf2 (__unordsf2): Likewise.
	* soft-fp/unordtf2 (__unordtf2): Likewise.
  • Loading branch information
jakubjelinek committed Jun 14, 2007
1 parent 90cd241 commit ae8e81f
Show file tree
Hide file tree
Showing 14 changed files with 58 additions and 40 deletions.
17 changes: 17 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
2007-06-14 Uros Bizjak <[email protected]>

* soft-fp/soft-fp.h (CMPtype): Define to "int" if undefined.
* soft-fp/eqdf2.c (__eqdf2): Use CMPtype instead of int
as the return type. Change type of "r" variable to CMPtype.
* soft-fp/eqsf2.c (__eqsf2): Likewise.
* soft-fp/eqtf2.c (__eqtf2): Likewise.
* soft-fp/gedf2.c (__gedf2): Likewise.
* soft-fp/gesf2.c (__gesf2): Likewise.
* soft-fp/getf2.c (__getf2): Likewise.
* soft-fp/ledf2.c (__ledf2): Likewise.
* soft-fp/lesf2.c (__lesf2): Likewise.
* soft-fp/letf2.c (__letf2): Likewise.
* soft-fp/unorddf2 (__unorddf2): Likewise.
* soft-fp/unordsf2 (__unordsf2): Likewise.
* soft-fp/unordtf2 (__unordtf2): Likewise.

2007-06-09 Ulrich Drepper <[email protected]>

* elf/do-lookup.h (do_lookup_x): Read r_nlist before r_list and
Expand Down
6 changes: 3 additions & 3 deletions soft-fp/eqdf2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Software floating-point emulation.
Return 0 iff a == b, 1 otherwise
Copyright (C) 1997,1999,2006 Free Software Foundation, Inc.
Copyright (C) 1997,1999,2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson ([email protected]) and
Jakub Jelinek ([email protected]).
Expand Down Expand Up @@ -32,11 +32,11 @@
#include "soft-fp.h"
#include "double.h"

int __eqdf2(DFtype a, DFtype b)
CMPtype __eqdf2(DFtype a, DFtype b)
{
FP_DECL_EX;
FP_DECL_D(A); FP_DECL_D(B);
int r;
CMPtype r;

FP_UNPACK_RAW_D(A, a);
FP_UNPACK_RAW_D(B, b);
Expand Down
6 changes: 3 additions & 3 deletions soft-fp/eqsf2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Software floating-point emulation.
Return 0 iff a == b, 1 otherwise
Copyright (C) 1997,1999,2006 Free Software Foundation, Inc.
Copyright (C) 1997,1999,2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson ([email protected]) and
Jakub Jelinek ([email protected]).
Expand Down Expand Up @@ -32,11 +32,11 @@
#include "soft-fp.h"
#include "single.h"

int __eqsf2(SFtype a, SFtype b)
CMPtype __eqsf2(SFtype a, SFtype b)
{
FP_DECL_EX;
FP_DECL_S(A); FP_DECL_S(B);
int r;
CMPtype r;

FP_UNPACK_RAW_S(A, a);
FP_UNPACK_RAW_S(B, b);
Expand Down
6 changes: 3 additions & 3 deletions soft-fp/eqtf2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Software floating-point emulation.
Return 0 iff a == b, 1 otherwise
Copyright (C) 1997,1999,2006 Free Software Foundation, Inc.
Copyright (C) 1997,1999,2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson ([email protected]) and
Jakub Jelinek ([email protected]).
Expand Down Expand Up @@ -32,11 +32,11 @@
#include "soft-fp.h"
#include "quad.h"

int __eqtf2(TFtype a, TFtype b)
CMPtype __eqtf2(TFtype a, TFtype b)
{
FP_DECL_EX;
FP_DECL_Q(A); FP_DECL_Q(B);
int r;
CMPtype r;

FP_UNPACK_RAW_Q(A, a);
FP_UNPACK_RAW_Q(B, b);
Expand Down
6 changes: 3 additions & 3 deletions soft-fp/gedf2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Software floating-point emulation.
Return 0 iff a == b, 1 iff a > b, -2 iff a ? b, -1 iff a < b
Copyright (C) 1997,1999,2006 Free Software Foundation, Inc.
Copyright (C) 1997,1999,2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson ([email protected]) and
Jakub Jelinek ([email protected]).
Expand Down Expand Up @@ -32,11 +32,11 @@
#include "soft-fp.h"
#include "double.h"

int __gedf2(DFtype a, DFtype b)
CMPtype __gedf2(DFtype a, DFtype b)
{
FP_DECL_EX;
FP_DECL_D(A); FP_DECL_D(B);
int r;
CMPtype r;

FP_UNPACK_RAW_D(A, a);
FP_UNPACK_RAW_D(B, b);
Expand Down
6 changes: 3 additions & 3 deletions soft-fp/gesf2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Software floating-point emulation.
Return 0 iff a == b, 1 iff a > b, -2 iff a ? b, -1 iff a < b
Copyright (C) 1997,1999,2006 Free Software Foundation, Inc.
Copyright (C) 1997,1999,2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson ([email protected]) and
Jakub Jelinek ([email protected]).
Expand Down Expand Up @@ -32,11 +32,11 @@
#include "soft-fp.h"
#include "single.h"

int __gesf2(SFtype a, SFtype b)
CMPtype __gesf2(SFtype a, SFtype b)
{
FP_DECL_EX;
FP_DECL_S(A); FP_DECL_S(B);
int r;
CMPtype r;

FP_UNPACK_RAW_S(A, a);
FP_UNPACK_RAW_S(B, b);
Expand Down
6 changes: 3 additions & 3 deletions soft-fp/getf2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Software floating-point emulation.
Return 0 iff a == b, 1 iff a > b, -2 iff a ? b, -1 iff a < b
Copyright (C) 1997,1999,2006 Free Software Foundation, Inc.
Copyright (C) 1997,1999,2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson ([email protected]) and
Jakub Jelinek ([email protected]).
Expand Down Expand Up @@ -32,11 +32,11 @@
#include "soft-fp.h"
#include "quad.h"

int __getf2(TFtype a, TFtype b)
CMPtype __getf2(TFtype a, TFtype b)
{
FP_DECL_EX;
FP_DECL_Q(A); FP_DECL_Q(B);
int r;
CMPtype r;

FP_UNPACK_RAW_Q(A, a);
FP_UNPACK_RAW_Q(B, b);
Expand Down
6 changes: 3 additions & 3 deletions soft-fp/ledf2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Software floating-point emulation.
Return 0 iff a == b, 1 iff a > b, 2 iff a ? b, -1 iff a < b
Copyright (C) 1997,1999,2006 Free Software Foundation, Inc.
Copyright (C) 1997,1999,2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson ([email protected]) and
Jakub Jelinek ([email protected]).
Expand Down Expand Up @@ -32,11 +32,11 @@
#include "soft-fp.h"
#include "double.h"

int __ledf2(DFtype a, DFtype b)
CMPtype __ledf2(DFtype a, DFtype b)
{
FP_DECL_EX;
FP_DECL_D(A); FP_DECL_D(B);
int r;
CMPtype r;

FP_UNPACK_RAW_D(A, a);
FP_UNPACK_RAW_D(B, b);
Expand Down
6 changes: 3 additions & 3 deletions soft-fp/lesf2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Software floating-point emulation.
Return 0 iff a == b, 1 iff a > b, 2 iff a ? b, -1 iff a < b
Copyright (C) 1997,1999,2006 Free Software Foundation, Inc.
Copyright (C) 1997,1999,2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson ([email protected]) and
Jakub Jelinek ([email protected]).
Expand Down Expand Up @@ -32,11 +32,11 @@
#include "soft-fp.h"
#include "single.h"

int __lesf2(SFtype a, SFtype b)
CMPtype __lesf2(SFtype a, SFtype b)
{
FP_DECL_EX;
FP_DECL_S(A); FP_DECL_S(B);
int r;
CMPtype r;

FP_UNPACK_RAW_S(A, a);
FP_UNPACK_RAW_S(B, b);
Expand Down
6 changes: 3 additions & 3 deletions soft-fp/letf2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Software floating-point emulation.
Return 0 iff a == b, 1 iff a > b, 2 iff a ? b, -1 iff a < b
Copyright (C) 1997,1999,2006 Free Software Foundation, Inc.
Copyright (C) 1997,1999,2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson ([email protected]) and
Jakub Jelinek ([email protected]).
Expand Down Expand Up @@ -32,11 +32,11 @@
#include "soft-fp.h"
#include "quad.h"

int __letf2(TFtype a, TFtype b)
CMPtype __letf2(TFtype a, TFtype b)
{
FP_DECL_EX;
FP_DECL_Q(A); FP_DECL_Q(B);
int r;
CMPtype r;

FP_UNPACK_RAW_Q(A, a);
FP_UNPACK_RAW_Q(B, b);
Expand Down
6 changes: 5 additions & 1 deletion soft-fp/soft-fp.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Software floating-point emulation.
Copyright (C) 1997,1998,1999,2000,2002,2003,2005,2006
Copyright (C) 1997,1998,1999,2000,2002,2003,2005,2006,2007
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson ([email protected]),
Expand Down Expand Up @@ -189,6 +189,10 @@ typedef unsigned int UHWtype __attribute__((mode(HI)));
typedef USItype UHWtype;
#endif

#ifndef CMPtype
#define CMPtype int
#endif

#define SI_BITS (__CHAR_BIT__ * (int)sizeof(SItype))
#define DI_BITS (__CHAR_BIT__ * (int)sizeof(DItype))

Expand Down
7 changes: 3 additions & 4 deletions soft-fp/unorddf2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Software floating-point emulation.
Return 1 iff a or b is a NaN, 0 otherwise.
Copyright (C) 2006 Free Software Foundation, Inc.
Copyright (C) 2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Joseph Myers ([email protected]).
Expand Down Expand Up @@ -31,11 +31,10 @@
#include "soft-fp.h"
#include "double.h"

int
__unorddf2(DFtype a, DFtype b)
CMPtype __unorddf2(DFtype a, DFtype b)
{
FP_DECL_D(A); FP_DECL_D(B);
int r;
CMPtype r;

FP_UNPACK_RAW_D(A, a);
FP_UNPACK_RAW_D(B, b);
Expand Down
7 changes: 3 additions & 4 deletions soft-fp/unordsf2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Software floating-point emulation.
Return 1 iff a or b is a NaN, 0 otherwise.
Copyright (C) 2006 Free Software Foundation, Inc.
Copyright (C) 2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Joseph Myers ([email protected]).
Expand Down Expand Up @@ -31,12 +31,11 @@
#include "soft-fp.h"
#include "single.h"

int
__unordsf2(SFtype a, SFtype b)
CMPtype __unordsf2(SFtype a, SFtype b)
{
FP_DECL_S(A);
FP_DECL_S(B);
int r;
CMPtype r;

FP_UNPACK_RAW_S(A, a);
FP_UNPACK_RAW_S(B, b);
Expand Down
7 changes: 3 additions & 4 deletions soft-fp/unordtf2.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Software floating-point emulation.
Return 1 iff a or b is a NaN, 0 otherwise.
Copyright (C) 2006 Free Software Foundation, Inc.
Copyright (C) 2006,2007 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Joseph Myers ([email protected]).
Expand Down Expand Up @@ -31,12 +31,11 @@
#include "soft-fp.h"
#include "quad.h"

int
__unordtf2(TFtype a, TFtype b)
CMPtype __unordtf2(TFtype a, TFtype b)
{
FP_DECL_Q(A);
FP_DECL_Q(B);
int r;
CMPtype r;

FP_UNPACK_RAW_Q(A, a);
FP_UNPACK_RAW_Q(B, b);
Expand Down

0 comments on commit ae8e81f

Please sign in to comment.