diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-12-07 22:05:29 +0100 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-12-07 22:05:29 +0100 |
commit | 540896476d62ce37e7a939d185c15dc930b8a343 (patch) | |
tree | f9799153ab3fccebc5c3b3a9aa2b1c2db46e47c2 /src/kernel_preprocessor.cpp | |
parent | 0f9637bbac6248a381d7012d7224331d3d394efb (diff) |
Added register promotion to the main GEMM kernel
Diffstat (limited to 'src/kernel_preprocessor.cpp')
-rw-r--r-- | src/kernel_preprocessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel_preprocessor.cpp b/src/kernel_preprocessor.cpp index 6239361b..493c009c 100644 --- a/src/kernel_preprocessor.cpp +++ b/src/kernel_preprocessor.cpp @@ -50,8 +50,8 @@ bool HasOnlyDigits(const std::string& str) { int ParseMath(const std::string& str) { // Handles brackets - const auto split_close = split(str, ')'); - if (split_close.size() >= 2) { + if (str.find(")") != std::string::npos) { + const auto split_close = split(str, ')'); const auto split_end = split(split_close[0], '('); if (split_end.size() < 2) { RaiseError(str, "Mismatching brackets #0"); } const auto bracket_contents = ParseMath(split_end[split_end.size() - 1]); |