eisenwave wrote:

@sethp Do you plan to continue working on this?

We actually kinda need `constexpr` bit-cast to bit-fields and to `_BitInt` in 
several places in https://github.com/eisenwave/std-big-int, such as
- `constexpr` decomposition of `long double` into its mantissa, exponent, and 
sign bit
- If the values in `big_int` are in small object storage (which may be several 
limbs), you can implement arithmetic operations at compile time (or generally) 
by bit-casting to `_BitInt`. For example, you can implement `operator*` by 
bit-casting the internal, say, `uint64_t[3]` to `_BitInt(192)`, doing 
arithmetic on that, and then storing the value back in the `big_int` container.

Also, it's worth noting that if https://github.com/cplusplus/papers/issues/2420 
goes into C++29 (and I'm totally convinced it will), then we need to have this 
PR for compliance purposes anyway.

https://github.com/llvm/llvm-project/pull/74775
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to