libgcrypt Mac M1 build fix proposal
Needs ReviewPublic

Authored by devnexen on Jan 24 2021, 10:03 AM.

Details

Reviewers
gniibe
Summary
  • getentropy needs sys/random.h
  • leading zero counting needs w constraint due to wider types than int.
Test Plan

Just tried to build in a mac m1

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped
devnexen created this revision.Jan 24 2021, 10:03 AM
devnexen added a reviewer: gniibe.
devnexen updated this revision to Diff 1465.Jan 24 2021, 1:16 PM

Check header presence instead for getentropy.

mpi/longlong.h
308

Did you checked the output in assembly language?

IIUC, it doesn't work.

%w is for HImode (2-byte) register.

Do you mean %q, which specifies DImode, to generate register name of X<something>?

gniibe added inline comments.Jan 26 2021, 4:04 AM
mpi/longlong.h
308

I created T5268, please continue discussion there.