一个 scalar 等于多少个字节?
-
求问各位大神,一个 scalar 等于多少个字节?
为啥我电脑上测出来是 16 bytes?
scalar 是个 long doble 么?
-
在
OpenFOAM/primitives/Scalar/scalar/scalarFwd.H
中://- A typedef for float typedef float floatScalar; //- A typedef for double typedef double doubleScalar; #if defined(WM_SP) typedef floatScalar scalar; typedef floatScalar solveScalar; #elif defined(WM_SPDP) typedef floatScalar scalar; typedef doubleScalar solveScalar; #elif defined(WM_DP) typedef doubleScalar scalar; typedef doubleScalar solveScalar; #else // #error "PRECISION must be set to WM_SP, WM_SPDP or WM_DP" #endif
-
懂了。谢谢大佬