1# /* **************************************************************************
2# * *
3# * (C) Copyright Paul Mensonides 2002.
4# * Distributed under the Boost Software License, Version 1.0. (See
5# * accompanying file LICENSE_1_0.txt or copy at
6# * http://www.boost.org/LICENSE_1_0.txt)
7# * *
8# ************************************************************************** */
9#
10# /* See http://www.boost.org for most recent version. */
11#
12# ifndef SIMDPP_PREPROCESSOR_SEQ_SEQ_HPP
13# define SIMDPP_PREPROCESSOR_SEQ_SEQ_HPP
14#
15# include <simdpp/detail/preprocessor/config/config.hpp>
16# include <simdpp/detail/preprocessor/seq/elem.hpp>
17#
18# /* SIMDPP_PP_SEQ_HEAD */
19#
20# define SIMDPP_PP_SEQ_HEAD(seq) SIMDPP_PP_SEQ_ELEM(0, seq)
21#
22# /* SIMDPP_PP_SEQ_TAIL */
23#
24# if SIMDPP_PP_CONFIG_FLAGS() & SIMDPP_PP_CONFIG_MWCC()
25# define SIMDPP_PP_SEQ_TAIL(seq) SIMDPP_PP_SEQ_TAIL_1((seq))
26# define SIMDPP_PP_SEQ_TAIL_1(par) SIMDPP_PP_SEQ_TAIL_2 ## par
27# define SIMDPP_PP_SEQ_TAIL_2(seq) SIMDPP_PP_SEQ_TAIL_I ## seq
28# elif SIMDPP_PP_CONFIG_FLAGS() & SIMDPP_PP_CONFIG_MSVC()
29# define SIMDPP_PP_SEQ_TAIL(seq) SIMDPP_PP_SEQ_TAIL_ID(SIMDPP_PP_SEQ_TAIL_I seq)
30# define SIMDPP_PP_SEQ_TAIL_ID(id) id
31# elif SIMDPP_PP_CONFIG_FLAGS() & SIMDPP_PP_CONFIG_EDG()
32# define SIMDPP_PP_SEQ_TAIL(seq) SIMDPP_PP_SEQ_TAIL_D(seq)
33# define SIMDPP_PP_SEQ_TAIL_D(seq) SIMDPP_PP_SEQ_TAIL_I seq
34# else
35# define SIMDPP_PP_SEQ_TAIL(seq) SIMDPP_PP_SEQ_TAIL_I seq
36# endif
37#
38# define SIMDPP_PP_SEQ_TAIL_I(x)
39#
40# /* SIMDPP_PP_SEQ_NIL */
41#
42# define SIMDPP_PP_SEQ_NIL(x) (x)
43#
44# endif
45