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

Side by Side Diff: srtp/crypto/math/math.c

Issue 889083003: Update libsrtp to upstream 1.5.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libsrtp@master
Patch Set: Minimal changes against upstream 1.5.0 Created 5 years, 10 months 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
OLDNEW
1 /* 1 /*
2 * math.c 2 * math.c
3 * 3 *
4 * crypto math operations and data types 4 * crypto math operations and data types
5 * 5 *
6 * David A. McGrew 6 * David A. McGrew
7 * Cisco Systems, Inc. 7 * Cisco Systems, Inc.
8 */ 8 */
9 /* 9 /*
10 * 10 *
(...skipping 24 matching lines...) Expand all
35 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 35 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
36 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 36 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
37 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 37 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
40 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 40 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
41 * OF THE POSSIBILITY OF SUCH DAMAGE. 41 * OF THE POSSIBILITY OF SUCH DAMAGE.
42 * 42 *
43 */ 43 */
44 44
45 #ifdef HAVE_CONFIG_H
46 #include <config.h>
47 #endif
48
45 #include "crypto_math.h" 49 #include "crypto_math.h"
46 50
47 int 51 int
48 octet_weight[256] = { 52 octet_weight[256] = {
49 0, 1, 1, 2, 1, 2, 2, 3, 53 0, 1, 1, 2, 1, 2, 2, 3,
50 1, 2, 2, 3, 2, 3, 3, 4, 54 1, 2, 2, 3, 2, 3, 3, 4,
51 1, 2, 2, 3, 2, 3, 3, 4, 55 1, 2, 2, 3, 2, 3, 3, 4,
52 2, 3, 3, 4, 3, 4, 4, 5, 56 2, 3, 3, 4, 3, 4, 4, 5,
53 1, 2, 2, 3, 2, 3, 3, 4, 57 1, 2, 2, 3, 2, 3, 3, 4,
54 2, 3, 3, 4, 3, 4, 4, 5, 58 2, 3, 3, 4, 3, 4, 4, 5,
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 return -1; 797 return -1;
794 return value + 24; 798 return value + 24;
795 } 799 }
796 800
797 /* high_bit not done yet */ 801 /* high_bit not done yet */
798 802
799 803
800 804
801 805
802 806
OLDNEW
« README.chromium ('K') | « srtp/crypto/math/gf2_8.c ('k') | srtp/crypto/math/stat.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698