Does anyone know something about a "sqr"(square) function?
Does anyone know something about a "sqr"(square) function?
Not square roots, squares. x^2.
Of course I could use pow or simply x*x but I thought there's a good chance that some optimized, special purpose square function exists.
I'm pretty new to VC++ but already impressed by the math features it has, way over VB. I was happy to ran into some really cool functions like _cabs or _hypot, so I thought there could be more to this. I'm looking for powerful, speedy routines.
And x*x is not so tricky, but (p->a*m->x+p->b*m->y+p->c*m->z+p->d)*(p->a*m->x+p->b*m->y+p->c*m->z+p->d) is.