Skip to content

Commit 121d6ad

Browse files
committed
Remove unused alignup function from util.h
1 parent d1e26d4 commit 121d6ad

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/util.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,6 @@ static const int64_t CENT = 1000000;
4646
// This is needed because the foreach macro can't get over the comma in pair<t1, t2>
4747
#define PAIRTYPE(t1, t2) std::pair<t1, t2>
4848

49-
// Align by increasing pointer, must have extra space at end of buffer
50-
template <size_t nBytes, typename T>
51-
T* alignup(T* p)
52-
{
53-
union
54-
{
55-
T* ptr;
56-
size_t n;
57-
} u;
58-
u.ptr = p;
59-
u.n = (u.n + (nBytes-1)) & ~(nBytes-1);
60-
return u.ptr;
61-
}
62-
6349
#ifdef WIN32
6450
#define MSG_DONTWAIT 0
6551

0 commit comments

Comments
 (0)