mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
libobs: Clarify memalign ToDo item
This commit is contained in:
parent
22a98c279e
commit
a9d3b9cbd1
|
@ -28,7 +28,16 @@
|
||||||
|
|
||||||
#define ALIGNMENT 32
|
#define ALIGNMENT 32
|
||||||
|
|
||||||
/* TODO: use memalign for non-windows systems */
|
/*
|
||||||
|
* Attention, intrepid adventurers, exploring the depths of the libobs code!
|
||||||
|
*
|
||||||
|
* There used to be a TODO comment here saying that we should use memalign on
|
||||||
|
* non-Windows platforms. However, since *nix/POSIX systems do not provide an
|
||||||
|
* aligned realloc(), this is currently not (easily) achievable.
|
||||||
|
* So while the use of posix_memalign()/memalign() would be a fairly trivial
|
||||||
|
* change, it would also ruin our memory alignment for some reallocated memory
|
||||||
|
* on those platforms.
|
||||||
|
*/
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#define ALIGNED_MALLOC 1
|
#define ALIGNED_MALLOC 1
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue