Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Arm Development Studio forum
How to efficiently sum 4 x 8bit integers with ARM or NEON
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
16 replies
Subscribers
126 subscribers
Views
10484 views
Users
0 members are here
Related
How to efficiently sum 4 x 8bit integers with ARM or NEON
Offline
Shervin Emami
over 7 years ago
Note: This was originally posted on 17th September 2010 at http://forums.arm.com
Hi,
I am trying to write an ASM function to shrink an 8-bit greyscale image by 4, so I need to get the sum of 4 bytes very quickly. From what I have read, NEON needs atleast 32-bit integers and VFP is for floats, so it looks like I should just stick with ARM (or Thumb-2) instructions.
But I'm just a beginner so I'm wondering if there is a more efficient method of summing 4 consecutive bytes than convert each byte to a 32bit int and then sum them (and then shift right to get the average).
Its for a Cortex-A8 (ARMv7-A), and the data is aligned to 32 bytes or whatever I want.
Cheers,
Shervin Emami
[url="
http://www.shervinemami.co.cc/
"]
http://www.shervinemami.co.cc/[/url]
Parents
Offline
Thomas Marz
over 7 years ago
Note: This was originally posted on 15th October 2010 at
http://forums.arm.com
I been trying to find this info for a long time now lol. thanks.
Cancel
Up
0
Down
Reply
Cancel
Reply
Offline
Thomas Marz
over 7 years ago
Note: This was originally posted on 15th October 2010 at
http://forums.arm.com
I been trying to find this info for a long time now lol. thanks.
Cancel
Up
0
Down
Reply
Cancel
Children
No data
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Suggested Answer
ARM development studio with ARM Juno r2 board
0
Juno Arm Development Platform
Arm Development Studio
Products
Arm Support
9042
views
2
replies
Latest
5 months ago
by
Ronan Synnott
Answered
"Unable to execute remote query (response code 503) " issue
0
8678
views
1
reply
Latest
5 months ago
by
Ronan Synnott
Answered
Where can I download DS-5 hardware firmware??
+1
8119
views
1
reply
Latest
5 months ago
by
Ronan Synnott
Not Answered
freeRTOS demo DS-5 ERROR(CMD360) when trying to debug
+1
13418
views
12
replies
Latest
6 months ago
by
tolc
Answered
ubuntu - How to uninstall Arm Development studio and all its requirements
0
Arm Development Studio
9069
views
1
reply
Latest
6 months ago
by
Jonathan Simmonds
<
>
View all questions in Arm Development Studio forum