1 /* 2 * Copyright 2023 Google LLC 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 // Include guards are intentionally omitted 9 10 #include "include/private/base/SkFeatures.h" 11 12 #if SK_OPTS_TARGET == SK_OPTS_TARGET_DEFAULT 13 // Nothing to do here 14 #else 15 16 #if !defined(SK_OLD_CPU_SSE_LEVEL) 17 #error Include SkOpts_SetTarget before including SkOpts_RestoreTarget 18 #endif 19 20 #undef SK_CPU_SSE_LEVEL 21 #define SK_CPU_SSE_LEVEL SK_OLD_CPU_SSE_LEVEL 22 #undef SK_OLD_CPU_SSE_LEVEL 23 24 #if defined(__clang__) 25 #pragma clang attribute pop 26 #elif defined(__GNUC__) 27 #pragma GCC pop_options 28 #endif 29 30 #endif 31