mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
Change how 64 bit builds are detected.
Instead of doing this at configure time, we look at the actual compile time status. This also avoids hardcoding checks based on what CPU architecture is present, which doesn't work when Z3 is being built on non-x86_64 platforms.
This commit is contained in:
parent
559f57470e
commit
51a947b73d
12 changed files with 17 additions and 22 deletions
|
@ -111,7 +111,7 @@ namespace sat {
|
|||
|
||||
clause_offset clause::get_new_offset() const {
|
||||
unsigned o1 = m_lits[0].index();
|
||||
#if defined(_AMD64_) || defined(_M_IA64)
|
||||
#if defined(__LP64__) || defined(_WIN64)
|
||||
if (sizeof(clause_offset) == 8) {
|
||||
unsigned o2 = m_lits[1].index();
|
||||
return (clause_offset)o1 + (((clause_offset)o2) << 32);
|
||||
|
@ -122,7 +122,7 @@ namespace sat {
|
|||
|
||||
void clause::set_new_offset(clause_offset offset) {
|
||||
m_lits[0] = to_literal(static_cast<unsigned>(offset));
|
||||
#if defined(_AMD64_) || defined(_M_IA64)
|
||||
#if defined(__LP64__) || defined(_WIN64)
|
||||
if (sizeof(offset) == 8) {
|
||||
m_lits[1] = to_literal(static_cast<unsigned>(offset >> 32));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue