From f755993d040a8ea9c1acf758efce76da60870627 Mon Sep 17 00:00:00 2001 From: John Hauser Date: Fri, 10 Feb 2017 12:38:35 -0800 Subject: Release 3c. See "doc/TestFloat-history.html". --- source/verCases_inline.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'source/verCases_inline.c') diff --git a/source/verCases_inline.c b/source/verCases_inline.c index 0cdc479..cc6a2fb 100644 --- a/source/verCases_inline.c +++ b/source/verCases_inline.c @@ -1,12 +1,12 @@ /*============================================================================ -This C header file is part of TestFloat, Release 3b, a package of programs for +This C header file is part of TestFloat, Release 3c, a package of programs for testing the correctness of floating-point arithmetic complying with the IEEE Standard for Floating-Point, by John R. Hauser. -Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of -California. All rights reserved. +Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the +University of California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -75,6 +75,8 @@ bool f32_isNaN( float32_t a ) return 0x7F800000 < (uA.ui & 0x7FFFFFFF); } +#ifdef FLOAT64 + bool f64_same( float64_t a, float64_t b ) { union { uint64_t ui; float64_t f; } uA, uB; @@ -92,6 +94,8 @@ bool f64_isNaN( float64_t a ) < (uA.ui & UINT64_C( 0x7FFFFFFFFFFFFFFF )); } +#endif + #ifdef EXTFLOAT80 bool extF80M_same( const extFloat80_t *aPtr, const extFloat80_t *bPtr ) -- cgit v1.1