Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/ruy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Vanik <benvanik@google.com>2020-11-15 18:19:26 +0300
committerCopybara-Service <copybara-worker@google.com>2020-11-15 18:19:52 +0300
commit4790797d11a81f96baf24f3731fd3ca44c2c5f8b (patch)
tree71e169470e8b728fa041b65d35682281d91e9f43
parent7a6a38ea182161d509f4044e8ec713f05a68560c (diff)
Fixing warnings on MSVC (comparing a bool with >).
PiperOrigin-RevId: 342509771
-rw-r--r--ruy/pack_avx.cc2
-rw-r--r--ruy/pack_avx2_fma.cc2
-rw-r--r--ruy/pack_avx512.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/ruy/pack_avx.cc b/ruy/pack_avx.cc
index 24a28a3..2b929e7 100644
--- a/ruy/pack_avx.cc
+++ b/ruy/pack_avx.cc
@@ -713,7 +713,7 @@ void Pack8bitColMajorForAvx(const std::int8_t* src_ptr, std::int8_t input_xor,
const bool trailing_data = (src_rows & kChunkedRowMask) > 0;
// If the number of source rows is not a multiple of kChunkedRowMask, there
// will be data in the trailing buffer,
- if (trailing_data > 0) {
+ if (trailing_data) {
const int non_trailing_rows = src_rows & ~kChunkedRowMask;
// Destination "rows" are padded to next highest multiple of Layout::kRows.
const int dst_rows = (src_rows + 3) & ~3;
diff --git a/ruy/pack_avx2_fma.cc b/ruy/pack_avx2_fma.cc
index 5ccffb8..2564b72 100644
--- a/ruy/pack_avx2_fma.cc
+++ b/ruy/pack_avx2_fma.cc
@@ -571,7 +571,7 @@ void Pack8bitColMajorForAvx2(const std::int8_t* src_ptr, std::int8_t input_xor,
const bool trailing_data = (src_rows & kChunkedRowMask) > 0;
// If the number of source rows is not a multiple of kChunkedRowMask, there
// will be data in the trailing buffer,
- if (trailing_data > 0) {
+ if (trailing_data) {
const int non_trailing_rows = src_rows & ~kChunkedRowMask;
// Destination "rows" are padded to next highest multiple of Layout::kRows.
const int dst_rows = (src_rows + 3) & ~3;
diff --git a/ruy/pack_avx512.cc b/ruy/pack_avx512.cc
index b38bc01..5281fa8 100644
--- a/ruy/pack_avx512.cc
+++ b/ruy/pack_avx512.cc
@@ -687,7 +687,7 @@ void Pack8bitColMajorForAvx512(const std::int8_t* src_ptr,
const bool trailing_data = (src_rows & kChunkedRowMask) > 0;
// If the number of source rows is not a multiple of kChunkedRowMask, there
// will be data in the trailing buffer,
- if (trailing_data > 0) {
+ if (trailing_data) {
const int non_trailing_rows = src_rows & ~kChunkedRowMask;
// Destination "rows" are padded to next highest multiple of Layout::kRows.
const int dst_rows = (src_rows + 3) & ~3;