153 #define MATH_TYPE FLOAT_MATH
169 #if MATH_TYPE == FLOAT_MATH
210 #define MAX_IQ_POS LONG_MAX
211 #define MAX_IQ_NEG LONG_MIN
213 #define MIN_IQ_NEG -1
216 #if MATH_TYPE == IQ_MATH
253 #define _IQmpy2(A) ((A)<<1)
254 #define _IQmpy4(A) ((A)<<2)
255 #define _IQmpy8(A) ((A)<<3)
256 #define _IQmpy16(A) ((A)<<4)
257 #define _IQmpy32(A) ((A)<<5)
258 #define _IQmpy64(A) ((A)<<6)
260 #define _IQdiv2(A) ((A)>>1)
261 #define _IQdiv4(A) ((A)>>2)
262 #define _IQdiv8(A) ((A)>>3)
263 #define _IQdiv16(A) ((A)>>4)
264 #define _IQdiv32(A) ((A)>>5)
265 #define _IQdiv64(A) ((A)>>6)
267 #define _IQ30(A) (long) ((A) * 1073741824.0L)
268 #define _IQ29(A) (long) ((A) * 536870912.0L)
269 #define _IQ28(A) (long) ((A) * 268435456.0L)
270 #define _IQ27(A) (long) ((A) * 134217728.0L)
271 #define _IQ26(A) (long) ((A) * 67108864.0L)
272 #define _IQ25(A) (long) ((A) * 33554432.0L)
273 #define _IQ24(A) (long) ((A) * 16777216.0L)
274 #define _IQ23(A) (long) ((A) * 8388608.0L)
275 #define _IQ22(A) (long) ((A) * 4194304.0L)
276 #define _IQ21(A) (long) ((A) * 2097152.0L)
277 #define _IQ20(A) (long) ((A) * 1048576.0L)
278 #define _IQ19(A) (long) ((A) * 524288.0L)
279 #define _IQ18(A) (long) ((A) * 262144.0L)
280 #define _IQ17(A) (long) ((A) * 131072.0L)
281 #define _IQ16(A) (long) ((A) * 65536.0L)
282 #define _IQ15(A) (long) ((A) * 32768.0L)
283 #define _IQ14(A) (long) ((A) * 16384.0L)
284 #define _IQ13(A) (long) ((A) * 8192.0L)
285 #define _IQ12(A) (long) ((A) * 4096.0L)
286 #define _IQ11(A) (long) ((A) * 2048.0L)
287 #define _IQ10(A) (long) ((A) * 1024.0L)
288 #define _IQ9(A) (long) ((A) * 512.0L)
289 #define _IQ8(A) (long) ((A) * 256.0L)
290 #define _IQ7(A) (long) ((A) * 128.0L)
291 #define _IQ6(A) (long) ((A) * 64.0L)
292 #define _IQ5(A) (long) ((A) * 32.0L)
293 #define _IQ4(A) (long) ((A) * 16.0L)
294 #define _IQ3(A) (long) ((A) * 8.0L)
295 #define _IQ2(A) (long) ((A) * 4.0L)
296 #define _IQ1(A) (long) ((A) * 2.0L)
299 #define _IQ(A) _IQ30(A)
302 #define _IQ(A) _IQ29(A)
305 #define _IQ(A) _IQ28(A)
308 #define _IQ(A) _IQ27(A)
311 #define _IQ(A) _IQ26(A)
314 #define _IQ(A) _IQ25(A)
317 #define _IQ(A) _IQ24(A)
320 #define _IQ(A) _IQ23(A)
323 #define _IQ(A) _IQ22(A)
326 #define _IQ(A) _IQ21(A)
329 #define _IQ(A) _IQ20(A)
332 #define _IQ(A) _IQ19(A)
335 #define _IQ(A) _IQ18(A)
338 #define _IQ(A) _IQ17(A)
341 #define _IQ(A) _IQ16(A)
344 #define _IQ(A) _IQ15(A)
347 #define _IQ(A) _IQ14(A)
350 #define _IQ(A) _IQ13(A)
353 #define _IQ(A) _IQ12(A)
356 #define _IQ(A) _IQ11(A)
359 #define _IQ(A) _IQ10(A)
362 #define _IQ(A) _IQ9(A)
365 #define _IQ(A) _IQ8(A)
368 #define _IQ(A) _IQ7(A)
371 #define _IQ(A) _IQ6(A)
374 #define _IQ(A) _IQ5(A)
377 #define _IQ(A) _IQ4(A)
380 #define _IQ(A) _IQ3(A)
383 #define _IQ(A) _IQ2(A)
386 #define _IQ(A) _IQ1(A)
421 #define _IQtoF(A) _IQ30toF(A)
424 #define _IQtoF(A) _IQ29toF(A)
427 #define _IQtoF(A) _IQ28toF(A)
430 #define _IQtoF(A) _IQ27toF(A)
433 #define _IQtoF(A) _IQ26toF(A)
436 #define _IQtoF(A) _IQ25toF(A)
439 #define _IQtoF(A) _IQ24toF(A)
442 #define _IQtoF(A) _IQ23toF(A)
445 #define _IQtoF(A) _IQ22toF(A)
448 #define _IQtoF(A) _IQ21toF(A)
451 #define _IQtoF(A) _IQ20toF(A)
454 #define _IQtoF(A) _IQ19toF(A)
457 #define _IQtoF(A) _IQ18toF(A)
460 #define _IQtoF(A) _IQ17toF(A)
463 #define _IQtoF(A) _IQ16toF(A)
466 #define _IQtoF(A) _IQ15toF(A)
469 #define _IQtoF(A) _IQ14toF(A)
472 #define _IQtoF(A) _IQ13toF(A)
475 #define _IQtoF(A) _IQ12toF(A)
478 #define _IQtoF(A) _IQ11toF(A)
481 #define _IQtoF(A) _IQ10toF(A)
484 #define _IQtoF(A) _IQ9toF(A)
487 #define _IQtoF(A) _IQ8toF(A)
490 #define _IQtoF(A) _IQ7toF(A)
493 #define _IQtoF(A) _IQ6toF(A)
496 #define _IQtoF(A) _IQ5toF(A)
499 #define _IQtoF(A) _IQ4toF(A)
502 #define _IQtoF(A) _IQ3toF(A)
505 #define _IQtoF(A) _IQ2toF(A)
508 #define _IQtoF(A) _IQ1toF(A)
511 #define _IQsat(A, Pos, Neg) __IQsat(A, Pos, Neg)
513 #define _IQtoIQ30(A) ((long) (A) << (30 - GLOBAL_Q))
514 #define _IQ30toIQ(A) ((long) (A) >> (30 - GLOBAL_Q))
517 #define _IQtoIQ29(A) ((long) (A) >> (GLOBAL_Q - 29))
518 #define _IQ29toIQ(A) ((long) (A) << (GLOBAL_Q - 29))
520 #define _IQtoIQ29(A) ((long) (A) << (29 - GLOBAL_Q))
521 #define _IQ29toIQ(A) ((long) (A) >> (29 - GLOBAL_Q))
525 #define _IQtoIQ28(A) ((long) (A) >> (GLOBAL_Q - 28))
526 #define _IQ28toIQ(A) ((long) (A) << (GLOBAL_Q - 28))
528 #define _IQtoIQ28(A) ((long) (A) << (28 - GLOBAL_Q))
529 #define _IQ28toIQ(A) ((long) (A) >> (28 - GLOBAL_Q))
533 #define _IQtoIQ27(A) ((long) (A) >> (GLOBAL_Q - 27))
534 #define _IQ27toIQ(A) ((long) (A) << (GLOBAL_Q - 27))
536 #define _IQtoIQ27(A) ((long) (A) << (27 - GLOBAL_Q))
537 #define _IQ27toIQ(A) ((long) (A) >> (27 - GLOBAL_Q))
541 #define _IQtoIQ26(A) ((long) (A) >> (GLOBAL_Q - 26))
542 #define _IQ26toIQ(A) ((long) (A) << (GLOBAL_Q - 26))
544 #define _IQtoIQ26(A) ((long) (A) << (26 - GLOBAL_Q))
545 #define _IQ26toIQ(A) ((long) (A) >> (26 - GLOBAL_Q))
549 #define _IQtoIQ25(A) ((long) (A) >> (GLOBAL_Q - 25))
550 #define _IQ25toIQ(A) ((long) (A) << (GLOBAL_Q - 25))
552 #define _IQtoIQ25(A) ((long) (A) << (25 - GLOBAL_Q))
553 #define _IQ25toIQ(A) ((long) (A) >> (25 - GLOBAL_Q))
557 #define _IQtoIQ24(A) ((long) (A) >> (GLOBAL_Q - 24))
558 #define _IQ24toIQ(A) ((long) (A) << (GLOBAL_Q - 24))
560 #define _IQtoIQ24(A) ((long) (A) << (24 - GLOBAL_Q))
561 #define _IQ24toIQ(A) ((long) (A) >> (24 - GLOBAL_Q))
565 #define _IQtoIQ23(A) ((long) (A) >> (GLOBAL_Q - 23))
566 #define _IQ23toIQ(A) ((long) (A) << (GLOBAL_Q - 23))
568 #define _IQtoIQ23(A) ((long) (A) << (23 - GLOBAL_Q))
569 #define _IQ23toIQ(A) ((long) (A) >> (23 - GLOBAL_Q))
573 #define _IQtoIQ22(A) ((long) (A) >> (GLOBAL_Q - 22))
574 #define _IQ22toIQ(A) ((long) (A) << (GLOBAL_Q - 22))
576 #define _IQtoIQ22(A) ((long) (A) << (22 - GLOBAL_Q))
577 #define _IQ22toIQ(A) ((long) (A) >> (22 - GLOBAL_Q))
581 #define _IQtoIQ21(A) ((long) (A) >> (GLOBAL_Q - 21))
582 #define _IQ21toIQ(A) ((long) (A) << (GLOBAL_Q - 21))
584 #define _IQtoIQ21(A) ((long) (A) << (21 - GLOBAL_Q))
585 #define _IQ21toIQ(A) ((long) (A) >> (21 - GLOBAL_Q))
589 #define _IQtoIQ20(A) ((long) (A) >> (GLOBAL_Q - 20))
590 #define _IQ20toIQ(A) ((long) (A) << (GLOBAL_Q - 20))
592 #define _IQtoIQ20(A) ((long) (A) << (20 - GLOBAL_Q))
593 #define _IQ20toIQ(A) ((long) (A) >> (20 - GLOBAL_Q))
597 #define _IQtoIQ19(A) ((long) (A) >> (GLOBAL_Q - 19))
598 #define _IQ19toIQ(A) ((long) (A) << (GLOBAL_Q - 19))
600 #define _IQtoIQ19(A) ((long) (A) << (19 - GLOBAL_Q))
601 #define _IQ19toIQ(A) ((long) (A) >> (19 - GLOBAL_Q))
605 #define _IQtoIQ18(A) ((long) (A) >> (GLOBAL_Q - 18))
606 #define _IQ18toIQ(A) ((long) (A) << (GLOBAL_Q - 18))
608 #define _IQtoIQ18(A) ((long) (A) << (18 - GLOBAL_Q))
609 #define _IQ18toIQ(A) ((long) (A) >> (18 - GLOBAL_Q))
613 #define _IQtoIQ17(A) ((long) (A) >> (GLOBAL_Q - 17))
614 #define _IQ17toIQ(A) ((long) (A) << (GLOBAL_Q - 17))
616 #define _IQtoIQ17(A) ((long) (A) << (17 - GLOBAL_Q))
617 #define _IQ17toIQ(A) ((long) (A) >> (17 - GLOBAL_Q))
621 #define _IQtoIQ16(A) ((long) (A) >> (GLOBAL_Q - 16))
622 #define _IQ16toIQ(A) ((long) (A) << (GLOBAL_Q - 16))
624 #define _IQtoIQ16(A) ((long) (A) << (16 - GLOBAL_Q))
625 #define _IQ16toIQ(A) ((long) (A) >> (16 - GLOBAL_Q))
629 #define _IQtoIQ15(A) ((long) (A) >> (GLOBAL_Q - 15))
630 #define _IQ15toIQ(A) ((long) (A) << (GLOBAL_Q - 15))
631 #define _IQtoQ15(A) ((long) (A) >> (GLOBAL_Q - 15))
632 #define _Q15toIQ(A) ((long) (A) << (GLOBAL_Q - 15))
634 #define _IQtoIQ15(A) ((long) (A) << (15 - GLOBAL_Q))
635 #define _IQ15toIQ(A) ((long) (A) >> (15 - GLOBAL_Q))
636 #define _IQtoQ15(A) ((long) (A) << (15 - GLOBAL_Q))
637 #define _Q15toIQ(A) ((long) (A) >> (15 - GLOBAL_Q))
641 #define _IQtoIQ14(A) ((long) (A) >> (GLOBAL_Q - 14))
642 #define _IQ14toIQ(A) ((long) (A) << (GLOBAL_Q - 14))
643 #define _IQtoQ14(A) ((long) (A) >> (GLOBAL_Q - 14))
644 #define _Q14toIQ(A) ((long) (A) << (GLOBAL_Q - 14))
646 #define _IQtoIQ14(A) ((long) (A) << (14 - GLOBAL_Q))
647 #define _IQ14toIQ(A) ((long) (A) >> (14 - GLOBAL_Q))
648 #define _IQtoQ14(A) ((long) (A) << (14 - GLOBAL_Q))
649 #define _Q14toIQ(A) ((long) (A) >> (14 - GLOBAL_Q))
653 #define _IQtoIQ13(A) ((long) (A) >> (GLOBAL_Q - 13))
654 #define _IQ13toIQ(A) ((long) (A) << (GLOBAL_Q - 13))
655 #define _IQtoQ13(A) ((long) (A) >> (GLOBAL_Q - 13))
656 #define _Q13toIQ(A) ((long) (A) << (GLOBAL_Q - 13))
658 #define _IQtoIQ13(A) ((long) (A) << (13 - GLOBAL_Q))
659 #define _IQ13toIQ(A) ((long) (A) >> (13 - GLOBAL_Q))
660 #define _IQtoQ13(A) ((long) (A) << (13 - GLOBAL_Q))
661 #define _Q13toIQ(A) ((long) (A) >> (13 - GLOBAL_Q))
665 #define _IQtoIQ12(A) ((long) (A) >> (GLOBAL_Q - 12))
666 #define _IQ12toIQ(A) ((long) (A) << (GLOBAL_Q - 12))
667 #define _IQtoQ12(A) ((long) (A) >> (GLOBAL_Q - 12))
668 #define _Q12toIQ(A) ((long) (A) << (GLOBAL_Q - 12))
670 #define _IQtoIQ12(A) ((long) (A) << (12 - GLOBAL_Q))
671 #define _IQ12toIQ(A) ((long) (A) >> (12 - GLOBAL_Q))
672 #define _IQtoQ12(A) ((long) (A) << (12 - GLOBAL_Q))
673 #define _Q12toIQ(A) ((long) (A) >> (12 - GLOBAL_Q))
677 #define _IQtoIQ11(A) ((long) (A) >> (GLOBAL_Q - 11))
678 #define _IQ11toIQ(A) ((long) (A) << (GLOBAL_Q - 11))
679 #define _IQtoQ11(A) ((long) (A) >> (GLOBAL_Q - 11))
680 #define _Q11toIQ(A) ((long) (A) << (GLOBAL_Q - 11))
682 #define _IQtoIQ11(A) ((long) (A) << (11 - GLOBAL_Q))
683 #define _IQ11toIQ(A) ((long) (A) >> (11 - GLOBAL_Q))
684 #define _IQtoQ11(A) ((long) (A) << (11 - GLOBAL_Q))
685 #define _Q11toIQ(A) ((long) (A) >> (11 - GLOBAL_Q))
689 #define _IQtoIQ10(A) ((long) (A) >> (GLOBAL_Q - 10))
690 #define _IQ10toIQ(A) ((long) (A) << (GLOBAL_Q - 10))
691 #define _IQtoQ10(A) ((long) (A) >> (GLOBAL_Q - 10))
692 #define _Q10toIQ(A) ((long) (A) << (GLOBAL_Q - 10))
694 #define _IQtoIQ10(A) ((long) (A) << (10 - GLOBAL_Q))
695 #define _IQ10toIQ(A) ((long) (A) >> (10 - GLOBAL_Q))
696 #define _IQtoQ10(A) ((long) (A) << (10 - GLOBAL_Q))
697 #define _Q10toIQ(A) ((long) (A) >> (10 - GLOBAL_Q))
701 #define _IQtoIQ9(A) ((long) (A) >> (GLOBAL_Q - 9))
702 #define _IQ9toIQ(A) ((long) (A) << (GLOBAL_Q - 9))
703 #define _IQtoQ9(A) ((long) (A) >> (GLOBAL_Q - 9))
704 #define _Q9toIQ(A) ((long) (A) << (GLOBAL_Q - 9))
706 #define _IQtoIQ9(A) ((long) (A) << (9 - GLOBAL_Q))
707 #define _IQ9toIQ(A) ((long) (A) >> (9 - GLOBAL_Q))
708 #define _IQtoQ9(A) ((long) (A) << (9 - GLOBAL_Q))
709 #define _Q9toIQ(A) ((long) (A) >> (9 - GLOBAL_Q))
713 #define _IQtoIQ8(A) ((long) (A) >> (GLOBAL_Q - 8))
714 #define _IQ8toIQ(A) ((long) (A) << (GLOBAL_Q - 8))
715 #define _IQtoQ8(A) ((long) (A) >> (GLOBAL_Q - 8))
716 #define _Q8toIQ(A) ((long) (A) << (GLOBAL_Q - 8))
718 #define _IQtoIQ8(A) ((long) (A) << (8 - GLOBAL_Q))
719 #define _IQ8toIQ(A) ((long) (A) >> (8 - GLOBAL_Q))
720 #define _IQtoQ8(A) ((long) (A) << (8 - GLOBAL_Q))
721 #define _Q8toIQ(A) ((long) (A) >> (8 - GLOBAL_Q))
725 #define _IQtoIQ7(A) ((long) (A) >> (GLOBAL_Q - 7))
726 #define _IQ7toIQ(A) ((long) (A) << (GLOBAL_Q - 7))
727 #define _IQtoQ7(A) ((long) (A) >> (GLOBAL_Q - 7))
728 #define _Q7toIQ(A) ((long) (A) << (GLOBAL_Q - 7))
730 #define _IQtoIQ7(A) ((long) (A) << (7 - GLOBAL_Q))
731 #define _IQ7toIQ(A) ((long) (A) >> (7 - GLOBAL_Q))
732 #define _IQtoQ7(A) ((long) (A) << (7 - GLOBAL_Q))
733 #define _Q7toIQ(A) ((long) (A) >> (7 - GLOBAL_Q))
737 #define _IQtoIQ6(A) ((long) (A) >> (GLOBAL_Q - 6))
738 #define _IQ6toIQ(A) ((long) (A) << (GLOBAL_Q - 6))
739 #define _IQtoQ6(A) ((long) (A) >> (GLOBAL_Q - 6))
740 #define _Q6toIQ(A) ((long) (A) << (GLOBAL_Q - 6))
742 #define _IQtoIQ6(A) ((long) (A) << (6 - GLOBAL_Q))
743 #define _IQ6toIQ(A) ((long) (A) >> (6 - GLOBAL_Q))
744 #define _IQtoQ6(A) ((long) (A) << (6 - GLOBAL_Q))
745 #define _Q6toIQ(A) ((long) (A) >> (6 - GLOBAL_Q))
749 #define _IQtoIQ5(A) ((long) (A) >> (GLOBAL_Q - 5))
750 #define _IQ5toIQ(A) ((long) (A) << (GLOBAL_Q - 5))
751 #define _IQtoQ5(A) ((long) (A) >> (GLOBAL_Q - 5))
752 #define _Q5toIQ(A) ((long) (A) << (GLOBAL_Q - 5))
754 #define _IQtoIQ5(A) ((long) (A) << (5 - GLOBAL_Q))
755 #define _IQ5toIQ(A) ((long) (A) >> (5 - GLOBAL_Q))
756 #define _IQtoQ5(A) ((long) (A) << (5 - GLOBAL_Q))
757 #define _Q5toIQ(A) ((long) (A) >> (5 - GLOBAL_Q))
761 #define _IQtoIQ4(A) ((long) (A) >> (GLOBAL_Q - 4))
762 #define _IQ4toIQ(A) ((long) (A) << (GLOBAL_Q - 4))
763 #define _IQtoQ4(A) ((long) (A) >> (GLOBAL_Q - 4))
764 #define _Q4toIQ(A) ((long) (A) << (GLOBAL_Q - 4))
766 #define _IQtoIQ4(A) ((long) (A) << (4 - GLOBAL_Q))
767 #define _IQ4toIQ(A) ((long) (A) >> (4 - GLOBAL_Q))
768 #define _IQtoQ4(A) ((long) (A) << (4 - GLOBAL_Q))
769 #define _Q4toIQ(A) ((long) (A) >> (4 - GLOBAL_Q))
773 #define _IQtoIQ3(A) ((long) (A) >> (GLOBAL_Q - 3))
774 #define _IQ3toIQ(A) ((long) (A) << (GLOBAL_Q - 3))
775 #define _IQtoQ3(A) ((long) (A) >> (GLOBAL_Q - 3))
776 #define _Q3toIQ(A) ((long) (A) << (GLOBAL_Q - 3))
778 #define _IQtoIQ3(A) ((long) (A) << (3 - GLOBAL_Q))
779 #define _IQ3toIQ(A) ((long) (A) >> (3 - GLOBAL_Q))
780 #define _IQtoQ3(A) ((long) (A) << (3 - GLOBAL_Q))
781 #define _Q3toIQ(A) ((long) (A) >> (3 - GLOBAL_Q))
785 #define _IQtoIQ2(A) ((long) (A) >> (GLOBAL_Q - 2))
786 #define _IQ2toIQ(A) ((long) (A) << (GLOBAL_Q - 2))
787 #define _IQtoQ2(A) ((long) (A) >> (GLOBAL_Q - 2))
788 #define _Q2toIQ(A) ((long) (A) << (GLOBAL_Q - 2))
790 #define _IQtoIQ2(A) ((long) (A) << (2 - GLOBAL_Q))
791 #define _IQ2toIQ(A) ((long) (A) >> (2 - GLOBAL_Q))
792 #define _IQtoQ2(A) ((long) (A) << (2 - GLOBAL_Q))
793 #define _Q2toIQ(A) ((long) (A) >> (2 - GLOBAL_Q))
797 #define _IQtoQ1(A) ((long) (A) >> (GLOBAL_Q - 1))
798 #define _Q1toIQ(A) ((long) (A) << (GLOBAL_Q - 1))
800 #define _IQtoQ1(A) ((long) (A) << (1 - GLOBAL_Q))
801 #define _Q1toIQ(A) ((long) (A) >> (1 - GLOBAL_Q))
804 #define _IQtoIQ1(A) ((long) (A) >> (GLOBAL_Q - 1))
805 #define _IQ1toIQ(A) ((long) (A) << (GLOBAL_Q - 1))
807 #define _IQmpy(A,B) __IQmpy(A,B,GLOBAL_Q)
808 #define _IQ30mpy(A,B) __IQmpy(A,B,30)
809 #define _IQ29mpy(A,B) __IQmpy(A,B,29)
810 #define _IQ28mpy(A,B) __IQmpy(A,B,28)
811 #define _IQ27mpy(A,B) __IQmpy(A,B,27)
812 #define _IQ26mpy(A,B) __IQmpy(A,B,26)
813 #define _IQ25mpy(A,B) __IQmpy(A,B,25)
814 #define _IQ24mpy(A,B) __IQmpy(A,B,24)
815 #define _IQ23mpy(A,B) __IQmpy(A,B,23)
816 #define _IQ22mpy(A,B) __IQmpy(A,B,22)
817 #define _IQ21mpy(A,B) __IQmpy(A,B,21)
818 #define _IQ20mpy(A,B) __IQmpy(A,B,20)
819 #define _IQ19mpy(A,B) __IQmpy(A,B,19)
820 #define _IQ18mpy(A,B) __IQmpy(A,B,18)
821 #define _IQ17mpy(A,B) __IQmpy(A,B,17)
822 #define _IQ16mpy(A,B) __IQmpy(A,B,16)
823 #define _IQ15mpy(A,B) __IQmpy(A,B,15)
824 #define _IQ14mpy(A,B) __IQmpy(A,B,14)
825 #define _IQ13mpy(A,B) __IQmpy(A,B,13)
826 #define _IQ12mpy(A,B) __IQmpy(A,B,12)
827 #define _IQ11mpy(A,B) __IQmpy(A,B,11)
828 #define _IQ10mpy(A,B) __IQmpy(A,B,10)
829 #define _IQ9mpy(A,B) __IQmpy(A,B,9)
830 #define _IQ8mpy(A,B) __IQmpy(A,B,8)
831 #define _IQ7mpy(A,B) __IQmpy(A,B,7)
832 #define _IQ6mpy(A,B) __IQmpy(A,B,6)
833 #define _IQ5mpy(A,B) __IQmpy(A,B,5)
834 #define _IQ4mpy(A,B) __IQmpy(A,B,4)
835 #define _IQ3mpy(A,B) __IQmpy(A,B,3)
836 #define _IQ2mpy(A,B) __IQmpy(A,B,2)
837 #define _IQ1mpy(A,B) __IQmpy(A,B,1)
860 extern long _IQ9rmpy(
long A,
long B);
861 extern long _IQ8rmpy(
long A,
long B);
862 extern long _IQ7rmpy(
long A,
long B);
863 extern long _IQ6rmpy(
long A,
long B);
864 extern long _IQ5rmpy(
long A,
long B);
865 extern long _IQ4rmpy(
long A,
long B);
866 extern long _IQ3rmpy(
long A,
long B);
867 extern long _IQ2rmpy(
long A,
long B);
868 extern long _IQ1rmpy(
long A,
long B);
871 #define _IQrmpy(A,B) _IQ30rmpy(A,B)
874 #define _IQrmpy(A,B) _IQ29rmpy(A,B)
877 #define _IQrmpy(A,B) _IQ28rmpy(A,B)
880 #define _IQrmpy(A,B) _IQ27rmpy(A,B)
883 #define _IQrmpy(A,B) _IQ26rmpy(A,B)
886 #define _IQrmpy(A,B) _IQ25rmpy(A,B)
889 #define _IQrmpy(A,B) _IQ24rmpy(A,B)
892 #define _IQrmpy(A,B) _IQ23rmpy(A,B)
895 #define _IQrmpy(A,B) _IQ22rmpy(A,B)
898 #define _IQrmpy(A,B) _IQ21rmpy(A,B)
901 #define _IQrmpy(A,B) _IQ20rmpy(A,B)
904 #define _IQrmpy(A,B) _IQ19rmpy(A,B)
907 #define _IQrmpy(A,B) _IQ18rmpy(A,B)
910 #define _IQrmpy(A,B) _IQ17rmpy(A,B)
913 #define _IQrmpy(A,B) _IQ16rmpy(A,B)
916 #define _IQrmpy(A,B) _IQ15rmpy(A,B)
919 #define _IQrmpy(A,B) _IQ14rmpy(A,B)
922 #define _IQrmpy(A,B) _IQ13rmpy(A,B)
925 #define _IQrmpy(A,B) _IQ12rmpy(A,B)
928 #define _IQrmpy(A,B) _IQ11rmpy(A,B)
931 #define _IQrmpy(A,B) _IQ10rmpy(A,B)
934 #define _IQrmpy(A,B) _IQ9rmpy(A,B)
937 #define _IQrmpy(A,B) _IQ8rmpy(A,B)
940 #define _IQrmpy(A,B) _IQ7rmpy(A,B)
943 #define _IQrmpy(A,B) _IQ6rmpy(A,B)
946 #define _IQrmpy(A,B) _IQ5rmpy(A,B)
949 #define _IQrmpy(A,B) _IQ4rmpy(A,B)
952 #define _IQrmpy(A,B) _IQ3rmpy(A,B)
955 #define _IQrmpy(A,B) _IQ2rmpy(A,B)
958 #define _IQrmpy(A,B) _IQ1rmpy(A,B)
993 #define _IQrsmpy(A,B) _IQ30rsmpy(A,B)
996 #define _IQrsmpy(A,B) _IQ29rsmpy(A,B)
999 #define _IQrsmpy(A,B) _IQ28rsmpy(A,B)
1002 #define _IQrsmpy(A,B) _IQ27rsmpy(A,B)
1005 #define _IQrsmpy(A,B) _IQ26rsmpy(A,B)
1008 #define _IQrsmpy(A,B) _IQ25rsmpy(A,B)
1011 #define _IQrsmpy(A,B) _IQ24rsmpy(A,B)
1014 #define _IQrsmpy(A,B) _IQ23rsmpy(A,B)
1017 #define _IQrsmpy(A,B) _IQ22rsmpy(A,B)
1020 #define _IQrsmpy(A,B) _IQ21rsmpy(A,B)
1023 #define _IQrsmpy(A,B) _IQ20rsmpy(A,B)
1026 #define _IQrsmpy(A,B) _IQ19rsmpy(A,B)
1029 #define _IQrsmpy(A,B) _IQ18rsmpy(A,B)
1032 #define _IQrsmpy(A,B) _IQ17rsmpy(A,B)
1035 #define _IQrsmpy(A,B) _IQ16rsmpy(A,B)
1038 #define _IQrsmpy(A,B) _IQ15rsmpy(A,B)
1041 #define _IQrsmpy(A,B) _IQ14rsmpy(A,B)
1044 #define _IQrsmpy(A,B) _IQ13rsmpy(A,B)
1047 #define _IQrsmpy(A,B) _IQ12rsmpy(A,B)
1050 #define _IQrsmpy(A,B) _IQ11rsmpy(A,B)
1053 #define _IQrsmpy(A,B) _IQ10rsmpy(A,B)
1056 #define _IQrsmpy(A,B) _IQ9rsmpy(A,B)
1059 #define _IQrsmpy(A,B) _IQ8rsmpy(A,B)
1062 #define _IQrsmpy(A,B) _IQ7rsmpy(A,B)
1065 #define _IQrsmpy(A,B) _IQ6rsmpy(A,B)
1068 #define _IQrsmpy(A,B) _IQ5rsmpy(A,B)
1071 #define _IQrsmpy(A,B) _IQ4rsmpy(A,B)
1074 #define _IQrsmpy(A,B) _IQ3rsmpy(A,B)
1077 #define _IQrsmpy(A,B) _IQ2rsmpy(A,B)
1080 #define _IQrsmpy(A,B) _IQ1rsmpy(A,B)
1083 extern long _IQ30div(
long A,
long B);
1084 extern long _IQ29div(
long A,
long B);
1085 extern long _IQ28div(
long A,
long B);
1086 extern long _IQ27div(
long A,
long B);
1087 extern long _IQ26div(
long A,
long B);
1088 extern long _IQ25div(
long A,
long B);
1089 extern long _IQ24div(
long A,
long B);
1090 extern long _IQ23div(
long A,
long B);
1091 extern long _IQ22div(
long A,
long B);
1092 extern long _IQ21div(
long A,
long B);
1093 extern long _IQ20div(
long A,
long B);
1094 extern long _IQ19div(
long A,
long B);
1095 extern long _IQ18div(
long A,
long B);
1096 extern long _IQ17div(
long A,
long B);
1097 extern long _IQ16div(
long A,
long B);
1098 extern long _IQ15div(
long A,
long B);
1099 extern long _IQ14div(
long A,
long B);
1100 extern long _IQ13div(
long A,
long B);
1101 extern long _IQ12div(
long A,
long B);
1102 extern long _IQ11div(
long A,
long B);
1103 extern long _IQ10div(
long A,
long B);
1104 extern long _IQ9div(
long A,
long B);
1105 extern long _IQ8div(
long A,
long B);
1106 extern long _IQ7div(
long A,
long B);
1107 extern long _IQ6div(
long A,
long B);
1108 extern long _IQ5div(
long A,
long B);
1109 extern long _IQ4div(
long A,
long B);
1110 extern long _IQ3div(
long A,
long B);
1111 extern long _IQ2div(
long A,
long B);
1112 extern long _IQ1div(
long A,
long B);
1115 #define _IQdiv(A,B) _IQ30div(A,B)
1118 #define _IQdiv(A,B) _IQ29div(A,B)
1121 #define _IQdiv(A,B) _IQ28div(A,B)
1124 #define _IQdiv(A,B) _IQ27div(A,B)
1127 #define _IQdiv(A,B) _IQ26div(A,B)
1130 #define _IQdiv(A,B) _IQ25div(A,B)
1133 #define _IQdiv(A,B) _IQ24div(A,B)
1136 #define _IQdiv(A,B) _IQ23div(A,B)
1139 #define _IQdiv(A,B) _IQ22div(A,B)
1142 #define _IQdiv(A,B) _IQ21div(A,B)
1145 #define _IQdiv(A,B) _IQ20div(A,B)
1148 #define _IQdiv(A,B) _IQ19div(A,B)
1151 #define _IQdiv(A,B) _IQ18div(A,B)
1154 #define _IQdiv(A,B) _IQ17div(A,B)
1157 #define _IQdiv(A,B) _IQ16div(A,B)
1160 #define _IQdiv(A,B) _IQ15div(A,B)
1163 #define _IQdiv(A,B) _IQ14div(A,B)
1166 #define _IQdiv(A,B) _IQ13div(A,B)
1169 #define _IQdiv(A,B) _IQ12div(A,B)
1172 #define _IQdiv(A,B) _IQ11div(A,B)
1175 #define _IQdiv(A,B) _IQ10div(A,B)
1178 #define _IQdiv(A,B) _IQ9div(A,B)
1181 #define _IQdiv(A,B) _IQ8div(A,B)
1184 #define _IQdiv(A,B) _IQ7div(A,B)
1187 #define _IQdiv(A,B) _IQ6div(A,B)
1190 #define _IQdiv(A,B) _IQ5div(A,B)
1193 #define _IQdiv(A,B) _IQ4div(A,B)
1196 #define _IQdiv(A,B) _IQ3div(A,B)
1199 #define _IQdiv(A,B) _IQ2div(A,B)
1202 #define _IQdiv(A,B) _IQ1div(A,B)
1237 #define _IQsin(A) _IQ30sin(A)
1240 #define _IQsin(A) _IQ29sin(A)
1243 #define _IQsin(A) _IQ28sin(A)
1246 #define _IQsin(A) _IQ27sin(A)
1249 #define _IQsin(A) _IQ26sin(A)
1252 #define _IQsin(A) _IQ25sin(A)
1255 #define _IQsin(A) _IQ24sin(A)
1258 #define _IQsin(A) _IQ23sin(A)
1261 #define _IQsin(A) _IQ22sin(A)
1264 #define _IQsin(A) _IQ21sin(A)
1267 #define _IQsin(A) _IQ20sin(A)
1270 #define _IQsin(A) _IQ19sin(A)
1273 #define _IQsin(A) _IQ18sin(A)
1276 #define _IQsin(A) _IQ17sin(A)
1279 #define _IQsin(A) _IQ16sin(A)
1282 #define _IQsin(A) _IQ15sin(A)
1285 #define _IQsin(A) _IQ14sin(A)
1288 #define _IQsin(A) _IQ13sin(A)
1291 #define _IQsin(A) _IQ12sin(A)
1294 #define _IQsin(A) _IQ11sin(A)
1297 #define _IQsin(A) _IQ10sin(A)
1300 #define _IQsin(A) _IQ9sin(A)
1303 #define _IQsin(A) _IQ8sin(A)
1306 #define _IQsin(A) _IQ7sin(A)
1309 #define _IQsin(A) _IQ6sin(A)
1312 #define _IQsin(A) _IQ5sin(A)
1315 #define _IQsin(A) _IQ4sin(A)
1318 #define _IQsin(A) _IQ3sin(A)
1321 #define _IQsin(A) _IQ2sin(A)
1324 #define _IQsin(A) _IQ1sin(A)
1359 #define _IQsinPU(A) _IQ30sinPU(A)
1362 #define _IQsinPU(A) _IQ29sinPU(A)
1365 #define _IQsinPU(A) _IQ28sinPU(A)
1368 #define _IQsinPU(A) _IQ27sinPU(A)
1371 #define _IQsinPU(A) _IQ26sinPU(A)
1374 #define _IQsinPU(A) _IQ25sinPU(A)
1377 #define _IQsinPU(A) _IQ24sinPU(A)
1380 #define _IQsinPU(A) _IQ23sinPU(A)
1383 #define _IQsinPU(A) _IQ22sinPU(A)
1386 #define _IQsinPU(A) _IQ21sinPU(A)
1389 #define _IQsinPU(A) _IQ20sinPU(A)
1392 #define _IQsinPU(A) _IQ19sinPU(A)
1395 #define _IQsinPU(A) _IQ18sinPU(A)
1398 #define _IQsinPU(A) _IQ17sinPU(A)
1401 #define _IQsinPU(A) _IQ16sinPU(A)
1404 #define _IQsinPU(A) _IQ15sinPU(A)
1407 #define _IQsinPU(A) _IQ14sinPU(A)
1410 #define _IQsinPU(A) _IQ13sinPU(A)
1413 #define _IQsinPU(A) _IQ12sinPU(A)
1416 #define _IQsinPU(A) _IQ11sinPU(A)
1419 #define _IQsinPU(A) _IQ10sinPU(A)
1422 #define _IQsinPU(A) _IQ9sinPU(A)
1425 #define _IQsinPU(A) _IQ8sinPU(A)
1428 #define _IQsinPU(A) _IQ7sinPU(A)
1431 #define _IQsinPU(A) _IQ6sinPU(A)
1434 #define _IQsinPU(A) _IQ5sinPU(A)
1437 #define _IQsinPU(A) _IQ4sinPU(A)
1440 #define _IQsinPU(A) _IQ3sinPU(A)
1443 #define _IQsinPU(A) _IQ2sinPU(A)
1446 #define _IQsinPU(A) _IQ1sinPU(A)
1481 #define _IQasin(A) _IQ30asin(A)
1484 #define _IQasin(A) _IQ29asin(A)
1487 #define _IQasin(A) _IQ28asin(A)
1490 #define _IQasin(A) _IQ27asin(A)
1493 #define _IQasin(A) _IQ26asin(A)
1496 #define _IQasin(A) _IQ25asin(A)
1499 #define _IQasin(A) _IQ24asin(A)
1502 #define _IQasin(A) _IQ23asin(A)
1505 #define _IQasin(A) _IQ22asin(A)
1508 #define _IQasin(A) _IQ21asin(A)
1511 #define _IQasin(A) _IQ20asin(A)
1514 #define _IQasin(A) _IQ19asin(A)
1517 #define _IQasin(A) _IQ18asin(A)
1520 #define _IQasin(A) _IQ17asin(A)
1523 #define _IQasin(A) _IQ16asin(A)
1526 #define _IQasin(A) _IQ15asin(A)
1529 #define _IQasin(A) _IQ14asin(A)
1532 #define _IQasin(A) _IQ13asin(A)
1535 #define _IQasin(A) _IQ12asin(A)
1538 #define _IQasin(A) _IQ11asin(A)
1541 #define _IQasin(A) _IQ10asin(A)
1544 #define _IQasin(A) _IQ9asin(A)
1547 #define _IQasin(A) _IQ8asin(A)
1550 #define _IQasin(A) _IQ7asin(A)
1553 #define _IQasin(A) _IQ6asin(A)
1556 #define _IQasin(A) _IQ5asin(A)
1559 #define _IQasin(A) _IQ4asin(A)
1562 #define _IQasin(A) _IQ3asin(A)
1565 #define _IQasin(A) _IQ2asin(A)
1568 #define _IQasin(A) _IQ1asin(A)
1603 #define _IQcos(A) _IQ30cos(A)
1606 #define _IQcos(A) _IQ29cos(A)
1609 #define _IQcos(A) _IQ28cos(A)
1612 #define _IQcos(A) _IQ27cos(A)
1615 #define _IQcos(A) _IQ26cos(A)
1618 #define _IQcos(A) _IQ25cos(A)
1621 #define _IQcos(A) _IQ24cos(A)
1624 #define _IQcos(A) _IQ23cos(A)
1627 #define _IQcos(A) _IQ22cos(A)
1630 #define _IQcos(A) _IQ21cos(A)
1633 #define _IQcos(A) _IQ20cos(A)
1636 #define _IQcos(A) _IQ19cos(A)
1639 #define _IQcos(A) _IQ18cos(A)
1642 #define _IQcos(A) _IQ17cos(A)
1645 #define _IQcos(A) _IQ16cos(A)
1648 #define _IQcos(A) _IQ15cos(A)
1651 #define _IQcos(A) _IQ14cos(A)
1654 #define _IQcos(A) _IQ13cos(A)
1657 #define _IQcos(A) _IQ12cos(A)
1660 #define _IQcos(A) _IQ11cos(A)
1663 #define _IQcos(A) _IQ10cos(A)
1666 #define _IQcos(A) _IQ9cos(A)
1669 #define _IQcos(A) _IQ8cos(A)
1672 #define _IQcos(A) _IQ7cos(A)
1675 #define _IQcos(A) _IQ6cos(A)
1678 #define _IQcos(A) _IQ5cos(A)
1681 #define _IQcos(A) _IQ4cos(A)
1684 #define _IQcos(A) _IQ3cos(A)
1687 #define _IQcos(A) _IQ2cos(A)
1690 #define _IQcos(A) _IQ1cos(A)
1725 #define _IQcosPU(A) _IQ30cosPU(A)
1728 #define _IQcosPU(A) _IQ29cosPU(A)
1731 #define _IQcosPU(A) _IQ28cosPU(A)
1734 #define _IQcosPU(A) _IQ27cosPU(A)
1737 #define _IQcosPU(A) _IQ26cosPU(A)
1740 #define _IQcosPU(A) _IQ25cosPU(A)
1743 #define _IQcosPU(A) _IQ24cosPU(A)
1746 #define _IQcosPU(A) _IQ23cosPU(A)
1749 #define _IQcosPU(A) _IQ22cosPU(A)
1752 #define _IQcosPU(A) _IQ21cosPU(A)
1755 #define _IQcosPU(A) _IQ20cosPU(A)
1758 #define _IQcosPU(A) _IQ19cosPU(A)
1761 #define _IQcosPU(A) _IQ18cosPU(A)
1764 #define _IQcosPU(A) _IQ17cosPU(A)
1767 #define _IQcosPU(A) _IQ16cosPU(A)
1770 #define _IQcosPU(A) _IQ15cosPU(A)
1773 #define _IQcosPU(A) _IQ14cosPU(A)
1776 #define _IQcosPU(A) _IQ13cosPU(A)
1779 #define _IQcosPU(A) _IQ12cosPU(A)
1782 #define _IQcosPU(A) _IQ11cosPU(A)
1785 #define _IQcosPU(A) _IQ10cosPU(A)
1788 #define _IQcosPU(A) _IQ9cosPU(A)
1791 #define _IQcosPU(A) _IQ8cosPU(A)
1794 #define _IQcosPU(A) _IQ7cosPU(A)
1797 #define _IQcosPU(A) _IQ6cosPU(A)
1800 #define _IQcosPU(A) _IQ5cosPU(A)
1803 #define _IQcosPU(A) _IQ4cosPU(A)
1806 #define _IQcosPU(A) _IQ3cosPU(A)
1809 #define _IQcosPU(A) _IQ2cosPU(A)
1812 #define _IQcosPU(A) _IQ1cosPU(A)
1847 #define _IQacos(A) _IQ30acos(A)
1850 #define _IQacos(A) _IQ29acos(A)
1853 #define _IQacos(A) _IQ28acos(A)
1856 #define _IQacos(A) _IQ27acos(A)
1859 #define _IQacos(A) _IQ26acos(A)
1862 #define _IQacos(A) _IQ25acos(A)
1865 #define _IQacos(A) _IQ24acos(A)
1868 #define _IQacos(A) _IQ23acos(A)
1871 #define _IQacos(A) _IQ22acos(A)
1874 #define _IQacos(A) _IQ21acos(A)
1877 #define _IQacos(A) _IQ20acos(A)
1880 #define _IQacos(A) _IQ19acos(A)
1883 #define _IQacos(A) _IQ18acos(A)
1886 #define _IQacos(A) _IQ17acos(A)
1889 #define _IQacos(A) _IQ16acos(A)
1892 #define _IQacos(A) _IQ15acos(A)
1895 #define _IQacos(A) _IQ14acos(A)
1898 #define _IQacos(A) _IQ13acos(A)
1901 #define _IQacos(A) _IQ12acos(A)
1904 #define _IQacos(A) _IQ11acos(A)
1907 #define _IQacos(A) _IQ10acos(A)
1910 #define _IQacos(A) _IQ9acos(A)
1913 #define _IQacos(A) _IQ8acos(A)
1916 #define _IQacos(A) _IQ7acos(A)
1919 #define _IQacos(A) _IQ6acos(A)
1922 #define _IQacos(A) _IQ5acos(A)
1925 #define _IQacos(A) _IQ4acos(A)
1928 #define _IQacos(A) _IQ3acos(A)
1931 #define _IQacos(A) _IQ2acos(A)
1934 #define _IQacos(A) _IQ1acos(A)
1969 #define _IQatan2(A,B) _IQ30atan2(A,B)
1972 #define _IQatan2(A,B) _IQ29atan2(A,B)
1975 #define _IQatan2(A,B) _IQ28atan2(A,B)
1978 #define _IQatan2(A,B) _IQ27atan2(A,B)
1981 #define _IQatan2(A,B) _IQ26atan2(A,B)
1984 #define _IQatan2(A,B) _IQ25atan2(A,B)
1987 #define _IQatan2(A,B) _IQ24atan2(A,B)
1990 #define _IQatan2(A,B) _IQ23atan2(A,B)
1993 #define _IQatan2(A,B) _IQ22atan2(A,B)
1996 #define _IQatan2(A,B) _IQ21atan2(A,B)
1999 #define _IQatan2(A,B) _IQ20atan2(A,B)
2002 #define _IQatan2(A,B) _IQ19atan2(A,B)
2005 #define _IQatan2(A,B) _IQ18atan2(A,B)
2008 #define _IQatan2(A,B) _IQ17atan2(A,B)
2011 #define _IQatan2(A,B) _IQ16atan2(A,B)
2014 #define _IQatan2(A,B) _IQ15atan2(A,B)
2017 #define _IQatan2(A,B) _IQ14atan2(A,B)
2020 #define _IQatan2(A,B) _IQ13atan2(A,B)
2023 #define _IQatan2(A,B) _IQ12atan2(A,B)
2026 #define _IQatan2(A,B) _IQ11atan2(A,B)
2029 #define _IQatan2(A,B) _IQ10atan2(A,B)
2032 #define _IQatan2(A,B) _IQ9atan2(A,B)
2035 #define _IQatan2(A,B) _IQ8atan2(A,B)
2038 #define _IQatan2(A,B) _IQ7atan2(A,B)
2041 #define _IQatan2(A,B) _IQ6atan2(A,B)
2044 #define _IQatan2(A,B) _IQ5atan2(A,B)
2047 #define _IQatan2(A,B) _IQ4atan2(A,B)
2050 #define _IQatan2(A,B) _IQ3atan2(A,B)
2053 #define _IQatan2(A,B) _IQ2atan2(A,B)
2056 #define _IQatan2(A,B) _IQ1atan2(A,B)
2091 #define _IQatan2PU(A,B) _IQ30atan2PU(A,B)
2094 #define _IQatan2PU(A,B) _IQ29atan2PU(A,B)
2097 #define _IQatan2PU(A,B) _IQ28atan2PU(A,B)
2100 #define _IQatan2PU(A,B) _IQ27atan2PU(A,B)
2103 #define _IQatan2PU(A,B) _IQ26atan2PU(A,B)
2106 #define _IQatan2PU(A,B) _IQ25atan2PU(A,B)
2109 #define _IQatan2PU(A,B) _IQ24atan2PU(A,B)
2112 #define _IQatan2PU(A,B) _IQ23atan2PU(A,B)
2115 #define _IQatan2PU(A,B) _IQ22atan2PU(A,B)
2118 #define _IQatan2PU(A,B) _IQ21atan2PU(A,B)
2121 #define _IQatan2PU(A,B) _IQ20atan2PU(A,B)
2124 #define _IQatan2PU(A,B) _IQ19atan2PU(A,B)
2127 #define _IQatan2PU(A,B) _IQ18atan2PU(A,B)
2130 #define _IQatan2PU(A,B) _IQ17atan2PU(A,B)
2133 #define _IQatan2PU(A,B) _IQ16atan2PU(A,B)
2136 #define _IQatan2PU(A,B) _IQ15atan2PU(A,B)
2139 #define _IQatan2PU(A,B) _IQ14atan2PU(A,B)
2142 #define _IQatan2PU(A,B) _IQ13atan2PU(A,B)
2145 #define _IQatan2PU(A,B) _IQ12atan2PU(A,B)
2148 #define _IQatan2PU(A,B) _IQ11atan2PU(A,B)
2151 #define _IQatan2PU(A,B) _IQ10atan2PU(A,B)
2154 #define _IQatan2PU(A,B) _IQ9atan2PU(A,B)
2157 #define _IQatan2PU(A,B) _IQ8atan2PU(A,B)
2160 #define _IQatan2PU(A,B) _IQ7atan2PU(A,B)
2163 #define _IQatan2PU(A,B) _IQ6atan2PU(A,B)
2166 #define _IQatan2PU(A,B) _IQ5atan2PU(A,B)
2169 #define _IQatan2PU(A,B) _IQ4atan2PU(A,B)
2172 #define _IQatan2PU(A,B) _IQ3atan2PU(A,B)
2175 #define _IQatan2PU(A,B) _IQ2atan2PU(A,B)
2178 #define _IQatan2PU(A,B) _IQ1atan2PU(A,B)
2181 #define _IQ30atan(A) _IQ30atan2(A,_IQ30(1.0))
2182 #define _IQ29atan(A) _IQ29atan2(A,_IQ29(1.0))
2183 #define _IQ28atan(A) _IQ28atan2(A,_IQ28(1.0))
2184 #define _IQ27atan(A) _IQ27atan2(A,_IQ27(1.0))
2185 #define _IQ26atan(A) _IQ26atan2(A,_IQ26(1.0))
2186 #define _IQ25atan(A) _IQ25atan2(A,_IQ25(1.0))
2187 #define _IQ24atan(A) _IQ24atan2(A,_IQ24(1.0))
2188 #define _IQ23atan(A) _IQ23atan2(A,_IQ23(1.0))
2189 #define _IQ22atan(A) _IQ22atan2(A,_IQ22(1.0))
2190 #define _IQ21atan(A) _IQ21atan2(A,_IQ21(1.0))
2191 #define _IQ20atan(A) _IQ20atan2(A,_IQ20(1.0))
2192 #define _IQ19atan(A) _IQ19atan2(A,_IQ19(1.0))
2193 #define _IQ18atan(A) _IQ18atan2(A,_IQ18(1.0))
2194 #define _IQ17atan(A) _IQ17atan2(A,_IQ17(1.0))
2195 #define _IQ16atan(A) _IQ16atan2(A,_IQ16(1.0))
2196 #define _IQ15atan(A) _IQ15atan2(A,_IQ15(1.0))
2197 #define _IQ14atan(A) _IQ14atan2(A,_IQ14(1.0))
2198 #define _IQ13atan(A) _IQ13atan2(A,_IQ13(1.0))
2199 #define _IQ12atan(A) _IQ12atan2(A,_IQ12(1.0))
2200 #define _IQ11atan(A) _IQ11atan2(A,_IQ11(1.0))
2201 #define _IQ10atan(A) _IQ10atan2(A,_IQ10(1.0))
2202 #define _IQ9atan(A) _IQ9atan2(A,_IQ9(1.0))
2203 #define _IQ8atan(A) _IQ8atan2(A,_IQ8(1.0))
2204 #define _IQ7atan(A) _IQ7atan2(A,_IQ7(1.0))
2205 #define _IQ6atan(A) _IQ6atan2(A,_IQ6(1.0))
2206 #define _IQ5atan(A) _IQ5atan2(A,_IQ5(1.0))
2207 #define _IQ4atan(A) _IQ4atan2(A,_IQ4(1.0))
2208 #define _IQ3atan(A) _IQ3atan2(A,_IQ3(1.0))
2209 #define _IQ2atan(A) _IQ2atan2(A,_IQ2(1.0))
2210 #define _IQ1atan(A) _IQ1atan2(A,_IQ1(1.0))
2212 #define _IQatan(A) _IQ30atan2(A,_IQ(1.0))
2215 #define _IQatan(A) _IQ29atan2(A,_IQ(1.0))
2218 #define _IQatan(A) _IQ28atan2(A,_IQ(1.0))
2221 #define _IQatan(A) _IQ27atan2(A,_IQ(1.0))
2224 #define _IQatan(A) _IQ26atan2(A,_IQ(1.0))
2227 #define _IQatan(A) _IQ25atan2(A,_IQ(1.0))
2230 #define _IQatan(A) _IQ24atan2(A,_IQ(1.0))
2233 #define _IQatan(A) _IQ23atan2(A,_IQ(1.0))
2236 #define _IQatan(A) _IQ22atan2(A,_IQ(1.0))
2239 #define _IQatan(A) _IQ21atan2(A,_IQ(1.0))
2242 #define _IQatan(A) _IQ20atan2(A,_IQ(1.0))
2245 #define _IQatan(A) _IQ19atan2(A,_IQ(1.0))
2248 #define _IQatan(A) _IQ18atan2(A,_IQ(1.0))
2251 #define _IQatan(A) _IQ17atan2(A,_IQ(1.0))
2254 #define _IQatan(A) _IQ16atan2(A,_IQ(1.0))
2257 #define _IQatan(A) _IQ15atan2(A,_IQ(1.0))
2260 #define _IQatan(A) _IQ14atan2(A,_IQ(1.0))
2263 #define _IQatan(A) _IQ13atan2(A,_IQ(1.0))
2266 #define _IQatan(A) _IQ12atan2(A,_IQ(1.0))
2269 #define _IQatan(A) _IQ11atan2(A,_IQ(1.0))
2272 #define _IQatan(A) _IQ10atan2(A,_IQ(1.0))
2275 #define _IQatan(A) _IQ9atan2(A,_IQ(1.0))
2278 #define _IQatan(A) _IQ8atan2(A,_IQ(1.0))
2281 #define _IQatan(A) _IQ7atan2(A,_IQ(1.0))
2284 #define _IQatan(A) _IQ6atan2(A,_IQ(1.0))
2287 #define _IQatan(A) _IQ5atan2(A,_IQ(1.0))
2290 #define _IQatan(A) _IQ4atan2(A,_IQ(1.0))
2293 #define _IQatan(A) _IQ3atan2(A,_IQ(1.0))
2296 #define _IQatan(A) _IQ2atan2(A,_IQ(1.0))
2299 #define _IQatan(A) _IQ1atan2(A,_IQ(1.0))
2334 #define _IQsqrt(A) _IQ30sqrt(A)
2337 #define _IQsqrt(A) _IQ29sqrt(A)
2340 #define _IQsqrt(A) _IQ28sqrt(A)
2343 #define _IQsqrt(A) _IQ27sqrt(A)
2346 #define _IQsqrt(A) _IQ26sqrt(A)
2349 #define _IQsqrt(A) _IQ25sqrt(A)
2352 #define _IQsqrt(A) _IQ24sqrt(A)
2355 #define _IQsqrt(A) _IQ23sqrt(A)
2358 #define _IQsqrt(A) _IQ22sqrt(A)
2361 #define _IQsqrt(A) _IQ21sqrt(A)
2364 #define _IQsqrt(A) _IQ20sqrt(A)
2367 #define _IQsqrt(A) _IQ19sqrt(A)
2370 #define _IQsqrt(A) _IQ18sqrt(A)
2373 #define _IQsqrt(A) _IQ17sqrt(A)
2376 #define _IQsqrt(A) _IQ16sqrt(A)
2379 #define _IQsqrt(A) _IQ15sqrt(A)
2382 #define _IQsqrt(A) _IQ14sqrt(A)
2385 #define _IQsqrt(A) _IQ13sqrt(A)
2388 #define _IQsqrt(A) _IQ12sqrt(A)
2391 #define _IQsqrt(A) _IQ11sqrt(A)
2394 #define _IQsqrt(A) _IQ10sqrt(A)
2397 #define _IQsqrt(A) _IQ9sqrt(A)
2400 #define _IQsqrt(A) _IQ8sqrt(A)
2403 #define _IQsqrt(A) _IQ7sqrt(A)
2406 #define _IQsqrt(A) _IQ6sqrt(A)
2409 #define _IQsqrt(A) _IQ5sqrt(A)
2412 #define _IQsqrt(A) _IQ4sqrt(A)
2415 #define _IQsqrt(A) _IQ3sqrt(A)
2418 #define _IQsqrt(A) _IQ2sqrt(A)
2421 #define _IQsqrt(A) _IQ1sqrt(A)
2456 #define _IQisqrt(A) _IQ30isqrt(A)
2459 #define _IQisqrt(A) _IQ29isqrt(A)
2462 #define _IQisqrt(A) _IQ28isqrt(A)
2465 #define _IQisqrt(A) _IQ27isqrt(A)
2468 #define _IQisqrt(A) _IQ26isqrt(A)
2471 #define _IQisqrt(A) _IQ25isqrt(A)
2474 #define _IQisqrt(A) _IQ24isqrt(A)
2477 #define _IQisqrt(A) _IQ23isqrt(A)
2480 #define _IQisqrt(A) _IQ22isqrt(A)
2483 #define _IQisqrt(A) _IQ21isqrt(A)
2486 #define _IQisqrt(A) _IQ20isqrt(A)
2489 #define _IQisqrt(A) _IQ19isqrt(A)
2492 #define _IQisqrt(A) _IQ18isqrt(A)
2495 #define _IQisqrt(A) _IQ17isqrt(A)
2498 #define _IQisqrt(A) _IQ16isqrt(A)
2501 #define _IQisqrt(A) _IQ15isqrt(A)
2504 #define _IQisqrt(A) _IQ14isqrt(A)
2507 #define _IQisqrt(A) _IQ13isqrt(A)
2510 #define _IQisqrt(A) _IQ12isqrt(A)
2513 #define _IQisqrt(A) _IQ11isqrt(A)
2516 #define _IQisqrt(A) _IQ10isqrt(A)
2519 #define _IQisqrt(A) _IQ9isqrt(A)
2522 #define _IQisqrt(A) _IQ8isqrt(A)
2525 #define _IQisqrt(A) _IQ7isqrt(A)
2528 #define _IQisqrt(A) _IQ6isqrt(A)
2531 #define _IQisqrt(A) _IQ5isqrt(A)
2534 #define _IQisqrt(A) _IQ4isqrt(A)
2537 #define _IQisqrt(A) _IQ3isqrt(A)
2540 #define _IQisqrt(A) _IQ2isqrt(A)
2543 #define _IQisqrt(A) _IQ1isqrt(A)
2578 #define _IQexp(A) _IQ30exp(A)
2581 #define _IQexp(A) _IQ29exp(A)
2584 #define _IQexp(A) _IQ28exp(A)
2587 #define _IQexp(A) _IQ27exp(A)
2590 #define _IQexp(A) _IQ26exp(A)
2593 #define _IQexp(A) _IQ25exp(A)
2596 #define _IQexp(A) _IQ24exp(A)
2599 #define _IQexp(A) _IQ23exp(A)
2602 #define _IQexp(A) _IQ22exp(A)
2605 #define _IQexp(A) _IQ21exp(A)
2608 #define _IQexp(A) _IQ20exp(A)
2611 #define _IQexp(A) _IQ19exp(A)
2614 #define _IQexp(A) _IQ18exp(A)
2617 #define _IQexp(A) _IQ17exp(A)
2620 #define _IQexp(A) _IQ16exp(A)
2623 #define _IQexp(A) _IQ15exp(A)
2626 #define _IQexp(A) _IQ14exp(A)
2629 #define _IQexp(A) _IQ13exp(A)
2632 #define _IQexp(A) _IQ12exp(A)
2635 #define _IQexp(A) _IQ11exp(A)
2638 #define _IQexp(A) _IQ10exp(A)
2641 #define _IQexp(A) _IQ9exp(A)
2644 #define _IQexp(A) _IQ8exp(A)
2647 #define _IQexp(A) _IQ7exp(A)
2650 #define _IQexp(A) _IQ6exp(A)
2653 #define _IQexp(A) _IQ5exp(A)
2656 #define _IQexp(A) _IQ4exp(A)
2659 #define _IQexp(A) _IQ3exp(A)
2662 #define _IQexp(A) _IQ2exp(A)
2665 #define _IQexp(A) _IQ1exp(A)
2700 #define _IQint(A) _IQ30int(A)
2703 #define _IQint(A) _IQ29int(A)
2706 #define _IQint(A) _IQ28int(A)
2709 #define _IQint(A) _IQ27int(A)
2712 #define _IQint(A) _IQ26int(A)
2715 #define _IQint(A) _IQ25int(A)
2718 #define _IQint(A) _IQ24int(A)
2721 #define _IQint(A) _IQ23int(A)
2724 #define _IQint(A) _IQ22int(A)
2727 #define _IQint(A) _IQ21int(A)
2730 #define _IQint(A) _IQ20int(A)
2733 #define _IQint(A) _IQ19int(A)
2736 #define _IQint(A) _IQ18int(A)
2739 #define _IQint(A) _IQ17int(A)
2742 #define _IQint(A) _IQ16int(A)
2745 #define _IQint(A) _IQ15int(A)
2748 #define _IQint(A) _IQ14int(A)
2751 #define _IQint(A) _IQ13int(A)
2754 #define _IQint(A) _IQ12int(A)
2757 #define _IQint(A) _IQ11int(A)
2760 #define _IQint(A) _IQ10int(A)
2763 #define _IQint(A) _IQ9int(A)
2766 #define _IQint(A) _IQ8int(A)
2769 #define _IQint(A) _IQ7int(A)
2772 #define _IQint(A) _IQ6int(A)
2775 #define _IQint(A) _IQ5int(A)
2778 #define _IQint(A) _IQ4int(A)
2781 #define _IQint(A) _IQ3int(A)
2784 #define _IQint(A) _IQ2int(A)
2787 #define _IQint(A) _IQ1int(A)
2822 #define _IQfrac(A) _IQ30frac(A)
2825 #define _IQfrac(A) _IQ29frac(A)
2828 #define _IQfrac(A) _IQ28frac(A)
2831 #define _IQfrac(A) _IQ27frac(A)
2834 #define _IQfrac(A) _IQ26frac(A)
2837 #define _IQfrac(A) _IQ25frac(A)
2840 #define _IQfrac(A) _IQ24frac(A)
2843 #define _IQfrac(A) _IQ23frac(A)
2846 #define _IQfrac(A) _IQ22frac(A)
2849 #define _IQfrac(A) _IQ21frac(A)
2852 #define _IQfrac(A) _IQ20frac(A)
2855 #define _IQfrac(A) _IQ19frac(A)
2858 #define _IQfrac(A) _IQ18frac(A)
2861 #define _IQfrac(A) _IQ17frac(A)
2864 #define _IQfrac(A) _IQ16frac(A)
2867 #define _IQfrac(A) _IQ15frac(A)
2870 #define _IQfrac(A) _IQ14frac(A)
2873 #define _IQfrac(A) _IQ13frac(A)
2876 #define _IQfrac(A) _IQ12frac(A)
2879 #define _IQfrac(A) _IQ11frac(A)
2882 #define _IQfrac(A) _IQ10frac(A)
2885 #define _IQfrac(A) _IQ9frac(A)
2888 #define _IQfrac(A) _IQ8frac(A)
2891 #define _IQfrac(A) _IQ7frac(A)
2894 #define _IQfrac(A) _IQ6frac(A)
2897 #define _IQfrac(A) _IQ5frac(A)
2900 #define _IQfrac(A) _IQ4frac(A)
2903 #define _IQfrac(A) _IQ3frac(A)
2906 #define _IQfrac(A) _IQ2frac(A)
2909 #define _IQfrac(A) _IQ1frac(A)
2912 #define _IQmpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (GLOBAL_Q + 32 - IQA - IQB))
2913 #define _IQ30mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (30 + 32 - IQA - IQB))
2914 #define _IQ29mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (29 + 32 - IQA - IQB))
2915 #define _IQ28mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (28 + 32 - IQA - IQB))
2916 #define _IQ27mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (27 + 32 - IQA - IQB))
2917 #define _IQ26mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (26 + 32 - IQA - IQB))
2918 #define _IQ25mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (25 + 32 - IQA - IQB))
2919 #define _IQ24mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (24 + 32 - IQA - IQB))
2920 #define _IQ23mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (23 + 32 - IQA - IQB))
2921 #define _IQ22mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (22 + 32 - IQA - IQB))
2922 #define _IQ21mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (21 + 32 - IQA - IQB))
2923 #define _IQ20mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (20 + 32 - IQA - IQB))
2924 #define _IQ19mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (19 + 32 - IQA - IQB))
2925 #define _IQ18mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (18 + 32 - IQA - IQB))
2926 #define _IQ17mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (17 + 32 - IQA - IQB))
2927 #define _IQ16mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (16 + 32 - IQA - IQB))
2928 #define _IQ15mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (15 + 32 - IQA - IQB))
2929 #define _IQ14mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (14 + 32 - IQA - IQB))
2930 #define _IQ13mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (13 + 32 - IQA - IQB))
2931 #define _IQ12mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (12 + 32 - IQA - IQB))
2932 #define _IQ11mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (11 + 32 - IQA - IQB))
2933 #define _IQ10mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (10 + 32 - IQA - IQB))
2934 #define _IQ9mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (9 + 32 - IQA - IQB))
2935 #define _IQ8mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (8 + 32 - IQA - IQB))
2936 #define _IQ7mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (7 + 32 - IQA - IQB))
2937 #define _IQ6mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (6 + 32 - IQA - IQB))
2938 #define _IQ5mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (5 + 32 - IQA - IQB))
2939 #define _IQ4mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (4 + 32 - IQA - IQB))
2940 #define _IQ3mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (3 + 32 - IQA - IQB))
2941 #define _IQ2mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (2 + 32 - IQA - IQB))
2942 #define _IQ1mpyIQX(A, IQA, B, IQB) __IQxmpy(A, B, (1 + 32 - IQA - IQB))
2944 #define _IQmpyI32(A,B) ((A)*(B))
2945 #define _IQ30mpyI32(A,B) ((A)*(B))
2946 #define _IQ29mpyI32(A,B) ((A)*(B))
2947 #define _IQ28mpyI32(A,B) ((A)*(B))
2948 #define _IQ27mpyI32(A,B) ((A)*(B))
2949 #define _IQ26mpyI32(A,B) ((A)*(B))
2950 #define _IQ25mpyI32(A,B) ((A)*(B))
2951 #define _IQ24mpyI32(A,B) ((A)*(B))
2952 #define _IQ23mpyI32(A,B) ((A)*(B))
2953 #define _IQ22mpyI32(A,B) ((A)*(B))
2954 #define _IQ21mpyI32(A,B) ((A)*(B))
2955 #define _IQ20mpyI32(A,B) ((A)*(B))
2956 #define _IQ19mpyI32(A,B) ((A)*(B))
2957 #define _IQ18mpyI32(A,B) ((A)*(B))
2958 #define _IQ17mpyI32(A,B) ((A)*(B))
2959 #define _IQ16mpyI32(A,B) ((A)*(B))
2960 #define _IQ15mpyI32(A,B) ((A)*(B))
2961 #define _IQ14mpyI32(A,B) ((A)*(B))
2962 #define _IQ13mpyI32(A,B) ((A)*(B))
2963 #define _IQ12mpyI32(A,B) ((A)*(B))
2964 #define _IQ11mpyI32(A,B) ((A)*(B))
2965 #define _IQ10mpyI32(A,B) ((A)*(B))
2966 #define _IQ9mpyI32(A,B) ((A)*(B))
2967 #define _IQ8mpyI32(A,B) ((A)*(B))
2968 #define _IQ7mpyI32(A,B) ((A)*(B))
2969 #define _IQ6mpyI32(A,B) ((A)*(B))
2970 #define _IQ5mpyI32(A,B) ((A)*(B))
2971 #define _IQ4mpyI32(A,B) ((A)*(B))
2972 #define _IQ3mpyI32(A,B) ((A)*(B))
2973 #define _IQ2mpyI32(A,B) ((A)*(B))
2974 #define _IQ1mpyI32(A,B) ((A)*(B))
3008 #define _IQmpyI32int(A, B) _IQ30mpyI32int(A, B)
3011 #define _IQmpyI32int(A, B) _IQ29mpyI32int(A, B)
3014 #define _IQmpyI32int(A, B) _IQ28mpyI32int(A, B)
3017 #define _IQmpyI32int(A, B) _IQ27mpyI32int(A, B)
3020 #define _IQmpyI32int(A, B) _IQ26mpyI32int(A, B)
3023 #define _IQmpyI32int(A, B) _IQ25mpyI32int(A, B)
3026 #define _IQmpyI32int(A, B) _IQ24mpyI32int(A, B)
3029 #define _IQmpyI32int(A, B) _IQ23mpyI32int(A, B)
3032 #define _IQmpyI32int(A, B) _IQ22mpyI32int(A, B)
3035 #define _IQmpyI32int(A, B) _IQ21mpyI32int(A, B)
3038 #define _IQmpyI32int(A, B) _IQ20mpyI32int(A, B)
3041 #define _IQmpyI32int(A, B) _IQ19mpyI32int(A, B)
3044 #define _IQmpyI32int(A, B) _IQ18mpyI32int(A, B)
3047 #define _IQmpyI32int(A, B) _IQ17mpyI32int(A, B)
3050 #define _IQmpyI32int(A, B) _IQ16mpyI32int(A, B)
3053 #define _IQmpyI32int(A, B) _IQ15mpyI32int(A, B)
3056 #define _IQmpyI32int(A, B) _IQ14mpyI32int(A, B)
3059 #define _IQmpyI32int(A, B) _IQ13mpyI32int(A, B)
3062 #define _IQmpyI32int(A, B) _IQ12mpyI32int(A, B)
3065 #define _IQmpyI32int(A, B) _IQ11mpyI32int(A, B)
3068 #define _IQmpyI32int(A, B) _IQ10mpyI32int(A, B)
3071 #define _IQmpyI32int(A, B) _IQ9mpyI32int(A, B)
3074 #define _IQmpyI32int(A, B) _IQ8mpyI32int(A, B)
3077 #define _IQmpyI32int(A, B) _IQ7mpyI32int(A, B)
3080 #define _IQmpyI32int(A, B) _IQ6mpyI32int(A, B)
3083 #define _IQmpyI32int(A, B) _IQ5mpyI32int(A, B)
3086 #define _IQmpyI32int(A, B) _IQ4mpyI32int(A, B)
3089 #define _IQmpyI32int(A, B) _IQ3mpyI32int(A, B)
3092 #define _IQmpyI32int(A, B) _IQ2mpyI32int(A, B)
3095 #define _IQmpyI32int(A, B) _IQ1mpyI32int(A, B)
3130 #define _IQmpyI32frac(A, B) _IQ30mpyI32frac(A, B)
3133 #define _IQmpyI32frac(A, B) _IQ29mpyI32frac(A, B)
3136 #define _IQmpyI32frac(A, B) _IQ28mpyI32frac(A, B)
3139 #define _IQmpyI32frac(A, B) _IQ27mpyI32frac(A, B)
3142 #define _IQmpyI32frac(A, B) _IQ26mpyI32frac(A, B)
3145 #define _IQmpyI32frac(A, B) _IQ25mpyI32frac(A, B)
3148 #define _IQmpyI32frac(A, B) _IQ24mpyI32frac(A, B)
3151 #define _IQmpyI32frac(A, B) _IQ23mpyI32frac(A, B)
3154 #define _IQmpyI32frac(A, B) _IQ22mpyI32frac(A, B)
3157 #define _IQmpyI32frac(A, B) _IQ21mpyI32frac(A, B)
3160 #define _IQmpyI32frac(A, B) _IQ20mpyI32frac(A, B)
3163 #define _IQmpyI32frac(A, B) _IQ19mpyI32frac(A, B)
3166 #define _IQmpyI32frac(A, B) _IQ18mpyI32frac(A, B)
3169 #define _IQmpyI32frac(A, B) _IQ17mpyI32frac(A, B)
3172 #define _IQmpyI32frac(A, B) _IQ16mpyI32frac(A, B)
3175 #define _IQmpyI32frac(A, B) _IQ15mpyI32frac(A, B)
3178 #define _IQmpyI32frac(A, B) _IQ14mpyI32frac(A, B)
3181 #define _IQmpyI32frac(A, B) _IQ13mpyI32frac(A, B)
3184 #define _IQmpyI32frac(A, B) _IQ12mpyI32frac(A, B)
3187 #define _IQmpyI32frac(A, B) _IQ11mpyI32frac(A, B)
3190 #define _IQmpyI32frac(A, B) _IQ10mpyI32frac(A, B)
3193 #define _IQmpyI32frac(A, B) _IQ9mpyI32frac(A, B)
3196 #define _IQmpyI32frac(A, B) _IQ8mpyI32frac(A, B)
3199 #define _IQmpyI32frac(A, B) _IQ7mpyI32frac(A, B)
3202 #define _IQmpyI32frac(A, B) _IQ6mpyI32frac(A, B)
3205 #define _IQmpyI32frac(A, B) _IQ5mpyI32frac(A, B)
3208 #define _IQmpyI32frac(A, B) _IQ4mpyI32frac(A, B)
3211 #define _IQmpyI32frac(A, B) _IQ3mpyI32frac(A, B)
3214 #define _IQmpyI32frac(A, B) _IQ2mpyI32frac(A, B)
3217 #define _IQmpyI32frac(A, B) _IQ1mpyI32frac(A, B)
3220 extern long _IQ30mag(
long A,
long B);
3221 extern long _IQ29mag(
long A,
long B);
3222 extern long _IQ28mag(
long A,
long B);
3223 extern long _IQ27mag(
long A,
long B);
3224 extern long _IQ26mag(
long A,
long B);
3225 extern long _IQ25mag(
long A,
long B);
3226 extern long _IQ24mag(
long A,
long B);
3227 extern long _IQ23mag(
long A,
long B);
3228 extern long _IQ22mag(
long A,
long B);
3229 extern long _IQ21mag(
long A,
long B);
3230 extern long _IQ20mag(
long A,
long B);
3231 extern long _IQ19mag(
long A,
long B);
3232 extern long _IQ18mag(
long A,
long B);
3233 extern long _IQ17mag(
long A,
long B);
3234 extern long _IQ16mag(
long A,
long B);
3235 extern long _IQ15mag(
long A,
long B);
3236 extern long _IQ14mag(
long A,
long B);
3237 extern long _IQ13mag(
long A,
long B);
3238 extern long _IQ12mag(
long A,
long B);
3239 extern long _IQ11mag(
long A,
long B);
3240 extern long _IQ10mag(
long A,
long B);
3241 extern long _IQ9mag(
long A,
long B);
3242 extern long _IQ8mag(
long A,
long B);
3243 extern long _IQ7mag(
long A,
long B);
3244 extern long _IQ6mag(
long A,
long B);
3245 extern long _IQ5mag(
long A,
long B);
3246 extern long _IQ4mag(
long A,
long B);
3247 extern long _IQ3mag(
long A,
long B);
3248 extern long _IQ2mag(
long A,
long B);
3249 extern long _IQ1mag(
long A,
long B);
3252 #define _IQmag(A, B) _IQ30mag(A, B)
3255 #define _IQmag(A, B) _IQ29mag(A, B)
3258 #define _IQmag(A, B) _IQ28mag(A, B)
3261 #define _IQmag(A, B) _IQ27mag(A, B)
3264 #define _IQmag(A, B) _IQ26mag(A, B)
3267 #define _IQmag(A, B) _IQ25mag(A, B)
3270 #define _IQmag(A, B) _IQ24mag(A, B)
3273 #define _IQmag(A, B) _IQ23mag(A, B)
3276 #define _IQmag(A, B) _IQ22mag(A, B)
3279 #define _IQmag(A, B) _IQ21mag(A, B)
3282 #define _IQmag(A, B) _IQ20mag(A, B)
3285 #define _IQmag(A, B) _IQ19mag(A, B)
3288 #define _IQmag(A, B) _IQ18mag(A, B)
3291 #define _IQmag(A, B) _IQ17mag(A, B)
3294 #define _IQmag(A, B) _IQ16mag(A, B)
3297 #define _IQmag(A, B) _IQ15mag(A, B)
3300 #define _IQmag(A, B) _IQ14mag(A, B)
3303 #define _IQmag(A, B) _IQ13mag(A, B)
3306 #define _IQmag(A, B) _IQ12mag(A, B)
3309 #define _IQmag(A, B) _IQ11mag(A, B)
3312 #define _IQmag(A, B) _IQ10mag(A, B)
3315 #define _IQmag(A, B) _IQ9mag(A, B)
3318 #define _IQmag(A, B) _IQ8mag(A, B)
3321 #define _IQmag(A, B) _IQ7mag(A, B)
3324 #define _IQmag(A, B) _IQ6mag(A, B)
3327 #define _IQmag(A, B) _IQ5mag(A, B)
3330 #define _IQmag(A, B) _IQ4mag(A, B)
3333 #define _IQmag(A, B) _IQ3mag(A, B)
3336 #define _IQmag(A, B) _IQ2mag(A, B)
3339 #define _IQmag(A, B) _IQ1mag(A, B)
3342 extern long _atoIQN(
const char *A,
long q_value);
3343 #define _atoIQ(A) _atoIQN(A, GLOBAL_Q)
3344 #define _atoIQ30(A) _atoIQN(A, 30)
3345 #define _atoIQ29(A) _atoIQN(A, 29)
3346 #define _atoIQ28(A) _atoIQN(A, 28)
3347 #define _atoIQ27(A) _atoIQN(A, 27)
3348 #define _atoIQ26(A) _atoIQN(A, 26)
3349 #define _atoIQ25(A) _atoIQN(A, 25)
3350 #define _atoIQ24(A) _atoIQN(A, 24)
3351 #define _atoIQ23(A) _atoIQN(A, 23)
3352 #define _atoIQ22(A) _atoIQN(A, 22)
3353 #define _atoIQ21(A) _atoIQN(A, 21)
3354 #define _atoIQ20(A) _atoIQN(A, 20)
3355 #define _atoIQ19(A) _atoIQN(A, 19)
3356 #define _atoIQ18(A) _atoIQN(A, 18)
3357 #define _atoIQ17(A) _atoIQN(A, 17)
3358 #define _atoIQ16(A) _atoIQN(A, 16)
3359 #define _atoIQ15(A) _atoIQN(A, 15)
3360 #define _atoIQ14(A) _atoIQN(A, 14)
3361 #define _atoIQ13(A) _atoIQN(A, 13)
3362 #define _atoIQ12(A) _atoIQN(A, 12)
3363 #define _atoIQ11(A) _atoIQN(A, 11)
3364 #define _atoIQ10(A) _atoIQN(A, 10)
3365 #define _atoIQ9(A) _atoIQN(A, 9)
3366 #define _atoIQ8(A) _atoIQN(A, 8)
3367 #define _atoIQ7(A) _atoIQN(A, 7)
3368 #define _atoIQ6(A) _atoIQN(A, 6)
3369 #define _atoIQ5(A) _atoIQN(A, 5)
3370 #define _atoIQ4(A) _atoIQN(A, 4)
3371 #define _atoIQ3(A) _atoIQN(A, 3)
3372 #define _atoIQ2(A) _atoIQN(A, 2)
3373 #define _atoIQ1(A) _atoIQN(A, 1)
3375 extern int __IQNtoa(
char *A,
const char *B,
long C,
int D);
3376 extern int _IQ30toa(
char *A,
const char *B,
long C);
3377 extern int _IQ29toa(
char *A,
const char *B,
long C);
3378 extern int _IQ28toa(
char *A,
const char *B,
long C);
3379 extern int _IQ27toa(
char *A,
const char *B,
long C);
3380 extern int _IQ26toa(
char *A,
const char *B,
long C);
3381 extern int _IQ25toa(
char *A,
const char *B,
long C);
3382 extern int _IQ24toa(
char *A,
const char *B,
long C);
3383 extern int _IQ23toa(
char *A,
const char *B,
long C);
3384 extern int _IQ22toa(
char *A,
const char *B,
long C);
3385 extern int _IQ21toa(
char *A,
const char *B,
long C);
3386 extern int _IQ20toa(
char *A,
const char *B,
long C);
3387 extern int _IQ19toa(
char *A,
const char *B,
long C);
3388 extern int _IQ18toa(
char *A,
const char *B,
long C);
3389 extern int _IQ17toa(
char *A,
const char *B,
long C);
3390 extern int _IQ16toa(
char *A,
const char *B,
long C);
3391 extern int _IQ15toa(
char *A,
const char *B,
long C);
3392 extern int _IQ14toa(
char *A,
const char *B,
long C);
3393 extern int _IQ13toa(
char *A,
const char *B,
long C);
3394 extern int _IQ12toa(
char *A,
const char *B,
long C);
3395 extern int _IQ11toa(
char *A,
const char *B,
long C);
3396 extern int _IQ10toa(
char *A,
const char *B,
long C);
3397 extern int _IQ9toa(
char *A,
const char *B,
long C);
3398 extern int _IQ8toa(
char *A,
const char *B,
long C);
3399 extern int _IQ7toa(
char *A,
const char *B,
long C);
3400 extern int _IQ6toa(
char *A,
const char *B,
long C);
3401 extern int _IQ5toa(
char *A,
const char *B,
long C);
3402 extern int _IQ4toa(
char *A,
const char *B,
long C);
3403 extern int _IQ3toa(
char *A,
const char *B,
long C);
3404 extern int _IQ2toa(
char *A,
const char *B,
long C);
3405 extern int _IQ1toa(
char *A,
const char *B,
long C);
3408 #define _IQ30toa(A, B, C) __IQNtoa(A, B, C, 30);
3409 #define _IQ29toa(A, B, C) __IQNtoa(A, B, C, 29);
3410 #define _IQ28toa(A, B, C) __IQNtoa(A, B, C, 28);
3411 #define _IQ27toa(A, B, C) __IQNtoa(A, B, C, 27);
3412 #define _IQ26toa(A, B, C) __IQNtoa(A, B, C, 26);
3413 #define _IQ25toa(A, B, C) __IQNtoa(A, B, C, 25);
3414 #define _IQ24toa(A, B, C) __IQNtoa(A, B, C, 24);
3415 #define _IQ23toa(A, B, C) __IQNtoa(A, B, C, 23);
3416 #define _IQ21toa(A, B, C) __IQNtoa(A, B, C, 21);
3417 #define _IQ22toa(A, B, C) __IQNtoa(A, B, C, 22);
3418 #define _IQ20toa(A, B, C) __IQNtoa(A, B, C, 20);
3419 #define _IQ19toa(A, B, C) __IQNtoa(A, B, C, 19);
3420 #define _IQ18toa(A, B, C) __IQNtoa(A, B, C, 18);
3421 #define _IQ17toa(A, B, C) __IQNtoa(A, B, C, 17);
3422 #define _IQ16toa(A, B, C) __IQNtoa(A, B, C, 16);
3423 #define _IQ15toa(A, B, C) __IQNtoa(A, B, C, 15);
3424 #define _IQ14toa(A, B, C) __IQNtoa(A, B, C, 14);
3425 #define _IQ13toa(A, B, C) __IQNtoa(A, B, C, 13);
3426 #define _IQ12toa(A, B, C) __IQNtoa(A, B, C, 12);
3427 #define _IQ11toa(A, B, C) __IQNtoa(A, B, C, 11);
3428 #define _IQ10toa(A, B, C) __IQNtoa(A, B, C, 10);
3429 #define _IQ9toa(A, B, C) __IQNtoa(A, B, C, 9);
3430 #define _IQ8toa(A, B, C) __IQNtoa(A, B, C, 8);
3431 #define _IQ7toa(A, B, C) __IQNtoa(A, B, C, 7);
3432 #define _IQ6toa(A, B, C) __IQNtoa(A, B, C, 6);
3433 #define _IQ5toa(A, B, C) __IQNtoa(A, B, C, 5);
3434 #define _IQ4toa(A, B, C) __IQNtoa(A, B, C, 4);
3435 #define _IQ3toa(A, B, C) __IQNtoa(A, B, C, 3);
3436 #define _IQ2toa(A, B, C) __IQNtoa(A, B, C, 2);
3437 #define _IQ1toa(A, B, C) __IQNtoa(A, B, C, 1);
3441 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 30)
3444 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 29)
3447 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 28)
3450 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 27)
3453 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 26)
3456 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 25)
3459 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 24)
3462 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 23)
3465 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 22)
3468 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 21)
3471 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 20)
3474 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 19)
3477 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 18)
3480 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 17)
3483 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 16)
3486 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 15)
3489 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 14)
3492 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 13)
3495 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 12)
3498 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 11)
3501 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 10)
3504 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 9)
3507 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 8)
3510 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 7)
3513 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 6)
3516 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 5)
3519 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 4)
3522 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 3)
3525 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 2)
3528 #define _IQtoa(A, B, C) __IQNtoa(A, B, C, 1)
3531 #define _IQabs(A) labs(A)
3532 #define _IQ30abs(A) labs(A)
3533 #define _IQ29abs(A) labs(A)
3534 #define _IQ28abs(A) labs(A)
3535 #define _IQ27abs(A) labs(A)
3536 #define _IQ26abs(A) labs(A)
3537 #define _IQ25abs(A) labs(A)
3538 #define _IQ24abs(A) labs(A)
3539 #define _IQ23abs(A) labs(A)
3540 #define _IQ22abs(A) labs(A)
3541 #define _IQ21abs(A) labs(A)
3542 #define _IQ20abs(A) labs(A)
3543 #define _IQ19abs(A) labs(A)
3544 #define _IQ18abs(A) labs(A)
3545 #define _IQ17abs(A) labs(A)
3546 #define _IQ16abs(A) labs(A)
3547 #define _IQ15abs(A) labs(A)
3548 #define _IQ14abs(A) labs(A)
3549 #define _IQ13abs(A) labs(A)
3550 #define _IQ12abs(A) labs(A)
3551 #define _IQ11abs(A) labs(A)
3552 #define _IQ10abs(A) labs(A)
3553 #define _IQ9abs(A) labs(A)
3554 #define _IQ8abs(A) labs(A)
3555 #define _IQ7abs(A) labs(A)
3556 #define _IQ6abs(A) labs(A)
3557 #define _IQ5abs(A) labs(A)
3558 #define _IQ4abs(A) labs(A)
3559 #define _IQ3abs(A) labs(A)
3560 #define _IQ2abs(A) labs(A)
3561 #define _IQ1abs(A) labs(A)
3563 #else // MATH_TYPE == FLOAT_MATH
3601 #define _IQmpy2(A) ((A)*2.0)
3602 #define _IQmpy4(A) ((A)*4.0)
3603 #define _IQmpy8(A) ((A)*8.0)
3604 #define _IQmpy16(A) ((A)*16.0)
3605 #define _IQmpy32(A) ((A)*32.0)
3606 #define _IQmpy64(A) ((A)*64.0)
3608 #define _IQdiv2(A) ((A)*0.5)
3609 #define _IQdiv4(A) ((A)*0.25)
3610 #define _IQdiv8(A) ((A)*0.125)
3611 #define _IQdiv16(A) ((A)*0.0625)
3612 #define _IQdiv32(A) ((A)*0.03125)
3613 #define _IQdiv64(A) ((A)*0.015625)
3616 #define _IQ30(A) (A)
3617 #define _IQ29(A) (A)
3618 #define _IQ28(A) (A)
3619 #define _IQ27(A) (A)
3620 #define _IQ26(A) (A)
3621 #define _IQ25(A) (A)
3622 #define _IQ24(A) (A)
3623 #define _IQ23(A) (A)
3624 #define _IQ22(A) (A)
3625 #define _IQ21(A) (A)
3626 #define _IQ20(A) (A)
3627 #define _IQ19(A) (A)
3628 #define _IQ18(A) (A)
3629 #define _IQ17(A) (A)
3630 #define _IQ16(A) (A)
3631 #define _IQ15(A) (A)
3632 #define _IQ14(A) (A)
3633 #define _IQ13(A) (A)
3634 #define _IQ12(A) (A)
3635 #define _IQ10(A) (A)
3646 #define _IQtoF(A) (A)
3647 #define _IQ30toF(A) (A)
3648 #define _IQ29toF(A) (A)
3649 #define _IQ28toF(A) (A)
3650 #define _IQ27toF(A) (A)
3651 #define _IQ26toF(A) (A)
3652 #define _IQ25toF(A) (A)
3653 #define _IQ24toF(A) (A)
3654 #define _IQ23toF(A) (A)
3655 #define _IQ22toF(A) (A)
3656 #define _IQ21toF(A) (A)
3657 #define _IQ20toF(A) (A)
3658 #define _IQ19toF(A) (A)
3659 #define _IQ18toF(A) (A)
3660 #define _IQ17toF(A) (A)
3661 #define _IQ16toF(A) (A)
3662 #define _IQ15toF(A) (A)
3663 #define _IQ14toF(A) (A)
3664 #define _IQ13toF(A) (A)
3665 #define _IQ12toF(A) (A)
3666 #define _IQ11toF(A) (A)
3667 #define _IQ10toF(A) (A)
3668 #define _IQ9toF(A) (A)
3669 #define _IQ8toF(A) (A)
3670 #define _IQ7toF(A) (A)
3671 #define _IQ6toF(A) (A)
3672 #define _IQ5toF(A) (A)
3673 #define _IQ4toF(A) (A)
3674 #define _IQ3toF(A) (A)
3675 #define _IQ2toF(A) (A)
3676 #define _IQ1toF(A) (A)
3683 #define _IQsat(A, Pos, Neg) (fmaxf(((fminf((A),(Pos)))),(Neg)))
3689 #define _IQtoIQ30(A) (A)
3690 #define _IQtoIQ29(A) (A)
3691 #define _IQtoIQ28(A) (A)
3692 #define _IQtoIQ27(A) (A)
3693 #define _IQtoIQ26(A) (A)
3694 #define _IQtoIQ25(A) (A)
3695 #define _IQtoIQ24(A) (A)
3696 #define _IQtoIQ23(A) (A)
3697 #define _IQtoIQ22(A) (A)
3698 #define _IQtoIQ21(A) (A)
3699 #define _IQtoIQ20(A) (A)
3700 #define _IQtoIQ19(A) (A)
3701 #define _IQtoIQ18(A) (A)
3702 #define _IQtoIQ17(A) (A)
3703 #define _IQtoIQ16(A) (A)
3704 #define _IQtoIQ15(A) (A)
3705 #define _IQtoIQ14(A) (A)
3706 #define _IQtoIQ13(A) (A)
3707 #define _IQtoIQ12(A) (A)
3708 #define _IQtoIQ11(A) (A)
3709 #define _IQtoIQ10(A) (A)
3710 #define _IQtoIQ9(A) (A)
3711 #define _IQtoIQ8(A) (A)
3712 #define _IQtoIQ7(A) (A)
3713 #define _IQtoIQ6(A) (A)
3714 #define _IQtoIQ5(A) (A)
3715 #define _IQtoIQ4(A) (A)
3716 #define _IQtoIQ3(A) (A)
3717 #define _IQtoIQ2(A) (A)
3718 #define _IQtoIQ1(A) (A)
3720 #define _IQ30toIQ(A) (A)
3721 #define _IQ29toIQ(A) (A)
3722 #define _IQ28toIQ(A) (A)
3723 #define _IQ27toIQ(A) (A)
3724 #define _IQ26toIQ(A) (A)
3725 #define _IQ25toIQ(A) (A)
3726 #define _IQ24toIQ(A) (A)
3727 #define _IQ23toIQ(A) (A)
3728 #define _IQ22toIQ(A) (A)
3729 #define _IQ21toIQ(A) (A)
3730 #define _IQ20toIQ(A) (A)
3731 #define _IQ19toIQ(A) (A)
3732 #define _IQ18toIQ(A) (A)
3733 #define _IQ17toIQ(A) (A)
3734 #define _IQ16toIQ(A) (A)
3735 #define _IQ15toIQ(A) (A)
3736 #define _IQ14toIQ(A) (A)
3737 #define _IQ13toIQ(A) (A)
3738 #define _IQ12toIQ(A) (A)
3739 #define _IQ11toIQ(A) (A)
3740 #define _IQ10toIQ(A) (A)
3741 #define _IQ9toIQ(A) (A)
3742 #define _IQ8toIQ(A) (A)
3743 #define _IQ7toIQ(A) (A)
3744 #define _IQ6toIQ(A) (A)
3745 #define _IQ5toIQ(A) (A)
3746 #define _IQ4toIQ(A) (A)
3747 #define _IQ3toIQ(A) (A)
3748 #define _IQ2toIQ(A) (A)
3749 #define _IQ1toIQ(A) (A)
3751 #define _IQtoQ15(A) (int) ((A) * 32768.0)
3752 #define _IQtoQ14(A) (int) ((A) * 16384.0)
3753 #define _IQtoQ13(A) (int) ((A) * 8192.0)
3754 #define _IQtoQ12(A) (int) ((A) * 4096.0)
3755 #define _IQtoQ11(A) (int) ((A) * 2048.0)
3756 #define _IQtoQ10(A) (int) ((A) * 1024.0)
3757 #define _IQtoQ9(A) (int) ((A) * 512.0)
3758 #define _IQtoQ8(A) (int) ((A) * 256.0)
3759 #define _IQtoQ7(A) (int) ((A) * 128.0)
3760 #define _IQtoQ6(A) (int) ((A) * 64.0)
3761 #define _IQtoQ5(A) (int) ((A) * 32.0)
3762 #define _IQtoQ4(A) (int) ((A) * 16.0)
3763 #define _IQtoQ3(A) (int) ((A) * 8.0)
3764 #define _IQtoQ2(A) (int) ((A) * 4.0)
3765 #define _IQtoQ1(A) (int) ((A) * 2.0)
3768 #define _Q15toIQ(A) (((float) (A)) * 0.000030518)
3769 #define _Q14toIQ(A) (((float) (A)) * 0.000061035)
3770 #define _Q13toIQ(A) (((float) (A)) * 0.000122070)
3771 #define _Q12toIQ(A) (((float) (A)) * 0.000244141)
3772 #define _Q11toIQ(A) (((float) (A)) * 0.000488281)
3773 #define _Q10toIQ(A) (((float) (A)) * 0.000976563)
3774 #define _Q9toIQ(A) (((float) (A)) * 0.001953125)
3775 #define _Q8toIQ(A) (((float) (A)) * 0.003906250)
3776 #define _Q7toIQ(A) (((float) (A)) * 0.007812500)
3777 #define _Q6toIQ(A) (((float) (A)) * 0.015625000)
3778 #define _Q5toIQ(A) (((float) (A)) * 0.031250000)
3779 #define _Q4toIQ(A) (((float) (A)) * 0.062500000)
3780 #define _Q3toIQ(A) (((float) (A)) * 0.125000000)
3781 #define _Q2toIQ(A) (((float) (A)) * 0.250000000)
3782 #define _Q1toIQ(A) (((float) (A)) * 0.500000000)
3784 #define _IQmpy(A,B) ((A) * (B))
3785 #define _IQ30mpy(A,B) ((A) * (B))
3786 #define _IQ29mpy(A,B) ((A) * (B))
3787 #define _IQ28mpy(A,B) ((A) * (B))
3788 #define _IQ27mpy(A,B) ((A) * (B))
3789 #define _IQ26mpy(A,B) ((A) * (B))
3790 #define _IQ25mpy(A,B) ((A) * (B))
3791 #define _IQ24mpy(A,B) ((A) * (B))
3792 #define _IQ23mpy(A,B) ((A) * (B))
3793 #define _IQ22mpy(A,B) ((A) * (B))
3794 #define _IQ21mpy(A,B) ((A) * (B))
3795 #define _IQ20mpy(A,B) ((A) * (B))
3796 #define _IQ19mpy(A,B) ((A) * (B))
3797 #define _IQ18mpy(A,B) ((A) * (B))
3798 #define _IQ17mpy(A,B) ((A) * (B))
3799 #define _IQ16mpy(A,B) ((A) * (B))
3800 #define _IQ15mpy(A,B) ((A) * (B))
3801 #define _IQ14mpy(A,B) ((A) * (B))
3802 #define _IQ13mpy(A,B) ((A) * (B))
3803 #define _IQ12mpy(A,B) ((A) * (B))
3804 #define _IQ11mpy(A,B) ((A) * (B))
3805 #define _IQ10mpy(A,B) ((A) * (B))
3806 #define _IQ9mpy(A,B) ((A) * (B))
3807 #define _IQ8mpy(A,B) ((A) * (B))
3808 #define _IQ7mpy(A,B) ((A) * (B))
3809 #define _IQ6mpy(A,B) ((A) * (B))
3810 #define _IQ5mpy(A,B) ((A) * (B))
3811 #define _IQ4mpy(A,B) ((A) * (B))
3812 #define _IQ3mpy(A,B) ((A) * (B))
3813 #define _IQ2mpy(A,B) ((A) * (B))
3814 #define _IQ1mpy(A,B) ((A) * (B))
3816 #define _IQrmpy(A,B) ((A) * (B))
3817 #define _IQ30rmpy(A,B) ((A) * (B))
3818 #define _IQ29rmpy(A,B) ((A) * (B))
3819 #define _IQ28rmpy(A,B) ((A) * (B))
3820 #define _IQ27rmpy(A,B) ((A) * (B))
3821 #define _IQ26rmpy(A,B) ((A) * (B))
3822 #define _IQ25rmpy(A,B) ((A) * (B))
3823 #define _IQ24rmpy(A,B) ((A) * (B))
3824 #define _IQ23rmpy(A,B) ((A) * (B))
3825 #define _IQ22rmpy(A,B) ((A) * (B))
3826 #define _IQ21rmpy(A,B) ((A) * (B))
3827 #define _IQ20rmpy(A,B) ((A) * (B))
3828 #define _IQ19rmpy(A,B) ((A) * (B))
3829 #define _IQ18rmpy(A,B) ((A) * (B))
3830 #define _IQ17rmpy(A,B) ((A) * (B))
3831 #define _IQ16rmpy(A,B) ((A) * (B))
3832 #define _IQ15rmpy(A,B) ((A) * (B))
3833 #define _IQ14rmpy(A,B) ((A) * (B))
3834 #define _IQ13rmpy(A,B) ((A) * (B))
3835 #define _IQ12rmpy(A,B) ((A) * (B))
3836 #define _IQ11rmpy(A,B) ((A) * (B))
3837 #define _IQ10rmpy(A,B) ((A) * (B))
3838 #define _IQ9rmpy(A,B) ((A) * (B))
3839 #define _IQ8rmpy(A,B) ((A) * (B))
3840 #define _IQ7rmpy(A,B) ((A) * (B))
3841 #define _IQ6rmpy(A,B) ((A) * (B))
3842 #define _IQ5rmpy(A,B) ((A) * (B))
3843 #define _IQ4rmpy(A,B) ((A) * (B))
3844 #define _IQ3rmpy(A,B) ((A) * (B))
3845 #define _IQ2rmpy(A,B) ((A) * (B))
3846 #define _IQ1rmpy(A,B) ((A) * (B))
3848 #define _IQrsmpy(A,B) ((A) * (B))
3849 #define _IQ30rsmpy(A,B) ((A) * (B))
3850 #define _IQ29rsmpy(A,B) ((A) * (B))
3851 #define _IQ28rsmpy(A,B) ((A) * (B))
3852 #define _IQ27rsmpy(A,B) ((A) * (B))
3853 #define _IQ26rsmpy(A,B) ((A) * (B))
3854 #define _IQ25rsmpy(A,B) ((A) * (B))
3855 #define _IQ24rsmpy(A,B) ((A) * (B))
3856 #define _IQ23rsmpy(A,B) ((A) * (B))
3857 #define _IQ22rsmpy(A,B) ((A) * (B))
3858 #define _IQ21rsmpy(A,B) ((A) * (B))
3859 #define _IQ20rsmpy(A,B) ((A) * (B))
3860 #define _IQ19rsmpy(A,B) ((A) * (B))
3861 #define _IQ18rsmpy(A,B) ((A) * (B))
3862 #define _IQ17rsmpy(A,B) ((A) * (B))
3863 #define _IQ16rsmpy(A,B) ((A) * (B))
3864 #define _IQ15rsmpy(A,B) ((A) * (B))
3865 #define _IQ14rsmpy(A,B) ((A) * (B))
3866 #define _IQ13rsmpy(A,B) ((A) * (B))
3867 #define _IQ12rsmpy(A,B) ((A) * (B))
3868 #define _IQ11rsmpy(A,B) ((A) * (B))
3869 #define _IQ10rsmpy(A,B) ((A) * (B))
3870 #define _IQ9rsmpy(A,B) ((A) * (B))
3871 #define _IQ8rsmpy(A,B) ((A) * (B))
3872 #define _IQ7rsmpy(A,B) ((A) * (B))
3873 #define _IQ6rsmpy(A,B) ((A) * (B))
3874 #define _IQ5rsmpy(A,B) ((A) * (B))
3875 #define _IQ4rsmpy(A,B) ((A) * (B))
3876 #define _IQ3rsmpy(A,B) ((A) * (B))
3877 #define _IQ2rsmpy(A,B) ((A) * (B))
3878 #define _IQ1rsmpy(A,B) ((A) * (B))
3880 #define _IQdiv(A,B) ((float)(A) / (float)(B))
3881 #define _IQ30div(A,B) ((float)(A) / (float)(B))
3882 #define _IQ29div(A,B) ((float)(A) / (float)(B))
3883 #define _IQ28div(A,B) ((float)(A) / (float)(B))
3884 #define _IQ27div(A,B) ((float)(A) / (float)(B))
3885 #define _IQ26div(A,B) ((float)(A) / (float)(B))
3886 #define _IQ25div(A,B) ((float)(A) / (float)(B))
3887 #define _IQ24div(A,B) ((float)(A) / (float)(B))
3888 #define _IQ23div(A,B) ((float)(A) / (float)(B))
3889 #define _IQ22div(A,B) ((float)(A) / (float)(B))
3890 #define _IQ21div(A,B) ((float)(A) / (float)(B))
3891 #define _IQ20div(A,B) ((float)(A) / (float)(B))
3892 #define _IQ19div(A,B) ((float)(A) / (float)(B))
3893 #define _IQ18div(A,B) ((float)(A) / (float)(B))
3894 #define _IQ17div(A,B) ((float)(A) / (float)(B))
3895 #define _IQ16div(A,B) ((float)(A) / (float)(B))
3896 #define _IQ15div(A,B) ((float)(A) / (float)(B))
3897 #define _IQ14div(A,B) ((float)(A) / (float)(B))
3898 #define _IQ13div(A,B) ((float)(A) / (float)(B))
3899 #define _IQ12div(A,B) ((float)(A) / (float)(B))
3900 #define _IQ11div(A,B) ((float)(A) / (float)(B))
3901 #define _IQ10div(A,B) ((float)(A) / (float)(B))
3902 #define _IQ9div(A,B) ((float)(A) / (float)(B))
3903 #define _IQ8div(A,B) ((float)(A) / (float)(B))
3904 #define _IQ7div(A,B) ((float)(A) / (float)(B))
3905 #define _IQ6div(A,B) ((float)(A) / (float)(B))
3906 #define _IQ5div(A,B) ((float)(A) / (float)(B))
3907 #define _IQ4div(A,B) ((float)(A) / (float)(B))
3908 #define _IQ3div(A,B) ((float)(A) / (float)(B))
3909 #define _IQ2div(A,B) ((float)(A) / (float)(B))
3910 #define _IQ1div(A,B) ((float)(A) / (float)(B))
3912 #define _IQsin(A) sin(A)
3913 #define _IQ30sin(A) sin(A)
3914 #define _IQ29sin(A) sin(A)
3915 #define _IQ28sin(A) sin(A)
3916 #define _IQ27sin(A) sin(A)
3917 #define _IQ26sin(A) sin(A)
3918 #define _IQ25sin(A) sin(A)
3919 #define _IQ24sin(A) sin(A)
3920 #define _IQ23sin(A) sin(A)
3921 #define _IQ22sin(A) sin(A)
3922 #define _IQ21sin(A) sin(A)
3923 #define _IQ20sin(A) sin(A)
3924 #define _IQ19sin(A) sin(A)
3925 #define _IQ18sin(A) sin(A)
3926 #define _IQ17sin(A) sin(A)
3927 #define _IQ16sin(A) sin(A)
3928 #define _IQ15sin(A) sin(A)
3929 #define _IQ14sin(A) sin(A)
3930 #define _IQ13sin(A) sin(A)
3931 #define _IQ12sin(A) sin(A)
3932 #define _IQ11sin(A) sin(A)
3933 #define _IQ10sin(A) sin(A)
3934 #define _IQ9sin(A) sin(A)
3935 #define _IQ8sin(A) sin(A)
3936 #define _IQ7sin(A) sin(A)
3937 #define _IQ6sin(A) sin(A)
3938 #define _IQ5sin(A) sin(A)
3939 #define _IQ4sin(A) sin(A)
3940 #define _IQ3sin(A) sin(A)
3941 #define _IQ2sin(A) sin(A)
3942 #define _IQ1sin(A) sin(A)
3944 #define _IQsinPU(A) sin((A)*6.283185307)
3945 #define _IQ30sinPU(A) sin((A)*6.283185307)
3946 #define _IQ29sinPU(A) sin((A)*6.283185307)
3947 #define _IQ28sinPU(A) sin((A)*6.283185307)
3948 #define _IQ27sinPU(A) sin((A)*6.283185307)
3949 #define _IQ26sinPU(A) sin((A)*6.283185307)
3950 #define _IQ25sinPU(A) sin((A)*6.283185307)
3951 #define _IQ24sinPU(A) sin((A)*6.283185307)
3952 #define _IQ23sinPU(A) sin((A)*6.283185307)
3953 #define _IQ22sinPU(A) sin((A)*6.283185307)
3954 #define _IQ21sinPU(A) sin((A)*6.283185307)
3955 #define _IQ20sinPU(A) sin((A)*6.283185307)
3956 #define _IQ19sinPU(A) sin((A)*6.283185307)
3957 #define _IQ18sinPU(A) sin((A)*6.283185307)
3958 #define _IQ17sinPU(A) sin((A)*6.283185307)
3959 #define _IQ16sinPU(A) sin((A)*6.283185307)
3960 #define _IQ15sinPU(A) sin((A)*6.283185307)
3961 #define _IQ14sinPU(A) sin((A)*6.283185307)
3962 #define _IQ13sinPU(A) sin((A)*6.283185307)
3963 #define _IQ12sinPU(A) sin((A)*6.283185307)
3964 #define _IQ11sinPU(A) sin((A)*6.283185307)
3965 #define _IQ10sinPU(A) sin((A)*6.283185307)
3966 #define _IQ9sinPU(A) sin((A)*6.283185307)
3967 #define _IQ8sinPU(A) sin((A)*6.283185307)
3968 #define _IQ7sinPU(A) sin((A)*6.283185307)
3969 #define _IQ6sinPU(A) sin((A)*6.283185307)
3970 #define _IQ5sinPU(A) sin((A)*6.283185307)
3971 #define _IQ4sinPU(A) sin((A)*6.283185307)
3972 #define _IQ3sinPU(A) sin((A)*6.283185307)
3973 #define _IQ2sinPU(A) sin((A)*6.283185307)
3974 #define _IQ1sinPU(A) sin((A)*6.283185307)
3976 #define _IQasin(A) asin(A)
3977 #define _IQ29asin(A) asin(A)
3978 #define _IQ28asin(A) asin(A)
3979 #define _IQ27asin(A) asin(A)
3980 #define _IQ26asin(A) asin(A)
3981 #define _IQ25asin(A) asin(A)
3982 #define _IQ24asin(A) asin(A)
3983 #define _IQ23asin(A) asin(A)
3984 #define _IQ22asin(A) asin(A)
3985 #define _IQ21asin(A) asin(A)
3986 #define _IQ20asin(A) asin(A)
3987 #define _IQ19asin(A) asin(A)
3988 #define _IQ18asin(A) asin(A)
3989 #define _IQ17asin(A) asin(A)
3990 #define _IQ16asin(A) asin(A)
3991 #define _IQ15asin(A) asin(A)
3992 #define _IQ14asin(A) asin(A)
3993 #define _IQ13asin(A) asin(A)
3994 #define _IQ12asin(A) asin(A)
3995 #define _IQ11asin(A) asin(A)
3996 #define _IQ10asin(A) asin(A)
3997 #define _IQ9asin(A) asin(A)
3998 #define _IQ8asin(A) asin(A)
3999 #define _IQ7asin(A) asin(A)
4000 #define _IQ6asin(A) asin(A)
4001 #define _IQ5asin(A) asin(A)
4002 #define _IQ4asin(A) asin(A)
4003 #define _IQ3asin(A) asin(A)
4004 #define _IQ2asin(A) asin(A)
4005 #define _IQ1asin(A) asin(A)
4007 #define _IQcos(A) cos(A)
4008 #define _IQ30cos(A) cos(A)
4009 #define _IQ29cos(A) cos(A)
4010 #define _IQ28cos(A) cos(A)
4011 #define _IQ27cos(A) cos(A)
4012 #define _IQ26cos(A) cos(A)
4013 #define _IQ25cos(A) cos(A)
4014 #define _IQ24cos(A) cos(A)
4015 #define _IQ23cos(A) cos(A)
4016 #define _IQ22cos(A) cos(A)
4017 #define _IQ21cos(A) cos(A)
4018 #define _IQ20cos(A) cos(A)
4019 #define _IQ19cos(A) cos(A)
4020 #define _IQ18cos(A) cos(A)
4021 #define _IQ17cos(A) cos(A)
4022 #define _IQ16cos(A) cos(A)
4023 #define _IQ15cos(A) cos(A)
4024 #define _IQ14cos(A) cos(A)
4025 #define _IQ13cos(A) cos(A)
4026 #define _IQ12cos(A) cos(A)
4027 #define _IQ11cos(A) cos(A)
4028 #define _IQ10cos(A) cos(A)
4029 #define _IQ9cos(A) cos(A)
4030 #define _IQ8cos(A) cos(A)
4031 #define _IQ7cos(A) cos(A)
4032 #define _IQ6cos(A) cos(A)
4033 #define _IQ5cos(A) cos(A)
4034 #define _IQ4cos(A) cos(A)
4035 #define _IQ3cos(A) cos(A)
4036 #define _IQ2cos(A) cos(A)
4037 #define _IQ1cos(A) cos(A)
4039 #define _IQcosPU(A) cos((A)*6.283185307)
4040 #define _IQ30cosPU(A) cos((A)*6.283185307)
4041 #define _IQ29cosPU(A) cos((A)*6.283185307)
4042 #define _IQ28cosPU(A) cos((A)*6.283185307)
4043 #define _IQ27cosPU(A) cos((A)*6.283185307)
4044 #define _IQ26cosPU(A) cos((A)*6.283185307)
4045 #define _IQ25cosPU(A) cos((A)*6.283185307)
4046 #define _IQ24cosPU(A) cos((A)*6.283185307)
4047 #define _IQ23cosPU(A) cos((A)*6.283185307)
4048 #define _IQ22cosPU(A) cos((A)*6.283185307)
4049 #define _IQ21cosPU(A) cos((A)*6.283185307)
4050 #define _IQ20cosPU(A) cos((A)*6.283185307)
4051 #define _IQ19cosPU(A) cos((A)*6.283185307)
4052 #define _IQ18cosPU(A) cos((A)*6.283185307)
4053 #define _IQ17cosPU(A) cos((A)*6.283185307)
4054 #define _IQ16cosPU(A) cos((A)*6.283185307)
4055 #define _IQ15cosPU(A) cos((A)*6.283185307)
4056 #define _IQ14cosPU(A) cos((A)*6.283185307)
4057 #define _IQ13cosPU(A) cos((A)*6.283185307)
4058 #define _IQ12cosPU(A) cos((A)*6.283185307)
4059 #define _IQ11cosPU(A) cos((A)*6.283185307)
4060 #define _IQ10cosPU(A) cos((A)*6.283185307)
4061 #define _IQ9cosPU(A) cos((A)*6.283185307)
4062 #define _IQ8cosPU(A) cos((A)*6.283185307)
4063 #define _IQ7cosPU(A) cos((A)*6.283185307)
4064 #define _IQ6cosPU(A) cos((A)*6.283185307)
4065 #define _IQ5cosPU(A) cos((A)*6.283185307)
4066 #define _IQ4cosPU(A) cos((A)*6.283185307)
4067 #define _IQ3cosPU(A) cos((A)*6.283185307)
4068 #define _IQ2cosPU(A) cos((A)*6.283185307)
4069 #define _IQ1cosPU(A) cos((A)*6.283185307)
4071 #define _IQacos(A) acos(A)
4072 #define _IQ29acos(A) acos(A)
4073 #define _IQ28acos(A) acos(A)
4074 #define _IQ27acos(A) acos(A)
4075 #define _IQ26acos(A) acos(A)
4076 #define _IQ25acos(A) acos(A)
4077 #define _IQ24acos(A) acos(A)
4078 #define _IQ23acos(A) acos(A)
4079 #define _IQ22acos(A) acos(A)
4080 #define _IQ21acos(A) acos(A)
4081 #define _IQ20acos(A) acos(A)
4082 #define _IQ19acos(A) acos(A)
4083 #define _IQ18acos(A) acos(A)
4084 #define _IQ17acos(A) acos(A)
4085 #define _IQ16acos(A) acos(A)
4086 #define _IQ15acos(A) acos(A)
4087 #define _IQ14acos(A) acos(A)
4088 #define _IQ13acos(A) acos(A)
4089 #define _IQ12acos(A) acos(A)
4090 #define _IQ11acos(A) acos(A)
4091 #define _IQ10acos(A) acos(A)
4092 #define _IQ9acos(A) acos(A)
4093 #define _IQ8acos(A) acos(A)
4094 #define _IQ7acos(A) acos(A)
4095 #define _IQ6acos(A) acos(A)
4096 #define _IQ5acos(A) acos(A)
4097 #define _IQ4acos(A) acos(A)
4098 #define _IQ3acos(A) acos(A)
4099 #define _IQ2acos(A) acos(A)
4100 #define _IQ1acos(A) acos(A)
4102 #define _IQatan(A) atan(A)
4103 #define _IQ30atan(A) atan(A)
4104 #define _IQ29atan(A) atan(A)
4105 #define _IQ28atan(A) atan(A)
4106 #define _IQ27atan(A) atan(A)
4107 #define _IQ26atan(A) atan(A)
4108 #define _IQ25atan(A) atan(A)
4109 #define _IQ24atan(A) atan(A)
4110 #define _IQ23atan(A) atan(A)
4111 #define _IQ22atan(A) atan(A)
4112 #define _IQ21atan(A) atan(A)
4113 #define _IQ20atan(A) atan(A)
4114 #define _IQ19atan(A) atan(A)
4115 #define _IQ18atan(A) atan(A)
4116 #define _IQ17atan(A) atan(A)
4117 #define _IQ16atan(A) atan(A)
4118 #define _IQ15atan(A) atan(A)
4119 #define _IQ14atan(A) atan(A)
4120 #define _IQ13atan(A) atan(A)
4121 #define _IQ12atan(A) atan(A)
4122 #define _IQ11atan(A) atan(A)
4123 #define _IQ10atan(A) atan(A)
4124 #define _IQ9atan(A) atan(A)
4125 #define _IQ8atan(A) atan(A)
4126 #define _IQ7atan(A) atan(A)
4127 #define _IQ6atan(A) atan(A)
4128 #define _IQ5atan(A) atan(A)
4129 #define _IQ4atan(A) atan(A)
4130 #define _IQ3atan(A) atan(A)
4131 #define _IQ2atan(A) atan(A)
4132 #define _IQ1atan(A) atan(A)
4134 #define _IQatan2(A,B) atan2(A,B)
4135 #define _IQ30atan2(A,B) atan2(A,B)
4136 #define _IQ29atan2(A,B) atan2(A,B)
4137 #define _IQ28atan2(A,B) atan2(A,B)
4138 #define _IQ27atan2(A,B) atan2(A,B)
4139 #define _IQ26atan2(A,B) atan2(A,B)
4140 #define _IQ25atan2(A,B) atan2(A,B)
4141 #define _IQ24atan2(A,B) atan2(A,B)
4142 #define _IQ23atan2(A,B) atan2(A,B)
4143 #define _IQ22atan2(A,B) atan2(A,B)
4144 #define _IQ21atan2(A,B) atan2(A,B)
4145 #define _IQ20atan2(A,B) atan2(A,B)
4146 #define _IQ19atan2(A,B) atan2(A,B)
4147 #define _IQ18atan2(A,B) atan2(A,B)
4148 #define _IQ17atan2(A,B) atan2(A,B)
4149 #define _IQ16atan2(A,B) atan2(A,B)
4150 #define _IQ15atan2(A,B) atan2(A,B)
4151 #define _IQ14atan2(A,B) atan2(A,B)
4152 #define _IQ13atan2(A,B) atan2(A,B)
4153 #define _IQ12atan2(A,B) atan2(A,B)
4154 #define _IQ11atan2(A,B) atan2(A,B)
4155 #define _IQ10atan2(A,B) atan2(A,B)
4156 #define _IQ9atan2(A,B) atan2(A,B)
4157 #define _IQ8atan2(A,B) atan2(A,B)
4158 #define _IQ7atan2(A,B) atan2(A,B)
4159 #define _IQ6atan2(A,B) atan2(A,B)
4160 #define _IQ5atan2(A,B) atan2(A,B)
4161 #define _IQ4atan2(A,B) atan2(A,B)
4162 #define _IQ3atan2(A,B) atan2(A,B)
4163 #define _IQ2atan2(A,B) atan2(A,B)
4164 #define _IQ1atan2(A,B) atan2(A,B)
4166 #define _IQatan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4167 #define _IQ30atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4168 #define _IQ29atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4169 #define _IQ28atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4170 #define _IQ27atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4171 #define _IQ26atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4172 #define _IQ25atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4173 #define _IQ24atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4174 #define _IQ23atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4175 #define _IQ22atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4176 #define _IQ21atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4177 #define _IQ20atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4178 #define _IQ19atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4179 #define _IQ18atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4180 #define _IQ17atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4181 #define _IQ16atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4182 #define _IQ15atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4183 #define _IQ14atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4184 #define _IQ13atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4185 #define _IQ12atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4186 #define _IQ11atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4187 #define _IQ10atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4188 #define _IQ9atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4189 #define _IQ8atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4190 #define _IQ7atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4191 #define _IQ6atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4192 #define _IQ5atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4193 #define _IQ4atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4194 #define _IQ3atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4195 #define _IQ2atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4196 #define _IQ1atan2PU(A,B) ((atan2(A,B)*(1.0/6.283185307)) >= 0.0 ? (atan2(A,B)*(1.0/6.283185307)):1.0 + (atan2(A,B)*(1.0/6.283185307)))
4198 #define _IQsqrt(A) sqrt(A)
4199 #define _IQ30sqrt(A) sqrt(A)
4200 #define _IQ29sqrt(A) sqrt(A)
4201 #define _IQ28sqrt(A) sqrt(A)
4202 #define _IQ27sqrt(A) sqrt(A)
4203 #define _IQ26sqrt(A) sqrt(A)
4204 #define _IQ25sqrt(A) sqrt(A)
4205 #define _IQ24sqrt(A) sqrt(A)
4206 #define _IQ23sqrt(A) sqrt(A)
4207 #define _IQ22sqrt(A) sqrt(A)
4208 #define _IQ21sqrt(A) sqrt(A)
4209 #define _IQ20sqrt(A) sqrt(A)
4210 #define _IQ19sqrt(A) sqrt(A)
4211 #define _IQ18sqrt(A) sqrt(A)
4212 #define _IQ17sqrt(A) sqrt(A)
4213 #define _IQ16sqrt(A) sqrt(A)
4214 #define _IQ15sqrt(A) sqrt(A)
4215 #define _IQ14sqrt(A) sqrt(A)
4216 #define _IQ13sqrt(A) sqrt(A)
4217 #define _IQ12sqrt(A) sqrt(A)
4218 #define _IQ11sqrt(A) sqrt(A)
4219 #define _IQ10sqrt(A) sqrt(A)
4220 #define _IQ9sqrt(A) sqrt(A)
4221 #define _IQ8sqrt(A) sqrt(A)
4222 #define _IQ7sqrt(A) sqrt(A)
4223 #define _IQ6sqrt(A) sqrt(A)
4224 #define _IQ5sqrt(A) sqrt(A)
4225 #define _IQ4sqrt(A) sqrt(A)
4226 #define _IQ3sqrt(A) sqrt(A)
4227 #define _IQ2sqrt(A) sqrt(A)
4228 #define _IQ1sqrt(A) sqrt(A)
4230 #define _IQisqrt(A) (1.0/sqrt(A))
4231 #define _IQ30isqrt(A) (1.0/sqrt(A))
4232 #define _IQ29isqrt(A) (1.0/sqrt(A))
4233 #define _IQ28isqrt(A) (1.0/sqrt(A))
4234 #define _IQ27isqrt(A) (1.0/sqrt(A))
4235 #define _IQ26isqrt(A) (1.0/sqrt(A))
4236 #define _IQ25isqrt(A) (1.0/sqrt(A))
4237 #define _IQ24isqrt(A) (1.0/sqrt(A))
4238 #define _IQ23isqrt(A) (1.0/sqrt(A))
4239 #define _IQ22isqrt(A) (1.0/sqrt(A))
4240 #define _IQ21isqrt(A) (1.0/sqrt(A))
4241 #define _IQ20isqrt(A) (1.0/sqrt(A))
4242 #define _IQ19isqrt(A) (1.0/sqrt(A))
4243 #define _IQ18isqrt(A) (1.0/sqrt(A))
4244 #define _IQ17isqrt(A) (1.0/sqrt(A))
4245 #define _IQ16isqrt(A) (1.0/sqrt(A))
4246 #define _IQ15isqrt(A) (1.0/sqrt(A))
4247 #define _IQ14isqrt(A) (1.0/sqrt(A))
4248 #define _IQ13isqrt(A) (1.0/sqrt(A))
4249 #define _IQ12isqrt(A) (1.0/sqrt(A))
4250 #define _IQ11isqrt(A) (1.0/sqrt(A))
4251 #define _IQ10isqrt(A) (1.0/sqrt(A))
4252 #define _IQ9isqrt(A) (1.0/sqrt(A))
4253 #define _IQ8isqrt(A) (1.0/sqrt(A))
4254 #define _IQ7isqrt(A) (1.0/sqrt(A))
4255 #define _IQ6isqrt(A) (1.0/sqrt(A))
4256 #define _IQ5isqrt(A) (1.0/sqrt(A))
4257 #define _IQ4isqrt(A) (1.0/sqrt(A))
4258 #define _IQ3isqrt(A) (1.0/sqrt(A))
4259 #define _IQ2isqrt(A) (1.0/sqrt(A))
4260 #define _IQ1isqrt(A) (1.0/sqrt(A))
4262 #define _IQexp(A) exp(A)
4263 #define _IQ30exp(A) exp(A)
4264 #define _IQ29exp(A) exp(A)
4265 #define _IQ28exp(A) exp(A)
4266 #define _IQ27exp(A) exp(A)
4267 #define _IQ26exp(A) exp(A)
4268 #define _IQ25exp(A) exp(A)
4269 #define _IQ24exp(A) exp(A)
4270 #define _IQ23exp(A) exp(A)
4271 #define _IQ22exp(A) exp(A)
4272 #define _IQ21exp(A) exp(A)
4273 #define _IQ20exp(A) exp(A)
4274 #define _IQ19exp(A) exp(A)
4275 #define _IQ18exp(A) exp(A)
4276 #define _IQ17exp(A) exp(A)
4277 #define _IQ16exp(A) exp(A)
4278 #define _IQ15exp(A) exp(A)
4279 #define _IQ14exp(A) exp(A)
4280 #define _IQ13exp(A) exp(A)
4281 #define _IQ12exp(A) exp(A)
4282 #define _IQ11exp(A) exp(A)
4283 #define _IQ10exp(A) exp(A)
4284 #define _IQ9exp(A) exp(A)
4285 #define _IQ8exp(A) exp(A)
4286 #define _IQ7exp(A) exp(A)
4287 #define _IQ6exp(A) exp(A)
4288 #define _IQ5exp(A) exp(A)
4289 #define _IQ4exp(A) exp(A)
4290 #define _IQ3exp(A) exp(A)
4291 #define _IQ2exp(A) exp(A)
4292 #define _IQ1exp(A) exp(A)
4294 #define _IQint(A) ((long) (A))
4295 #define _IQ30int(A) ((long) (A))
4296 #define _IQ29int(A) ((long) (A))
4297 #define _IQ28int(A) ((long) (A))
4298 #define _IQ27int(A) ((long) (A))
4299 #define _IQ26int(A) ((long) (A))
4300 #define _IQ25int(A) ((long) (A))
4301 #define _IQ24int(A) ((long) (A))
4302 #define _IQ23int(A) ((long) (A))
4303 #define _IQ22int(A) ((long) (A))
4304 #define _IQ21int(A) ((long) (A))
4305 #define _IQ20int(A) ((long) (A))
4306 #define _IQ19int(A) ((long) (A))
4307 #define _IQ18int(A) ((long) (A))
4308 #define _IQ17int(A) ((long) (A))
4309 #define _IQ16int(A) ((long) (A))
4310 #define _IQ15int(A) ((long) (A))
4311 #define _IQ14int(A) ((long) (A))
4312 #define _IQ13int(A) ((long) (A))
4313 #define _IQ12int(A) ((long) (A))
4314 #define _IQ11int(A) ((long) (A))
4315 #define _IQ10int(A) ((long) (A))
4316 #define _IQ9int(A) ((long) (A))
4317 #define _IQ8int(A) ((long) (A))
4318 #define _IQ7int(A) ((long) (A))
4319 #define _IQ6int(A) ((long) (A))
4320 #define _IQ5int(A) ((long) (A))
4321 #define _IQ4int(A) ((long) (A))
4322 #define _IQ3int(A) ((long) (A))
4323 #define _IQ2int(A) ((long) (A))
4324 #define _IQ1int(A) ((long) (A))
4326 #define _IQfrac(A) ((A) - (float)((long) (A)))
4327 #define _IQ30frac(A) ((A) - (float)((long) (A)))
4328 #define _IQ29frac(A) ((A) - (float)((long) (A)))
4329 #define _IQ28frac(A) ((A) - (float)((long) (A)))
4330 #define _IQ27frac(A) ((A) - (float)((long) (A)))
4331 #define _IQ26frac(A) ((A) - (float)((long) (A)))
4332 #define _IQ25frac(A) ((A) - (float)((long) (A)))
4333 #define _IQ24frac(A) ((A) - (float)((long) (A)))
4334 #define _IQ23frac(A) ((A) - (float)((long) (A)))
4335 #define _IQ22frac(A) ((A) - (float)((long) (A)))
4336 #define _IQ21frac(A) ((A) - (float)((long) (A)))
4337 #define _IQ20frac(A) ((A) - (float)((long) (A)))
4338 #define _IQ19frac(A) ((A) - (float)((long) (A)))
4339 #define _IQ18frac(A) ((A) - (float)((long) (A)))
4340 #define _IQ17frac(A) ((A) - (float)((long) (A)))
4341 #define _IQ16frac(A) ((A) - (float)((long) (A)))
4342 #define _IQ15frac(A) ((A) - (float)((long) (A)))
4343 #define _IQ14frac(A) ((A) - (float)((long) (A)))
4344 #define _IQ13frac(A) ((A) - (float)((long) (A)))
4345 #define _IQ12frac(A) ((A) - (float)((long) (A)))
4346 #define _IQ11frac(A) ((A) - (float)((long) (A)))
4347 #define _IQ10frac(A) ((A) - (float)((long) (A)))
4348 #define _IQ9frac(A) ((A) - (float)((long) (A)))
4349 #define _IQ8frac(A) ((A) - (float)((long) (A)))
4350 #define _IQ7frac(A) ((A) - (float)((long) (A)))
4351 #define _IQ6frac(A) ((A) - (float)((long) (A)))
4352 #define _IQ5frac(A) ((A) - (float)((long) (A)))
4353 #define _IQ4frac(A) ((A) - (float)((long) (A)))
4354 #define _IQ3frac(A) ((A) - (float)((long) (A)))
4355 #define _IQ2frac(A) ((A) - (float)((long) (A)))
4356 #define _IQ1frac(A) ((A) - (float)((long) (A)))
4358 #define _IQmpyIQX(A, IQA, B, IQB) ((A)*(B))
4359 #define _IQ30mpyIQX(A, IQA, B, IQB) ((A)*(B))
4360 #define _IQ29mpyIQX(A, IQA, B, IQB) ((A)*(B))
4361 #define _IQ28mpyIQX(A, IQA, B, IQB) ((A)*(B))
4362 #define _IQ27mpyIQX(A, IQA, B, IQB) ((A)*(B))
4363 #define _IQ26mpyIQX(A, IQA, B, IQB) ((A)*(B))
4364 #define _IQ25mpyIQX(A, IQA, B, IQB) ((A)*(B))
4365 #define _IQ24mpyIQX(A, IQA, B, IQB) ((A)*(B))
4366 #define _IQ23mpyIQX(A, IQA, B, IQB) ((A)*(B))
4367 #define _IQ22mpyIQX(A, IQA, B, IQB) ((A)*(B))
4368 #define _IQ21mpyIQX(A, IQA, B, IQB) ((A)*(B))
4369 #define _IQ20mpyIQX(A, IQA, B, IQB) ((A)*(B))
4370 #define _IQ19mpyIQX(A, IQA, B, IQB) ((A)*(B))
4371 #define _IQ18mpyIQX(A, IQA, B, IQB) ((A)*(B))
4372 #define _IQ17mpyIQX(A, IQA, B, IQB) ((A)*(B))
4373 #define _IQ16mpyIQX(A, IQA, B, IQB) ((A)*(B))
4374 #define _IQ15mpyIQX(A, IQA, B, IQB) ((A)*(B))
4375 #define _IQ14mpyIQX(A, IQA, B, IQB) ((A)*(B))
4376 #define _IQ13mpyIQX(A, IQA, B, IQB) ((A)*(B))
4377 #define _IQ12mpyIQX(A, IQA, B, IQB) ((A)*(B))
4378 #define _IQ11mpyIQX(A, IQA, B, IQB) ((A)*(B))
4379 #define _IQ10mpyIQX(A, IQA, B, IQB) ((A)*(B))
4380 #define _IQ9mpyIQX(A, IQA, B, IQB) ((A)*(B))
4381 #define _IQ8mpyIQX(A, IQA, B, IQB) ((A)*(B))
4382 #define _IQ7mpyIQX(A, IQA, B, IQB) ((A)*(B))
4383 #define _IQ6mpyIQX(A, IQA, B, IQB) ((A)*(B))
4384 #define _IQ5mpyIQX(A, IQA, B, IQB) ((A)*(B))
4385 #define _IQ4mpyIQX(A, IQA, B, IQB) ((A)*(B))
4386 #define _IQ3mpyIQX(A, IQA, B, IQB) ((A)*(B))
4387 #define _IQ2mpyIQX(A, IQA, B, IQB) ((A)*(B))
4388 #define _IQ1mpyIQX(A, IQA, B, IQB) ((A)*(B))
4390 #define _IQmpyI32(A,B) ((A) * (float) (B))
4391 #define _IQ30mpyI32(A,B) ((A) * (float) (B))
4392 #define _IQ29mpyI32(A,B) ((A) * (float) (B))
4393 #define _IQ28mpyI32(A,B) ((A) * (float) (B))
4394 #define _IQ27mpyI32(A,B) ((A) * (float) (B))
4395 #define _IQ26mpyI32(A,B) ((A) * (float) (B))
4396 #define _IQ25mpyI32(A,B) ((A) * (float) (B))
4397 #define _IQ24mpyI32(A,B) ((A) * (float) (B))
4398 #define _IQ23mpyI32(A,B) ((A) * (float) (B))
4399 #define _IQ22mpyI32(A,B) ((A) * (float) (B))
4400 #define _IQ21mpyI32(A,B) ((A) * (float) (B))
4401 #define _IQ20mpyI32(A,B) ((A) * (float) (B))
4402 #define _IQ19mpyI32(A,B) ((A) * (float) (B))
4403 #define _IQ18mpyI32(A,B) ((A) * (float) (B))
4404 #define _IQ17mpyI32(A,B) ((A) * (float) (B))
4405 #define _IQ16mpyI32(A,B) ((A) * (float) (B))
4406 #define _IQ15mpyI32(A,B) ((A) * (float) (B))
4407 #define _IQ14mpyI32(A,B) ((A) * (float) (B))
4408 #define _IQ13mpyI32(A,B) ((A) * (float) (B))
4409 #define _IQ12mpyI32(A,B) ((A) * (float) (B))
4410 #define _IQ11mpyI32(A,B) ((A) * (float) (B))
4411 #define _IQ10mpyI32(A,B) ((A) * (float) (B))
4412 #define _IQ9mpyI32(A,B) ((A) * (float) (B))
4413 #define _IQ8mpyI32(A,B) ((A) * (float) (B))
4414 #define _IQ7mpyI32(A,B) ((A) * (float) (B))
4415 #define _IQ6mpyI32(A,B) ((A) * (float) (B))
4416 #define _IQ5mpyI32(A,B) ((A) * (float) (B))
4417 #define _IQ4mpyI32(A,B) ((A) * (float) (B))
4418 #define _IQ3mpyI32(A,B) ((A) * (float) (B))
4419 #define _IQ2mpyI32(A,B) ((A) * (float) (B))
4420 #define _IQ1mpyI32(A,B) ((A) * (float) (B))
4422 #define _IQmpyI32int(A,B) ((long) ((A) * (float) (B)))
4423 #define _IQ30mpyI32int(A,B) ((long) ((A) * (float) (B)))
4424 #define _IQ29mpyI32int(A,B) ((long) ((A) * (float) (B)))
4425 #define _IQ28mpyI32int(A,B) ((long) ((A) * (float) (B)))
4426 #define _IQ27mpyI32int(A,B) ((long) ((A) * (float) (B)))
4427 #define _IQ26mpyI32int(A,B) ((long) ((A) * (float) (B)))
4428 #define _IQ25mpyI32int(A,B) ((long) ((A) * (float) (B)))
4429 #define _IQ24mpyI32int(A,B) ((long) ((A) * (float) (B)))
4430 #define _IQ23mpyI32int(A,B) ((long) ((A) * (float) (B)))
4431 #define _IQ22mpyI32int(A,B) ((long) ((A) * (float) (B)))
4432 #define _IQ21mpyI32int(A,B) ((long) ((A) * (float) (B)))
4433 #define _IQ20mpyI32int(A,B) ((long) ((A) * (float) (B)))
4434 #define _IQ19mpyI32int(A,B) ((long) ((A) * (float) (B)))
4435 #define _IQ18mpyI32int(A,B) ((long) ((A) * (float) (B)))
4436 #define _IQ17mpyI32int(A,B) ((long) ((A) * (float) (B)))
4437 #define _IQ16mpyI32int(A,B) ((long) ((A) * (float) (B)))
4438 #define _IQ15mpyI32int(A,B) ((long) ((A) * (float) (B)))
4439 #define _IQ14mpyI32int(A,B) ((long) ((A) * (float) (B)))
4440 #define _IQ13mpyI32int(A,B) ((long) ((A) * (float) (B)))
4441 #define _IQ12mpyI32int(A,B) ((long) ((A) * (float) (B)))
4442 #define _IQ11mpyI32int(A,B) ((long) ((A) * (float) (B)))
4443 #define _IQ10mpyI32int(A,B) ((long) ((A) * (float) (B)))
4444 #define _IQ9mpyI32int(A,B) ((long) ((A) * (float) (B)))
4445 #define _IQ8mpyI32int(A,B) ((long) ((A) * (float) (B)))
4446 #define _IQ7mpyI32int(A,B) ((long) ((A) * (float) (B)))
4447 #define _IQ6mpyI32int(A,B) ((long) ((A) * (float) (B)))
4448 #define _IQ5mpyI32int(A,B) ((long) ((A) * (float) (B)))
4449 #define _IQ4mpyI32int(A,B) ((long) ((A) * (float) (B)))
4450 #define _IQ3mpyI32int(A,B) ((long) ((A) * (float) (B)))
4451 #define _IQ2mpyI32int(A,B) ((long) ((A) * (float) (B)))
4452 #define _IQ1mpyI32int(A,B) ((long) ((A) * (float) (B)))
4454 #define _IQmpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4455 #define _IQ30mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4456 #define _IQ29mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4457 #define _IQ28mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4458 #define _IQ27mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4459 #define _IQ26mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4460 #define _IQ25mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4461 #define _IQ24mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4462 #define _IQ23mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4463 #define _IQ22mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4464 #define _IQ21mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4465 #define _IQ20mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4466 #define _IQ19mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4467 #define _IQ18mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4468 #define _IQ17mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4469 #define _IQ16mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4470 #define _IQ15mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4471 #define _IQ14mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4472 #define _IQ13mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4473 #define _IQ12mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4474 #define _IQ11mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4475 #define _IQ10mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4476 #define _IQ9mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4477 #define _IQ8mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4478 #define _IQ7mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4479 #define _IQ6mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4480 #define _IQ5mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4481 #define _IQ4mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4482 #define _IQ3mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4483 #define _IQ2mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4484 #define _IQ1mpyI32frac(A,B) ((A) - (float)((long) ((A) * (float) (B))))
4486 #define _IQmag(A,B) sqrt((A)*(A) + (B)*(B))
4487 #define _IQ30mag(A,B) sqrt((A)*(A) + (B)*(B))
4488 #define _IQ29mag(A,B) sqrt((A)*(A) + (B)*(B))
4489 #define _IQ28mag(A,B) sqrt((A)*(A) + (B)*(B))
4490 #define _IQ27mag(A,B) sqrt((A)*(A) + (B)*(B))
4491 #define _IQ26mag(A,B) sqrt((A)*(A) + (B)*(B))
4492 #define _IQ25mag(A,B) sqrt((A)*(A) + (B)*(B))
4493 #define _IQ24mag(A,B) sqrt((A)*(A) + (B)*(B))
4494 #define _IQ23mag(A,B) sqrt((A)*(A) + (B)*(B))
4495 #define _IQ22mag(A,B) sqrt((A)*(A) + (B)*(B))
4496 #define _IQ21mag(A,B) sqrt((A)*(A) + (B)*(B))
4497 #define _IQ20mag(A,B) sqrt((A)*(A) + (B)*(B))
4498 #define _IQ19mag(A,B) sqrt((A)*(A) + (B)*(B))
4499 #define _IQ18mag(A,B) sqrt((A)*(A) + (B)*(B))
4500 #define _IQ17mag(A,B) sqrt((A)*(A) + (B)*(B))
4501 #define _IQ16mag(A,B) sqrt((A)*(A) + (B)*(B))
4502 #define _IQ15mag(A,B) sqrt((A)*(A) + (B)*(B))
4503 #define _IQ14mag(A,B) sqrt((A)*(A) + (B)*(B))
4504 #define _IQ13mag(A,B) sqrt((A)*(A) + (B)*(B))
4505 #define _IQ12mag(A,B) sqrt((A)*(A) + (B)*(B))
4506 #define _IQ11mag(A,B) sqrt((A)*(A) + (B)*(B))
4507 #define _IQ10mag(A,B) sqrt((A)*(A) + (B)*(B))
4508 #define _IQ9mag(A,B) sqrt((A)*(A) + (B)*(B))
4509 #define _IQ8mag(A,B) sqrt((A)*(A) + (B)*(B))
4510 #define _IQ7mag(A,B) sqrt((A)*(A) + (B)*(B))
4511 #define _IQ6mag(A,B) sqrt((A)*(A) + (B)*(B))
4512 #define _IQ5mag(A,B) sqrt((A)*(A) + (B)*(B))
4513 #define _IQ4mag(A,B) sqrt((A)*(A) + (B)*(B))
4514 #define _IQ3mag(A,B) sqrt((A)*(A) + (B)*(B))
4515 #define _IQ2mag(A,B) sqrt((A)*(A) + (B)*(B))
4516 #define _IQ1mag(A,B) sqrt((A)*(A) + (B)*(B))
4518 #define _atoIQ(A) atof(A)
4519 #define _atoIQ30(A) atof(A)
4520 #define _atoIQ29(A) atof(A)
4521 #define _atoIQ28(A) atof(A)
4522 #define _atoIQ27(A) atof(A)
4523 #define _atoIQ26(A) atof(A)
4524 #define _atoIQ25(A) atof(A)
4525 #define _atoIQ24(A) atof(A)
4526 #define _atoIQ23(A) atof(A)
4527 #define _atoIQ22(A) atof(A)
4528 #define _atoIQ21(A) atof(A)
4529 #define _atoIQ20(A) atof(A)
4530 #define _atoIQ19(A) atof(A)
4531 #define _atoIQ18(A) atof(A)
4532 #define _atoIQ17(A) atof(A)
4533 #define _atoIQ16(A) atof(A)
4534 #define _atoIQ15(A) atof(A)
4535 #define _atoIQ14(A) atof(A)
4536 #define _atoIQ13(A) atof(A)
4537 #define _atoIQ12(A) atof(A)
4538 #define _atoIQ11(A) atof(A)
4539 #define _atoIQ10(A) atof(A)
4540 #define _atoIQ9(A) atof(A)
4541 #define _atoIQ8(A) atof(A)
4542 #define _atoIQ7(A) atof(A)
4543 #define _atoIQ6(A) atof(A)
4544 #define _atoIQ5(A) atof(A)
4545 #define _atoIQ4(A) atof(A)
4546 #define _atoIQ3(A) atof(A)
4547 #define _atoIQ2(A) atof(A)
4548 #define _atoIQ1(A) atof(A)
4550 #define _IQtoa(A, B, C) sprintf(A, B, C)
4551 #define _IQ30toa(A, B, C) sprintf(A, B, C)
4552 #define _IQ29toa(A, B, C) sprintf(A, B, C)
4553 #define _IQ28toa(A, B, C) sprintf(A, B, C)
4554 #define _IQ27toa(A, B, C) sprintf(A, B, C)
4555 #define _IQ26toa(A, B, C) sprintf(A, B, C)
4556 #define _IQ25toa(A, B, C) sprintf(A, B, C)
4557 #define _IQ24toa(A, B, C) sprintf(A, B, C)
4558 #define _IQ23toa(A, B, C) sprintf(A, B, C)
4559 #define _IQ22toa(A, B, C) sprintf(A, B, C)
4560 #define _IQ21toa(A, B, C) sprintf(A, B, C)
4561 #define _IQ20toa(A, B, C) sprintf(A, B, C)
4562 #define _IQ19toa(A, B, C) sprintf(A, B, C)
4563 #define _IQ18toa(A, B, C) sprintf(A, B, C)
4564 #define _IQ17toa(A, B, C) sprintf(A, B, C)
4565 #define _IQ16toa(A, B, C) sprintf(A, B, C)
4566 #define _IQ15toa(A, B, C) sprintf(A, B, C)
4567 #define _IQ14toa(A, B, C) sprintf(A, B, C)
4568 #define _IQ13toa(A, B, C) sprintf(A, B, C)
4569 #define _IQ12toa(A, B, C) sprintf(A, B, C)
4570 #define _IQ11toa(A, B, C) sprintf(A, B, C)
4571 #define _IQ10toa(A, B, C) sprintf(A, B, C)
4572 #define _IQ9toa(A, B, C) sprintf(A, B, C)
4573 #define _IQ8toa(A, B, C) sprintf(A, B, C)
4574 #define _IQ7toa(A, B, C) sprintf(A, B, C)
4575 #define _IQ6toa(A, B, C) sprintf(A, B, C)
4576 #define _IQ5toa(A, B, C) sprintf(A, B, C)
4577 #define _IQ4toa(A, B, C) sprintf(A, B, C)
4578 #define _IQ3toa(A, B, C) sprintf(A, B, C)
4579 #define _IQ2toa(A, B, C) sprintf(A, B, C)
4580 #define _IQ1toa(A, B, C) sprintf(A, B, C)
4582 #define _IQabs(A) fabsf(A)
4583 #define _IQ30abs(A) fabs(A)
4584 #define _IQ29abs(A) fabs(A)
4585 #define _IQ28abs(A) fabs(A)
4586 #define _IQ27abs(A) fabs(A)
4587 #define _IQ26abs(A) fabs(A)
4588 #define _IQ25abs(A) fabs(A)
4589 #define _IQ24abs(A) fabs(A)
4590 #define _IQ23abs(A) fabs(A)
4591 #define _IQ22abs(A) fabs(A)
4592 #define _IQ21abs(A) fabs(A)
4593 #define _IQ20abs(A) fabs(A)
4594 #define _IQ19abs(A) fabs(A)
4595 #define _IQ18abs(A) fabs(A)
4596 #define _IQ17abs(A) fabs(A)
4597 #define _IQ16abs(A) fabs(A)
4598 #define _IQ15abs(A) fabs(A)
4599 #define _IQ14abs(A) fabs(A)
4600 #define _IQ13abs(A) fabs(A)
4601 #define _IQ12abs(A) fabs(A)
4602 #define _IQ11abs(A) fabs(A)
4603 #define _IQ10abs(A) fabs(A)
4604 #define _IQ9abs(A) fabs(A)
4605 #define _IQ8abs(A) fabs(A)
4606 #define _IQ7abs(A) fabs(A)
4607 #define _IQ6abs(A) fabs(A)
4608 #define _IQ5abs(A) fabs(A)
4609 #define _IQ4abs(A) fabs(A)
4610 #define _IQ3abs(A) fabs(A)
4611 #define _IQ2abs(A) fabs(A)
4612 #define _IQ1abs(A) fabs(A)
4619 #endif // extern "C"
#define _IQ18toa(A, B, C)
long _atoIQN(const char *A, long q_value)
#define _IQ27atan2PU(A, B)
#define _IQ26atan2PU(A, B)
#define _IQ30toa(A, B, C)
#define _IQ22mpyI32int(A, B)
#define _IQ22atan2PU(A, B)
#define _IQ12toa(A, B, C)
#define _IQ23atan2PU(A, B)
#define _IQ29mpyI32int(A, B)
#define _IQ23mpyI32int(A, B)
#define _IQ3atan2PU(A, B)
#define _IQ22mpyI32frac(A, B)
#define _IQ24mpyI32int(A, B)
#define _IQ15atan2PU(A, B)
#define _IQ18atan2PU(A, B)
#define _IQ30mpyI32int(A, B)
#define _IQ2mpyI32int(A, B)
#define _IQ21mpyI32frac(A, B)
#define _IQ21toa(A, B, C)
#define _IQ14toa(A, B, C)
#define _IQ10mpyI32frac(A, B)
#define _IQ28toa(A, B, C)
#define _IQ4atan2PU(A, B)
#define _IQ13mpyI32int(A, B)
#define _IQ16toa(A, B, C)
#define _IQ28mpyI32frac(A, B)
#define _IQ23mpyI32frac(A, B)
#define _IQ24mpyI32frac(A, B)
#define _IQ28mpyI32int(A, B)
#define _IQ24atan2PU(A, B)
#define _IQ25toa(A, B, C)
#define _IQ11mpyI32int(A, B)
#define _IQ6mpyI32int(A, B)
#define _IQ27toa(A, B, C)
#define _IQ1mpyI32int(A, B)
#define _IQ15toa(A, B, C)
#define _IQ10mpyI32int(A, B)
#define _IQ26mpyI32int(A, B)
#define _IQ25atan2PU(A, B)
#define _IQ22toa(A, B, C)
int __IQNtoa(char *A, const char *B, long C, int D)
#define _IQ15mpyI32frac(A, B)
#define _IQ3mpyI32int(A, B)
#define _IQ20atan2PU(A, B)
#define _IQ12mpyI32frac(A, B)
#define _IQ17mpyI32frac(A, B)
#define _IQ1atan2PU(A, B)
#define _IQ13toa(A, B, C)
#define _IQ9mpyI32int(A, B)
#define _IQ15mpyI32int(A, B)
#define _IQ29toa(A, B, C)
#define _IQ20mpyI32frac(A, B)
#define _IQ19mpyI32frac(A, B)
#define _IQ14mpyI32frac(A, B)
#define _IQ11toa(A, B, C)
#define _IQ30atan2PU(A, B)
#define _IQ24toa(A, B, C)
#define _IQ30mpyI32frac(A, B)
#define _IQ12mpyI32int(A, B)
#define _IQ4mpyI32frac(A, B)
#define _IQ8mpyI32frac(A, B)
#define _IQ20mpyI32int(A, B)
#define _IQ20toa(A, B, C)
#define _IQ19toa(A, B, C)
#define _IQ28atan2PU(A, B)
#define _IQ29atan2PU(A, B)
#define _IQ8mpyI32int(A, B)
#define _IQ25mpyI32int(A, B)
#define _IQ6atan2PU(A, B)
#define _IQ16mpyI32int(A, B)
#define _IQ21mpyI32int(A, B)
#define _IQ1mpyI32frac(A, B)
#define _IQ14mpyI32int(A, B)
#define _IQ11mpyI32frac(A, B)
#define _IQ5mpyI32frac(A, B)
#define _IQ7mpyI32frac(A, B)
#define _IQ26toa(A, B, C)
#define _IQ19mpyI32int(A, B)
#define _IQ2mpyI32frac(A, B)
#define _IQ10atan2PU(A, B)
#define _IQ21atan2PU(A, B)
#define _IQ27mpyI32int(A, B)
#define _IQ3mpyI32frac(A, B)
#define _IQ5mpyI32int(A, B)
#define _IQ13mpyI32frac(A, B)
#define _IQ18mpyI32int(A, B)
#define _IQ19atan2PU(A, B)
#define _IQ8atan2PU(A, B)
#define _IQ16atan2PU(A, B)
#define _IQ2atan2PU(A, B)
#define _IQ26mpyI32frac(A, B)
#define _IQ7mpyI32int(A, B)
#define _IQ7atan2PU(A, B)
#define _IQ25mpyI32frac(A, B)
#define _IQ27mpyI32frac(A, B)
#define _IQ9atan2PU(A, B)
#define _IQ5atan2PU(A, B)
#define _IQ17atan2PU(A, B)
#define _IQ16mpyI32frac(A, B)
#define _IQ9mpyI32frac(A, B)
#define _IQ12atan2PU(A, B)
#define _IQ17toa(A, B, C)
#define _IQ23toa(A, B, C)
#define _IQ29mpyI32frac(A, B)
#define _IQ11atan2PU(A, B)
#define _IQ10toa(A, B, C)
#define _IQ14atan2PU(A, B)
#define _IQ18mpyI32frac(A, B)
#define _IQ17mpyI32int(A, B)
#define _IQ4mpyI32int(A, B)
#define _IQ6mpyI32frac(A, B)
#define _IQ13atan2PU(A, B)