openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libgcrypt/1.8.4-r0/libgcrypt-1.8.4/mpi/ec.c
mpi_point_t _gcry_mpi_point_set(mpi_point_t point, gcry_mpi_t x, gcry_mpi_t y,
                                gcry_mpi_t z)
{
    if (!point)
        point = mpi_point_new(0);

    if (x)
        mpi_set(point->x, x);
    else
        mpi_clear(point->x);
    if (y)
        mpi_set(point->y, y);
    else
        mpi_clear(point->y);
    if (z)
        mpi_set(point->z, z);
    else
        mpi_clear(point->z);

    return point;
}
/* Set the projective coordinates from X, Y, and Z into POINT.  If a
   coordinate is given as NULL, the value 0 is stored into point.  If
   POINT is given as NULL a new point object is allocated.  Returns
   POINT or the newly allocated point object. */
Set the projective coordinates from X, Y, and Z into POINT.  If a
coordinate is given as NULL, the value 0 is stored into point.  If
POINT is given as NULL a new point object is allocated.  Returns
POINT or the newly allocated point object.
Set the projective coordinates from X Y and Z into POINT . If a coordinate is given as NULL the value 0 is stored into point . If POINT is given as NULL a new point object is allocated . Returns POINT or the newly allocated point object .
mpi_point_t _gcry_mpi_point_set(mpi_point_t point, gcry_mpi_t x, gcry_mpi_t y,
                                gcry_mpi_t z)
{
    if (!point)
        point = mpi_point_new(0);
    if (x)
        mpi_set(point->x, x);
    else
        mpi_clear(point->x);
    if (y)
        mpi_set(point->y, y);
    else
        mpi_clear(point->y);
    if (z)
        mpi_set(point->z, z);
    else
        mpi_clear(point->z);
    return point;
}
mpi_point_t _gcry_mpi_point_set ( mpi_point_t point , gcry_mpi_t x , gcry_mpi_t y , gcry_mpi_t z ) { if ( ! point ) point = mpi_point_new ( 0 ) ; if ( x ) mpi_set ( point -> x , x ) ; else mpi_clear ( point -> x ) ; if ( y ) mpi_set ( point -> y , y ) ; else mpi_clear ( point -> y ) ; if ( z ) mpi_set ( point -> z , z ) ; else mpi_clear ( point -> z ) ; return point ; }
Set the projective coordinates from X, Y, and Z into POINT.
Set the projective coordinates from X Y and Z into POINT .