From 363f6cbcaaaea9e5e5677f77be8700064024f85d Mon Sep 17 00:00:00 2001 From: cmirnov Date: Thu, 8 Oct 2015 21:55:15 +0300 Subject: [PATCH 1/3] Create thirdBits --- thirdBits | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 thirdBits diff --git a/thirdBits b/thirdBits new file mode 100644 index 0000000..669eafb --- /dev/null +++ b/thirdBits @@ -0,0 +1,10 @@ +void thirdBits () +{ + int a; + a = 1 << 2; + a += a << 3; + a += a << 6; + a += a << 12; + printf("%d", a); + return; +} From aa2b59d98c2b7e5948df803f518c11cba608e142 Mon Sep 17 00:00:00 2001 From: cmirnov Date: Tue, 13 Oct 2015 23:09:25 +0300 Subject: [PATCH 2/3] Update thirdBits --- thirdBits | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/thirdBits b/thirdBits index 669eafb..ef7cc75 100644 --- a/thirdBits +++ b/thirdBits @@ -2,9 +2,10 @@ void thirdBits () { int a; a = 1 << 2; - a += a << 3; - a += a << 6; - a += a << 12; + a = a | (a << 3); + a = a | (a << 6); + a = a | (a << 12); + a = a | (a << 6); printf("%d", a); return; } From 59504c94fe90bafc1ea6762ece39f3b6ae87c6bc Mon Sep 17 00:00:00 2001 From: cmirnov Date: Fri, 23 Oct 2015 11:55:28 +0300 Subject: [PATCH 3/3] Update thirdBits --- thirdBits | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/thirdBits b/thirdBits index ef7cc75..8bd3617 100644 --- a/thirdBits +++ b/thirdBits @@ -1,11 +1,9 @@ -void thirdBits () -{ +int thirdBits (){ int a; a = 1 << 2; a = a | (a << 3); a = a | (a << 6); a = a | (a << 12); a = a | (a << 6); - printf("%d", a); - return; + return a; }