From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:43424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9dSk-00050y-O9 for qemu-devel@nongnu.org; Tue, 12 Apr 2011 09:17:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9dSj-0008Ac-Pv for qemu-devel@nongnu.org; Tue, 12 Apr 2011 09:16:58 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:45562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9dSj-0008AY-Jc for qemu-devel@nongnu.org; Tue, 12 Apr 2011 09:16:57 -0400 From: Peter Maydell Date: Tue, 12 Apr 2011 13:56:40 +0100 Message-Id: <1302613001-17540-2-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1302613001-17540-1-git-send-email-peter.maydell@linaro.org> References: <1302613001-17540-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 1/2] softfloat: Add setter function for tininess detection mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: patches@linaro.org 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 --- fpu/softfloat.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) 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; -- 1.7.1