##// END OF EJS Templates
util: add getbefloat64...
util: add getbefloat64 As far as I can tell, this is wrong. double's format isn't strictly specified in the C standard, but the wikipedia article implies that platforms implementing optional Annex F "IEC 60559 floating-point arithmetic" will work correctly. My local C experts believe doing *((double *) &t) is a strict aliasing violation, and that using a union is also one. Doing memcpy appears to be the least-undefined behavior possible.

File last commit:

r0:9117c656 default
r24016:fb93721c default
Show More
__init__.py
0 lines | 0 B | text/x-python | PythonLexer