StackOverflow Questions for Tag: branchless

WilliamKF
WilliamKF

Reputation: 43149

Branch on ?: operator?

Score: 9

Views: 3678

Answers: 5

Read More
Aequitas
Aequitas

Reputation: 2265

How can I make branchless code and how does it work?

Score: 38

Views: 21404

Answers: 3

Read More
Daniel Fath
Daniel Fath

Reputation: 18069

Finding YAML single quotes branchlessly

Score: 2

Views: 91

Answers: 1

Read More
Crashworks
Crashworks

Reputation: 41404

Templatized branchless int max/min function

Score: 15

Views: 10342

Answers: 6

Read More
user541686
user541686

Reputation: 210495

How to portably force NAN * zero give zero in a particular expression without branching?

Score: 8

Views: 608

Answers: 2

Read More
user21749640
user21749640

Reputation: 298

Branchless calculation for multiplying by the complement of a fraction with a flag

Score: 1

Views: 55

Answers: 1

Read More
Timo
Timo

Reputation: 8680

How do I reinterpret bool as byte/int without branching in C#?

Score: 2

Views: 2196

Answers: 5

Read More
Csharp Csh
Csharp Csh

Reputation: 509

Sorting 3 numbers without branching

Score: 4

Views: 5208

Answers: 4

Read More
alessandro ferrucci
alessandro ferrucci

Reputation: 1291

Replace branch statements by bit-shifting operations

Score: 5

Views: 1011

Answers: 5

Read More
Navneeth
Navneeth

Reputation: 423

How can I make branchless bounds checking?

Score: 1

Views: 527

Answers: 1

Read More
Sebastian
Sebastian

Reputation: 33

Is it possible to perform 128-bit / 64-bit division without branching, in terms of 64-bit division?

Score: 2

Views: 937

Answers: 2

Read More
Matt Wamboldt
Matt Wamboldt

Reputation: 581

Is there a way to limit an integer value to a certain range without branching?

Score: 25

Views: 35951

Answers: 9

Read More
James Geddes
James Geddes

Reputation: 882

What is the best way to make branchless counters?

Score: 2

Views: 207

Answers: 3

Read More
mitiko
mitiko

Reputation: 826

How can I make this branchless? (Avoiding log(0))

Score: 0

Views: 323

Answers: 0

Read More
Doga Oruc
Doga Oruc

Reputation: 816

How to do a branchless discard?

Score: 1

Views: 739

Answers: 1

Read More
Vittorio Romeo
Vittorio Romeo

Reputation: 93284

Is there a branchless way to move number towards another number without exceeding it?

Score: 3

Views: 583

Answers: 4

Read More
vvnraman
vvnraman

Reputation: 1343

Constrain a 16 bit signed value between 0 and 4095 using Bit Manipulation only (without branching)

Score: 4

Views: 2713

Answers: 7

Read More
Tespa42
Tespa42

Reputation: 577

How does one compute the equality of two integers on the JVM without branching?

Score: 0

Views: 74

Answers: 1

Read More
user2464424
user2464424

Reputation: 1616

Conversion to branchless of consecutive if statements

Score: 7

Views: 811

Answers: 2

Read More
user4842163
user4842163

Reputation:

Branchless K-means (or other optimizations)

Score: 60

Views: 2931

Answers: 6

Read More
PreviousPage 1Next