bluesquall / r2

1 stars 1 forks source link

mark args as `const` and pass by reference in `r2_quaternion.h` #5

Open bluesquall opened 1 year ago

bluesquall commented 1 year ago

I'm not overwriting the arguments, so let the compiler know that so it can optimize where applicable.

bluesquall commented 1 year ago

e.g.:

struct r2_qf_t r2_qf_product(const struct r2_qf_t* q1, const struct r2_qf_t* q2) {