Houston, we have a trunk.
[debian/gnuradio] / gnuradio-core / src / lib / filter / assembly.h
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2002 Free Software Foundation, Inc.
4  * 
5  * This file is part of GNU Radio
6  * 
7  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2, or (at your option)
10  * any later version.
11  * 
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  * 
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING.  If not, write to
19  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22
23 #ifndef _ASSEMBLY_H_
24 #define _ASSEMBLY_H_
25
26
27
28 #ifndef __ELF__
29
30 /*
31  * Too bad, the following define does not work as expected --SF
32  *      #define GLOB_SYMB(f)    __USER_LABEL_PREFIX__ ## f
33  */
34 #define GLOB_SYMB(f)    _ ## f
35
36 #define DEF_FUNC_HEAD(f)        \
37         .def    GLOB_SYMB(f); .scl 2; .type 32; .endef
38
39 #define FUNC_TAIL(f)    /* none */
40
41
42 #else   /* !__ELF__ */
43
44
45 #define GLOB_SYMB(f)    f
46
47 #define DEF_FUNC_HEAD(f)        \
48         .type   GLOB_SYMB(f),@function  \
49
50 #define FUNC_TAIL(f)    \
51   .Lfe1:                \
52         .size   GLOB_SYMB(f),.Lfe1-GLOB_SYMB(f)
53
54
55 #endif  /* !__ELF__ */
56
57
58 #endif /* _ASSEMBLY_H_ */