1 /* This code is part of the tng compression routines.
3 * Written by Daniel Spangberg
4 * Copyright (c) 2010, 2013, The GROMACS development team.
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the Revised BSD License.
15 /* Add a unsigned int to a largeint. */
16 void Ptngc_largeint_add(const unsigned int v1
, unsigned int *largeint
, const int n
);
18 /* Multiply v1 with largeint_in and return result in largeint_out */
19 void Ptngc_largeint_mul(const unsigned int v1
, unsigned int *largeint_in
, unsigned int *largeint_out
, const int n
);
21 /* Return the remainder from dividing largeint_in with v1. Result of the division is returned in largeint_out */
22 unsigned int Ptngc_largeint_div(const unsigned int v1
, unsigned int *largeint_in
, unsigned int *largeint_out
, const int n
);