c - Is FLT_RADIX ever not 2 in c11 for modern general purpose computers? -


that's pretty question in title. seems totally unnatural else used. in researching found there historical examples of hardware support base 10, more modern examples of ibm power6 , system z9. in these cases, not know if flt_radix 10 on mainstream c compilers. particular concern writting code application ever ran on general purpose computers, , know if can statically assert "flt_radix==2" without serious concern, how statically asserting "!(unsigned char)256".

annex f, "optional" part of c standard that's non-optional serious implementation floating point used, requires ieee single , double precision (binary32 , binary64) float , double, respectively, flt_radix should 2. on systems new decimal float stuff supported, it's separate extended type; flt_radix==10 not used it.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -