MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / create_buffer_memory

Method create_buffer_memory

src/tests/buffer.h:290–311  ·  view source on GitHub ↗

/

Source from the content-addressed store, hash-verified

288
289 /*****************************************************/
290 void create_buffer_memory()
291 {
292 if( is_real() )
293 {
294 // just one real buffer
295 _the_buffers.push_back( buffer_memory< T >( total_number_of_points_including_data_and_intervening() ) );
296
297 increase_memory_allocation_for_real_in_place_buffers();
298 }
299 else if( is_planar() )
300 {
301 // one real buffer
302 _the_buffers.push_back( buffer_memory< T >( total_number_of_points_including_data_and_intervening() ) );
303 // and one imaginary buffer
304 _the_buffers.push_back( buffer_memory< T >( total_number_of_points_including_data_and_intervening() ) );
305 }
306 else if( is_interleaved() )
307 {
308 // one double-wide interleaved buffer
309 _the_buffers.push_back( buffer_memory< T >( 2 * total_number_of_points_including_data_and_intervening() ) );
310 }
311 }
312
313 /*****************************************************/
314 size_t amount_of_extra_padding_per_x()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected