.svn folders cleaned
[libg2hec.git] / src / sub.C
blob6966567af8711b4b89f54058cef471cbab945eff
1 /* Divisor subtraction */
3 #if HAVE_CONFIG_H
4 #include <config.h>
5 #endif
7 #include <g2hec_Genus2_ops.h>
9 NS_G2_START_IMPL
11 bool_t sub(divisor& x, const divisor& a, const divisor& b)
13   divisor c;
14   return ( dnegate(c, b) && add(x, a, c) );
17 NS_G2_END_IMPL