diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-07-08 05:46:04 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-07-08 05:46:04 +0000 |
| commit | c4ebb129b7ff9365dc09493aa5224618a6275ed6 (patch) | |
| tree | 60f96d2b95012a14263d0a658d2ea8f5b5c3572a /clang/lib/Headers/Intrin.h | |
| parent | 60df0615b692fba3bb75439e101f81185b1fc67b (diff) | |
| download | bcm5719-llvm-c4ebb129b7ff9365dc09493aa5224618a6275ed6.tar.gz bcm5719-llvm-c4ebb129b7ff9365dc09493aa5224618a6275ed6.zip | |
Headers: conditionalise more declarations
Protect MMX specific declarations under a __MMX__ guard. This header can be
included on non-x86 architectures (e.g. ARM) which do not support the MMX ISA.
Use the preprocessor to prevent these declarations from being processed.
llvm-svn: 212512
Diffstat (limited to 'clang/lib/Headers/Intrin.h')
| -rw-r--r-- | clang/lib/Headers/Intrin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Headers/Intrin.h b/clang/lib/Headers/Intrin.h index cad3a3a0bd8..d8dc0a4831c 100644 --- a/clang/lib/Headers/Intrin.h +++ b/clang/lib/Headers/Intrin.h @@ -41,12 +41,14 @@ extern "C" { #endif +#if defined(__MMX__) /* And the random ones that aren't in those files. */ __m64 _m_from_float(float); __m64 _m_from_int(int _l); void _m_prefetch(void *); float _m_to_float(__m64); int _m_to_int(__m64 _M); +#endif /* Other assorted instruction intrinsics. */ void __addfsbyte(unsigned long, unsigned char); |

