aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2016-07-09 08:54:07 +0000
committerJaven O'Neal <onealj@apache.org>2016-07-09 08:54:07 +0000
commitaac75f3f3cbe91ec4b85d22bf836b7d9e2873a94 (patch)
treec1f5e73798546802ca97aa4acec9a2a3274dfbdc /src/java/org/apache
parentab9ecf93732cc81fdcf2a00f14bf60564bfa613d (diff)
downloadpoi-aac75f3f3cbe91ec4b85d22bf836b7d9e2873a94.tar.gz
poi-aac75f3f3cbe91ec4b85d22bf836b7d9e2873a94.zip
add 2^x to POWER2 comments
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1751992 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r--src/java/org/apache/poi/util/RLEDecompressingInputStream.java32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/java/org/apache/poi/util/RLEDecompressingInputStream.java b/src/java/org/apache/poi/util/RLEDecompressingInputStream.java
index 8d826eb12b..f319965454 100644
--- a/src/java/org/apache/poi/util/RLEDecompressingInputStream.java
+++ b/src/java/org/apache/poi/util/RLEDecompressingInputStream.java
@@ -34,22 +34,22 @@ public class RLEDecompressingInputStream extends InputStream {
* Bitmasks for performance
*/
private static final int[] POWER2 = new int[] {
- 0x0001, // 0
- 0x0002, // 1
- 0x0004, // 2
- 0x0008, // 3
- 0x0010, // 4
- 0x0020, // 5
- 0x0040, // 6
- 0x0080, // 7
- 0x0100, // 8
- 0x0200, // 9
- 0x0400, // 10
- 0x0800, // 11
- 0x1000, // 12
- 0x2000, // 13
- 0x4000, // 14
- 0x8000 // 15
+ 0x0001, // 2^0
+ 0x0002, // 2^1
+ 0x0004, // 2^2
+ 0x0008, // 2^3
+ 0x0010, // 2^4
+ 0x0020, // 2^5
+ 0x0040, // 2^6
+ 0x0080, // 2^7
+ 0x0100, // 2^8
+ 0x0200, // 2^9
+ 0x0400, // 2^10
+ 0x0800, // 2^11
+ 0x1000, // 2^12
+ 0x2000, // 2^13
+ 0x4000, // 2^14
+ 0x8000 // 2^15
};
/** the wrapped inputstream */