Chris Green
Chris Green
@aachrisg.bsky.social
Back at Valve. gfx,simulation,parallelism,math,AI,HW,VR,game engines. MTG Online,Ultima Underworld,AmigaOS,Flight Sim,Scuba,Paleontology. ~40years experience.

I made both a Mastodon and Bluesky account so I could check them both out.
Reposted by Chris Green
Wild. Top is the NBC upload, bottom is the one aired as the live feed
January 21, 2025 at 5:45 AM
D-oh:
std:fma will generate the fused multiply add instruction in MSVC and GCC, regardless of the setting of fp:precise as you would hope..
But MSVC doesn't know how to auto vectorize it, which kind of defeats the purpose :-( :-(. GCC does though:

godbolt.org/z/4f91hWKEE
Compiler Explorer - C++
auto TestFMAVectorization( float flScale, float *a, float const *b, int n ) { for( int i = 0; i < n; i++ ) { a[i] = std::fma( flScale, b[i], a[i] ); } }
godbolt.org
November 23, 2024 at 9:41 PM
Is this thing on?

I've made both mastodon and bluesky accounts to replace twitter so I can check them out and decide which to keep.

c++ should have an abbreivated lambda syntax for simple functions. Like:

[]( int arg ) = arg * 2
August 26, 2024 at 8:50 PM