- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have been playing around with ways to use vml functions more efficiently and have come up with the following technique (c++/cli) which appears to work faster, and take up less memory (than having the last parameter be a blank target array).
Can anyone tell me if there might be any issues calling the functions this way ??
//////////////////////
// CODE SNIPPET //
// __cdecl //
//////////////////////
#define N 5
int n = N;
array
array
for(i = 0; i < n; i++){
x = static_cast
y = static_cast
}
pin_ptr
pin_ptr
vdmul( &n, xptr, yptr, yptr );
for (i = 0; i < n; i++)
{
Console::Write(y + " ");
}
// Pls note that using the c-interface in this way will throw an error
// i.e. vdAdd(n, x, y, y); //c2664 error
Link Copied
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page