Threadwell

Recent Notes

  • DemetriSpanos

    Oct 06, 2026

    • archive
    • twitter
    • demetrispanos
  • NOTimothyLottes

    Oct 06, 2026

    • archive
    • twitter
    • notimothylottes
  • bonzajplc

    Oct 06, 2026

    • archive
    • twitter
    • bonzajplc
Home

❯

Archive

❯

Threads

❯

nicbarkeragain

❯

"Branchless Programming" is a term used to describe a programming style that improves performance by avoiding branches (e.g.

❯

@nicbarkeragain If you're handling integers, just use a full bitmask and use boolean AND.

@nicbarkeragain If you're handling integers, just use a full bitmask and use boolean AND.

Properties5
typearchive
sourcetwitter
date2025-07-26
tagsarchive, twitter, nicbarkeragain
description@nicbarkeragain If you're handling integers, just use a full bitmask and use boolean AND.

Jul 26, 20251 min read

  • archive
  • twitter
  • nicbarkeragain

Source

  • URL: https://x.com/MichaelDChaney/status/1949180928623845610
  • Author: Michael Chaney (@MichaelDChaney)
  • Posted: 2025-07-26 18:52:02

Branch

1/ @MichaelDChaney

@nicbarkeragain

If you’re handling integers, just use a full bitmask and use boolean AND. It’s probably 50 or more times as fast as multiply as it can complete in a single clock cycle.

Related

  • Spine: 2025-07-22-branchless-programming-is-a-term-used-to-describe

Graph View

  • Source
  • Branch
  • Related

Backlinks

  • "Branchless Programming" is a term used to describe a programming style that improves performance by avoiding branches (e.g.

Created with Quartz v5.0.0 © 2026

  • GitHub