ã¨ã³ãã£ã¢ã³å¤æ
PC Watch ã®è¨äºããï¼
Intel CPUãã¨ã³ãã£ã¢ã³å¤æå½ä»¤ãåãã?
ã ãããããIntelãä»å¾ã®CPUã«ãCellã®ãããªãã¨ã³ãã£ã¢ã³å¤æå½ä»¤ã¨å¤æã¦ããããå®è£ ãããªãã話ã¯éã£ã¦ãããããã¯ãä½ã確証ã®ãã話ã§ã¯ãªããããã¾ã§å¯è½æ§ã¨ãã¦ã®è©±ã ããä¾ãã°ãæ¥å¹´ã®ãYonah(ã¨ã)ã以éã®CPUã«ãæ°å½ä»¤ã¨ãã¦ã¨ã³ãã£ã¢ã³å¤æãå®è£ ãããªããx86 Macã§ã®PowerPCã¨ãã¥ã¬ã¼ã·ã§ã³ã®æ§è½ã¯å¤§å¹ ã«æ¹åããããAppleããæ°CPUã®ã¿ã¤ãã³ã°ã§x86移è¡ãæã£ã¦ããã®ã¯ããããåæã«ãã¦ããã®ãããããªãã
x86 ã§ã¨ã³ãã£ã¢ã³å¤æã¨ãã㨠bswap å½ä»¤ã§ãããï¼é¦è¤æ°ã®æ¥è¨ã«è©³ããã¾ã¨ã¾ã£ã¦ãã¾ãï¼
http://www.shudo.net/diary/2005jun.html#20050615
(追è¨:2005/6/18)PowerPC ã§ã®ç¶æ³ã«ã¤ãã¦ã¯ï¼topiyama æ°ã®ã¨ã³ããªãåèã«ãªãã¾ããï¼
ç§ã®ä»äºã PowerPC ç°å¢ãªã®ã§ããã¡ãã®ãã¨ããæ¸ããªãããPowerPCåä½ã®ã·ã¹ãã ã§ãå ¨ã¦ããã°ã¨ã³ãã£ã¢ã³ã«ãããã¨ã¯ãã¾ããªããä½æ ãªãä¸è¬ã«æ®åãã¦ãã I/Oã¤ã³ã¿ãã§ã¼ã¹ ââPCIãã¹ãATAãã£ã¹ã¯ãªã©ââ ã¯ãæ®ã©ãªãã«ã¨ã³ãã£ã¢ã³ã§ããããã ããã®I/Oã«ã¢ã¯ã»ã¹ããã¨ãã ããªãã«ã¨ã³ãã£ã¢ã³ã«å¤æããã(ãããã¯ãçµã¿è¾¼ã¿è£ ç½®ã§I/Oãåºå®çã«æ±ºã¾ã£ã¦ããã°ãã¼ã¿ãã¹ã®çµç·ã®æ®µéã§å転ããã¦ãã¾ãHWå®è£ ãè¡ã£ãããããã)
éã«ãªãã«ã¨ã³ãã£ã¢ã³ã®åä½CPUç°å¢ã§ã¯ãã¨ã³ãã£ã¢ã³å¤æãè¡ãã®ã¯ã socket ã§ã®ãããã¯ã¼ã¯ã»ãã¤ãã»ãªã¼ãå¤æãããã ãããï¼ããã°ã¨ã³ãã£ã¢ã³ç³»ã§ã¯ãããã¯ã¼ã¯ã»ãã¤ãã»ãªã¼ãå¤æãã¯ã htonl/ntohl ã¯ä½ãããªããï¼
ããããã° .NET Framework ã®ä¸çã§ãã¨ã³ãã£ã¢ã³å¤æ絡ã¿ã§çªç¶ã½ã¼ã¹ã³ã¼ãã« System.Net.IPAddress.HostToNetworkOrder ãåºç¾ãããã¨ãããã¾ãï¼C/C++ ã§æ¸ãã¦ããã¨ã㯠ntohl ãé信系以å¤ã§ä½¿ã£ãè¨æ¶ã¯ãªãã£ããªãã¨ãæãã¤ã¤ï¼å®éã®ã¨ãã WinSock2 ã® ntohl ã¯ï¼ããã©ã¼ãã³ã¹ã欲ããå±é¢ã§ã¯ãã¾ã使ãåæã¯è¯ããªãã®ããããã¾ããï¼DLL ã§å®è£
ããã¦ãã¦ã¤ã³ã©ã¤ã³å±éã¯ã§ãã¾ãããï¼æå
ã§è¦ãéãä¸èº«ãæ®éã«ã·ããæ¼ç®ãè¡ã£ã¦ããã ãã®ããã§ããï¼
ãããªãã㧠Visual C++ 7.0 以é㧠bswap å½ä»¤ã®æ©æµã«ãããããããã°ï¼ä»¥ä¸ã®çµã¿è¾¼ã¿é¢æ°ã使ãã¨è¯ãã§ãããï¼
- _byteswap_uint64ã_byteswap_ulongã_byteswap_ushort
- http://msdn2.microsoft.com/ja-jp/library/a3140177.aspx