Fix build on Apple Clang 21 with -Wuninitialized-const-pointer (#48)
The RISC-V port neither initializes nor consumes the commonNaN struct, but this raises Clang’s hackles when const pointers to these uninitialized structs are passed.
Fix by initializing the struct. This has no performance impact since the callees are always inlined.
See #46
Signed-off-by: Andrew Waterman andrew@sifive.com
Mirror of ucb-bar/berkeley-softfloat-3
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Package Overview for Berkeley SoftFloat Release 3e
John R. Hauser
2018 January 20
Berkeley SoftFloat is a software implementation of binary floating-point that conforms to the IEEE Standard for Floating-Point Arithmetic. SoftFloat is distributed in the form of C source code. Building the SoftFloat sources generates a library file (typically
softfloat.aorlibsoftfloat.a) containing the floating-point subroutines.The SoftFloat package is documented in the following files in the
docsubdirectory:Other files in the package comprise the source code for SoftFloat.