bswap: Modify prototypes of st[wl]_{le, be}_p (avoid type conversions)
commit55e7c29e46f845f503fda3e8cac3f5e0e8b3d984
authorStefan Weil <sw@weilnetz.de>
Wed, 19 Feb 2014 05:11:45 +0000 (19 06:11 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 2 Mar 2014 13:12:41 +0000 (2 17:12 +0400)
tree89f148b484c700b6ce99ba0976e6380a02ce4458
parent0064aceb29faea018dfb7cf0bca5d9644272a295
bswap: Modify prototypes of st[wl]_{le, be}_p (avoid type conversions)

The functions use uint16_t or uint32_t values, so show this in the function
prototypes. Non-optimizing compilers will avoid unnecessary type
conversions when generating calls of these inline functions.

stq_le_p, stq_be_p already use similar prototypes.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
include/qemu/bswap.h