[Spice-devel] [PATCH spice-server 5/5] sound: Peep hole optimisation

Jonathon Jongsma jjongsma at redhat.com
Fri Nov 11 23:06:28 UTC 2016


On Fri, 2016-11-11 at 18:02 +0000, Frediano Ziglio wrote:
> Reduce SpiceVolumeState structure size on 64 architectures
> swapping the order of two fields.
> 
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  server/sound.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/server/sound.c b/server/sound.c
> index 1572019..ccbf6f4 100644
> --- a/server/sound.c
> +++ b/server/sound.c
> @@ -148,8 +148,8 @@ struct PlaybackChannel {
>  };
>  
>  typedef struct SpiceVolumeState {
> -    uint8_t volume_nchannels;
>      uint16_t *volume;
> +    uint8_t volume_nchannels;
>      int mute;
>  } SpiceVolumeState;
>  


OK.

Acked-by: Jonathon Jongsma <jjongsma at redhat.com>


More information about the Spice-devel mailing list