diff --git a/fitsBits b/fitsBits new file mode 100644 index 0000000..1be7bf5 --- /dev/null +++ b/fitsBits @@ -0,0 +1,3 @@ +int fitsBits(int x, int n){ + return (!(((x << (33 + ~n)) >> (33 + ~n)) + ~x + 1)); +}