View Single Post
Old 05-10-2012, 11:14 PM   #73
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
@GM: Don't spend any time looking this up for me, but if you already know the answer...

Do all the Kindle SoC support vector processing instructions?
I believe the K3 (i.mx353) does (I will need to re-check that data point).
If they do, they might help with processing these byte streams in your dither algorithum.

And (as you probably already know) GCC will not "automagically" use the vector processor instructions without a few handsprings by the gcc-user.
Inline assembly is old-hat. Many compilers I use support intrinsic functions, where the compiler has predefined special "functions" that get replaced with a single assembler instruction. And then there are those funny files that have that strange ".s" on the end of them... There is some good stuff here (but needs adapting for ARM): http://www.agner.org/optimize/

Here is a nice website with lots of pages about using Cortex A8 and ARM Neon intrinsics in C programs: http://hilbert-space.de/?p=22
geekmaster is offline   Reply With Quote