Skip to content

Conversation

Icenowy
Copy link

@Icenowy Icenowy commented Jul 2, 2023

The way GCC implements function-multiversioning is to generate a dispatcher function, thus it could not be used when a function is not built by GCC (e.g. a direct .S file, in the situation of AVX2 checksum).

Use function-multiversioning to declare a wrapper that will calls the appropriate checksum generatator function when AVX2 is present and do nothing when not present.

The way GCC implements function-multiversioning is to generate a
dispatcher function, thus it could not be used when a function is not
built by GCC (e.g. a direct .S file, in the situation of AVX2 checksum).

Use function-multiversioning to declare a wrapper that will calls the
appropriate checksum generatator function when AVX2 is present and do
nothing when not present.

Signed-off-by: Icenowy Zheng <[email protected]>
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.

1 participant