how to allocate an 128 bit array with new Intel instructions with dynamic memory?

I am new working with new Intel instructions, so until now I just had been working with static memory, so I have a declaration as:

__m128i  pResult[10];

But now I am wondering if it is possible to allocate the memory in a dynamic way, as using malloc or calloc but for this new instructions.

Answers


Just like any other malloc:

__m128i *p = (__m128i*)malloc(10 * sizeof(__m128i));

Need Your Help

Augmented Reality Mask using Facial Recognition on Xbox Kinect with Kinect for Windows SDK

image-processing kinect face-recognition 3ds

I am using an XBox Kinect with the Kinect for Windows SDK. I want to make an application that will augment a 3D mask (a 3D model of a mask made in 3DS Max) onto the face of anyone using the applic...

Asynchronously load multiple divs from database?

php jquery mysql ajax

Using ajax and jQuery I would like to auto-update some divs every 5 minutes using values from a database.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.