summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-01-07 09:05:26 +0000
committerDuncan Sands <baldrick@free.fr>2010-01-07 09:05:26 +0000
commit1949de7b817805fedd0c701b34539622cf3129a3 (patch)
tree3082c43806ae49aafebc8eb4ae46637ab0d82e91 /llvm
parentf117880ab090b68cc1beaa1bf0778c1cb6764a66 (diff)
downloadbcm5719-llvm-1949de7b817805fedd0c701b34539622cf3129a3.tar.gz
bcm5719-llvm-1949de7b817805fedd0c701b34539622cf3129a3.zip
Correct spelling.
llvm-svn: 92910
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/MathExtras.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/MathExtras.h b/llvm/include/llvm/Support/MathExtras.h
index 438b021e46b..fa12416aeac 100644
--- a/llvm/include/llvm/Support/MathExtras.h
+++ b/llvm/include/llvm/Support/MathExtras.h
@@ -160,7 +160,7 @@ inline unsigned CountLeadingZeros_32(uint32_t Value) {
#else
if (!Value) return 32;
Count = 0;
- // bisecton method for count leading zeros
+ // bisection method for count leading zeros
for (unsigned Shift = 32 >> 1; Shift; Shift >>= 1) {
uint32_t Tmp = Value >> Shift;
if (Tmp) {
@@ -197,7 +197,7 @@ inline unsigned CountLeadingZeros_64(uint64_t Value) {
if (sizeof(long) == sizeof(int64_t)) {
if (!Value) return 64;
Count = 0;
- // bisecton method for count leading zeros
+ // bisection method for count leading zeros
for (unsigned Shift = 64 >> 1; Shift; Shift >>= 1) {
uint64_t Tmp = Value >> Shift;
if (Tmp) {
OpenPOWER on IntegriCloud