diff options
author | Cebtenzzre <cebtenzzre@gmail.com> | 2023-09-28 17:41:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-28 17:41:44 -0400 |
commit | bc39553c901a91cfcb757863586250838c83eeab (patch) | |
tree | 507d1aedf8ad63e4ed84e37154de9abf31ba358a /pocs/vdot/q8dot.cpp | |
parent | 0ccfc62a96a6b59a8faa14d1b350493f4cd51ae2 (diff) |
build : enable more non-default compiler warnings (#3200)
Diffstat (limited to 'pocs/vdot/q8dot.cpp')
-rw-r--r-- | pocs/vdot/q8dot.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pocs/vdot/q8dot.cpp b/pocs/vdot/q8dot.cpp index 4e0e0235..111770d5 100644 --- a/pocs/vdot/q8dot.cpp +++ b/pocs/vdot/q8dot.cpp @@ -43,7 +43,7 @@ static_assert(QK4_1 == QK8_0, "QK4_1 and QK8_0 must be the same"); static_assert(QK4_0 == QK8_0, "QK4_0 and QK8_0 must be the same"); template <typename T> -void fillQ4blocks(std::vector<T>& blocks, std::mt19937& rndm) { +static void fillQ4blocks(std::vector<T>& blocks, std::mt19937& rndm) { for (auto& b : blocks) { b.d = 1; for (int i=0; i<QK4_1/2; ++i) { @@ -54,7 +54,7 @@ void fillQ4blocks(std::vector<T>& blocks, std::mt19937& rndm) { } } -void fillQ80blocks(std::vector<block_q8_0>& blocks, std::mt19937& rndm) { +static void fillQ80blocks(std::vector<block_q8_0>& blocks, std::mt19937& rndm) { for (auto& b : blocks) { b.d = 1; int sum = 0; @@ -66,7 +66,7 @@ void fillQ80blocks(std::vector<block_q8_0>& blocks, std::mt19937& rndm) { } } -float simpleDot(const block_q4_0& x, const block_q8_0& y) { +static float simpleDot(const block_q4_0& x, const block_q8_0& y) { int s1 = 0; //, s2 = 0; for (int i=0; i<QK4_1/2; i+=2) { int v1 = x.qs[i+0] & 0xf; @@ -81,7 +81,7 @@ float simpleDot(const block_q4_0& x, const block_q8_0& y) { //return y.d * x.d * (s1 - 8 * s2); } -float simpleDot(const block_q4_1& x, const block_q8_0& y) { +static float simpleDot(const block_q4_1& x, const block_q8_0& y) { int s1 = 0; //, s2 = 0; for (int i=0; i<QK4_1/2; i+=2) { int v1 = x.qs[i+0] & 0xf; |