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

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

 



Reduce SpiceVolumeState structure size on 64 architectures
swapping the order of two fields.

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]