Project

General

Profile

« Previous | Next » 

Revision 25a14430

Added by David Sorber over 10 years ago

Correcting minor mistake.

View differences:

software/misc/bit_position/bit_position.c
{
if (compare & copy)
{
uint64_t position = ctr;
position = ctr;
//~ printf("%" PRIu32 " ", ctr);
}
......
// Approach 3: use intrinsic and 2's complement trick
void approach3(uint32_t count, uint64_t* vectors)
{
for (uint32_t idx = 0; idx < I wcount; idx++) {
for (uint32_t idx = 0; idx < count; idx++) {
uint64_t copy = vectors[idx];
uint64_t vector = copy & (~copy + 1);

Also available in: Unified diff