aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-10 20:21:53 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-10 20:21:53 +0100
commite9e060064d235b3affb941dcf946bc32b7b9292f (patch)
treef346c3a78cdc27459a69a8a757b59d84b5f92683
parentnote on performance (diff)
downloadalgorithms-and-data-structures-e9e060064d235b3affb941dcf946bc32b7b9292f.tar.gz
algorithms-and-data-structures-e9e060064d235b3affb941dcf946bc32b7b9292f.tar.bz2
algorithms-and-data-structures-e9e060064d235b3affb941dcf946bc32b7b9292f.tar.xz
note on performance
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/algorithms/bits/Bits.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/algorithms/bits/Bits.java b/src/algorithms/bits/Bits.java
index d760afe..e66de80 100644
--- a/src/algorithms/bits/Bits.java
+++ b/src/algorithms/bits/Bits.java
@@ -222,7 +222,8 @@ public class Bits
{
£>function _ { echo "ONES_TABLE_256[(int)((value >> $1) & 255)]" ; }
return (byte)((byte)(£(_ 0) + £(_ 8)) + (byte)(£(_ 16) + £(_ 24)));
- /* In C you can split the value by getting the address of the value and cast the pointer to char* */
+ /* In C you can split the value by getting the address of the
+ value and cast the pointer to char*, that is however slower. */
}
/**