This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/SM320F28335-HT: Bit manipulation

Part Number: SM320F28335-HT
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

Getting back to fundamental and appericate consideration for such baby query:-)

I have macro to set/clear/read bits

#define SETBITM(data,bit) ( (data) = (data) | ((UINT32)(1<<(bit))) )
#define CLRBITM(data,bit) ( (data) = (data) & ( ~((UINT32)(1<<(bit))) ) )
#define GETBITM(data,bit) ( ( (data)>>(bit) ) & (0x01) )

What the real pro and con for above and there is better library or code for reliable efficient operation.

I'm familar with fetch-modify-write operation for RAM or register which is slow process. 

In addition (optional) is there code that modify 2 or 3 or 4 bit of artibry register or RAM (16 bit or 32 bits)