allow a 64bit base type
This commit is contained in:
		
							parent
							
								
									f5e53c0452
								
							
						
					
					
						commit
						8cb9198bcf
					
				| @ -51,13 +51,13 @@ class FixedPointNumber | |||||||
| 
 | 
 | ||||||
|     constexpr static const int32_t PRECISION = 1 << FractionalBitSize; |     constexpr static const int32_t PRECISION = 1 << FractionalBitSize; | ||||||
| 
 | 
 | ||||||
|     int32_t m_fixed_point_state; |     typename std::conditional<use_64_bits, int64_t, int32_t>::type m_fixed_point_state; | ||||||
| 
 | 
 | ||||||
|     // state signage encapsulates whether the state should either represent a
 |     // state signage encapsulates whether the state should either represent a
 | ||||||
|     // signed or an unsigned floating point number
 |     // signed or an unsigned floating point number
 | ||||||
|     using state_signage = |     using state_signage = | ||||||
|         typename std::conditional<is_unsigned, |         typename std::conditional<is_unsigned, | ||||||
|                                   std::make_unsigned<decltype(m_fixed_point_state)>::type, |                                   typename std::make_unsigned<decltype(m_fixed_point_state)>::type, | ||||||
|                                   decltype(m_fixed_point_state)>::type; |                                   decltype(m_fixed_point_state)>::type; | ||||||
| 
 | 
 | ||||||
|   public: |   public: | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user