Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: xfa/src/fxbarcode/pdf417/BC_PDF417ECModulusGF.h

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef _BC_PDF417ECMODULUSGF_H_ 7 #ifndef _BC_PDF417ECMODULUSGF_H_
8 #define _BC_PDF417ECMODULUSGF_H_ 8 #define _BC_PDF417ECMODULUSGF_H_
9 class CBC_PDF417ECModulusPoly; 9 class CBC_PDF417ECModulusPoly;
10 class CBC_PDF417Common; 10 class CBC_PDF417Common;
11 class CBC_PDF417ECModulusGF 11 class CBC_PDF417ECModulusGF
12 { 12 {
13 public: 13 public:
14 CBC_PDF417ECModulusGF(FX_INT32 modulus, FX_INT32 generator, FX_INT32 &e); 14 CBC_PDF417ECModulusGF(int32_t modulus, int32_t generator, int32_t &e);
15 virtual ~CBC_PDF417ECModulusGF(); 15 virtual ~CBC_PDF417ECModulusGF();
16 static void Initialize(FX_INT32 &e); 16 static void Initialize(int32_t &e);
17 static void Finalize(); 17 static void Finalize();
18 CBC_PDF417ECModulusPoly* getZero(); 18 CBC_PDF417ECModulusPoly* getZero();
19 CBC_PDF417ECModulusPoly* getOne(); 19 CBC_PDF417ECModulusPoly* getOne();
20 CBC_PDF417ECModulusPoly* buildMonomial(FX_INT32 degree, FX_INT32 coefficient , FX_INT32 &e); 20 CBC_PDF417ECModulusPoly* buildMonomial(int32_t degree, int32_t coefficient, int32_t &e);
21 FX_INT32 add(FX_INT32 a, FX_INT32 b); 21 int32_t add(int32_t a, int32_t b);
22 FX_INT32 subtract(FX_INT32 a, FX_INT32 b); 22 int32_t subtract(int32_t a, int32_t b);
23 FX_INT32 exp(FX_INT32 a); 23 int32_t exp(int32_t a);
24 FX_INT32 log(FX_INT32 a, FX_INT32 &e); 24 int32_t log(int32_t a, int32_t &e);
25 FX_INT32 inverse(FX_INT32 a, FX_INT32 &e); 25 int32_t inverse(int32_t a, int32_t &e);
26 FX_INT32 multiply(FX_INT32 a, FX_INT32 b); 26 int32_t multiply(int32_t a, int32_t b);
27 FX_INT32 getSize(); 27 int32_t getSize();
28 static CBC_PDF417ECModulusGF* PDF417_GF; 28 static CBC_PDF417ECModulusGF* PDF417_GF;
29 private: 29 private:
30 CFX_Int32Array m_expTable; 30 CFX_Int32Array m_expTable;
31 CFX_Int32Array m_logTable; 31 CFX_Int32Array m_logTable;
32 CBC_PDF417ECModulusPoly* m_zero; 32 CBC_PDF417ECModulusPoly* m_zero;
33 CBC_PDF417ECModulusPoly* m_one; 33 CBC_PDF417ECModulusPoly* m_one;
34 FX_INT32 m_modulus; 34 int32_t m_modulus;
35 }; 35 };
36 #endif 36 #endif
OLDNEW
« no previous file with comments | « xfa/src/fxbarcode/pdf417/BC_PDF417ECErrorCorrection.cpp ('k') | xfa/src/fxbarcode/pdf417/BC_PDF417ECModulusGF.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698