summaryrefslogtreecommitdiff
path: root/sonstiges/bitOps.cpp
diff options
context:
space:
mode:
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