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

Frediano Ziglio fziglio at redhat.com
Fri Nov 11 18:02:20 UTC 2016


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;
 
-- 
2.7.4



More information about the Spice-devel mailing list