|
移位函数
C没有循环移位函数,CCompiler提供了
void _rr(int*); //rotate 8 bits data right
void _rrc(int*); //rotate 8 bits data right through carry
void _lrr(long*); //rotate 16 bits data right
void _lrrc(long*); //rotate 16 bits data right through carry
void _rl(int*); //rotate 8 bits data left
void _rlc(int*); //rotate 8 bits data left through carry
void _lrl(long*); //rotate 16 bits data left
void _lrlc(long*); //rotate 16 bits data left through carry
------------------------------------------------------------
合泰单片机内置的C移位函数,是移动一位吗?如
#include<HT45R17.h>//内容省略
unsigned long temp_AD=148;
_llrr(&temp_AD ); //移完是74吗?这个“&”怎么理解??
|
|