↧
Answer by Arin Chaudhuri for Why is my assembly code much slower than the C...
Peter Cordes comment explains what is happening here. srt1 and srt2 are inlined while srt is not.Quoting Peter Cordes :Oh right, simply being a non-inline function is the problem. x86-64System V...
View ArticleWhy is my assembly code much slower than the C implementation
I am learning assembly. So I wrote a routine that returns the square root of its input if the input is non-negative, and it returns 0 otherwise.I have implemented the routine in both assembly and C, I...
View Article