Thomas Munro <thomas.munro@enterprisedb.com> writes:
> Ahh, OpenSSL's armcap.c shows how to do this. You need to
> siglongjmp() out of there. Here's a patch that does it that way.
> Isn't this better?
Do you really need the pg_crc32c_armv8_choose_dummy global variable?
That seems pretty ugly. If you're concerned about the compiler
optimizing away the call to the crc function, you could write it like
result = (pg_comp_crc32c_armv8(0, 0, 0) == expected-value);
which'd provide a bit of extra checking that the code's not broken,
too.
regards, tom lane