35 * Michael J. Fromberger.
36 * Portions created by the Initial Developer are Copyright (C) 1998
37 * the Initial Developer. All Rights Reserved.
38 *
39 * Contributor(s):
40 *
41 * Alternatively, the contents of this file may be used under the terms of
42 * either the GNU General Public License Version 2 or later (the "GPL"), or
43 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
44 * in which case the provisions of the GPL or the LGPL are applicable instead
45 * of those above. If you wish to allow use of your version of this file only
46 * under the terms of either the GPL or the LGPL, and not to allow others to
47 * use your version of this file under the terms of the MPL, indicate your
48 * decision by deleting the provisions above and replace them with the notice
49 * and other provisions required by the GPL or the LGPL. If you do not delete
50 * the provisions above, a recipient may use your version of this file under
51 * the terms of any one of the MPL, the GPL or the LGPL.
52 *
53 *********************************************************************** */
54 /*
55 * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
56 * Use is subject to license terms.
57 */
58
59 #ifndef _MPLOGIC_H
60 #define _MPLOGIC_H
61
62 /* $Id: mplogic.h,v 1.7 2004/04/27 23:04:36 gerv%gerv.net Exp $ */
63
64 #include "mpi.h"
65
66 /*
67 The logical operations treat an mp_int as if it were a bit vector,
68 without regard to its sign (an mp_int is represented in a signed
69 magnitude format). Values are treated as if they had an infinite
70 string of zeros left of the most-significant bit.
71 */
72
73 /* Parity results */
74
75 #define MP_EVEN MP_YES
|
35 * Michael J. Fromberger.
36 * Portions created by the Initial Developer are Copyright (C) 1998
37 * the Initial Developer. All Rights Reserved.
38 *
39 * Contributor(s):
40 *
41 * Alternatively, the contents of this file may be used under the terms of
42 * either the GNU General Public License Version 2 or later (the "GPL"), or
43 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
44 * in which case the provisions of the GPL or the LGPL are applicable instead
45 * of those above. If you wish to allow use of your version of this file only
46 * under the terms of either the GPL or the LGPL, and not to allow others to
47 * use your version of this file under the terms of the MPL, indicate your
48 * decision by deleting the provisions above and replace them with the notice
49 * and other provisions required by the GPL or the LGPL. If you do not delete
50 * the provisions above, a recipient may use your version of this file under
51 * the terms of any one of the MPL, the GPL or the LGPL.
52 *
53 *********************************************************************** */
54 /*
55 * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
56 * Use is subject to license terms.
57 */
58
59 #ifndef _MPLOGIC_H
60 #define _MPLOGIC_H
61
62 /* $Id: mplogic.h,v 1.7 2004/04/27 23:04:36 gerv%gerv.net Exp $ */
63
64 #include "mpi.h"
65
66 /*
67 The logical operations treat an mp_int as if it were a bit vector,
68 without regard to its sign (an mp_int is represented in a signed
69 magnitude format). Values are treated as if they had an infinite
70 string of zeros left of the most-significant bit.
71 */
72
73 /* Parity results */
74
75 #define MP_EVEN MP_YES
|