AnsweredAssumed Answered

Need Instruction for ARM Cortex R-4

Question asked by Suraj Kumar on Jan 29, 2018
Latest reply on Feb 1, 2018 by Suraj Kumar

Hi all,

I need help for to convert logic in following way:

if 1st bit set in  (00000000000000000000000000001)  i can get 1

f 1st bit set in  (00000000000000000000000000100)  i can get 2

f 1st bit set in  (00000000000000000100000000000)  i can get 11

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

f 1st bit set in  (10000000000000000000000000001)  i can get 31

is there any instruction for ARM cortex-r4 .

 

" I mean to say i just want to get the set bit position number in  uint32 data ". 

 

Please help me .

Outcomes