SkOpts_sse41.cpp 968 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright 2015 Google Inc.
  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. #include "src/core/SkOpts.h"
  8. #define SK_OPTS_NS sse41
  9. #include "src/opts/SkBlitRow_opts.h"
  10. #include "src/opts/SkRasterPipeline_opts.h"
  11. namespace SkOpts {
  12. void Init_sse41() {
  13. blit_row_color32 = sse41::blit_row_color32;
  14. blit_row_s32a_opaque = sse41::blit_row_s32a_opaque;
  15. #define M(st) stages_highp[SkRasterPipeline::st] = (StageFn)SK_OPTS_NS::st;
  16. SK_RASTER_PIPELINE_STAGES(M)
  17. just_return_highp = (StageFn)SK_OPTS_NS::just_return;
  18. start_pipeline_highp = SK_OPTS_NS::start_pipeline;
  19. #undef M
  20. #define M(st) stages_lowp[SkRasterPipeline::st] = (StageFn)SK_OPTS_NS::lowp::st;
  21. SK_RASTER_PIPELINE_STAGES(M)
  22. just_return_lowp = (StageFn)SK_OPTS_NS::lowp::just_return;
  23. start_pipeline_lowp = SK_OPTS_NS::lowp::start_pipeline;
  24. #undef M
  25. }
  26. }