1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
| /*++
|
| Copyright (c) Microsoft Corporation. All rights reserved.
|
| Licensed under the MIT License.
|
| Module Name:
|
| saturation_check.cpp
|
| Abstract:
|
| This module implements logic to check saturation of the VPMADDUBSW
| instruction.
|
| --*/
|
| #include "mlasi.h"
|
| namespace onnxruntime
| {
|
| #if defined(MLAS_TARGET_AMD64)
|
| std::atomic<int> saturation_count{0};
|
| void
| reset_saturation_count()
| {
| saturation_count = 0;
| }
|
| #else
|
| void
| reset_saturation_count()
| {
| }
|
| #endif
|
| } // namespace onnxruntime
|
|