[llvm-commits] [llvm] r129638 - /llvm/trunk/runtime/libprofile/GCDAProfiling.c
Benjamin Kramer
benny.kra at googlemail.com
Sat Apr 16 03:25:32 PDT 2011
Author: d0k
Date: Sat Apr 16 05:25:32 2011
New Revision: 129638
URL: http://llvm.org/viewvc/llvm-project?rev=129638&view=rev
Log:
Write out uint64_t as i{0..32},i{33..64} instead of i{0..32},0.
Modified:
llvm/trunk/runtime/libprofile/GCDAProfiling.c
Modified: llvm/trunk/runtime/libprofile/GCDAProfiling.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtime/libprofile/GCDAProfiling.c?rev=129638&r1=129637&r2=129638&view=diff
==============================================================================
--- llvm/trunk/runtime/libprofile/GCDAProfiling.c (original)
+++ llvm/trunk/runtime/libprofile/GCDAProfiling.c Sat Apr 16 05:25:32 2011
@@ -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_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);
More information about the llvm-commits
mailing list