capy-language / capy

🍊 A statically typed, compiled programming language, largely inspired by Jai, Odin, and Zig.
Apache License 2.0
64 stars 4 forks source link

functions to perform bit reeinterpretation for floating point numbers #46

Open lenawanel opened 3 months ago

lenawanel commented 3 months ago

Problem

for example if you wanted to to bit-twiddeling with fp numbers, you would have to do clumsy pointer casting rn.

Proposed Solution

add to_bits/from_bits builtins for fp numbers

Notes

No response

NotAFlyingGoose commented 3 months ago

Yes, 100%👍