summaryrefslogtreecommitdiffhomepage
path: root/misc.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-23 02:10:54 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-23 03:58:27 +0200
commit0a63188afab1dd49380f916963307f9b2efdcac1 (patch)
tree37dac3b29a2f89a99e1df1cafd1cbbc2a0e803f0 /misc.go
parent65a74f3175855dc41b49332103ada6bb27733291 (diff)
Move tun to subpackage
Diffstat (limited to 'misc.go')
-rw-r--r--misc.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/misc.go b/misc.go
index aeda813..af61718 100644
--- a/misc.go
+++ b/misc.go
@@ -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