Working on a novel (hopefully!) floating-point format for my custom CPU . It doesn't have any floating point operations -- as a matter of fact, it only has 16 operations ("instructions") -- but I'm working on a floating-point format optimized for software emulation on it.
That said, I already have in my stdlib macros for fixed-point (Q16.8 format), as well as a sine function and sqrt function.

Follow

It is written in a programming language I made, called Slang. I had to write the compiler for it, and I have my own stdlib and emulator to run the compiled code.
I am quite happy so far; it's a bit of a dream.

OK -- I finished a prototype for my custom mono-field floating-point format, in Golang. I haven't done extensive testing, but it works fine so far -- addition, subtraction, multiplication, and division.

One of the distinguishing characteristics of it is that the amount of bits *available* for the significand varies based on the exponent. You get between 0 (yes) and 32 (yes) bits for the significand.

I think I'll put this up on at some point.

Show thread
Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml