mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
Fix for problem that caused both HUGE and INVALID latencies to be negative
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1513 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -11,7 +11,7 @@
|
|||||||
#include <ext/hash_map>
|
#include <ext/hash_map>
|
||||||
|
|
||||||
typedef long long cycles_t;
|
typedef long long cycles_t;
|
||||||
const cycles_t HUGE_LATENCY = ~((unsigned long long) 1 << sizeof(cycles_t)-2);
|
const cycles_t HUGE_LATENCY = ~((long long) 1 << (sizeof(cycles_t)-2));
|
||||||
const cycles_t INVALID_LATENCY = -HUGE_LATENCY;
|
const cycles_t INVALID_LATENCY = -HUGE_LATENCY;
|
||||||
static const unsigned MAX_OPCODE_SIZE = 16;
|
static const unsigned MAX_OPCODE_SIZE = 16;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user