mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	Reorganizing code base
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
		
							parent
							
								
									9a84cba6c9
								
							
						
					
					
						commit
						ded42feeb6
					
				
					 62 changed files with 4 additions and 115 deletions
				
			
		
							
								
								
									
										48
									
								
								src/subpaving/subpaving_hwf.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								src/subpaving/subpaving_hwf.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,48 @@
 | 
			
		|||
/*++
 | 
			
		||||
Copyright (c) 2012 Microsoft Corporation
 | 
			
		||||
 | 
			
		||||
Module Name:
 | 
			
		||||
 | 
			
		||||
    subpaving_hwf.h
 | 
			
		||||
 | 
			
		||||
Abstract:
 | 
			
		||||
 | 
			
		||||
    Subpaving for non-linear arithmetic using hardware floats.
 | 
			
		||||
 | 
			
		||||
Author:
 | 
			
		||||
 | 
			
		||||
    Leonardo de Moura (leonardo) 2012-08-06.
 | 
			
		||||
 | 
			
		||||
Revision History:
 | 
			
		||||
 | 
			
		||||
--*/
 | 
			
		||||
#ifndef __SUBPAVING_HWF_H_
 | 
			
		||||
#define __SUBPAVING_HWF_H_
 | 
			
		||||
 | 
			
		||||
#include"subpaving_t.h"
 | 
			
		||||
#include"f2n.h"
 | 
			
		||||
#include"hwf.h"
 | 
			
		||||
 | 
			
		||||
namespace subpaving {
 | 
			
		||||
 | 
			
		||||
struct config_hwf {
 | 
			
		||||
    f2n<hwf_manager> & m_manager;
 | 
			
		||||
public:
 | 
			
		||||
    typedef f2n<hwf_manager>            numeral_manager;
 | 
			
		||||
    typedef f2n<hwf_manager>::exception exception;
 | 
			
		||||
 | 
			
		||||
    static void round_to_minus_inf(numeral_manager & m) { m.round_to_minus_inf(); }
 | 
			
		||||
    static void round_to_plus_inf(numeral_manager & m)  { m.round_to_plus_inf(); }
 | 
			
		||||
    static void set_rounding(numeral_manager & m, bool to_plus_inf)  { m.set_rounding(to_plus_inf); }
 | 
			
		||||
    config_hwf(f2n<hwf_manager> & m):m_manager(m) {}
 | 
			
		||||
    f2n<hwf_manager> & m() const { return const_cast<f2n<hwf_manager> &>(m_manager); }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
class context_hwf : public context_t<config_hwf> {
 | 
			
		||||
public:
 | 
			
		||||
    context_hwf(f2n<hwf_manager> & m, params_ref const & p, small_object_allocator * a):context_t<config_hwf>(config_hwf(m), p, a) {}
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue