6 ms·
Always amusing when the assembly language version is so much terser than the C version.
by blake1 4y ago
Always amusing when the assembly language version is so much terser than the C version.
- dvhh 4y agoIsn't that the goal of higher level language to start with ?
- gaganyaan 4y agoI think you read their comment backwards? I'd expect the higher level language to be terser in most scenarios.
- zamadatix 4y agoFeels like cheating to say that about a function written in intrinsics though.
- sebazzz 4y agoYes, but some x64 compilers like Microsoft Visual C++ don't allow raw assembly in C++ (it did allow it for x86-32 though)
- my123 4y agoNot allowed for MSVC on arm and arm64 too.
- Liquid_Fire 4y agoTo be fair, the assembly version seems to be missing about half the function, so it's not exactly a fair comparison.