arb/dlog/vec.c

24 lines
676 B
C
Raw Normal View History

2016-09-06 15:43:12 +02:00
/*
Copyright (C) 2016 Pascal Molin
2016-09-06 15:43:12 +02:00
This file is part of Arb.
Arb is free software: you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License (LGPL) as published
by the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version. See <http://www.gnu.org/licenses/>.
*/
#include "dlog.h"
void
2016-03-14 11:00:14 +01:00
dlog_vec(ulong *v, ulong nv, ulong a, ulong va, nmod_t mod, ulong na, nmod_t order)
{
2016-07-14 15:51:25 +02:00
if (va == 0)
return;
2016-09-05 10:06:45 +02:00
if (na * DLOG_LOOP_MAX_FACTOR < nv)
2016-03-14 11:00:14 +01:00
dlog_vec_loop(v, nv, a, va, mod, na, order);
else
dlog_vec_sieve(v, nv, a, va, mod, na, order);
}