Revision 568d0caf volk/include/volk/make_cpuid_powerpc_c.py

b/volk/include/volk/make_cpuid_powerpc_c.py
1
#!/usr/bin/env python
2
#
3
# Copyright 2011 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

1 23
from xml.dom import minidom
2 24

3 25
def make_cpuid_powerpc_c(dom) :
4 26
    tempstring = "";
5 27
    tempstring = tempstring + "/*this file is auto_generated by volk_register.py*/\n\n";
6 28
    tempstring = tempstring + "#include <volk/volk_cpu.h>\n"
7
    tempstring = tempstring + "#include <volk/volk_config_fixed.h>\n"
8
    tempstring = tempstring + "\n\n"
29
    tempstring = tempstring + "#include <volk/volk_config_fixed.h>\n\n"
30
    tempstring = tempstring + "struct VOLK_CPU volk_cpu;\n\n"
9 31

10 32
    #just assume it has them for powerpc
11 33
    for domarch in dom:

Also available in: Unified diff