Y
Hacker News
new
|
ask
|
show
|
jobs
by
blake1
1272 days ago
Always amusing when the assembly language version is so much terser than the C version.
4 comments
zamadatix
1272 days ago
Feels like cheating to say that about a function written in intrinsics though.
link
sebazzz
1272 days ago
Yes, but some x64 compilers like Microsoft Visual C++ don't allow raw assembly in C++ (it did allow it for x86-32 though)
link
my123
1272 days ago
Not allowed for MSVC on arm and arm64 too.
link
Liquid_Fire
1272 days ago
To be fair, the assembly version seems to be missing about half the function, so it's not exactly a fair comparison.
link
dvhh
1272 days ago
Isn't that the goal of higher level language to start with ?
link
gaganyaan
1272 days ago
I think you read their comment backwards? I'd expect the higher level language to be terser in most scenarios.
link