repo.or.cz
/
libg2hec.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial GIT commit
[libg2hec.git]
/
src
/
.svn
/
text-base
/
sub.C.svn-base
blob
6966567af8711b4b89f54058cef471cbab945eff
1
/* Divisor subtraction */
2
3
#if HAVE_CONFIG_H
4
#include <config.h>
5
#endif
6
7
#include <g2hec_Genus2_ops.h>
8
9
NS_G2_START_IMPL
10
11
bool_t sub(divisor& x, const divisor& a, const divisor& b)
12
{
13
divisor c;
14
return ( dnegate(c, b) && add(x, a, c) );
15
}
16
17
NS_G2_END_IMPL