Closed mratsim closed 3 years ago
Do they have any kind of autodetection, or are we supposed to do it for them and set the proper defines?
no autodetection, they use what the compiler sets:
They do for __ADX__
, but it looks like you need to set __BLST_PORTABLE__
yourself, to get the generic ASM on CPUs without SSSE3.
CLosed in #86
Our BLST target commit is slightly old. We should update.
And thus we wouldn't require this workaround: https://github.com/status-im/nim-blscurve/blob/86d151d7776d5874a9ea5911bfe12747b25925b2/blscurve/bls_backend.nim#L23-L32
And thus we wouldn't require this workaround https://github.com/status-im/nim-blscurve/blob/86d151d7776d5874a9ea5911bfe12747b25925b2/blscurve/blst/blst_lowlevel.nim#L12-L18