From 1f1b28179f4ddd66baa43256a12d2d03840d1690 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 22 Jun 2003 13:36:26 +0000 Subject: 2003-06-22 Andrew Cagney From matthew green : * sim-fpu.h: Update copyright. (sim_fpu_fraction, sim_fpu_guard): New prototypes. * sim-fpu.c: Update copyright. (sim_fpu_fraction, sim_fpu_guard): New inline functions. --- sim/common/sim-fpu.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sim/common/sim-fpu.h') diff --git a/sim/common/sim-fpu.h b/sim/common/sim-fpu.h index 755e194..579fbaa 100644 --- a/sim/common/sim-fpu.h +++ b/sim/common/sim-fpu.h @@ -1,5 +1,7 @@ /* Simulator Floating-point support. - Copyright (C) 1997, 1998, 2002 Free Software Foundation, Inc. + + Copyright 1997, 1998, 2002, 2003 Free Software Foundation, Inc. + Contributed by Cygnus Support. This file is part of GDB, the GNU debugger. @@ -42,7 +44,7 @@ with this program; if not, write to the Free Software Foundation, Inc., For unpacked structures (passed by value and reference), the code quality of GCC-2.7 (on x86) for each alternative was compared. - Needless to say the results, while better then for a packed 64 bit + Needless to say the results, while better than for a packed 64 bit object, were still poor (GCC had only limited support for the optimization of references to structure members). Regardless, the struct-by-ref alternative achieved better results when compiled @@ -316,6 +318,8 @@ INLINE_SIM_FPU (int) sim_fpu_is_denorm (const sim_fpu *s); /* !zero */ INLINE_SIM_FPU (int) sim_fpu_sign (const sim_fpu *s); INLINE_SIM_FPU (int) sim_fpu_exp (const sim_fpu *s); +INLINE_SIM_FPU (unsigned64) sim_fpu_fraction (const sim_fpu *s); +INLINE_SIM_FPU (unsigned64) sim_fpu_guard (const sim_fpu *s, int is_double); -- cgit v1.1