FrancyRanc SheriefFYI In clang it's about included and parsed by the compiler for essentially 2 lines of code that are actually needed (haven't figured out how to get preprocessor output on godbolt with MSVC, but I guess it's a similar line count)
Posted 1 year ago (20 February 2023)
slembcke mmalex badlogicgames Tinkered a bit with the ideas in here, assuming that alpha is in the lowest 8 bits: The compiler turned the mul into a shift+or, so I just did this in the code directly. First version needs 2 mul and 1 shift, second has 1 mul and 2 shift.
Posted 1 year ago (26 November 2022)
martin_uecker Cor3ntin AaronBallman RCS thradams pati_gallardo gustedt The data pointer can never be "" from a lambda because a lambda is data and a ptr to a lambda is a data ptr. _Wide function ptrs have exactly the same problem, as they need to be broken down into function ptr + data ptr to use with existing code.
Posted 2 years ago (04 October 2022)
_Yulivee_ This is useful for my upcoming talk. As with all the '' UB, implementers use it to help you find bugs. I haven't run this code on Windows but I'd be interested to know if it works. Certainly on GCC, std::lerp helps testing for errors.
Posted 2 years ago (22 February 2022)