1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QDRAWHELPER_X86_P_H
5#define QDRAWHELPER_X86_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qtguiglobal_p.h>
19#include <private/qdrawhelper_p.h>
20
21QT_BEGIN_NAMESPACE
22
23#ifdef __SSE2__
24void qt_memfill64_sse2(quint64 *dest, quint64 value, qsizetype count);
25void qt_memfill32_sse2(quint32 *dest, quint32 value, qsizetype count);
26void qt_bitmapblit32_sse2(QRasterBuffer *rasterBuffer, int x, int y,
27 const QRgba64 &color,
28 const uchar *src, int width, int height, int stride);
29void qt_bitmapblit8888_sse2(QRasterBuffer *rasterBuffer, int x, int y,
30 const QRgba64 &color,
31 const uchar *src, int width, int height, int stride);
32void qt_bitmapblit16_sse2(QRasterBuffer *rasterBuffer, int x, int y,
33 const QRgba64 &color,
34 const uchar *src, int width, int height, int stride);
35void qt_blend_argb32_on_argb32_sse2(uchar *destPixels, int dbpl,
36 const uchar *srcPixels, int sbpl,
37 int w, int h,
38 int const_alpha);
39void qt_blend_rgb32_on_rgb32_sse2(uchar *destPixels, int dbpl,
40 const uchar *srcPixels, int sbpl,
41 int w, int h,
42 int const_alpha);
43
44void qt_memfill64_avx2(quint64 *dest, quint64 value, qsizetype count);
45void qt_memfill32_avx2(quint32 *dest, quint32 value, qsizetype count);
46#endif // __SSE2__
47
48static const int numCompositionFunctions = 38;
49
50QT_END_NAMESPACE
51
52#endif // QDRAWHELPER_X86_P_H
53

source code of qtbase/src/gui/painting/qdrawhelper_x86_p.h