Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Question / Issue about Vector
Question / Issue about Vector [message #12831] Tue, 20 November 2007 05:47 Go to previous message
alexn is currently offline  alexn
Messages: 3
Registered: November 2007
Junior Member
Hi,

I'm trying to use the Vector class and within my application, the elements must be aligned on a 16 bytes boundary. (They are being accesses by SSE2 instructions.)

Looking at the code, the Vector template appears to call a global routine that calls "new" for a "byte" element. I would like to avoid rewriting or modifying the standard Vector class.

I am trying to figure out the best way to overwrite the memory allocation routines for the Vector class such that the "vector" was aligned.

In my old (stupid?) view, I would have thought that Vector should have used a "new" based on the type of object. Another approach might have been to add a template argument to Vector that would specify alignment (defaulting to Cool.

I'm quite new to Ultimate++ and and still trying to break my MFC orientation. Any push in the right direction would be appreciated.

Regards,
Alexn
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Juste simple question ~
Next Topic: Bug in Core06.cpp or in U++ Core value types tutorial
Goto Forum:
  


Current Time: Thu May 09 16:04:31 CEST 2024

Total time taken to generate the page: 0.02146 seconds