Welcome to 16892 Developer Community-Open, Learning,Share
menu search
person

Categories

image
n 等于 16,通过 sc = n - (n >>> 2) 将 sc 赋值为 12,请问 n - (n >>> 2) 是什么高端写法?为什么要这么写?请大佬赐教


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
430 views
Welcome To Ask or Share your Answers For Others

1 Answer

>>> 无符号移位操作 这个就相当于 n-(n/(2^2))


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to 16892 Developer Community-Open, Learning and Share

548k questions

547k answers

4 comments

32.5k users

...