1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Write out uint64_t as i{0..32},i{33..64} instead of i{0..32},0.

llvm-svn: 129638
This commit is contained in:
Benjamin Kramer 2011-04-16 10:25:32 +00:00
parent e704042077
commit c7d15fb261

View File

@ -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);