findloc2s.m4 revision 1.1 1 1.1 mrg dnl Support macros for findloc.
2 1.1 mrg dnl This file is part of the GNU Fortran Runtime Library (libgfortran)
3 1.1 mrg dnl Distributed under the GNU GPL with exception. See COPYING for details.
4 1.1 mrg include(iparm.m4)dnl
5 1.1 mrg define(header1,`index_type findloc2_'atype_code` ('atype` * const restrict array,
6 1.1 mrg const 'atype_name` * restrict value, GFC_LOGICAL_4 back,
7 1.1 mrg gfc_charlen_type len_array, gfc_charlen_type len_value);
8 1.1 mrg export_proto(findloc2_'atype_code`);
9 1.1 mrg
10 1.1 mrg index_type
11 1.1 mrg findloc2_'atype_code` ('atype` * const restrict array, const 'atype_name` * restrict value,
12 1.1 mrg GFC_LOGICAL_4 back,
13 1.1 mrg gfc_charlen_type len_array, gfc_charlen_type len_value)')dnl
14 1.1 mrg dnl
15 1.1 mrg define(header2,`index_type mfindloc2_'atype_code` ('atype` * const restrict array,
16 1.1 mrg const 'atype_name` * restrict value,
17 1.1 mrg gfc_array_l1 *const restrict mask, GFC_LOGICAL_4 back,
18 1.1 mrg gfc_charlen_type len_array, gfc_charlen_type len_value);
19 1.1 mrg export_proto(mfindloc2_'atype_code`);
20 1.1 mrg
21 1.1 mrg index_type
22 1.1 mrg mfindloc2_'atype_code` ('atype` * const restrict array,
23 1.1 mrg const 'atype_name` * restrict value, gfc_array_l1 *const restrict mask,
24 1.1 mrg GFC_LOGICAL_4 back, gfc_charlen_type len_array,
25 1.1 mrg gfc_charlen_type len_value)')dnl
26 1.1 mrg dnl
27 1.1 mrg define(header3,`index_type sfindloc2_'atype_code` ('atype` * const restrict array,
28 1.1 mrg const 'atype_name` * restrict value,
29 1.1 mrg GFC_LOGICAL_4 *const restrict mask, GFC_LOGICAL_4 back,
30 1.1 mrg gfc_charlen_type len_array, gfc_charlen_type len_value);
31 1.1 mrg export_proto(sfindloc2_'atype_code`);
32 1.1 mrg
33 1.1 mrg index_type
34 1.1 mrg sfindloc2_'atype_code` ('atype` * const restrict array,
35 1.1 mrg const 'atype_name` * restrict value, GFC_LOGICAL_4 *const restrict mask,
36 1.1 mrg GFC_LOGICAL_4 back, gfc_charlen_type len_array,
37 1.1 mrg gfc_charlen_type len_value)')dnl
38 1.1 mrg dnl
39 1.1 mrg define(comparison,ifelse(atype_kind,4,dnl
40 1.1 mrg `compare_string_char4 (len_array, src, len_value, value) == 0',dnl
41 1.1 mrg `compare_string (len_array, (char *) src, len_value, (char *) value) == 0'))dnl
42 1.1 mrg define(len_arg,`len_array, len_value')dnl
43 1.1 mrg define(base_mult,`len_array')dnl
44 1.1 mrg include(ifindloc2.m4)dnl
45