diff options
| author | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-11 22:41:34 +0000 |
|---|---|---|
| committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-11 22:41:34 +0000 |
| commit | 960707c335b85fa0df0bff6400fd4e5f19ac0df4 (patch) | |
| tree | fcd6bd0a802eff2ba6d9bcfef369241d5b79d06a /llvm/include/Support/MathExtras.h | |
| parent | da3f675edd0b0ffa480c1bec97a2a701d31e4ca8 (diff) | |
| download | bcm5719-llvm-960707c335b85fa0df0bff6400fd4e5f19ac0df4.tar.gz bcm5719-llvm-960707c335b85fa0df0bff6400fd4e5f19ac0df4.zip | |
Put all LLVM code into the llvm namespace, as per bug 109.
llvm-svn: 9903
Diffstat (limited to 'llvm/include/Support/MathExtras.h')
| -rw-r--r-- | llvm/include/Support/MathExtras.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/Support/MathExtras.h b/llvm/include/Support/MathExtras.h index ec742324b00..74958fbc357 100644 --- a/llvm/include/Support/MathExtras.h +++ b/llvm/include/Support/MathExtras.h @@ -16,6 +16,8 @@ #include "Support/DataTypes.h" +namespace llvm { + inline unsigned log2(uint64_t C) { unsigned getPow; for (getPow = 0; C > 1; ++getPow) @@ -33,4 +35,6 @@ inline bool isPowerOf2(int64_t C, unsigned &getPow) { return false; } +} // End llvm namespace + #endif |

