Add file/update Makefile for ppc64 VSX
diff --git a/Makefile b/Makefile index 06c8fbb..bb74edc 100644 --- a/Makefile +++ b/Makefile
@@ -26,6 +26,9 @@ else ifdef HH_POWER HH_X64 = +HIGHWAYHASH_OBJS += obj/hh_vsx.o +HIGHWAYHASH_TEST_OBJS += obj/highwayhash_test_vsx.o +VECTOR_TEST_OBJS += obj/vector_test_vsx.o else HH_X64 = 1 HIGHWAYHASH_OBJS += obj/hh_avx2.o obj/hh_sse41.o
diff --git a/highwayhash/vector_test_vsx.cc b/highwayhash/vector_test_vsx.cc new file mode 100644 index 0000000..cea58f7 --- /dev/null +++ b/highwayhash/vector_test_vsx.cc
@@ -0,0 +1,19 @@ +// Copyright 2017 Google Inc. All Rights Reserved. +// +// Licensed 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. + +// WARNING: this is a "restricted" source file; avoid including any headers +// unless they are also restricted. See arch_specific.h for details. + +#define HH_TARGET_NAME VSX +#include "highwayhash/vector_test_target.cc"