1 /*
2     Copyright (C) 2013 Mike Hansen
3 
4     This file is part of FLINT.
5 
6     FLINT is free software: you can redistribute it and/or modify it under
7     the terms of the GNU Lesser General Public License (LGPL) as published
8     by the Free Software Foundation; either version 2.1 of the License, or
9     (at your option) any later version.  See <http://www.gnu.org/licenses/>.
10 */
11 
12 #ifdef T
13 
14 #include "templates.h"
15 
16 void
TEMPLATE(T,div)17 TEMPLATE(T, div)(TEMPLATE(T, t) rop, const TEMPLATE(T, t) op1,
18                  const TEMPLATE(T, t) op2, const TEMPLATE(T, ctx_t) ctx)
19 {
20     TEMPLATE(T, t) inv;
21     TEMPLATE(T, init)(inv, ctx);
22     TEMPLATE(T, inv)(inv, op2, ctx);
23     TEMPLATE(T, mul)(rop, op1, inv, ctx);
24     TEMPLATE(T, clear)(inv, ctx);
25 }
26 
27 #endif
28