minix/lib/libarchive/minix_utils.c

18 lines
266 B
C
Raw Normal View History

2010-07-13 21:17:02 +02:00
#include "minix_utils.h"
2010-11-12 19:38:10 +01:00
#if !defined(__LONG_LONG_SUPPORTED)
2010-07-13 21:17:02 +02:00
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;
}
2010-11-12 19:38:10 +01:00
#endif