]> git.proxmox.com Git - mirror_qemu.git/commit
bswap: Modify prototype of stb_p (avoid type conversions)
authorStefan Weil <sw@weilnetz.de>
Wed, 19 Feb 2014 05:11:44 +0000 (06:11 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 2 Mar 2014 13:12:41 +0000 (17:12 +0400)
commit0064aceb29faea018dfb7cf0bca5d9644272a295
treec27ab87cab6179c9f83e765357dd8d97c71abe8b
parentde580dafade551cf67607f114ff9b5eeb881cc42
bswap: Modify prototype of stb_p (avoid type conversions)

The function uses an uint8_t value, so show this in the function
prototype. Non-optimizing compilers will avoid unnecessary type
conversions from (u)int8_t to int and back to uint8_t when generating
calls of this inline function.

stw_p, stl_p and stq_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