1 Description: Fix MIPS namespace collision
2 Author: Thiemo Seufer <ths@networkno.de>
3 Origin: vendor, http://bugs.debian.org/439976#24
4 Bug-Debian: http://bugs.debian.org/439976
5 Last-Update: 2010-02-28
7 --- a/test/srtp_driver.c
8 +++ b/test/srtp_driver.c
10 if (do_codec_timing) {
13 - double mips = mips_estimate(1000000000, &ignore);
14 + double mips_est = mips_estimate(1000000000, &ignore);
16 crypto_policy_set_rtp_default(&policy.rtp);
17 crypto_policy_set_rtcp_default(&policy.rtcp);
19 policy.allow_repeat_tx = 0;
22 - printf("mips estimate: %e\n", mips);
23 + printf("mips estimate: %e\n", mips_est);
25 printf("testing srtp processing time for voice codecs:\n");
26 printf("codec\t\tlength (octets)\t\tsrtp instructions/second\n");
27 printf("G.711\t\t%d\t\t\t%e\n", 80,
28 - (double) mips * (80 * 8) /
29 + (double) mips_est * (80 * 8) /
30 srtp_bits_per_second(80, &policy) / .01 );
31 printf("G.711\t\t%d\t\t\t%e\n", 160,
32 - (double) mips * (160 * 8) /
33 + (double) mips_est * (160 * 8) /
34 srtp_bits_per_second(160, &policy) / .02);
35 printf("G.726-32\t%d\t\t\t%e\n", 40,
36 - (double) mips * (40 * 8) /
37 + (double) mips_est * (40 * 8) /
38 srtp_bits_per_second(40, &policy) / .01 );
39 printf("G.726-32\t%d\t\t\t%e\n", 80,
40 - (double) mips * (80 * 8) /
41 + (double) mips_est * (80 * 8) /
42 srtp_bits_per_second(80, &policy) / .02);
43 printf("G.729\t\t%d\t\t\t%e\n", 10,
44 - (double) mips * (10 * 8) /
45 + (double) mips_est * (10 * 8) /
46 srtp_bits_per_second(10, &policy) / .01 );
47 printf("G.729\t\t%d\t\t\t%e\n", 20,
48 - (double) mips * (20 * 8) /
49 + (double) mips_est * (20 * 8) /
50 srtp_bits_per_second(20, &policy) / .02 );
51 printf("Wideband\t%d\t\t\t%e\n", 320,
52 - (double) mips * (320 * 8) /
53 + (double) mips_est * (320 * 8) /
54 srtp_bits_per_second(320, &policy) / .01 );
55 printf("Wideband\t%d\t\t\t%e\n", 640,
56 - (double) mips * (640 * 8) /
57 + (double) mips_est * (640 * 8) /
58 srtp_bits_per_second(640, &policy) / .02 );