Discuss programming topics for the various GPL'd game engine sources.
	Moderator: InsideQC Admins
	
		
		
			
				
			
			
			
by ericw » Wed Jul 26, 2017 3:58 am 
			
			
			
		 
		
			
			- 
				ericw
			
 
			
		-  
 
		- Posts: 92
 - Joined: Sat Jan 18, 2014 2:11 am
 
		
	
		
		 
	 
	
	
		
		
			
				
			
			
			
by mh » Thu Jul 27, 2017 1:01 pm 
			
			I think the intention is that it's to allow the following Q_memset to take it's fast path.
			
		 
		
			
			- 
				

				mh
			 
			
		-  
 
		- Posts: 2292
 - Joined: Sat Jan 12, 2008 1:38 am
 
		
	
		
		 
	 
	
	
		
		
			
				
			
			
			
by ericw » Fri Jul 28, 2017 7:46 pm 
			
			Yeah, I think it must have been an attempt to round up to the nearest multiple of 4, but even then it doesn't work as written:
>>> x = 12
>>> (x + 31) / 8
5
			
		 
		
			
			- 
				ericw
			
 
			
		-  
 
		- Posts: 92
 - Joined: Sat Jan 18, 2014 2:11 am
 
		
	
		
		 
	 
	
	
	
	Return to Engine Programming
	
	Who is online
	Users browsing this forum: No registered users and 1 guest