GNU Radio 3.5.3.2 C++ API
assembly.h
Go to the documentation of this file.
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 3, 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., 51 Franklin Street,
20
* Boston, MA 02110-1301, USA.
21
*/
22
23
#ifndef _ASSEMBLY_H_
24
#define _ASSEMBLY_H_
25
26
#if defined (__APPLE__) && defined (__APPLE_CC__)
27
28
// XCode ignores the .scl and .type functions in XCode 2.2.1 and 2.3,
29
// but creates an error in XCode 2.4. Just ignore them.
30
31
#define GLOB_SYMB(f) _ ## f
32
33
#define DEF_FUNC_HEAD(f)
/* none */
34
35
#define FUNC_TAIL(f)
/* none*/
36
37
#elif !defined (__ELF__)
38
39
/*
40
* Too bad, the following define does not work as expected --SF
41
* #define GLOB_SYMB(f) __USER_LABEL_PREFIX__ ## f
42
*/
43
#define GLOB_SYMB(f) _ ## f
44
45
#define DEF_FUNC_HEAD(f) \
46
.def GLOB_SYMB(f); .scl 2; .type 32; .endef
47
48
#define FUNC_TAIL(f)
/* none */
49
50
51
#else
/* !__ELF__ */
52
53
54
#define GLOB_SYMB(f) f
55
56
#define DEF_FUNC_HEAD(f) \
57
.type GLOB_SYMB(f),@function \
58
59
#define FUNC_TAIL(f) \
60
.Lfe1: \
61
.size GLOB_SYMB(f),.Lfe1-GLOB_SYMB(f)
62
63
64
#endif
/* !__ELF__ */
65
66
67
#endif
/* _ASSEMBLY_H_ */
gnuradio-core
src
lib
filter
assembly.h
Generated on Sat Mar 15 2014 12:03:54 for GNU Radio 3.5.3.2 C++ API by
1.8.1.2