A lightly forked version of UCB's testfloat used by the QEMU project.
Find a file
Olaf Hering e7af9751d9 Fix -Wreturn-type errors in fNNRandom
In case global CFLAGS contains -Werror=return-type, compilation fails as
shown below. For some reason gcc is unable to recognize the possible
range of values in the switch statements, which can only ever be between
zero and seven.

Assist the compiler by adding a default statement. This fixes
compilation in openSUSE Tumbleweed, which adds -Werror=return-type to
global CFLAGS.

source/genCases_f64.c: In function 'f64Random':
source/genCases_f64.c:559:1: error: control reaches end of non-void function [-Werror=return-type]

source/genCases_f32.c: In function 'f32Random':
source/genCases_f32.c:417:1: error: control reaches end of non-void function [-Werror=return-type]

source/genCases_f16.c: In function 'f16Random':
source/genCases_f16.c:336:1: error: control reaches end of non-void function [-Werror=return-type]

Signed-off-by: Olaf Hering <olaf@aepfle.de>
2023-07-21 15:36:33 +02:00
build Release 3e. See "doc/TestFloat-history.html". 2018-01-26 12:52:36 -08:00
doc Release 3e. See "doc/TestFloat-history.html". 2018-01-26 12:52:36 -08:00
source Fix -Wreturn-type errors in fNNRandom 2023-07-21 15:36:33 +02:00
.gitignore Add .gitignore patterns for compiler output. 2015-10-21 08:26:46 -04:00
COPYING.txt Release 3e. See "doc/TestFloat-history.html". 2018-01-26 12:52:36 -08:00
README.html Release 3e. See "doc/TestFloat-history.html". 2018-01-26 12:52:36 -08:00
README.md Release 3e. See "doc/TestFloat-history.html". 2018-01-26 12:52:36 -08:00
README.txt Release 3e. See "doc/TestFloat-history.html". 2018-01-26 12:52:36 -08:00

Package Overview for Berkeley TestFloat Release 3e

John R. Hauser
2018 January 20

Berkeley TestFloat is a small collection of programs for testing that an implementation of binary floating-point conforms to the IEEE Standard for Floating-Point Arithmetic. TestFloat is distributed in the form of C source code.

The TestFloat package is documented in the following files in the doc subdirectory:

Other files in the package comprise the source code for TestFloat.