| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Original code by Matt McCutchen, see the LICENSE file |
| 6 |
| 1 #ifndef BIGINTEGERUTILS_H | 7 #ifndef BIGINTEGERUTILS_H |
| 2 #define BIGINTEGERUTILS_H | 8 #define BIGINTEGERUTILS_H |
| 3 | 9 |
| 4 #include "BigInteger.hh" | 10 #include "BigInteger.hh" |
| 5 #include <string> | 11 #include <string> |
| 6 #include <iostream> | 12 #include <iostream> |
| 7 | 13 |
| 8 /* This file provides: | 14 /* This file provides: |
| 9 * - Convenient std::string <-> BigUnsigned/BigInteger conversion routines | 15 * - Convenient std::string <-> BigUnsigned/BigInteger conversion routines |
| 10 * - std::ostream << operators for BigUnsigned/BigInteger */ | 16 * - std::ostream << operators for BigUnsigned/BigInteger */ |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 } | 69 } |
| 64 | 70 |
| 65 // Create the BigInteger. | 71 // Create the BigInteger. |
| 66 BigInteger x(blocks, numBlocks, sign); | 72 BigInteger x(blocks, numBlocks, sign); |
| 67 | 73 |
| 68 delete [] blocks; | 74 delete [] blocks; |
| 69 return x; | 75 return x; |
| 70 } | 76 } |
| 71 | 77 |
| 72 #endif | 78 #endif |
| OLD | NEW |