mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 17:24:48 -05:00
AK: Always inline convert_between_host_and_network<T>.
This commit is contained in:
parent
e383bc6fd8
commit
a8313ae0a3
Notes:
sideshowbarker
2024-07-19 13:59:47 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a8313ae0a3a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue