AK: Always inline convert_between_host_and_network<T>.

This commit is contained in:
Andreas Kling 2019-05-21 16:14:02 +02:00
parent e383bc6fd8
commit a8313ae0a3
Notes: sideshowbarker 2024-07-19 13:59:47 +09:00

View file

@ -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;