Skip to content
0
  • Home
  • Piero Bosio
  • Blog
  • World
  • Fediverso
  • News
  • Categories
  • Old Web Site
  • Recent
  • Popular
  • Tags
  • Users
  • Home
  • Piero Bosio
  • Blog
  • World
  • Fediverso
  • News
  • Categories
  • Old Web Site
  • Recent
  • Popular
  • Tags
  • Users
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
Ayan Shafqatundefined

Ayan Shafqat

@ashafq@hachyderm.io
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

View Original

Posts

Recent

  • Sometimes I wander into wonderful rabbit holes.
    Ayan Shafqatundefined Ayan Shafqat

    Sometimes I wander into wonderful rabbit holes.

    This week's adventure, "What’s the fastest way to multiply two 32-bit numbers on an ARM Cortex-M0 CPU?"
    If you're thinking Karatsuba multiplication (https://en.wikipedia.org/wiki/Karatsuba_algorithm), you’re wrong.

    While Karatsuba offers a lower asymptotic complexity (around O(n^1.58)), it only pays off when used recursively on larger integers.

    On the Cortex-M0, Karatsuba runs much slower than the plain naïve multiply. It turns out, simplicity wins at this scale.

    Godbolt Source:
    https://godbolt.org/z/4rP7bnv6r

    #programming #math

    Uncategorized programming math
  • 1 / 1
  • Login

  • Login or register to search.
  • First post
    Last post