xref: /onnv-gate/usr/src/common/bignum/README (revision 8933:16480dbef03d)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*8933Sopensolaris@drydog.com# Common Development and Distribution License (the "License").
6*8933Sopensolaris@drydog.com# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
21*8933Sopensolaris@drydog.com# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
220Sstevel@tonic-gate# Use is subject to license terms.
230Sstevel@tonic-gate#
240Sstevel@tonic-gate
25*8933Sopensolaris@drydog.comA note on the file mont_mulf.c.
26*8933Sopensolaris@drydog.com
27*8933Sopensolaris@drydog.comIt is used as a starting point for the following hand optimized assembly files:
280Sstevel@tonic-gate
290Sstevel@tonic-gate- usr/src/common/bignum/sun4u/mont_mulf_v8plus.s
300Sstevel@tonic-gate This file is used in the 32-bit pkcs11_softtoken library.
310Sstevel@tonic-gate
320Sstevel@tonic-gate- usr/src/common/bignum/sun4u/mont_mulf_v9.s
330Sstevel@tonic-gate This file is used in the 64-bit pkcs11_softtoken library.
340Sstevel@tonic-gate
35*8933Sopensolaris@drydog.com- usr/src/common/bignum/sun4u/mont_mulf_kernel_v9.s
360Sstevel@tonic-gate This file is used in the kernel RSA module.
370Sstevel@tonic-gate
380Sstevel@tonic-gateWe keep the .c file around for future reference.
39*8933Sopensolaris@drydog.com
40*8933Sopensolaris@drydog.comSee file bignumimpl.c for information about these preprocessor symbols:
41*8933Sopensolaris@drydog.com	USE_FLOATING_POINT, PSR_MUL, HWCAP, UMUL64
42*8933Sopensolaris@drydog.comUMUL64 is set in bignum.h based on architecture.
43*8933Sopensolaris@drydog.comThe other symbols are set in Makefiles, as appropriate.
44