[libc-commits] [libc] [libc][stdfix] Implement `countlsfx` functions (PR #114318)

via libc-commits libc-commits at lists.llvm.org
Wed Nov 6 14:19:52 PST 2024


duncpro wrote:

@PiJoules Testing `-fpadding-on-unsigned-fixed-point` was a good idea.

The tests fail when this flag is enabled, and after investigating, I don't see any obvious reason.

For instance, this assertion fails for `unsigned short fract`...
```cpp
 EXPECT_EQ(0, func(max)); // EXPECT_EQ(0, 1)
```

I'll continue to investigate. In the meantime if anyone else has any ideas as to why this happens please let me know.


https://github.com/llvm/llvm-project/pull/114318


More information about the libc-commits mailing list