OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgfortran/] [m4/] [specific2.m4] - Blame information for rev 790

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 733 jeremybenn
include(head.m4)
2
define(atype_code,regexp(file,`_\([ircl][0-9]+\).[fF]90',`\1'))dnl
3
define(atype_letter,substr(atype_code, 0, 1))dnl
4
define(atype_kind,substr(atype_code, 1))dnl
5
define(get_typename2, `$1 (kind=$2)')dnl
6
define(get_typename, `get_typename2(ifelse($1,i,integer,ifelse($1,r,real,ifelse($1,l,logical,ifelse($1,c,complex,unknown)))),`$2')')dnl
7
define(atype_name, get_typename(atype_letter,atype_kind))dnl
8
define(name, regexp(regexp(file, `[^/]*$', `\&'), `^_\([^_]*\)_', `\1'))dnl
9
define(function_name,`_gfortran_specific__'name`_'atype_code)dnl
10
 
11
define(Q,ifelse(atype_kind,4,F,ifelse(atype_kind,8,`',ifelse(atype_kind,10,L,ifelse(atype_kind,16,L,`_'atype_kind)))))dnl
12
 
13
#include "config.h"
14
#include "kinds.inc"
15
#include "c99_protos.inc"
16
 
17
`#if defined (HAVE_GFC_'ifelse(atype_letter,l,LOGICAL,ifelse(atype_letter,i,INTEGER,ifelse(atype_letter,r,REAL,ifelse(atype_letter,c,COMPLEX,UNKNOW))))`_'atype_kind`)'
18
 
19
ifelse(name,atan2,`#ifdef HAVE_ATAN2'Q,)
20
 
21
elemental function function_name (p1, p2)
22
   atype_name, intent (in) :: p1, p2
23
   atype_name :: function_name
24
 
25
   function_name = name (p1, p2)
26
end function
27
 
28
ifelse(name,atan2,`#endif',)
29
 
30
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.