next up previous contents
: Bigfloat32 : 数, 多項式 の CMO : 再帰表現多項式の定義   目次

CPU依存の double

#define CMO_64BIT_MACHINE_DOUBLE   40
#define CMO_ARRAY_OF_64BIT_MACHINE_DOUBLE  41
#define CMO_128BIT_MACHINE_DOUBLE   42
#define CMO_ARRAY_OF_128BIT_MACHINE_DOUBLE  43

Group CMObject/MachineDouble requires CMObject/Primitive.
64bit machine double, Array of 64bit machine double 128bit machine double, Array of 128bit machine double $\in$ CMObject/MachineDouble

\begin{eqnarray*}
\mbox{64bit machine double} &:&
\mbox{({\tt CMO\_64BIT\_MACHI...
...る.}\\
& & \mbox{ \quad\quad byte order negotiation を用いる.}
\end{eqnarray*}

#define CMO_IEEE_DOUBLE_FLOAT 51

IEEE 準拠の float については, IEEE 754 double precision floating-point format (64 bit) の定義を見よ.

256.100006 の Intel Pentium の double64 での内部表現は cd 0c 80 43
256.100006 の PowerPC (Mac) の double64 での内部表現は 43 80 0c cd . この例でみるように byte の順序が逆である. エンジンスタートの時の byte order negotiation で byte の順序を指定する.



Nobuki Takayama 平成28年8月27日