STM32F7 fast threshold implimintation
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-08-25 1:39 AM
Posted on August 25, 2016 at 10:39
Hi,
I have a 800 bytes array and I need to check if each byte is bigger than a threshold valuefor (i=0;i<800;i++) if Data[i] > TH then ....is there any other method to implement this threshold without loop and if?Thanks,Michael
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-08-25 10:56 AM
Posted on August 25, 2016 at 19:56
Review the ARM Cortex-M7 TRM and the SIMD features supported.
At some level you're going to have to walk over the data, the question is the stride size, this isn't some magic CISC implementation, very little silicon is wasted on features with minimal usage. Suggest you start by unrolling the loop, and learning assembler.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-08-30 5:44 AM
Posted on August 30, 2016 at 14:44Tnx, will try
