Hacker News new | ask | show | jobs
by bena 5 days ago
Signed multiply means doing multiplication on signed numbers. So you have to care about and implement rules about positive and negative numbers. Fixed point means numbers where the decimal point in a real number is at a fixed point. You can have 4 numbers before the decimal and 5 after; 1 before, 12 after; etc.

This essentially lets you treat the number as an integer.

Code golf is the practice of writing code with the fewest possible number of lines or instructions.

If he was doing this on a particular processor, he could be talking about assembler instructions.

But basically, what he's saying is that he wrote an algorithm that correctly multiplies two arbitrary positive or negative numbers using only 32 instructions.

2 comments

I believe the poster you're replying to meant gist as in GitHub gist, in other words asking for a code snippet of the 32-instruction signed multiply
Ha. Touche indeed. Was not aware of that feature of Github. My bad, carry on.
ya
If only we had the means to actually ask for something like that in a manner readily understood by the average Hacker News reader.
gh gist pls
I assume they wanted a hosted code snippet as a gist on GH