Need Instruction for ARM Cortex R-4

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Need Instruction for ARM Cortex R-4

1,064件の閲覧回数
shaileshagrahar
Contributor III

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 .

0 件の賞賛
返信
2 返答(返信)

928件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

What device do you use? Is it NXP?

I would recommend contacting ARM support.

 

Regards,

Daniel 

0 件の賞賛
返信

928件の閲覧回数
shaileshagrahar
Contributor III

Hi Daniel ,

Thanks for your attention, It is not from nxp but it BCM895xx series of.

But if possible suggest me any solution .

Thanks!

0 件の賞賛
返信