# Intel's 8087 Chip Computed Tangents 144 Times Faster by Blending Two Algorithms

Original title: Reverse-engineering the Intel 8087's tangent algorithm: more than CORDIC

> Hacker News story 49858676 · language: en · submitted 2026-09-26
> Web version: https://zeli.app/story/49858676
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 121 · by [pwg](<https://news.ycombinator.com/user?id=pwg>) · 💬 11
[original](<https://www.righto.com/2026/09/8087-tangent-cordic.html>) · [HN discussion](<https://news.ycombinator.com/item?id=49858676>)

## Summary

The Intel 8087, introduced in 1980, computed a tangent in just 90 microseconds—a 144-fold speedup over the 8086's 13,000 microseconds. Ken Shirriff reverse-engineered the chip's FPTAN instruction by examining its microcode and circuitry. The 8087 combines CORDIC, which handles the first 16 bits of accuracy using only shifts and adds, with a Padé rational approximation for the tiny remaining angle. This hybrid approach achieves 64-bit accuracy without ever performing an explicit division.

## Key quote

> The 8087 combined the two to obtain both high accuracy and high performance.

## HN discussion (11 comments)

### [cmovq](<https://news.ycombinator.com/item?id=49862492>)

> Always thought it was strange that fptan also pushes 1 to the register stack. It now makes sense it’s to retain comparability with the 8087 which returned x and y separately and required the extra division

### [drob518](<https://news.ycombinator.com/item?id=49862383>)

> The combination of numerical methods and low-level hardware is fascinating. Those 20th century engineers were both smart and creative.

### [kens](<https://news.ycombinator.com/item?id=49858825>)

> Author here for your 8087 questions...

---

## Cite

- Page: https://zeli.app/story/49858676
- Date: 2026-09-26
- Source: righto.com (https://www.righto.com/2026/09/8087-tangent-cordic.html)
- Hacker News: https://news.ycombinator.com/item?id=49858676

## Other languages

- zh: https://zeli.app/zh/story/49858676 · markdown: https://zeli.app/zh/story/49858676.md
- ja: https://zeli.app/ja/story/49858676 · markdown: https://zeli.app/ja/story/49858676.md
- ko: https://zeli.app/ko/story/49858676 · markdown: https://zeli.app/ko/story/49858676.md
- de: https://zeli.app/de/story/49858676 · markdown: https://zeli.app/de/story/49858676.md
- es: https://zeli.app/es/story/49858676 · markdown: https://zeli.app/es/story/49858676.md
- ru: https://zeli.app/ru/story/49858676 · markdown: https://zeli.app/ru/story/49858676.md
