Re: [alsa-lib][PATCH] ctl: use automatic variable instead of call of alloca(3)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 27 Jun 2016 16:37:36 +0200,
Takashi Sakamoto wrote:
> 
> Inner this library, layouts of all structures are public. At a compilation
> time, each size of the structures can be calculated. It means that we can
> use automatic variable instead of calling alloca(3) to program this
> library because in both ways storages are kept on stack frame of process
> VMA. Besides, the usage of automatic variables requires less instructions
> than calls of alloca(3). Furthermore, alloca(3) is not described in any
> C language standards.
> 
> This commit replaces calls of alloca(3) just for structures with automatic
> variables, for control features.
> 
> Signed-off-by: Takashi Sakamoto <o-takashi@xxxxxxxxxxxxx>

Applied, thanks.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux