Skip to content

Implementation on AVX2#4

Merged
Malkovsky merged 4 commits into
mainfrom
implementation-on-AVX2
Oct 26, 2025
Merged

Implementation on AVX2#4
Malkovsky merged 4 commits into
mainfrom
implementation-on-AVX2

Conversation

@mperikov

Copy link
Copy Markdown
Collaborator

All SIMD moved to bits.h

@Malkovsky Malkovsky left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need AVX2 check in the same manner as with AVX-512

Comment thread include/bits.h

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make an analogue of AVX512SUPP for AVX2, it is not supported everywhere

Comment thread include/bits.h
/**
* @brief Compare 4 64-bit numbers of @p x with @p y and
* return the length of the prefix where @p y is less then @p x
*/

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docsting should be next above the function declaration

Comment thread include/bits.h Outdated

#else

uint64_t select_512(const uint64_t* bits, uint64_t rank) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make it so the signature only appears once

Comment thread include/bits.h Outdated


/**
* TODO: compile/runtime checks fror SIMD

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR resolves the TODO

@Malkovsky Malkovsky merged commit f6f881a into main Oct 26, 2025
2 checks passed
@Malkovsky Malkovsky deleted the implementation-on-AVX2 branch November 30, 2025 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants