Comments (5)
Or, do a byte-by-byte head and tail loop around the SIMD stuff that loops till it aligned the data (or went through it), we need this anyway for small data sets.
For example, if a data set only contains 5 bytes, aligned or not, we can't feed it to SSE or AVX. (I wouldn't write stuff in MMX nowadays), the routines we have remain valid of course.
Also: LIBOIL / ORC.
from libvisual.
We probably don't need SIMD for small data sets. The overhead associated with SIMD state saving/switching, and the fact that there's little data to compute makes the effort not really worth the trouble, I would think. Doing proper alignment is also quite a lot simpler than making routines account for any kind of starting address.
from libvisual.
Did a few more checks on the Intarwebz; it's basically guaranteed by glibc and VC++ that malloc() returns 8-byte and 16-byte aligned pointers on 32-bit and 64-bit systems respectively.
http://msdn.microsoft.com/en-us/library/ycsb6wwf.aspx
http://www.gnu.org/software/libc/manual/html_node/Aligned-Memory-Blocks.html
from libvisual.
In regards to small data sets: Indeed no SIMD is needed here, but I don't think that having _small and _large API calls is a bit awkward ;-).
from libvisual.
Added visual_mem_alloc_aligned() and visual_mem_free_aligned() in bcf3193
from libvisual.
Related Issues (20)
- Update lv-tool and examples to use SDL 2 HOT 1
- [0.4.x] Re-integrate or drop zombie plugins (that exist but are not being built) HOT 16
- Pass "double seconds_passed" to the acter rendering function? HOT 5
- MMX implementation of LV::Video's blit_overlay_alphasrc() is broken HOT 5
- Plans on release 0.4.2 (off branch 0.4.x, not master)
- macOS support / need your help with trying 0.4.x out on macOS (branch "0.4.x-macos") HOT 22
- Enable anti-aliasing for actor "lv_gltest"? HOT 6
- [0.4.x] Segfault in function blit_overlay_noalpha (lv_video.c)
- Enhancement of lv_analyzer HOT 6
- [0.4.x] Plugin "gforce": heap-use-after-free in method PixPort::Fade
- [0.4.x] Plugin "corona": heap-buffer-overflow in method Corona::genReflectedWaves HOT 4
- Support PipeWire HOT 4
- Port old GL code in actors to work with OpenGL 3.2+ core profiles HOT 9
- Throw out SIMD versions of memcpy and memset?
- Plugin (dancingparticles) - Signed integer overflows
- Provision Let's Encrypt certificate(s) for LV website
- [0.4.x] Plugin "gforce": severe warnings "no return statement in function returning non-void [-Wreturn-type]"
- [0.4.2] ./configure: 18070: Syntax error: word unexpected (expecting ")") HOT 7
- [0.4.2] [plugins] configure / bad substitution HOT 4
- RFE: port to `sdl2` HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libvisual.