1 /*=============================================================================
2 
3     This file is part of Antic.
4 
5     Antic is free software: you can redistribute it and/or modify it under
6     the terms of the GNU Lesser General Public License (LGPL) as published
7     by the Free Software Foundation; either version 2.1 of the License, or
8     (at your option) any later version. See <http://www.gnu.org/licenses/>.
9 
10 =============================================================================*/
11 /******************************************************************************
12 
13     Copyright (C) 2012 William Hart
14 
15 ******************************************************************************/
16 
17 #include <stdlib.h>
18 #include <gmp.h>
19 #include "qfb.h"
20 
qfb_hash_init(slong depth)21 qfb_hash_t * qfb_hash_init(slong depth)
22 {
23    slong i, size = (1L<<depth);
24    qfb_hash_t * qhash = flint_malloc(size*sizeof(qfb_hash_t));
25 
26    for (i = 0; i < size; i++)
27    {
28       qfb_init(qhash[i].q);
29       qfb_init(qhash[i].q2);
30    }
31 
32    return qhash;
33 }
34