Elektrine lite

← Feed

@kenshirriff@oldbytes.space

2025-03-02 23:51 UTC

@timkrief It's a bit tricky to explain. You can use ×1, ×2, ×4, -×1, -×2, -×4 as a term into the adder since those are easy circuits. ×8 on the other hand can be done "by magic" without using a term. The next digit multiplies by one more resulting in an extra ×8 without needing to explicitly add an ×8 term. Another way to look at it: you can do ×4 or -×1 for a term, but you can't do them both at the same time since you'd need another circuit to add them. But since ×8 happens "for free", you can do ×8 and -×1 at the same time.

Replies (2)

  • @timkrief@framapiaf.org 2025-03-03 02:03

    @kenshirriff oh I think I understand now thanks :)

    Open ##1442859

  • @androcat@toot.cat 2025-03-03 07:17

    @kenshirriff The tree of costs has to be pretty special for a hardwired x3 to make sense, right? In this math, is x2 less costly than +x1? So you could get x2 in a costly way by having it be x1+x1, or in a cheap way by having it be x2? Because otherwise 4 would be rather costly already, being x2x2. The basic x1 should be at least as "free" as x8, it's just repeating the input, yeah? So for x4+x1 to be prohibitive for 5 (and x2+x1 for x3 for that matter), +x1 really has to be rather costly. @timkrief

    Open ##1442860