Changeset 1514 for trunk/lib/builtin.hpp


Ignore:
Timestamp:
Oct 4, 2011, 5:00:59 PM (8 years ago)
Author:
ksherdy
Message:

ICC defaults to GCC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/builtin.hpp

    r1509 r1514  
    3838                return zeroes;
    3939        }
     40
     41/* ICC defaults to GCC */
     42/*
     43#elif defined __INTEL_COMPILER
     44        static IDISA_INLINE long likely(long x) {
     45                return __builtin_expect(x, 1);
     46        }
     47        static IDISA_INLINE long unlikely(long x) {
     48                return __builtin_expect(x, 0);
     49        }
     50        static IDISA_INLINE unsigned long cfzl(unsigned long x) {
     51                return _bit_scan_forward(x);
     52        }
     53        static IDISA_INLINE unsigned long cbzl(unsigned long x) {
     54                return _bit_scan_reverse(int x)
     55        }
     56*/
     57
    4058#elif defined __GNUC__
    4159        static IDISA_INLINE long likely(long x) {
     
    5169                return __builtin_clzl(x);
    5270        }
    53 #elif defined __INTEL_COMPILER
    54         static IDISA_INLINE long likely(long x) {
    55                 return __builtin_expect(x, 1);
    56         }
    57         static IDISA_INLINE long unlikely(long x) {
    58                 return __builtin_expect(x, 0);
    59         }
    60         static IDISA_INLINE unsigned long cfzl(unsigned long x) {
    61                 return _bit_scan_forward(x);
    62         }
    63         static IDISA_INLINE unsigned long cbzl(unsigned long x) {
    64                 return _bit_scan_forward(int x)
    65         }
    6671
    6772#else
Note: See TracChangeset for help on using the changeset viewer.