2 giroman giroman 于 2014.07.07 09:40 提问

用c语言编写的音频播放程序中的问题,注意这个是嵌入式程序

我得到一个用c语言编写的音频播放程序,但其中有两段代码看不懂,请各位大神帮帮忙,程序如下
#define mru_swap_16(x) \
((unsigned short)( \
(((unsigned short)(x) & (unsigned short)0x00ffU) << 8) | \
(((unsigned short)(x) & (unsigned short)0xff00U) >> 8) ))

#define mru_swap_32(x) \
((unsigned long)( \
(((unsigned long)(x) & (unsigned long)0x000000ffUL) << 24) | \
(((unsigned long)(x) & (unsigned long)0x0000ff00UL) << 8) | \
(((unsigned long)(x) & (unsigned long)0x00ff0000UL) >> 8) | \
(((unsigned long)(x) & (unsigned long)0xff000000UL) >> 24) ))
这个是嵌入式程序

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!