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