Commit b4be9e8e by Andrew Pinski Committed by Andrew Pinski

altivec.h: Wrap C++ functions in extern "C++" block.

2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>

	* config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
	block.

From-SVN: r76109
parent f25bebe1
2004-01-18 Andrew Pinski <pinskia@physics.uc.edu> 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
* config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
block.
* config/rs6000/rs6000.c (rs6000_special_round_type_align): * config/rs6000/rs6000.c (rs6000_special_round_type_align):
Check for NULL in the chain and remove repeated code. Check for NULL in the chain and remove repeated code.
......
...@@ -118,6 +118,8 @@ extern int __altivec_link_error_invalid_argument (); ...@@ -118,6 +118,8 @@ extern int __altivec_link_error_invalid_argument ();
#ifdef __cplusplus #ifdef __cplusplus
extern "C++" {
/* Prototypes for builtins that take literals and must always be /* Prototypes for builtins that take literals and must always be
inlined. */ inlined. */
inline vector float vec_ctf (vector unsigned int, const char) __attribute__ ((always_inline)); inline vector float vec_ctf (vector unsigned int, const char) __attribute__ ((always_inline));
...@@ -6117,6 +6119,8 @@ struct __vec_step_help<vector float> ...@@ -6117,6 +6119,8 @@ struct __vec_step_help<vector float>
#define vec_step(t) __vec_step_help<typeof(t)>::_S_elem #define vec_step(t) __vec_step_help<typeof(t)>::_S_elem
}//extern "C++"
#else /* not C++ */ #else /* not C++ */
/* "... and so I think no man in a century will suffer as greatly as /* "... and so I think no man in a century will suffer as greatly as
...@@ -8533,6 +8537,7 @@ __ch (__bin_args_eq (vector float, (a1), vector float, (a2)), \ ...@@ -8533,6 +8537,7 @@ __ch (__bin_args_eq (vector float, (a1), vector float, (a2)), \
#define vec_any_out(a1, a2) __builtin_altivec_vcmpbfp_p (__CR6_EQ_REV, (a1), (a2)) #define vec_any_out(a1, a2) __builtin_altivec_vcmpbfp_p (__CR6_EQ_REV, (a1), (a2))
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif /* _ALTIVEC_H */ #endif /* _ALTIVEC_H */
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