Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
blake1
· 3y ago · 0 comments
Always amusing when the assembly language version is so much terser than the C version.
Comments
[–]
zamadatix
3y ago
Feels like cheating to say that about a function written in intrinsics though.
[–]
sebazzz
3y 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)
[–]
my123
3y ago
Not allowed for MSVC on arm and arm64 too.
[–]
Liquid_Fire
3y ago
To be fair, the assembly version seems to be missing about half the function, so it's not exactly a fair comparison.
[–]
dvhh
3y ago
Isn't that the goal of higher level language to start with ?
[–]
gaganyaan
3y ago
I think you read their comment backwards? I'd expect the higher level language to be terser in most scenarios.