mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
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
This commit is contained in:
parent
ece78a30bd
commit
571c0e95fa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user