Ejemplo n.º 1
0
/**
 * graphene_simd4f_neg:
 * @s: a #graphene_simd4f_t
 *
 * Negates the values of @s.
 *
 * Returns: the negated vector
 *
 * Since: 1.0
 */
graphene_simd4f_t
(graphene_simd4f_neg) (const graphene_simd4f_t s)
{
  return graphene_simd4f_neg (s);
}
Ejemplo n.º 2
0
/**
 * graphene_vec2_negate:
 * @v: a #graphene_vec2_t
 * @res: (out caller-allocates): return location for the result vector
 *
 * Negates the give #graphene_vec2_t.
 *
 * Since: 1.2
 */
void
graphene_vec2_negate (const graphene_vec2_t *v,
                      graphene_vec2_t       *res)
{
  res->value = graphene_simd4f_neg (v->value);
}