diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-04-16 10:25:32 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-04-16 10:25:32 +0000 |
commit | 571c0e95fa74c570f1c42f15b63ba8c68cba86b1 (patch) | |
tree | 7bc602bca4cce73076cdd0ceef22fd8ab48d19d5 /runtime/libprofile/GCDAProfiling.c | |
parent | ece78a30bdd4c26edcd5304aca1415ebc8b27756 (diff) | |
download | external_llvm-571c0e95fa74c570f1c42f15b63ba8c68cba86b1.zip external_llvm-571c0e95fa74c570f1c42f15b63ba8c68cba86b1.tar.gz external_llvm-571c0e95fa74c570f1c42f15b63ba8c68cba86b1.tar.bz2 |
Write out uint64_t as i{0..32},i{33..64} instead of i{0..32},0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129638 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/libprofile/GCDAProfiling.c')
-rw-r--r-- | runtime/libprofile/GCDAProfiling.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/libprofile/GCDAProfiling.c b/runtime/libprofile/GCDAProfiling.c index d5fcd17..0bd445c 100644 --- a/runtime/libprofile/GCDAProfiling.c +++ b/runtime/libprofile/GCDAProfiling.c @@ -18,7 +18,6 @@ \*===----------------------------------------------------------------------===*/ #include "llvm/Support/DataTypes.h" -#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -37,8 +36,8 @@ static void write_int32(uint32_t i) { static void write_int64(uint64_t i) { uint32_t lo, hi; - lo = i & 0x00000000ffffffff; - hi = i & 0xffffffff00000000; + lo = i >> 0; + hi = i >> 32; write_int32(lo); write_int32(hi); |