Skip to content

Commit ffe8bb3

Browse files
committed
add new constants from hyperscan 5.4
1 parent 73a8b63 commit ffe8bb3

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

hyperscan/internal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const (
197197
type TuneFlag int
198198

199199
const (
200-
Generic TuneFlag = C.HS_TUNE_FAMILY_GENERIC // Genericindicates that the compiled database should not be tuned for any particular target platform.
200+
Generic TuneFlag = C.HS_TUNE_FAMILY_GENERIC // Generic indicates that the compiled database should not be tuned for any particular target platform.
201201
SandyBridge TuneFlag = C.HS_TUNE_FAMILY_SNB // SandyBridge indicates that the compiled database should be tuned for the Sandy Bridge microarchitecture.
202202
IvyBridge TuneFlag = C.HS_TUNE_FAMILY_IVB // IvyBridge indicates that the compiled database should be tuned for the Ivy Bridge microarchitecture.
203203
Haswell TuneFlag = C.HS_TUNE_FAMILY_HSW // Haswell indicates that the compiled database should be tuned for the Haswell microarchitecture.

hyperscan/internal_v54.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// +build hyperscan_v54
2+
3+
package hyperscan
4+
5+
/*
6+
#include <hs.h>
7+
*/
8+
import "C"
9+
10+
const (
11+
AVX512VBMI CpuFeature = C.HS_CPU_FEATURES_AVX512VBMI // AVX512VBMI is a CPU features flag indicates that the target platform supports Intel(R) Advanced Vector Extensions 512 Vector Byte Manipulation Instructions (Intel(R) AVX512VBMI)
12+
)
13+
14+
const (
15+
Icelake TuneFlag = C.HS_TUNE_FAMILY_ICL // Icelake indicates that the compiled database should be tuned for the Icelake microarchitecture.
16+
IcelakeServer TuneFlag = C.HS_TUNE_FAMILY_ICX // IcelakeServer indicates that the compiled database should be tuned for the Icelake Server microarchitecture.
17+
)

0 commit comments

Comments
 (0)