Patchwork [1/2] softfloat: Add setter function for tininess detection mode

login
register
mail settings
Submitter Peter Maydell
Date April 12, 2011, 12:56 p.m.
Message ID <1302613001-17540-2-git-send-email-peter.maydell@linaro.org>
Download mbox | patch
Permalink /patch/90790/
State New
Headers show

Comments

Peter Maydell - April 12, 2011, 12:56 p.m.
Add a setter function for the underflow tininess detection mode,
in line with the similar functions for other parts of the float status
structure.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 fpu/softfloat.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Patch

diff --git a/fpu/softfloat.h b/fpu/softfloat.h
index 90f4250..618537e 100644
--- a/fpu/softfloat.h
+++ b/fpu/softfloat.h
@@ -211,6 +211,10 @@  typedef struct float_status {
 
 void set_float_rounding_mode(int val STATUS_PARAM);
 void set_float_exception_flags(int val STATUS_PARAM);
+INLINE void set_float_detect_tininess(int val STATUS_PARAM)
+{
+    STATUS(float_detect_tininess) = val;
+}
 INLINE void set_flush_to_zero(flag val STATUS_PARAM)
 {
     STATUS(flush_to_zero) = val;