diff options
author | Thomas Haller <thaller@redhat.com> | 2017-11-16 10:47:54 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-11-16 11:49:52 +0100 |
commit | ac95f7da0bdf46f1ebce6ef3d5afa4beeec094d8 (patch) | |
tree | 57fec9e40e38a20c91f09b874cdb51d7308f9490 /shared | |
parent | a6be2f4aa9070e7f423b7c9992dbae51f092071e (diff) | |
download | NetworkManager-ac95f7da0bdf46f1ebce6ef3d5afa4beeec094d8.tar.gz |
build: include "siphash24.c" source in "nm-hash-utils.c"
This allows the compiler to inline the siphash24*() functions
for nm_hash_ptr() and nm_hash_str() (even without LTO).
This of course only applies to nm_hash_ptr() and nm_hash_str(),
which are implemented in "nm-hash-utils.c" itself. All other
nm_hash_*() functions are inline functions in "nm-hash-utils.h",
and thus these functions can be inlined instead. That is, in
other cases, the nm_hash_*() function instead can be inlined.
For nm_hash_ptr() and nm_hash_str() instead we want to inline the
siphash24*() functions.
So, no longer compile "siphash24.c" directly. Instead, only
build "nm-hash-utils.c" which internally #include "siphash24.c".
Diffstat (limited to 'shared')
-rw-r--r-- | shared/nm-utils/nm-hash-utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/nm-utils/nm-hash-utils.c b/shared/nm-utils/nm-hash-utils.c index e4daf1a07c..b096be692c 100644 --- a/shared/nm-utils/nm-hash-utils.c +++ b/shared/nm-utils/nm-hash-utils.c @@ -28,6 +28,8 @@ #include "nm-shared-utils.h" #include "nm-random-utils.h" +#include "siphash24.c" + /*****************************************************************************/ #define HASH_KEY_SIZE 16u |