summaryrefslogtreecommitdiff
path: root/sonstiges/bitOps.cpp
diff options
context:
space:
mode:
authorPaul Jungeblut <paul.jungeblut@gmail.com>2016-10-06 00:17:59 +0200
committerPaul Jungeblut <paul.jungeblut@gmail.com>2016-10-06 00:17:59 +0200
commit442921c7bd93e9e111845de6c22f66753b41e11a (patch)
treebe6c168303240c168def228c763614d3a9d1c91e /sonstiges/bitOps.cpp
parent7c97303ec8fc5dfc278198687d8c5154e0cd1baf (diff)
Renamin sonstiges ot other.
Diffstat (limited to 'sonstiges/bitOps.cpp')
-rw-r--r--sonstiges/bitOps.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/sonstiges/bitOps.cpp b/sonstiges/bitOps.cpp
deleted file mode 100644
index b75304f..0000000
--- a/sonstiges/bitOps.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-// Bit an Position j auslesen.
-(a & (1 << j)) != 0
-// Bit an Position j setzen.
-a |= (1 << j)
-// Bit an Position j löschen.
-a &= ~(1 << j)
-// Bit an Position j umkehren.
-a ^= (1 << j)
-// Wert des niedrigsten gesetzten Bits.
-(a & -a)
-// Setzt alle Bits auf 1.
-a = -1
-// Setzt die ersten n Bits auf 1. Achtung: Overflows.
-a = (1 << n) - 1