18 lines
		
	
	
		
			266 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			266 B
		
	
	
	
		
			C
		
	
	
	
	
	
#include "minix_utils.h"
 | 
						|
 | 
						|
#if !defined(__LONG_LONG_SUPPORTED)
 | 
						|
u64_t lshift64(u64_t x, unsigned short b)
 | 
						|
{
 | 
						|
	u64_t r;
 | 
						|
 | 
						|
	if(b >= 32) {
 | 
						|
		r.lo = 0;
 | 
						|
		r.hi = x.lo << (b - 32);
 | 
						|
	}else {
 | 
						|
		r.lo = x.lo << b;
 | 
						|
		r.hi = (x.lo >> (32 - b)) | (x.hi << b);
 | 
						|
	}
 | 
						|
	return r;
 | 
						|
}
 | 
						|
#endif
 |