diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-23 02:10:54 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-05-23 03:58:27 +0200 |
commit | 0a63188afab1dd49380f916963307f9b2efdcac1 (patch) | |
tree | 37dac3b29a2f89a99e1df1cafd1cbbc2a0e803f0 /misc.go | |
parent | 65a74f3175855dc41b49332103ada6bb27733291 (diff) |
Move tun to subpackage
Diffstat (limited to 'misc.go')
-rw-r--r-- | misc.go | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -41,13 +41,6 @@ func (a *AtomicBool) Set(val bool) { atomic.StoreInt32(&a.flag, flag) } -/* Integer manipulation */ - -func toInt32(n uint32) int32 { - mask := uint32(1 << 31) - return int32(-(n & mask) + (n & ^mask)) -} - func min(a, b uint) uint { if a > b { return b |