diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-10 20:21:53 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-10 20:21:53 +0100 |
commit | e9e060064d235b3affb941dcf946bc32b7b9292f (patch) | |
tree | f346c3a78cdc27459a69a8a757b59d84b5f92683 /src/algorithms/bits | |
parent | note on performance (diff) | |
download | algorithms-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>
Diffstat (limited to 'src/algorithms/bits')
-rw-r--r-- | src/algorithms/bits/Bits.java | 3 |
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. */ } /** |