Re:Rust and C++ Interoperability in Chrome
by rightbyte on Wednesday August 19, 2020 @04:49PM
(#24216223)
Ye, everyone know it is:
that is the float closest to pi or that there is the GNU extension USE_FUNKY_DEFINES-something with M_PI for cmath. (I know you meant constexpr:ions).
[ Parent
| on HN ]
Re:Rust and C++ Interoperability in Chrome
by Const-me on Thursday August 20, 2020 @07:12AM
(#24222017)
Long time ago when computers were 32-bit I used to write something like this in C++:
inline double pi()
{
__asm fldpi;
}
On old enough compilers, this will get you 80-bit version of pi, more precision than even double. Completely useless now, modern compilers no longer emit x87 code.