-menuconfig LIBINTEL_INTRINSICS
- bool "Intel Intrinsics - C style functions that provide access Intel instructions"
+config LIBINTEL_INTRINSICS
+ bool "Intel Intrinsics - C style functions that provide access to x86 instructions"
default n
-
-if LIBINTEL_INTRINSICS
-config SIMD_SSE
- bool "Enable SSE support"
- default n
-
-config SIMD_SSE2
- bool "Enable SSE2 support"
- default n
-
-config SIMD_SSE3
- bool "Enable SSE3 support"
- default n
-
-config SIMD_SSE4
- bool "Enable SSE4 support"
- default n
-
-config SIMD_AVX
- bool "Enable AVX support"
- default n
-endif
# libintel_intrinsics Makefile.uk
#
# Authors: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
+# Andrei Tatar <andrei@unikraft.io>
#
# Copyright (c) 2019, University Politehnica of Bucharest. All rights reserved.
+# Copyright (c) 2023, Unikraft GmbH and The Unikraft Authors.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
################################################################################
# Library includes
################################################################################
+ifeq ($(CONFIG_LIBINTEL_INTRINSICS),y)
CINCLUDES-$(CONFIG_LIBINTEL_INTRINSICS) += -I$(LIBINTEL_INTRINSICS_BASE)/include
CXXINCLUDES-$(CONFIG_LIBINTEL_INTRINSICS) += -I$(LIBINTEL_INTRINSICS_BASE)/include
-
-ifdef CONFIG_SIMD_SSE
-CFLAGS += -msse -mfpmath=sse
-CXXFLAGS += -msse -mfpmath=sse
-endif
-
-ifdef CONFIG_SIMD_SSE2
-CFLAGS += -msse2
-CXXFLAGS += -msse2
-endif
-
-ifdef CONFIG_SIMD_SSE3
-CFLAGS += -msse3
-CXXFLAGS += -msse3
-endif
-
-ifdef CONFIG_SIMD_SSE4
-CFLAGS += -msse4
-CXXFLAGS += -msse4
-endif
-
-ifdef CONFIG_SIMD_AVX
-CFLAGS += -mavx
-CXXFLAGS += -mavx
endif