jdk/src/share/native/sun/security/ec/impl/mpi.c
changeset 9774 50a2b28ca54c
parent 9035 1255eb81cc2f
child 24861 3377edc1a02d
equal deleted inserted replaced
9773:9ecab72d3b70 9774:50a2b28ca54c
       
     1 /*
       
     2  * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
       
     3  * Use is subject to license terms.
       
     4  *
       
     5  * This library is free software; you can redistribute it and/or
       
     6  * modify it under the terms of the GNU Lesser General Public
       
     7  * License as published by the Free Software Foundation; either
       
     8  * version 2.1 of the License, or (at your option) any later version.
       
     9  *
       
    10  * This library is distributed in the hope that it will be useful,
       
    11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    13  * Lesser General Public License for more details.
       
    14  *
       
    15  * You should have received a copy of the GNU Lesser General Public License
       
    16  * along with this library; if not, write to the Free Software Foundation,
       
    17  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
       
    18  *
       
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
       
    20  * or visit www.oracle.com if you need additional information or have any
       
    21  * questions.
       
    22  */
       
    23 
     1 /* *********************************************************************
    24 /* *********************************************************************
     2  *
       
     3  * Sun elects to have this file available under and governed by the
       
     4  * Mozilla Public License Version 1.1 ("MPL") (see
       
     5  * http://www.mozilla.org/MPL/ for full license text). For the avoidance
       
     6  * of doubt and subject to the following, Sun also elects to allow
       
     7  * licensees to use this file under the MPL, the GNU General Public
       
     8  * License version 2 only or the Lesser General Public License version
       
     9  * 2.1 only. Any references to the "GNU General Public License version 2
       
    10  * or later" or "GPL" in the following shall be construed to mean the
       
    11  * GNU General Public License version 2 only. Any references to the "GNU
       
    12  * Lesser General Public License version 2.1 or later" or "LGPL" in the
       
    13  * following shall be construed to mean the GNU Lesser General Public
       
    14  * License version 2.1 only. However, the following notice accompanied
       
    15  * the original version of this file:
       
    16  *
       
    17  *
       
    18  *  Arbitrary precision integer arithmetic library
       
    19  *
       
    20  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
       
    21  *
       
    22  * The contents of this file are subject to the Mozilla Public License Version
       
    23  * 1.1 (the "License"); you may not use this file except in compliance with
       
    24  * the License. You may obtain a copy of the License at
       
    25  * http://www.mozilla.org/MPL/
       
    26  *
       
    27  * Software distributed under the License is distributed on an "AS IS" basis,
       
    28  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
       
    29  * for the specific language governing rights and limitations under the
       
    30  * License.
       
    31  *
    25  *
    32  * The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
    26  * The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
    33  *
    27  *
    34  * The Initial Developer of the Original Code is
    28  * The Initial Developer of the Original Code is
    35  * Michael J. Fromberger.
    29  * Michael J. Fromberger.
    38  *
    32  *
    39  * Contributor(s):
    33  * Contributor(s):
    40  *   Netscape Communications Corporation
    34  *   Netscape Communications Corporation
    41  *   Douglas Stebila <douglas@stebila.ca> of Sun Laboratories.
    35  *   Douglas Stebila <douglas@stebila.ca> of Sun Laboratories.
    42  *
    36  *
    43  * Alternatively, the contents of this file may be used under the terms of
       
    44  * either the GNU General Public License Version 2 or later (the "GPL"), or
       
    45  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
       
    46  * in which case the provisions of the GPL or the LGPL are applicable instead
       
    47  * of those above. If you wish to allow use of your version of this file only
       
    48  * under the terms of either the GPL or the LGPL, and not to allow others to
       
    49  * use your version of this file under the terms of the MPL, indicate your
       
    50  * decision by deleting the provisions above and replace them with the notice
       
    51  * and other provisions required by the GPL or the LGPL. If you do not delete
       
    52  * the provisions above, a recipient may use your version of this file under
       
    53  * the terms of any one of the MPL, the GPL or the LGPL.
       
    54  *
       
    55  *********************************************************************** */
    37  *********************************************************************** */
    56 /*
    38 
    57  * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
    39 /*  Arbitrary precision integer arithmetic library */
    58  * Use is subject to license terms.
       
    59  */
       
    60 
       
    61 /* $Id: mpi.c,v 1.45 2006/09/29 20:12:21 alexei.volkov.bugs%sun.com Exp $ */
       
    62 
    40 
    63 #include "mpi-priv.h"
    41 #include "mpi-priv.h"
    64 #if defined(OSF1)
    42 #if defined(OSF1)
    65 #include <c_asm.h>
    43 #include <c_asm.h>
    66 #endif
    44 #endif