mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	Merge branch 'pure' of https://github.com/Z3Prover/z3
This commit is contained in:
		
						commit
						19c22fde50
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -85,9 +85,8 @@ hwf_manager::~hwf_manager()
 | 
			
		|||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// #define RAW(X) (*reinterpret_cast<const uint64*>(&(X)))
 | 
			
		||||
#define RAW(X) ({ uint64 tmp; memcpy(&tmp, &(X), sizeof(uint64)); tmp; })
 | 
			
		||||
#define DBL(X) ({ double tmp; memcpy(&tmp, &(X), sizeof(double)); tmp; })
 | 
			
		||||
uint64 RAW(double X) { uint64 tmp; memcpy(&tmp, &(X), sizeof(uint64)); return tmp; }
 | 
			
		||||
double DBL(uint64 X) { double tmp; memcpy(&tmp, &(X), sizeof(double)); return tmp; }
 | 
			
		||||
 | 
			
		||||
void hwf_manager::set(hwf & o, int value) {
 | 
			
		||||
    o.value = (double) value;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -200,8 +200,9 @@ void mpfx_manager::set(mpfx & n, uint64 v) {
 | 
			
		|||
        allocate_if_needed(n);
 | 
			
		||||
        n.m_sign              = 0;
 | 
			
		||||
        unsigned * w          = words(n);
 | 
			
		||||
        uint64 * _vp          = &v;
 | 
			
		||||
        unsigned * _v         = 0;
 | 
			
		||||
        memcpy(_v, &v, sizeof(unsigned*));
 | 
			
		||||
        memcpy(&_v, &_vp, sizeof(unsigned*));
 | 
			
		||||
        for (unsigned i = 0; i < m_total_sz; i++) 
 | 
			
		||||
            w[i] = 0;
 | 
			
		||||
        w[m_frac_part_sz]     = _v[0];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue