xref: /haiku/src/libs/mapm/mapm_fam.c (revision 02354704729d38c3b078c696adc1bbbd33cbcf72)
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 /****************************************************************************/
46 void	m_apm_free_all_mem()
47 {
48 M_free_all_add();    /* call each module which has statically declared data */
49 M_free_all_div();
50 M_free_all_exp();
51 
52 #ifndef NO_FFT_MULTIPLY
53 M_free_all_fft();
54 #endif
55 
56 M_free_all_pow();
57 M_free_all_rnd();
58 M_free_all_set();
59 M_free_all_cnst();
60 M_free_all_fmul();
61 M_free_all_stck();
62 M_free_all_util();
63 }
64 /****************************************************************************/
65 void	m_apm_trim_mem_usage()
66 {
67 m_apm_free_all_mem();
68 m_apm_free(m_apm_init());
69 }
70 /****************************************************************************/
71