~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/tomsfastmath/addsub/fp_submod.c

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-02-01 11:06:17 UTC
  • mfrom: (0.35.37 sid)
  • Revision ID: package-import@ubuntu.com-20140201110617-33h2xxk09dep0ui4
Tags: 0.98.1+dfsg-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Drop build-dep on electric-fence (in Universe)
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes
  - Add autopkgtest

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* TomsFastMath, a fast ISO C bignum library.
 
2
 * 
 
3
 * This project is meant to fill in where LibTomMath
 
4
 * falls short.  That is speed ;-)
 
5
 *
 
6
 * This project is public domain and free for all purposes.
 
7
 * 
 
8
 * Tom St Denis, tomstdenis@gmail.com
 
9
 */
 
10
#include "bignum_fast.h"
 
11
 
 
12
/* d = a - b (mod c) */
 
13
int fp_submod(fp_int *a, fp_int *b, fp_int *c, fp_int *d)
 
14
{
 
15
  fp_int tmp;
 
16
  fp_zero(&tmp);
 
17
  fp_sub(a, b, &tmp);
 
18
  return fp_mod(&tmp, c, d);
 
19
}
 
20
 
 
21
 
 
22
/* $Source: /cvs/libtom/tomsfastmath/src/addsub/fp_submod.c,v $ */
 
23
/* $Revision: 1.1 $ */
 
24
/* $Date: 2006/12/31 21:25:53 $ */