Home | History | Annotate | Line # | Download | only in i386
clzerointrin.h revision 1.1.1.1.4.3
      1  1.1.1.1.4.3    martin /* Copyright (C) 2012-2017 Free Software Foundation, Inc.
      2  1.1.1.1.4.2  christos 
      3  1.1.1.1.4.2  christos    This file is part of GCC.
      4  1.1.1.1.4.2  christos 
      5  1.1.1.1.4.2  christos    GCC is free software; you can redistribute it and/or modify
      6  1.1.1.1.4.2  christos    it under the terms of the GNU General Public License as published by
      7  1.1.1.1.4.2  christos    the Free Software Foundation; either version 3, or (at your option)
      8  1.1.1.1.4.2  christos    any later version.
      9  1.1.1.1.4.2  christos 
     10  1.1.1.1.4.2  christos    GCC is distributed in the hope that it will be useful,
     11  1.1.1.1.4.2  christos    but WITHOUT ANY WARRANTY; without even the implied warranty of
     12  1.1.1.1.4.2  christos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13  1.1.1.1.4.2  christos    GNU General Public License for more details.
     14  1.1.1.1.4.2  christos 
     15  1.1.1.1.4.2  christos    Under Section 7 of GPL version 3, you are granted additional
     16  1.1.1.1.4.2  christos    permissions described in the GCC Runtime Library Exception, version
     17  1.1.1.1.4.2  christos    3.1, as published by the Free Software Foundation.
     18  1.1.1.1.4.2  christos 
     19  1.1.1.1.4.2  christos    You should have received a copy of the GNU General Public License and
     20  1.1.1.1.4.2  christos    a copy of the GCC Runtime Library Exception along with this program;
     21  1.1.1.1.4.2  christos    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
     22  1.1.1.1.4.2  christos    <http://www.gnu.org/licenses/>.  */
     23  1.1.1.1.4.2  christos 
     24  1.1.1.1.4.2  christos #ifndef _CLZEROINTRIN_H_INCLUDED
     25  1.1.1.1.4.2  christos #define _CLZEROINTRIN_H_INCLUDED
     26  1.1.1.1.4.2  christos 
     27  1.1.1.1.4.2  christos #ifndef __CLZERO__
     28  1.1.1.1.4.2  christos #pragma GCC push_options
     29  1.1.1.1.4.2  christos #pragma GCC target("clzero")
     30  1.1.1.1.4.2  christos #define __DISABLE_CLZERO__
     31  1.1.1.1.4.2  christos #endif /* __CLZERO__ */
     32  1.1.1.1.4.2  christos 
     33  1.1.1.1.4.2  christos extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__))
     34  1.1.1.1.4.2  christos _mm_clzero (void * __I)
     35  1.1.1.1.4.2  christos {
     36  1.1.1.1.4.2  christos   __builtin_ia32_clzero (__I);
     37  1.1.1.1.4.2  christos }
     38  1.1.1.1.4.2  christos 
     39  1.1.1.1.4.2  christos #ifdef __DISABLE_CLZERO__
     40  1.1.1.1.4.2  christos #undef __DISABLE_CLZERO__
     41  1.1.1.1.4.2  christos #pragma GCC pop_options
     42  1.1.1.1.4.2  christos #endif /* __DISABLE_CLZERO__ */
     43  1.1.1.1.4.2  christos 
     44  1.1.1.1.4.2  christos #endif /* _CLZEROINTRIN_H_INCLUDED */
     45