diff options
author | Dan Gohman <gohman@apple.com> | 2009-04-01 18:45:54 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-04-01 18:45:54 +0000 |
commit | de551f91d8816632a76a065084caab9fab6aacff (patch) | |
tree | faf864647d57a6d0f3e6e16f199b0559be489e5f /lib/Target/CellSPU | |
parent | ef66abeaeef425927821ddc331d5c14138efe258 (diff) | |
download | external_llvm-de551f91d8816632a76a065084caab9fab6aacff.zip external_llvm-de551f91d8816632a76a065084caab9fab6aacff.tar.gz external_llvm-de551f91d8816632a76a065084caab9fab6aacff.tar.bz2 |
Use CHAR_BIT instead of hard-coding 8 in several places where it
is appropriate. This helps visually differentiate host-oriented
calculations from target-oriented calculations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CellSPU')
-rw-r--r-- | lib/Target/CellSPU/SPUISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CellSPU/SPUISelLowering.cpp b/lib/Target/CellSPU/SPUISelLowering.cpp index c306298..c07e6d5 100644 --- a/lib/Target/CellSPU/SPUISelLowering.cpp +++ b/lib/Target/CellSPU/SPUISelLowering.cpp @@ -2909,7 +2909,7 @@ SPUTargetLowering::computeMaskedBitsForTargetNode(const SDValue Op, const SelectionDAG &DAG, unsigned Depth ) const { #if 0 - const uint64_t uint64_sizebits = sizeof(uint64_t) * 8; + const uint64_t uint64_sizebits = sizeof(uint64_t) * CHAR_BIT; switch (Op.getOpcode()) { default: |