1
2/*
3 *  M_APM  -  mapm_fam.c
4 *
5 *  Copyright (C) 1999 - 2007   Michael C. Ring
6 *
7 *  Permission to use, copy, and distribute this software and its
8 *  documentation for any purpose with or without fee is hereby granted,
9 *  provided that the above copyright notice appear in all copies and
10 *  that both that copyright notice and this permission notice appear
11 *  in supporting documentation.
12 *
13 *  Permission to modify the software is granted. Permission to distribute
14 *  the modified code is granted. Modifications are to be distributed by
15 *  using the file 'license.txt' as a template to modify the file header.
16 *  'license.txt' is available in the official MAPM distribution.
17 *
18 *  This software is provided "as is" without express or implied warranty.
19 */
20
21/*
22 *      $Id: mapm_fam.c,v 1.5 2007/12/03 01:36:38 mike Exp $
23 *
24 *      This file contains the free all memory and similiar functions.
25 *
26 *      $Log: mapm_fam.c,v $
27 *      Revision 1.5  2007/12/03 01:36:38  mike
28 *      Update license
29 *
30 *      Revision 1.4  2003/03/30 21:13:05  mike
31 *      remove _log from free list
32 *
33 *      Revision 1.3  2002/02/14 13:36:27  mike
34 *      add conditional compile around free all FFT
35 *
36 *      Revision 1.2  2001/07/16 18:52:40  mike
37 *      add some comments
38 *
39 *      Revision 1.1  2001/07/16 18:41:44  mike
40 *      Initial revision
41 */
42
43#include "m_apm_lc.h"
44
45/****************************************************************************/
46void	m_apm_free_all_mem()
47{
48M_free_all_add();    /* call each module which has statically declared data */
49M_free_all_div();
50M_free_all_exp();
51
52#ifndef NO_FFT_MULTIPLY
53M_free_all_fft();
54#endif
55
56M_free_all_pow();
57M_free_all_rnd();
58M_free_all_set();
59M_free_all_cnst();
60M_free_all_fmul();
61M_free_all_stck();
62M_free_all_util();
63}
64/****************************************************************************/
65void	m_apm_trim_mem_usage()
66{
67m_apm_free_all_mem();
68m_apm_free(m_apm_init());
69}
70/****************************************************************************/
71