Grok
7.6.0
build
libgrokj2k-CKORTy
libgrokj2k-7.6.0
src
lib
jp2
util
CPUArch.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2016-2020 Grok Image Compression Inc.
3
*
4
* This source code is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU Affero General Public License, version 3,
6
* as published by the Free Software Foundation.
7
*
8
* This source code is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Affero General Public License for more details.
12
*
13
* You should have received a copy of the GNU Affero General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*/
16
17
#pragma once
18
19
#define GROK_SKIP_POISON
20
21
#include "
grok_includes.h
"
22
23
#ifdef WIN32
24
#include <intrin.h>
25
#elif defined(__x86_64__) || defined(__i386__)
26
#include <x86intrin.h>
27
#endif
28
29
30
#if defined(__GNUC__)
31
#pragma GCC poison malloc calloc realloc free
32
#endif
33
34
namespace
grk
{
35
36
class
CPUArch
{
37
public
:
38
bool
AVX2
();
39
bool
AVX
();
40
bool
SSE4_1
();
41
bool
SSE3
();
42
bool
BMI1
();
43
bool
BMI2
();
44
45
};
46
47
}
48
grk::CPUArch::BMI2
bool BMI2()
grk::CPUArch::SSE4_1
bool SSE4_1()
grk::CPUArch::BMI1
bool BMI1()
grok_includes.h
grk::CPUArch::AVX2
bool AVX2()
grk
Copyright (C) 2016-2020 Grok Image Compression Inc.
Definition:
BitIO.h:27
grk::CPUArch::SSE3
bool SSE3()
grk::CPUArch
Definition:
CPUArch.h:36
grk::CPUArch::AVX
bool AVX()
Generated by
1.8.18