mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 06:10:04 +00:00 
			
		
		
		
	Use std::expf instead of std::pow with e
This commit is contained in:
		
							parent
							
								
									6254b0a84e
								
							
						
					
					
						commit
						9c181d3e76
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -4,7 +4,6 @@ | ||||||
| 
 | 
 | ||||||
| #include <array> | #include <array> | ||||||
| #include <istream> | #include <istream> | ||||||
| #include <numbers> |  | ||||||
| #include <set> | #include <set> | ||||||
| #include <string> | #include <string> | ||||||
| 
 | 
 | ||||||
|  | @ -1029,8 +1028,7 @@ ProductDescriptionBlock::data_value(std::uint8_t level) const | ||||||
|          } |          } | ||||||
|          else |          else | ||||||
|          { |          { | ||||||
|             f = static_cast<float>(std::pow<double>( |             f = std::expf((level - log_offset()) / log_scale()); | ||||||
|                std::numbers::e, (level - log_offset()) / log_scale())); |  | ||||||
|          } |          } | ||||||
|          break; |          break; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat