summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/rand.c
diff options
context:
space:
mode:
authorjsing <>2025-08-30 07:16:06 +0000
committerjsing <>2025-08-30 07:16:06 +0000
commit3adccdb355e2f651255227b11a6324730cb85e48 (patch)
treefd3d5dda7990f2093417b07b765c94736fe90995 /src/lib/libc/stdlib/rand.c
parent1be59554e7c016fbcde4d8264e8db21d7efb3688 (diff)
downloadopenbsd-3adccdb355e2f651255227b11a6324730cb85e48.tar.gz
openbsd-3adccdb355e2f651255227b11a6324730cb85e48.tar.bz2
openbsd-3adccdb355e2f651255227b11a6324730cb85e48.zip
Rework bn_sqr() to use bn_sqr_words().
Rework some of the squaring code so that it calls bn_sqr_words() and use this as the integration point for assembly. Convert bn_sqr_normal() to bn_sqr_words(), which is then used on architectures that do not provide their own version. This means that we resume using the assembly version of bn_sqr_words() on i386, mips64 and powerpc, which can provide considerable performance gains. ok tb@
Diffstat (limited to 'src/lib/libc/stdlib/rand.c')
0 files changed, 0 insertions, 0 deletions