StackOverflow Questions for Tag: bit-manipulation

Alcott
Alcott

Reputation: 18585

bit-wise operation unary ~ (invert)

Score: 96

Views: 146261

Answers: 9

Read More
Geek
Geek

Reputation: 27199

How is this bitwise AND operator masking the lower seven order bits of the number?

Score: 32

Views: 9374

Answers: 5

Read More
StephenD
StephenD

Reputation: 269

How do I do bit operations on a struct?

Score: 4

Views: 1307

Answers: 2

Read More
Ginu Jacob
Ginu Jacob

Reputation: 1818

Have fields in bit fields got contiguous memory location for its elements? Is this behavior compiler independent?

Score: 1

Views: 169

Answers: 3

Read More
Greg Peckory
Greg Peckory

Reputation: 8068

Using bitwise AND operation in haskell

Score: 1

Views: 8836

Answers: 1

Read More
Legended
Legended

Reputation: 151

Optimization and Methods for Reversing Nibbles of a Byte

Score: 2

Views: 131

Answers: 1

Read More
steffenj
steffenj

Reputation: 8085

Most common C# bitwise operations on enums

Score: 222

Views: 194647

Answers: 11

Read More
AndreasT
AndreasT

Reputation: 9801

Given an integer, how do I find the next largest power of two using bit-twiddling?

Score: 79

Views: 47082

Answers: 17

Read More
Badr
Badr

Reputation: 10658

How do I get bit-by-bit data from an integer value in C?

Score: 134

Views: 262719

Answers: 9

Read More
CPlus
CPlus

Reputation: 4848

How can I populate an array with multiple copies of a small value with the fewest operations possible?

Score: -2

Views: 129

Answers: 1

Read More
nathan
nathan

Reputation: 5733

In C/C++ what's the simplest way to reverse the order of bits in a byte?

Score: 168

Views: 304989

Answers: 40

Read More
Pragyan
Pragyan

Reputation: 371

How to compute the integer absolute value

Score: 36

Views: 55234

Answers: 12

Read More
Max Sedlusch
Max Sedlusch

Reputation: 115

Set bit until a certain index

Score: 3

Views: 156

Answers: 5

Read More
Beregond
Beregond

Reputation: 9

Finding fewest bits to store an int in 2s complement

Score: 0

Views: 3038

Answers: 3

Read More
twig-froth
twig-froth

Reputation: 67

Fast algorithm to spread bits of u8 to the LSBs of each byte of a u64

Score: 3

Views: 73

Answers: 2

Read More
Pierre Prinetti
Pierre Prinetti

Reputation: 9652

Pipe character in Golang

Score: 24

Views: 9036

Answers: 4

Read More
tj26
tj26

Reputation: 353

How do you obtain the upper 15 bits of a uint16_t?

Score: 3

Views: 164

Answers: 3

Read More
Aron Rotteveel
Aron Rotteveel

Reputation: 83203

When to use Bitwise Operators during webdevelopment?

Score: 42

Views: 18264

Answers: 10

Read More
SSpoke
SSpoke

Reputation: 5836

How to set BitArray to set specfic Bits based on value?

Score: 0

Views: 1592

Answers: 1

Read More
treecoder
treecoder

Reputation: 45141

Convert a 52-bit integer to 20-bit and 32-bit integers

Score: 6

Views: 4798

Answers: 3

Read More
PreviousPage 1Next