summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/getopt.c
diff options
context:
space:
mode:
authorderaadt <>2004-02-03 08:48:26 +0000
committerderaadt <>2004-02-03 08:48:26 +0000
commitb6361823f347e3fac478dfe9ca17ff60e7ffd362 (patch)
tree5f37ce8ce7c2d9df69cab4efc13c9031eb58e57f /src/lib/libc/stdlib/getopt.c
parent88dce049d2200f8e66f2fe6a8c21518b467f3762 (diff)
downloadopenbsd-b6361823f347e3fac478dfe9ca17ff60e7ffd362.tar.gz
openbsd-b6361823f347e3fac478dfe9ca17ff60e7ffd362.tar.bz2
openbsd-b6361823f347e3fac478dfe9ca17ff60e7ffd362.zip
If on an i386, detect existance of the VIA C3 xcrypt-* using sysctl of
the machdep.xcrypt node. If they exist, use the xcrypt-cbc instruction to accelerate aes-{128,192,256}-cbc, for more than 100x performance increase. This code has no effect on any cpu... Tested thus far using openssl speed command, and of course, ssh. 778MB/sec AES-128-CBC performance at 8192 byte block size.
Diffstat (limited to 'src/lib/libc/stdlib/getopt.c')
0 files changed, 0 insertions, 0 deletions