mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:32:45 +00:00 
			
		
		
		
	LibM: Fix Toolchain build
We can't rely on libstdc++ inside LibC or LibM, since these libraries are part of the Toolchain bringup build.
This commit is contained in:
		
							parent
							
								
									941981ec4f
								
							
						
					
					
						commit
						dd696e7c75
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -1,6 +1,5 @@ | ||||||
| #include <LibC/assert.h> | #include <LibC/assert.h> | ||||||
| #include <LibM/math.h> | #include <LibM/math.h> | ||||||
| #include <limits> |  | ||||||
| #include <stdint.h> | #include <stdint.h> | ||||||
| #include <stdlib.h> | #include <stdlib.h> | ||||||
| 
 | 
 | ||||||
|  | @ -122,7 +121,7 @@ double exp(double exponent) | ||||||
|             if (integer_part & 8) result *= e_to_power<8>(); |             if (integer_part & 8) result *= e_to_power<8>(); | ||||||
|             if (integer_part & 16) result *= e_to_power<16>(); |             if (integer_part & 16) result *= e_to_power<16>(); | ||||||
|             if (integer_part & 32) result *= e_to_power<32>(); |             if (integer_part & 32) result *= e_to_power<32>(); | ||||||
|             if (integer_part >= 64) return std::numeric_limits<double>::infinity(); |             if (integer_part >= 64) return __builtin_huge_val(); | ||||||
|         } |         } | ||||||
|         exponent -= integer_part; |         exponent -= integer_part; | ||||||
|     } else if (exponent < 0) |     } else if (exponent < 0) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling