OSL_SHADEOP void osl_round_vv (void *r, void *x_) { const Vec3 &x (VEC(x_)); VEC(r).setValue (roundf(x[0]), roundf(x[1]), roundf(x[2])); }
OSL_SHADEOP float osl_round_ff (float x) { return roundf(x); }