From c29aca44614e12a310dd903dc4fd56b14a6b71c9 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Tue, 12 Apr 2011 13:56:40 +0100 Subject: [PATCH] softfloat: Add setter function for tininess detection mode 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 Signed-off-by: Aurelien Jarno --- fpu/softfloat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fpu/softfloat.h b/fpu/softfloat.h index 7abcbe899e..c7654d4c63 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;