diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-06-22 13:29:17 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-06-22 13:29:17 +0000 |
commit | 89c0d7ddd746986c948af7f0fb973dbe4ec9775a (patch) | |
tree | 1a715717b35f60d39b2d43a56e833c86e5bdcef5 /sim/common/sim-fpu.c | |
parent | 911b23336b9915405797925025033429a9d458ff (diff) | |
download | gdb-89c0d7ddd746986c948af7f0fb973dbe4ec9775a.zip gdb-89c0d7ddd746986c948af7f0fb973dbe4ec9775a.tar.gz gdb-89c0d7ddd746986c948af7f0fb973dbe4ec9775a.tar.bz2 |
Fix changelog
Diffstat (limited to 'sim/common/sim-fpu.c')
-rw-r--r-- | sim/common/sim-fpu.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/sim/common/sim-fpu.c b/sim/common/sim-fpu.c index 14505f6..845248a 100644 --- a/sim/common/sim-fpu.c +++ b/sim/common/sim-fpu.c @@ -2,7 +2,7 @@ of the floating point routines in libgcc1.c for targets without hardware floating point. */ -/* Copyright (C) 1994,1997-1998 Free Software Foundation, Inc. +/* Copyright 1994, 1997, 1998, 2003 Free Software Foundation, Inc. This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -2188,6 +2188,22 @@ sim_fpu_exp (const sim_fpu *d) } +INLINE_SIM_FPU (unsigned64) +sim_fpu_fraction (const sim_fpu *d) +{ + return d->fraction; +} + + +INLINE_SIM_FPU (unsigned64) +sim_fpu_guard (const sim_fpu *d, int is_double) +{ + unsigned64 rv; + unsigned64 guardmask = LSMASK64 (NR_GUARDS - 1, 0); + rv = (d->fraction & guardmask) >> NR_PAD; + return rv; +} + INLINE_SIM_FPU (int) sim_fpu_is (const sim_fpu *d) |