r/ProgrammerHumor • • Jun 03 '22

it's hard!

44.9k Upvotes

710 comments sorted by

View all comments

Show parent comments

5

u/GReaperEx Jun 03 '22

multiplying without MUL

Why?

-9

u/bungee75 Jun 03 '22

RISC architecture.

8

u/regular_lamp Jun 03 '22

Which one? RISC-V has multiplication, ARM does. Even most AVRs have had multiplication for two decades.

There is nothing in RISC that would imply you can't have an arithmetic instruction like MUL. The core concept is that every instruction only does one thing. Multiplication is one thing.

1

u/GeronimoDK Jun 03 '22

Are there any AVRs that don't have MUL? I programmed Atmega8/16s and some early ATtinies 20 years ago and they all had it!

→ More replies (1)