Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
shifting and saturating two 16 bit words packed in one register
Jump...
Cancel
Locked
Locked
Replies
2 replies
Subscribers
118 subscribers
Views
2454 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
shifting and saturating two 16 bit words packed in one register
Ori Unknown
over 12 years ago
Note: This was originally posted on 7th November 2010 at
http://forums.arm.com
hi all. im using ARM1176JZF-S. im having two 16 bit words packed in one 32 bit register. i need to shift the two words left by 2 and saturate it.
for example: #0x7000A000 should become : #0x7FFF8000
i know i can use the ssat16 instruction , but it doesnt help me after the shifting.
does anyone have an idea?
thanks all
Parents
Simon Craske
over 12 years ago
Note: This was originally posted on 7th November 2010 at
http://forums.arm.com
Perhaps something like:
QADD16 Rout,Rin,Rin ; Rout = SAT(Rin << 1)
QADD16 Rout,Rout,Rout ; Rout = SAT(Rin << 2)
hth
s.
Cancel
Vote up
0
Vote down
Cancel
Reply
Simon Craske
over 12 years ago
Note: This was originally posted on 7th November 2010 at
http://forums.arm.com
Perhaps something like:
QADD16 Rout,Rin,Rin ; Rout = SAT(Rin << 1)
QADD16 Rout,Rout,Rout ; Rout = SAT(Rin << 2)
hth
s.
Cancel
Vote up
0
Vote down
Cancel
Children
No data