Sha256: da8d8c62f78920bba6967c4c8a2c1b8d8eba6c65856a998e04a4051957ab7676

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

# Written in 2016-2017 by Henrik Steffen Gaßmann henrik@gassmann.onl
#
# To the extent possible under law, the author(s) have dedicated all
# copyright and related and neighboring rights to this software to the
# public domain worldwide. This software is distributed without any warranty.
#
# You should have received a copy of the CC0 Public Domain Dedication
# along with this software. If not, see
#
#     http://creativecommons.org/publicdomain/zero/1.0/
#
########################################################################

########################################################################
# compiler flags definition
macro(define_SIMD_compile_flags)
    if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
        # x86
        set(COMPILE_FLAGS_SSSE3 "-mssse3")
        set(COMPILE_FLAGS_SSE41 "-msse4.1")
        set(COMPILE_FLAGS_SSE42 "-msse4.2")
        set(COMPILE_FLAGS_AVX "-mavx")
        set(COMPILE_FLAGS_AVX2 "-mavx2")

        #arm
        set(COMPILE_FLAGS_NEON32 "-mfpu=neon")
    elseif(MSVC)
        set(COMPILE_FLAGS_SSSE3 " ")
        set(COMPILE_FLAGS_SSE41 " ")
        set(COMPILE_FLAGS_SSE42 " ")
        set(COMPILE_FLAGS_AVX "/arch:AVX2")
        set(COMPILE_FLAGS_AVX2 "/arch:AVX2")
    endif()
endmacro(define_SIMD_compile_flags)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ob64-0.5.0 vendor/libbase64/cmake/Modules/TargetSIMDInstructionSet.cmake