Threadwell

Recent Notes

  • JohannesVuorine

    Aug 26, 2026

    • archive
    • twitter
    • johannesvuorine
  • Threads

    Aug 26, 2026

    • archive
  • iquilezles

    Aug 26, 2026

    • archive
    • twitter
    • iquilezles
Home

❯

Archive

❯

Threads

❯

iquilezles

❯

Hey, don't "optimize" conditional moves with mix()+step().

❯

@iquilezles The fear of branching is still so strong.

@iquilezles The fear of branching is still so strong.

Properties5
typearchive
sourcetwitter
date2025-02-09
tagsarchive, twitter, iquilezles
description@iquilezles The fear of branching is still so strong.

Feb 09, 20251 min read

  • archive
  • twitter
  • iquilezles

Source

  • URL: https://x.com/int_16h/status/1888424191722229986
  • Author: INT 16H (@int_16h)
  • Posted: 2025-02-09 03:06:27

Branch

1/ @int_16h

@iquilezles

The fear of branching is still so strong.

I think people often see using ‘step’ or other tricks as guarantee that there will be no branching, while using ‘if’ means that we solely rely on compiler to do the right thing, while nothing is promised.

Related

  • Spine: 2025-02-09-hey-dont-optimize-conditional-moves-with-mix-step

Graph View

  • Source
  • Branch
  • Related

Backlinks

  • Hey, don't "optimize" conditional moves with mix()+step().

Created with Quartz v5.0.0 © 2026

  • GitHub