Adelsbach/VSIPL
Core Programming Reference Guide
DD-00016-015
Core

This manual is preliminary and incomplete.
While our Core implementation implements all functions given in the standard we are still working on completing this documentation.

Please refer to the VSIPL standard for a complete function reference of the Core profile until we have completed work on this documentation.

1.2.7 vsip_blockfind_p - Get user data

vsip_scalar_f* vsip_blockfind_f(const vsip_block_f *p); 
vsip_scalar_i* vsip_blockfind_i(const vsip_block_i *p); 
vsip_scalar_bl* vsip_blockfind_bl(const vsip_block_bl *p); 
vsip_scalar_vi* vsip_blockfind_vi(const vsip_block_vi *p); 
vsip_scalar_mi* vsip_blockfind_mi(const vsip_block_mi *p);
Description

These functions return a pointer to the user data array bound to the given block p. The block must have been bound previously and must be in the released state before calling these functions.

Parameters
Return Value
Error Handling

If an error occurs, the function returns NULL.

Example

vsip_block_f *float_block; 
vsip_scalar_f *float_data; 
 
// Assuming float_block has been properly initialized, bound, and released 
float_data = vsip_blockfind_f(float_block); 
 
if (float_data == NULL) { 
    // Handle error 
}