MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / deleteBuffers

Function deleteBuffers

src/tests/correctness/corr-rotg.cpp:52–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52template <typename T> static void
53deleteBuffers(T *A, T *B, T *C=NULL, T *D=NULL, T *E=NULL, T *F=NULL)
54{
55 if(A != NULL)
56 {
57 delete[] A;
58 }
59 if(B != NULL)
60 {
61 delete[] B;
62 }
63 if(C != NULL)
64 {
65 delete[] C;
66 }
67 if(D != NULL)
68 {
69 delete[] D;
70 }
71 if(E != NULL)
72 {
73 delete[] E;
74 }
75 if(F != NULL)
76 {
77 delete[] F;
78 }
79}
80
81// type T1 indicates the basic type,
82// while T2 indicates type of buffer C. C is not complex for complex types

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected