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.

intrinsic does not work in MACRO?



Hi,

I create a MACRO because I use a lot of similar structure. There are two intrinsic in the MACRO, see below dot line. I find the result is wrong with MACRO. I substitute one MACRO call with the direct line writing. The result is quite different with MACRO's result even though it replaces only one MACRO. I realize that the intrinsic does not take effect because the MACRO works for no intrinsic.

Does anyone can verify my discovery? Thanks.

..................

if(currmetric0 < currmetric1) {\
offset = 0*num_states + lu_state;\
next_states = pnxtst[offset];\
m_int = (next_states+(ptbptr[0]*num_states)) >> 5;\
res_pos = (next_states+(ptbptr[0]*num_states)) & 0x0000001f;\
ptbstate[next_states+(ptbptr[0]*num_states)] = lu_state;\
_clr(ptbinput[m_int], res_pos, res_pos + 1);\
ptempmet[next_states] = currmetric0;\
}\
else{\
offset = 1*num_states + ld_state;\
next_states = pnxtst[offset];\
m_int = (next_states+(ptbptr[0]*num_states)) >> 5;\
res_pos = (next_states+(ptbptr[0]*num_states)) & 0x0000001f;\
ptbstate[next_states+(ptbptr[0]*num_states)] = ld_state;\
_set(ptbinput[m_int], res_pos, res_pos + 1);\
ptempmet[next_states] = currmetric1;\
}\