summaryrefslogtreecommitdiffstats
path: root/usr.bin/openssl/ecparam.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2014-10-13 00:12:51 +0000
committerdlg <dlg@openbsd.org>2014-10-13 00:12:51 +0000
commit36c0013fad8edb6251ae54bb4c0a80b47855ccc5 (patch)
tree68ba53cd49f1d9fdcbdbebea4275402ef8c84180 /usr.bin/openssl/ecparam.c
parentDon't assume that right-shift sign-extends integers. (diff)
downloadwireguard-openbsd-36c0013fad8edb6251ae54bb4c0a80b47855ccc5.tar.xz
wireguard-openbsd-36c0013fad8edb6251ae54bb4c0a80b47855ccc5.zip
take the pool_item pi_magic touching out from under #ifdef DIAGNOSTIC.
i couldnt measure a significant performance difference with or without it. this is likely a function of the memory involved being close to bits that are already being touched, the implemention being simple macros that mean registers can stay hot, and a lack of conditionals that would cause a cpu pipeline to crash. this means we're unconditionally poisoning the first two u_longs of pool items on all kernels. i think it also makes the code easier to read. discussed with deraadt@
Diffstat (limited to 'usr.bin/openssl/ecparam.c')
0 files changed, 0 insertions, 0 deletions