*: add lots of "noexcept" specifications

This commit is contained in:
Max Kellermann
2017-06-04 13:09:11 +02:00
parent 979f1b6c39
commit ae713cb099
9 changed files with 20 additions and 20 deletions

View File

@@ -61,7 +61,7 @@ ConstructS24(uint8_t low, uint8_t mid, uint8_t high)
*/
gcc_pure
static int32_t
ReadS24LE(const uint8_t *src)
ReadS24LE(const uint8_t *src) noexcept
{
return ConstructS24(src[0], src[1], src[2]);
}
@@ -71,7 +71,7 @@ ReadS24LE(const uint8_t *src)
*/
gcc_pure
static int32_t
ReadS24BE(const uint8_t *src)
ReadS24BE(const uint8_t *src) noexcept
{
return ConstructS24(src[2], src[1], src[0]);
}
@@ -81,7 +81,7 @@ ReadS24BE(const uint8_t *src)
*/
gcc_pure
static int32_t
ReadS24(const uint8_t *src)
ReadS24(const uint8_t *src) noexcept
{
return IsBigEndian() ? ReadS24BE(src) : ReadS24LE(src);
}