2014-09-19 90 views
-4

1 << 32 Go是什麼意思?如果我理解正確,這意味着2^32。還是我誤會了?如果我的意見是正確的,那麼這段代碼是做什麼的?1 << 32在Go中的含義是什麼?

min := int(^uint(0) >> 1) 
+0

這是一個標準的移位運算符(http://golang.org/ref/spec#Operators)。這不是特定的。 – JimB 2014-09-19 17:21:21

+0

什麼是「轉變」?你能解釋一下嗎? – 2014-09-19 17:24:46

+0

http://en.wikipedia.org/wiki/Bitwise_operation – JimB 2014-09-19 17:30:35

回答

相關問題