mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 15:40:06 +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 <istream> | ||||
| #include <numbers> | ||||
| #include <set> | ||||
| #include <string> | ||||
| 
 | ||||
|  | @ -1029,8 +1028,7 @@ ProductDescriptionBlock::data_value(std::uint8_t level) const | |||
|          } | ||||
|          else | ||||
|          { | ||||
|             f = static_cast<float>(std::pow<double>( | ||||
|                std::numbers::e, (level - log_offset()) / log_scale())); | ||||
|             f = std::expf((level - log_offset()) / log_scale()); | ||||
|          } | ||||
|          break; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat