]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/erasure-code/isa/xor_op.cc
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / erasure-code / isa / xor_op.cc
index be0071d8fa95c6f40584785f89f75746299ea9b8..2b56e977c7fd92c20b4a57b4c6bb78f286e25c6c 100644 (file)
@@ -15,6 +15,9 @@
 #include <stdio.h>
 #include <string.h>
 #include "arch/intel.h"
+
+#include "include/ceph_assert.h"
+
 // -----------------------------------------------------------------------------
 
 
@@ -38,9 +41,9 @@ vector_xor(vector_op_t* cw,
            vector_op_t* ew)
 // -----------------------------------------------------------------------------
 {
-  assert(is_aligned(cw, EC_ISA_VECTOR_OP_WORDSIZE));
-  assert(is_aligned(dw, EC_ISA_VECTOR_OP_WORDSIZE));
-  assert(is_aligned(ew, EC_ISA_VECTOR_OP_WORDSIZE));
+  ceph_assert(is_aligned(cw, EC_ISA_VECTOR_OP_WORDSIZE));
+  ceph_assert(is_aligned(dw, EC_ISA_VECTOR_OP_WORDSIZE));
+  ceph_assert(is_aligned(ew, EC_ISA_VECTOR_OP_WORDSIZE));
   while (cw < ew) {
     *dw++ ^= *cw++;
   }
@@ -139,7 +142,7 @@ region_sse2_xor(char** src,
 // -----------------------------------------------------------------------------
 {
 #ifdef __x86_64__
-  assert(!(size % EC_ISA_VECTOR_SSE2_WORDSIZE));
+  ceph_assert(!(size % EC_ISA_VECTOR_SSE2_WORDSIZE));
   unsigned char* p;
   int d, l;
   unsigned i;