| OLD | NEW |
| 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 Loading... |
| 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_ */ |
| OLD | NEW |