mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-04 09:44:35 +00:00 
			
		
		
		
	Add SDL_FLT_EPSILON.
This commit is contained in:
		
				
					committed by
					
						
						Sam Lantinga
					
				
			
			
				
	
			
			
			
						parent
						
							5d4a1f8356
						
					
				
				
					commit
					00feca27b0
				
			@@ -234,6 +234,19 @@ typedef uint64_t Uint64;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* @} *//* Basic data types */
 | 
					/* @} *//* Basic data types */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 *  \name Floating-point constants
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					/* @{ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef FLT_EPSILON
 | 
				
			||||||
 | 
					#define SDL_FLT_EPSILON FLT_EPSILON
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
					#define SDL_FLT_EPSILON 1.1920928955078125e-07F /* 0x0.000002p0 */
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* @} *//* Floating-point constants */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Make sure we have macros for printing width-based integers.
 | 
					/* Make sure we have macros for printing width-based integers.
 | 
				
			||||||
 * <stdint.h> should define these but this is not true all platforms.
 | 
					 * <stdint.h> should define these but this is not true all platforms.
 | 
				
			||||||
 * (for example win32) */
 | 
					 * (for example win32) */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user