/** * graphene_vec3_max: * @a: a #graphene_vec3_t * @b: a #graphene_vec3_t * @res: (out caller-allocates): return location for the result vector * * Compares each component of the two given vectors and creates a * vector that contains the maximum values. * * Since: 1.0 */ void graphene_vec3_max (const graphene_vec3_t *a, const graphene_vec3_t *b, graphene_vec3_t *res) { res->value = graphene_simd4f_max (a->value, b->value); }
/** * graphene_simd4f_max: * @a: a #graphene_simd4f_t * @b: a #graphene_simd4f_t * * Creates a new #graphene_simd4f_t that contains the * maximum value of each component of @a and @b. * * Returns: the new maximum vector * * Since: 1.0 */ graphene_simd4f_t (graphene_simd4f_max) (const graphene_simd4f_t a, const graphene_simd4f_t b) { return graphene_simd4f_max (a, b); }