summaryrefslogtreecommitdiff
path: root/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-01 17:33:49 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-01 17:33:49 +0000
commit673af68584b6ada36682c33acddfea2bcd749030 (patch)
tree3b75d42726768d9f7476802eb5415d7cb809281f /fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h
parent48ce3d08faa51bf00edaa3ae0afda9bf86e14a39 (diff)
downloadpdfium-673af68584b6ada36682c33acddfea2bcd749030.tar.xz
Remove some "exceptions" from reedsolomon code.
Change-Id: If8c45af624ed6df7b6d7416bb4e195f4097b0574 Reviewed-on: https://pdfium-review.googlesource.com/43191 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h')
-rw-r--r--fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h b/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h
index 9f0fcd316f..199e479710 100644
--- a/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h
+++ b/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h
@@ -10,6 +10,7 @@
#include <memory>
#include "fxbarcode/utils.h"
+#include "third_party/base/optional.h"
class CBC_ReedSolomonGF256Poly;
@@ -24,12 +25,10 @@ class CBC_ReedSolomonGF256 {
CBC_ReedSolomonGF256Poly* GetZero() const;
CBC_ReedSolomonGF256Poly* GetOne() const;
std::unique_ptr<CBC_ReedSolomonGF256Poly> BuildMonomial(int32_t degree,
- int32_t coefficient,
- int32_t& e);
+ int32_t coefficient);
static int32_t AddOrSubtract(int32_t a, int32_t b);
int32_t Exp(int32_t a);
- int32_t Log(int32_t a, int32_t& e);
- int32_t Inverse(int32_t a, int32_t& e);
+ Optional<int32_t> Inverse(int32_t a);
int32_t Multiply(int32_t a, int32_t b);
void Init();