Godbolt.org Coupons

Godbolt.org May 2024 Coupon Codes

Compiler Explorer - C++

SHOP NOW

Working Coupon CodesBest coupons trusted by shoppers

Like this coupon?

1 vote

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)

Like this coupon?

1 vote

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)

Like this coupon?

1 vote

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)

Like this coupon?

1 vote

Yes, the `reinterpret_cast` is definitely less evil than the `static_cast`...🙄/s Code for readability and maintainability, not to save a few keystrokes. C++ version is also more greppable and ** frequent casting - that's good! #gamedev #cpp

Posted 2 years ago (08 June 2022)

Like this coupon?

1 vote

_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)

Like this coupon?

1 vote

PatriceRoy1 tvaneerd I think you're better off naming pure functions pure, like

Posted 3 years ago (29 June 2021)

Like this coupon?

1 vote

SerHidal You could combine input from any open source code () with

Posted 5 years ago (09 September 2019)

Like this coupon?

1 vote

_trou_ A more "" vectorized code: . With clang 8, this generates vectorized code f…

Posted 5 years ago (31 July 2019)

Like this coupon?

1 vote

halvarflake does it with WINE, all (?) of his code is here:

Posted 6 years ago (07 February 2018)

Like this coupon?

1 vote

Enter source code (), select compiler (right), see ASM output! Pretty nifty!

Posted 7 years ago (27 April 2017)

Similar Coupons You Might Like