Ignore:
Timestamp:
Oct 22, 2011, 2:14:12 PM (8 years ago)
Author:
ksherdy
Message:

Add count_forward_zeroes, count_backward_zeroes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock.hpp

    r1542 r1550  
    1515#include "idisa.hpp"
    1616
     17#include <limits>
     18#ifndef LONG_BIT
     19#if ULONG_MAX == 0xFFFFFFFF
     20#define LONG_BIT 32
     21#endif
     22#if ULONG_MAX == 0xFFFFFFFFFFFFFFFF
     23#define LONG_BIT 64
     24#endif
     25#endif
     26
    1727#ifndef BLOCKSIZE
    1828#define BLOCKSIZE 128
     
    2131/*  Default BLOCKSIZE is 128, compatible with SSE, Altivec, SPU */
    2232#if (BLOCKSIZE == 128)
    23 #include "idisa128.hpp"
    2433#include "bitblock128.hpp"
    2534#endif
     
    2736/*  BLOCKSIZE 256 for AVX */
    2837#if (BLOCKSIZE == 256)
    29 #include "idisa256.hpp"
    3038#include "bitblock256.hpp"
    3139#endif
    3240
    3341/* Wrapper Declarations */
    34 
     42/*
    3543#define sisd_sll(blk, n) simd<128>::sll(blk, n)         // TODO - Deprecate 'sisd_f(x,y)'. bitblock_f(x,y) Migrate to simd<sizeof(BitBlock)*8>::f(x,y) or simd<bitblock128_t, 128>::f(x,y)
    3644#define sisd_srl(blk, n) simd<128>::srl(blk, n)
     
    4351#define sb_op(x, n) ((x)>>(n))
    4452#define sf_op(x, n) ((x)<<(n))
    45 
     53*/
    4654
    4755template<class T> void print_register(const char * var_name, T v);      // print integer types as array of unsigned char
Note: See TracChangeset for help on using the changeset viewer.