cmake HAVE_ALTIVEC examples

crossuo/crossuo deps/sdl-2.0.10-c1be3add38/CMakeLists.txt :668

check_c_source_compiles("
          vector unsigned int vzero() {
              return vec_splat_u32(0);
          }
          int main(int argc, char **argv) { }" HAVE_ALTIVEC)

hpmicro/hpm_sdk middleware/libjpeg-turbo/src/simd/CMakeLists.txt :423

check_c_source_compiles("
  #include <altivec.h>
  int main(void) {
    __vector int vi = { 0, 0, 0, 0 };
    int i[4];
    vec_st(vi, 0, i);
    return i[0];
  }" HAVE_ALTIVEC)

joedrago/colorist ext/libjpeg-turbo/simd/CMakeLists.txt :336

check_c_source_compiles("
  #include <altivec.h>
  int main(void) {
    __vector int vi = { 0, 0, 0, 0 };
    int i[4];
    vec_st(vi, 0, i);
    return i[0];
  }" HAVE_ALTIVEC)

InsightSoftwareConsortium/ITK Modules/ThirdParty/ZLIB/src/itkzlib-ng/cmake/detect-intrinsics.cmake :320

check_c_source_compiles(
        "#include <altivec.h>
        int main(void)
        {
            vector int a = vec_splats(0);
            vector int b = vec_splats(0);
            a = vec_add(a, b);
            return 0;
        }"
        HAVE_ALTIVEC
        )

SsageParuders/Android_Native_Surface my_android_opencv/3rdparty/libjpeg-turbo/src/simd/CMakeLists.txt :499

check_c_source_compiles("
  #include <altivec.h>
  int main(void) {
    __vector int vi = { 0, 0, 0, 0 };
    int i[4];
    vec_st(vi, 0, i);
    return i[0];
  }" HAVE_ALTIVEC)

skylersaleh/SkyEmu src/SDL2/CMakeLists.txt :749

check_c_source_compiles("
          vector unsigned int vzero() {
              return vec_splat_u32(0);
          }
          int main(int argc, char **argv) { return 0; }" HAVE_ALTIVEC)

neka-nat/cupoch third_party/libjpeg-turbo/libjpeg-turbo/simd/CMakeLists.txt :336

check_c_source_compiles("
  #include <altivec.h>
  int main(void) {
    __vector int vi = { 0, 0, 0, 0 };
    int i[4];
    vec_st(vi, 0, i);
    return i[0];
  }" HAVE_ALTIVEC)

nvMcJohn/apitest thirdparty/SDL2-2.0.1/CMakeLists.txt :426

check_c_source_compiles("
          vector unsigned int vzero() {
              return vec_splat_u32(0);
          }
          int main(int argc, char **argv) { }" HAVE_ALTIVEC)

nvMcJohn/apitest thirdparty/SDL2-2.0.1/CMakeLists.txt :439

endif(HAVE_ALTIVEC OR HAVE_ALTIVEC_H_HDR)

urho3d/urho3d cmake/Modules/UrhoCommon.cmake :189

cmake_dependent_option (URHO3D_ALTIVEC "Enable AltiVec instruction set (PowerPC only)" "${HAVE_ALTIVEC}" POWERPC FALSE)

u3d-community/U3D cmake/Modules/UrhoCommon.cmake :278

cmake_dependent_option (URHO3D_ALTIVEC "Enable AltiVec instruction set (PowerPC only)" "${HAVE_ALTIVEC}" POWERPC FALSE)

openc2e/openc2e externals/SDL2/CMakeLists.txt :873

check_c_source_compiles("
          vector unsigned int vzero() {
              return vec_splat_u32(0);
          }
          int main(int argc, char **argv) { return 0; }" HAVE_ALTIVEC)

orbbec/OrbbecSDK_v2 3rdparty/libjpeg/src/simd/CMakeLists.txt :393

check_c_source_compiles("
  #include <altivec.h>
  int main(void) {
    __vector int vi = { 0, 0, 0, 0 };
    int i[4];
    vec_st(vi, 0, i);
    return i[0];
  }" HAVE_ALTIVEC)

JulNadeauCA/libagar CMakeChecks.cmake :304

check_c_source_compiles("
float a[4] = { 1,2,3,4 };
float b[4] = { 5,6,7,8 };
float c[4];

int
main(int argc, char *argv[])
{
	vector float *va = (vector float *)a;
	vector float *vb = (vector float *)b;
	vector float *vc = (vector float *)c;

	*vc = vec_add(*va, *vb);
	return (0);
}
" HAVE_ALTIVEC)

rbfx/rbfx Source/ThirdParty/SDL/CMakeLists.txt :853

check_c_source_compiles("
          vector unsigned int vzero() {
              return vec_splat_u32(0);
          }
          int main(int argc, char **argv) { return 0; }" HAVE_ALTIVEC)

mozilla/mozjpeg simd/CMakeLists.txt :500

check_c_source_compiles("
  #include <altivec.h>
  int main(void) {
    __vector int vi = { 0, 0, 0, 0 };
    int i[4];
    vec_st(vi, 0, i);
    return i[0];
  }" HAVE_ALTIVEC)

google/filament third_party/libsdl2/CMakeLists.txt :594

check_c_source_compiles("
          vector unsigned int vzero() {
              return vec_splat_u32(0);
          }
          int main(int argc, char **argv) { }" HAVE_ALTIVEC)

godlikepanos/anki-3d-engine ThirdParty/Sdl2/CMakeLists.txt :754

check_c_source_compiles("
          vector unsigned int vzero() {
              return vec_splat_u32(0);
          }
          int main(int argc, char **argv) { return 0; }" HAVE_ALTIVEC)

klaussilveira/qengine vendor/SDL2-2.0.22/CMakeLists.txt :754

check_c_source_compiles("
          vector unsigned int vzero() {
              return vec_splat_u32(0);
          }
          int main(int argc, char **argv) { return 0; }" HAVE_ALTIVEC)

FilmKilns/FilmKilns src/skia/third_party/externals/libjpeg-turbo/simd/CMakeLists.txt :333

check_c_source_compiles("
  #include <altivec.h>
  int main(void) {
    __vector int vi = { 0, 0, 0, 0 };
    int i[4];
    vec_st(vi, 0, i);
    return i[0];
  }" HAVE_ALTIVEC)

openpnp/openpnp-capture linux/contrib/libjpeg-turbo-dev/simd/CMakeLists.txt :289

check_c_source_compiles("
  #include <altivec.h>
  int main(void) {
    __vector int vi = { 0, 0, 0, 0 };
    int i[4];
    vec_st(vi, 0, i);
    return i[0];
  }" HAVE_ALTIVEC)