2014年7月22日
摘要: copy#include //#include usingstd;typedefuint16;unsigneduint32; //短整型大小端互换 #defineBigLittleSwap16(A)((((uint16)(A)&0xff00)>>8)|\ //长整型大小端互换 #defineBi... 阅读全文
posted @ 2014-07-22 09:38 莫水千流 阅读(2712) 评论(0) 推荐(0)
摘要: 转自http://blog.csdn.net/delphiwcdj/article/details/6234383问题 :如何用程序确认当前系统的存储模式(大端还是小端)?写一个C函数,若处理器是Big-endian的,则返回0;若是Little-endian的,则返回1。情况1:利用数组类型#in... 阅读全文
posted @ 2014-07-22 09:09 莫水千流 阅读(6046) 评论(0) 推荐(0)