/*
 * Copyright 2016 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "src/core/SkOpts.h"

#if !defined(SK_ENABLE_OPTIMIZE_SIZE)

#define SK_OPTS_NS avx
#include "src/opts/SkUtils_opts.h"

namespace SkOpts {
    void Init_avx() {
        memset16 = SK_OPTS_NS::memset16;
        memset32 = SK_OPTS_NS::memset32;
        memset64 = SK_OPTS_NS::memset64;

        rect_memset16 = SK_OPTS_NS::rect_memset16;
        rect_memset32 = SK_OPTS_NS::rect_memset32;
        rect_memset64 = SK_OPTS_NS::rect_memset64;
    }
}  // namespace SkOpts

#endif // SK_ENABLE_OPTIMIZE_SIZE
