« Previous | Next » 

Revision 0064aceb

ID0064aceb29faea018dfb7cf0bca5d9644272a295

Added by Stefan Weil about 10 years ago

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 <>
Reviewed-by: Laszlo Ersek <>
Signed-off-by: Michael Tokarev <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences