xndai commented on code in PR #1126:
URL: https://github.com/apache/iceberg-cpp/pull/1126#discussion_r4701917828


##########
src/iceberg/util/mumbling_bitmap_internal.cc:
##########
@@ -0,0 +1,350 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "iceberg/util/mumbling_bitmap_internal.h"
+
+#include <algorithm>
+#include <array>
+#include <cstring>
+
+#include "iceberg/util/endian.h"
+#include "iceberg/util/macros.h"
+
+// SSE2 is part of the x86-64 baseline, so it needs no extra compiler flags.
+// Define ICEBERG_MUMBLING_SSE2=0 to force the portable scalar code.
+#if !defined(ICEBERG_MUMBLING_SSE2) && (defined(__SSE2__) || defined(_M_X64)) 
&& \

Review Comment:
   I think that would be a discussion to have. They are big dependency to pull 
in and I feel we can defer this decision to later when we have more SIMD code. 
We could probably extract a SIMD kernel library later and then see what can be 
benefited from re-using some of the existing library.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to