Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: nss/lib/freebl/mpi/mplogic.h

Issue 1504923011: Update NSS to 3.21 RTM and NSPR to 4.11 RTM (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * mplogic.h 2 * mplogic.h
3 * 3 *
4 * Bitwise logical operations on MPI values 4 * Bitwise logical operations on MPI values
5 * 5 *
6 * This Source Code Form is subject to the terms of the Mozilla Public 6 * This Source Code Form is subject to the terms of the Mozilla Public
7 * License, v. 2.0. If a copy of the MPL was not distributed with this 7 * License, v. 2.0. If a copy of the MPL was not distributed with this
8 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 8 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
9 9
10 #ifndef _H_MPLOGIC_ 10 #ifndef _H_MPLOGIC_
(...skipping 29 matching lines...) Expand all
40 40
41 mp_err mpl_num_set(mp_int *a, int *num); /* count set bits */ 41 mp_err mpl_num_set(mp_int *a, int *num); /* count set bits */
42 mp_err mpl_num_clear(mp_int *a, int *num); /* count clear bits */ 42 mp_err mpl_num_clear(mp_int *a, int *num); /* count clear bits */
43 mp_err mpl_parity(mp_int *a); /* determine parity */ 43 mp_err mpl_parity(mp_int *a); /* determine parity */
44 44
45 /* Get & Set the value of a bit */ 45 /* Get & Set the value of a bit */
46 46
47 mp_err mpl_set_bit(mp_int *a, mp_size bitNum, mp_size value); 47 mp_err mpl_set_bit(mp_int *a, mp_size bitNum, mp_size value);
48 mp_err mpl_get_bit(const mp_int *a, mp_size bitNum); 48 mp_err mpl_get_bit(const mp_int *a, mp_size bitNum);
49 mp_err mpl_get_bits(const mp_int *a, mp_size lsbNum, mp_size numBits); 49 mp_err mpl_get_bits(const mp_int *a, mp_size lsbNum, mp_size numBits);
50 mp_err mpl_significant_bits(const mp_int *a); 50 mp_size mpl_significant_bits(const mp_int *a);
51 51
52 #endif /* end _H_MPLOGIC_ */ 52 #endif /* end _H_MPLOGIC_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698