diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-21 16:14:02 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-21 16:14:02 +0200 |
commit | a8313ae0a3a9598fba95c126336dc6729bb22304 (patch) | |
tree | 369d99d218571e8c168476df3e66caf83c7a646b | |
parent | e383bc6fd8a108017874e5b402874397905e6a7e (diff) | |
download | serenity-a8313ae0a3a9598fba95c126336dc6729bb22304.zip |
AK: Always inline convert_between_host_and_network<T>.
-rw-r--r-- | AK/NetworkOrdered.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/NetworkOrdered.h b/AK/NetworkOrdered.h index b5dc404103..22805bdf50 100644 --- a/AK/NetworkOrdered.h +++ b/AK/NetworkOrdered.h @@ -3,7 +3,7 @@ #include <AK/Types.h> template<typename T> -T convert_between_host_and_network(T host_value) +[[gnu::always_inline]] inline T convert_between_host_and_network(T host_value) { if constexpr (sizeof(T) == 4) { auto* s = (byte*)&host_value; |