---
title: Branchless Absolute Value
link: https://www.computerenhance.com/p/branchless-absolute-value
source: computerenhance-com
published: 2026-08-10T19:29:46Z
updated: 2026-08-10T19:29:46Z
first_seen: 2026-09-19T21:30:23.395188495Z
summary: Some operations are uniform enough that, even though we might ordinarily think of them as using a predicate, they can nonetheless be done by direct manipulation of the underlying bit pattern.
content: extracted
html: 2026-08-10-branchless-absolute-value.html
preview:
  file: 2026-08-10-branchless-absolute-value.preview-0204e12fe971.webp
  width: 256
  height: 144
  color: '#2b282e'
images:
- source: https://substack-video.s3.amazonaws.com/video_upload/post/210651940/acb38037-244c-4f42-a3ab-54af4199c2de/transcoded-44903.png
  original:
    file: 2026-08-10-branchless-absolute-value.image-a5ba2fee21f7.png
    width: 1920
    height: 1080
  variants:
  - file: 2026-08-10-branchless-absolute-value.image-36b61db5a2e7.webp
    width: 320
    height: 180
  - file: 2026-08-10-branchless-absolute-value.image-f1b844fdbd96.webp
    width: 640
    height: 360
  - file: 2026-08-10-branchless-absolute-value.image-c65ded461b3b.webp
    width: 960
    height: 540
  - file: 2026-08-10-branchless-absolute-value.image-d32afaed569b.webp
    width: 1280
    height: 720
  - file: 2026-08-10-branchless-absolute-value.image-c01eb94344d1.webp
    width: 1600
    height: 900
  - file: 2026-08-10-branchless-absolute-value.image-3346f7b9d1ee.webp
    width: 1920
    height: 1080
  color: '#141313'
- source: https://substackcdn.com/image/fetch/$s_!6lSF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa38368d5-6b6a-4f2b-a165-e52bc9064d7b_3840x2160.jpeg
  original:
    file: 2026-08-10-branchless-absolute-value.image-0801fb414fbc.jpg
    width: 1456
    height: 819
  color: '#191613'
---

Playback speed

×

Share post

Share post at current time

0:00

/

### Paid episode

The full episode is only available to paid subscribers of Computer, Enhance!

Some operations are uniform enough that, even though we might ordinarily think of them as using a predicate, they can nonetheless be done by direct manipulation of the underlying bit pattern.

Aug 10, 2026

∙ Paid

[![](https://substackcdn.com/image/fetch/$s_!6lSF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa38368d5-6b6a-4f2b-a165-e52bc9064d7b_3840x2160.jpeg)](https://substackcdn.com/image/fetch/$s_!6lSF!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa38368d5-6b6a-4f2b-a165-e52bc9064d7b_3840x2160.jpeg)

*This is the fourteenth video in Part 5 of the Performance-Aware Programming series. Please see the [Table of Contents](https://www.computerenhance.com/p/table-of-contents) to quickly navigate through the rest of the course as it is updated, and [the code repository](https://github.com/cmuratori/computer_enhance) for downloadable code listings.*
