]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/crypto/isa-l/isa-l_crypto/mh_sha1/mh_sha1.c
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / crypto / isa-l / isa-l_crypto / mh_sha1 / mh_sha1.c
index 6cb458fc8079064536574b9fd567f7e729b9a83a..e5d8ad86d5a7c77a2f6dc0249b556a7aa1c00be6 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.
@@ -52,6 +52,8 @@ int mh_sha1_init(struct mh_sha1_ctx *ctx)
        return MH_SHA1_CTX_ERROR_NONE;
 }
 
+#if (!defined(NOARCH)) && (defined(__i386__) || defined(__x86_64__) \
+       || defined( _M_X64) || defined(_M_IX86))
 /***************mh_sha1_update***********/
 // mh_sha1_update_sse.c
 #define MH_SHA1_UPDATE_FUNCTION mh_sha1_update_sse
@@ -135,3 +137,5 @@ struct slver mh_sha1_finalize_avx_slver = { 0x0277, 0x00, 0x02 };
 
 struct slver mh_sha1_finalize_avx2_slver_04000279;
 struct slver mh_sha1_finalize_avx2_slver = { 0x0279, 0x00, 0x04 };
+
+#endif