Quantcast
Channel: Why is my assembly code much slower than the C implementation - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article


Why 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

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>