]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/crypto/isa-l/isa-l_crypto/mh_sha1_murmur3_x64_128/murmur3_x64_128.c
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / crypto / isa-l / isa-l_crypto / mh_sha1_murmur3_x64_128 / murmur3_x64_128.c
index 75c3d90b536fe2e7b63e8d0076bfcd8c9336201d..f5fe30a83ec109a357603aaa49dd9a7e7540ff90 100644 (file)
@@ -2,7 +2,7 @@
   Copyright(c) 2011-2016 Intel Corporation All rights reserved.
 
   Redistribution and use in source and binary forms, with or without
-  modification, are permitted provided that the following conditions 
+  modification, are permitted provided that the following conditions
   are met:
     * Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.
 
 #include <stdlib.h>            // for NULL
 #include "murmur3_x64_128_internal.c"
+
+#if (__GNUC__ >= 11)
+# define OPT_FIX2 __attribute__ ((optimize(1)))
+#else
+# define OPT_FIX2
+#endif
+
 /*******************************************************************
  * Single API which can calculate murmur3
  ******************************************************************/
@@ -45,8 +52,8 @@
  * @returns none
  *
  */
-void murmur3_x64_128(const void *buffer, uint32_t len, uint64_t murmur_seed,
-                    uint32_t * murmur3_x64_128_digest)
+void OPT_FIX2 murmur3_x64_128(const void *buffer, uint32_t len, uint64_t murmur_seed,
+                             uint32_t * murmur3_x64_128_digest)
 {
        uint64_t *murmur3_x64_128_hash;
        uint32_t murmur3_x64_128_hash_dword[4];