diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-12-25 15:45:49 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-12-25 15:45:49 +0000 |
commit | d3517d1383db5e4d5fd27700b779618767d1b744 (patch) | |
tree | 235146e16ac40c3d8b326e44c136833576b2241d /sys/arch/m88k | |
parent | 8ca5717eaa45d08be233b30ce9ff26ab82a903be (diff) |
Zero / Num should return a zero with the same sign as the divider.
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r-- | sys/arch/m88k/fpu/fpu_div.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/m88k/fpu/fpu_div.c b/sys/arch/m88k/fpu/fpu_div.c index 064afcb90cf..1e214b44b80 100644 --- a/sys/arch/m88k/fpu/fpu_div.c +++ b/sys/arch/m88k/fpu/fpu_div.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fpu_div.c,v 1.1 2007/12/25 00:29:49 miod Exp $ */ +/* $OpenBSD: fpu_div.c,v 1.2 2007/12/25 15:45:48 miod Exp $ */ /* * Copyright (c) 1992, 1993 @@ -178,6 +178,8 @@ fpu_div(struct fpemu *fe) if (ISINF(x) || ISZERO(x)) { if (x->fp_class == y->fp_class) return (fpu_newnan(fe, !ISINF(x))); + if (ISZERO(x)) + x->fp_sign = y->fp_sign; return (x); } |