Flutter Engine
The Flutter Engine
SkMemset_opts.cpp
Go to the documentation of this file.
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
9#include "src/core/SkCpu.h"
10#include "src/core/SkMemset.h"
11
12#define SK_OPTS_TARGET SK_OPTS_TARGET_DEFAULT
14
15#include "src/opts/SkMemset_opts.h" // IWYU pragma: keep
16
18
19namespace SkOpts {
23
27
29 void Init_Memset_erms();
30
31 static bool init() {
32 #if defined(SK_ENABLE_OPTIMIZE_SIZE)
33 // All Init_foo functions are omitted when optimizing for size
34 #elif defined(SK_CPU_X86)
35 #if SK_CPU_SSE_LEVEL < SK_CPU_SSE_LEVEL_AVX
37 #endif
38
40 #endif
41 return true;
42 }
43
44 void Init_Memset() {
45 [[maybe_unused]] static bool gInitialized = init();
46 }
47} // namespace SkOpts
static bool init()
void(* rect_memset32)(uint32_t[], uint32_t, int, size_t, int)
void(* rect_memset16)(uint16_t[], uint16_t, int, size_t, int)
void(* memset64)(uint64_t[], uint64_t, int)
void(* memset16)(uint16_t[], uint16_t, int)
void Init_Memset_avx()
void Init_Memset_erms()
void(* memset32)(uint32_t[], uint32_t, int)
DEFINE_DEFAULT(S32_alpha_D32_filter_DX)
void(* rect_memset64)(uint64_t[], uint64_t, int, size_t, int)
void Init_Memset()
static bool Supports(uint32_t)
Definition: SkCpu.h:58
@ AVX
Definition: SkCpu.h:23
@ ERMS
Definition: SkCpu.h:44