Commit ef238c58 by Aldy Hernandez Committed by Aldy Hernandez

altivec.h: Change elem to _S_elem.

2002-02-06  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/altivec.h: Change elem to _S_elem.

From-SVN: r49532
parent 8a921c08
2002-02-06 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/altivec.h: Change elem to _S_elem.
2002-02-05 Jason Thorpe <thorpej@wasabisystems.com> 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
* config/netbsd.h (WCHAR_TYPE): Define. * config/netbsd.h (WCHAR_TYPE): Define.
......
...@@ -4059,52 +4059,52 @@ vec_any_out (vector float a1, vector float a2) ...@@ -4059,52 +4059,52 @@ vec_any_out (vector float a1, vector float a2)
template<typename _Tp> template<typename _Tp>
struct __vec_step_help struct __vec_step_help
{ {
// All proper vector types will specialize elem. // All proper vector types will specialize _S_elem.
}; };
template<> template<>
struct __vec_step_help<vector signed short> struct __vec_step_help<vector signed short>
{ {
static const int elem = 8; static const int _S_elem = 8;
}; };
template<> template<>
struct __vec_step_help<vector unsigned short> struct __vec_step_help<vector unsigned short>
{ {
static const int elem = 8; static const int _S_elem = 8;
}; };
template<> template<>
struct __vec_step_help<vector signed int> struct __vec_step_help<vector signed int>
{ {
static const int elem = 4; static const int _S_elem = 4;
}; };
template<> template<>
struct __vec_step_help<vector unsigned int> struct __vec_step_help<vector unsigned int>
{ {
static const int elem = 4; static const int _S_elem = 4;
}; };
template<> template<>
struct __vec_step_help<vector unsigned char> struct __vec_step_help<vector unsigned char>
{ {
static const int elem = 16; static const int _S_elem = 16;
}; };
template<> template<>
struct __vec_step_help<vector signed char> struct __vec_step_help<vector signed char>
{ {
static const int elem = 16; static const int _S_elem = 16;
}; };
template<> template<>
struct __vec_step_help<vector float> struct __vec_step_help<vector float>
{ {
static const int elem = 4; static const int _S_elem = 4;
}; };
#define vec_step(t) __vec_step_help<t>::elem #define vec_step(t) __vec_step_help<t>::_S_elem
#else /* not C++ */ #else /* not C++ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment