| 816 | } |
| 817 | |
| 818 | void ap::vmul(double *vdst, int stride_dst, int n, double alpha) |
| 819 | { |
| 820 | int i; |
| 821 | if( stride_dst!=1 ) |
| 822 | { |
| 823 | // |
| 824 | // general unoptimized case |
| 825 | // |
| 826 | for(i=0; i<n; i++, vdst+=stride_dst) |
| 827 | *vdst *= alpha; |
| 828 | } |
| 829 | else |
| 830 | { |
| 831 | // |
| 832 | // highly optimized case |
| 833 | // |
| 834 | for(i=0; i<n; i++, vdst++) |
| 835 | *vdst *= alpha; |
| 836 | } |
| 837 | } |
| 838 | |
| 839 | void ap::vmul(ap::complex *vdst, int stride_dst, int n, double alpha) |
| 840 | { |
nothing calls this directly
no outgoing calls
no test coverage detected