Guest User

Untitled

a guest
Jul 21st, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. 08/18:48:38 < Balon> What is the range of uint32_t?
  2. 08/18:48:52 < Balon> Is it -32767 - 32767?
  3. 08/18:48:52 -!- plediii [n=plediii@nat-128-42-156-128.rice.edu] has quit []
  4. 08/18:49:29 < FauxFaux> No.
  5. 08/18:49:30 < Bloodust> no
  6. 08/18:49:42 < Bloodust> its -2^31 to 2^31
  7. 08/18:49:50 < FauxFaux> No.
  8. 08/18:49:51 < Bloodust> no wait
  9. 08/18:49:51 < Zogatribe> no
  10. 08/18:49:53 < Bloodust> its uint :D
  11. 08/18:49:54 < Zogatribe> unsigned duh
  12. 08/18:50:00 < Bloodust> 0-2^32 then
  13. 08/18:50:00 < Bloodust> :D
  14. 08/18:50:04 < Zogatribe> no
  15. 08/18:50:09 < FauxFaux> << 2^32
  16. 08/18:50:09 < geordi> error: no match for 'operator^' in 'cout.ostream::operator<<(2) ^ 32'
  17. 08/18:50:15 < FauxFaux> YOU GET THE IDEA
  18. 08/18:50:19 < Zogatribe> 0 - 2^32-1
  19. 08/18:50:31 < FauxFaux> << (2^32-1)
  20. 08/18:50:31 < Bloodust> whatevah
  21. 08/18:50:32 < geordi> warning: suggest parentheses around arithmetic in operand of '^'
  22. 08/18:50:32 < hyperair> << (2^32)
  23. 08/18:50:33 < geordi> 34
  24. 08/18:50:40 < FauxFaux> Thanks, hyperair.
  25. 08/18:50:47 < Bloodust> for using XOR OPERATOR
  26. 08/18:51:12 < Zogatribe> << (2<<32 - 1);
  27. 08/18:51:13 < geordi> warning: suggest parentheses around '-' inside '<<'
  28. 08/18:51:16 < Bloodust> << pow(2.0,32.0) - 1
  29. 08/18:51:17 < geordi> 4.29497e+09
  30. 08/18:51:25 < Bloodust> << pow(2,32) - 1
  31. 08/18:51:26 < geordi> 4.29497e+09
  32. 08/18:51:31 < Bloodust> whatevah
  33. 08/18:51:33 < Zogatribe> << ((1<<32) - 1);
  34. 08/18:51:34 < geordi> warning: left shift count >= width of type
  35. 08/18:51:57 < Bloodust> geordi << numeric_limits<unsigned int>::max()
  36. 08/18:51:58 < geordi> 4294967295
  37. 08/18:52:00 < Bloodust> asdasdas
  38. 08/18:52:04 < Bloodust> there
  39. 08/18:52:09 < Zogatribe> no
  40. 08/18:52:17 < Zogatribe> unsigned int != uint32_t
  41. 08/18:52:20 < Zogatribe> might be different
  42. 08/18:52:24 < Bloodust> might be
  43. 08/18:52:36 < Bloodust> but not in this case
  44. 08/18:53:01 < Zogatribe> int might be 64 bits
  45. 08/18:53:15 < Bloodust> but not uint32
  46. 08/18:53:19 < Bloodust> _t
  47. 08/18:53:40 < Zogatribe> geordi << numeric_limits<uint32_t>::max();
  48. 08/18:53:41 < geordi> 4294967295
Add Comment
Please, Sign In to add comment