Server IP : 103.169.32.36 / Your IP : 216.73.217.108 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/gcc/x86_64-redhat-linux/4.8.2/include/ |
Upload File : |
| Current File : /lib/gcc/x86_64-redhat-linux/4.8.2/include/ia32intrin.h |
/* Copyright (C) 2009-2013 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
You should have received a copy of the GNU General Public License and
a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
<http://www.gnu.org/licenses/>. */
#ifndef _X86INTRIN_H_INCLUDED
# error "Never use <ia32intrin.h> directly; include <x86intrin.h> instead."
#endif
/* 32bit bsf */
extern __inline int
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__bsfd (int __X)
{
return __builtin_ctz (__X);
}
/* 32bit bsr */
extern __inline int
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__bsrd (int __X)
{
return __builtin_ia32_bsrsi (__X);
}
/* 32bit bswap */
extern __inline int
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__bswapd (int __X)
{
return __builtin_bswap32 (__X);
}
#ifdef __SSE4_2__
/* 32bit accumulate CRC32 (polynomial 0x11EDC6F41) value. */
extern __inline unsigned int
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__crc32b (unsigned int __C, unsigned char __V)
{
return __builtin_ia32_crc32qi (__C, __V);
}
extern __inline unsigned int
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__crc32w (unsigned int __C, unsigned short __V)
{
return __builtin_ia32_crc32hi (__C, __V);
}
extern __inline unsigned int
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__crc32d (unsigned int __C, unsigned int __V)
{
return __builtin_ia32_crc32si (__C, __V);
}
#endif /* SSE4.2 */
/* 32bit popcnt */
extern __inline int
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__popcntd (unsigned int __X)
{
return __builtin_popcount (__X);
}
/* rdpmc */
extern __inline unsigned long long
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__rdpmc (int __S)
{
return __builtin_ia32_rdpmc (__S);
}
/* rdtsc */
extern __inline unsigned long long
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__rdtsc (void)
{
return __builtin_ia32_rdtsc ();
}
/* rdtscp */
extern __inline unsigned long long
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__rdtscp (unsigned int *__A)
{
return __builtin_ia32_rdtscp (__A);
}
/* 8bit rol */
extern __inline unsigned char
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__rolb (unsigned char __X, int __C)
{
return __builtin_ia32_rolqi (__X, __C);
}
/* 16bit rol */
extern __inline unsigned short
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__rolw (unsigned short __X, int __C)
{
return __builtin_ia32_rolhi (__X, __C);
}
/* 32bit rol */
extern __inline unsigned int
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__rold (unsigned int __X, int __C)
{
return (__X << __C) | (__X >> (32 - __C));
}
/* 8bit ror */
extern __inline unsigned char
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__rorb (unsigned char __X, int __C)
{
return __builtin_ia32_rorqi (__X, __C);
}
/* 16bit ror */
extern __inline unsigned short
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__rorw (unsigned short __X, int __C)
{
return __builtin_ia32_rorhi (__X, __C);
}
/* 32bit ror */
extern __inline unsigned int
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__rord (unsigned int __X, int __C)
{
return (__X >> __C) | (__X << (32 - __C));
}
/* Pause */
extern __inline void
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__pause (void)
{
__builtin_ia32_pause ();
}
#ifdef __x86_64__
/* 64bit bsf */
extern __inline int
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__bsfq (long long __X)
{
return __builtin_ctzll (__X);
}
/* 64bit bsr */
extern __inline int
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__bsrq (long long __X)
{
return __builtin_ia32_bsrdi (__X);
}
/* 64bit bswap */
extern __inline long long
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__bswapq (long long __X)
{
return __builtin_bswap64 (__X);
}
#ifdef __SSE4_2__
/* 64bit accumulate CRC32 (polynomial 0x11EDC6F41) value. */
extern __inline unsigned long long
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__crc32q (unsigned long long __C, unsigned long long __V)
{
return __builtin_ia32_crc32di (__C, __V);
}
#endif
/* 64bit popcnt */
extern __inline long long
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__popcntq (unsigned long long __X)
{
return __builtin_popcountll (__X);
}
/* 64bit rol */
extern __inline unsigned long long
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__rolq (unsigned long long __X, int __C)
{
return (__X << __C) | (__X >> (64 - __C));
}
/* 64bit ror */
extern __inline unsigned long long
__attribute__((__gnu_inline__, __always_inline__, __artificial__))
__rorq (unsigned long long __X, int __C)
{
return (__X >> __C) | (__X << (64 - __C));
}
#define _bswap64(a) __bswapq(a)
#define _popcnt64(a) __popcntq(a)
#define _lrotl(a,b) __rolq((a), (b))
#define _lrotr(a,b) __rorq((a), (b))
#else
#define _lrotl(a,b) __rold((a), (b))
#define _lrotr(a,b) __rord((a), (b))
#endif
#define _bit_scan_forward(a) __bsfd(a)
#define _bit_scan_reverse(a) __bsrd(a)
#define _bswap(a) __bswapd(a)
#define _popcnt32(a) __popcntd(a)
#define _rdpmc(a) __rdpmc(a)
#define _rdtsc() __rdtsc()
#define _rdtscp(a) __rdtscp(a)
#define _rotwl(a,b) __rolw((a), (b))
#define _rotwr(a,b) __rorw((a), (b))
#define _rotl(a,b) __rold((a), (b))
#define _rotr(a,b) __rord((a), (b))
| N4m3 |
5!z3 |
L45t M0d!f!3d |
0wn3r / Gr0up |
P3Rm!55!0n5 |
0pt!0n5 |
| .. |
-- |
January 19 2024 08:13:08 |
0 / 0 |
0755 |
|
| | | | | |
| adxintrin.h |
1.759 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| ammintrin.h |
3.01 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| avx2intrin.h |
56.146 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| avxintrin.h |
46.883 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| bmi2intrin.h |
3.175 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| bmiintrin.h |
5.317 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| bmmintrin.h |
1.127 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| cpuid.h |
7.996 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| cross-stdarg.h |
2.498 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| emmintrin.h |
49.556 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| f16cintrin.h |
3.198 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| float.h |
8.669 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| fma4intrin.h |
8.776 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| fmaintrin.h |
10.152 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| fxsrintrin.h |
1.874 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| ia32intrin.h |
6.201 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| immintrin.h |
3.85 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| iso646.h |
1.242 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| limits.h |
5.256 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| lwpintrin.h |
3.137 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| lzcntintrin.h |
2.153 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| mm3dnow.h |
6.323 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| mm_malloc.h |
1.715 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| mmintrin.h |
29.868 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| nmmintrin.h |
1.35 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| omp.h |
3.564 KB |
September 30 2020 02:17:36 |
0 / 0 |
0644 |
|
| pkuintrin.h |
1.488 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| pmmintrin.h |
4.139 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| popcntintrin.h |
1.566 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| prfchwintrin.h |
1.54 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| rdseedintrin.h |
1.817 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| rtmintrin.h |
2.535 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| smmintrin.h |
27.052 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| stdalign.h |
1.182 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| stdarg.h |
3.979 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| stdbool.h |
1.404 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| stddef.h |
13.3 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| stdfix.h |
5.859 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| stdint-gcc.h |
6.864 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| stdint.h |
0.32 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| stdnoreturn.h |
1.109 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| syslimits.h |
0.322 KB |
September 30 2020 01:57:40 |
0 / 0 |
0644 |
|
| tbmintrin.h |
5.062 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| tmmintrin.h |
8.017 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| unwind.h |
10.477 KB |
September 30 2020 02:17:19 |
0 / 0 |
0644 |
|
| varargs.h |
0.136 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| wmmintrin.h |
4.256 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| x86intrin.h |
2.324 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| xmmintrin.h |
40.699 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| xopintrin.h |
27.772 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| xsaveintrin.h |
1.944 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| xsaveoptintrin.h |
1.63 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|
| xtestintrin.h |
1.518 KB |
September 30 2020 02:12:16 |
0 / 0 |
0644 |
|