What does gcc’s ffast-math actually do?

I understand gcc’s –ffast-math flag can greatly increase speed for float ops, and goes outside of IEEE standards, but I can’t seem to find information on what is really happening when it’s on. Can anyone please explain some of the details and maybe give a clear example of how something would change if the flag … Read more

How does the HyperLogLog algorithm work?

I’ve been learning about different algorithms in my spare time recently, and one that I came across which appears to be very interesting is called the HyperLogLog algorithm – which estimates how many unique items are in a list. This was particularly interesting to me because it brought me back to my MySQL days when … Read more

How do I calculate the normal vector of a line segment? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about programming within the scope defined in the help center. Closed 5 months ago. The community reviewed whether to reopen this question 5 months ago and left it closed: Original close reason(s) were … Read more