[arrayfire] 23/248: Fixed typo in data, device & index wrapper source files

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Nov 17 15:53:50 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch dfsg-clean
in repository arrayfire.

commit a83b0955dc944ee8b0c688f47860ea6d1e1fba6e
Author: Pradeep <pradeep at arrayfire.com>
Date:   Mon Aug 31 18:41:37 2015 -0400

    Fixed typo in data, device & index wrapper source files
---
 src/api/hapi/data.cpp   | 54 ++++++++++++++++++++++++-------------------------
 src/api/hapi/device.cpp | 38 +++++++++++++++++-----------------
 src/api/hapi/index.cpp  | 10 ++++-----
 3 files changed, 51 insertions(+), 51 deletions(-)

diff --git a/src/api/hapi/data.cpp b/src/api/hapi/data.cpp
index e733f61..3543246 100644
--- a/src/api/hapi/data.cpp
+++ b/src/api/hapi/data.cpp
@@ -19,144 +19,144 @@ af_err af_constant(af_array *result, const double value,
 }
 
 
-AFAPI af_err af_constant_complex(af_array *arr, const double real, const double imag,
+af_err af_constant_complex(af_array *arr, const double real, const double imag,
         const unsigned ndims, const dim_t * const dims, const af_dtype type)
 {
     return CALL(arr, real, imag, ndims, dims, type);
 }
 
 
-AFAPI af_err af_constant_long (af_array *arr, const  intl val, const unsigned ndims, const dim_t * const dims)
+af_err af_constant_long (af_array *arr, const  intl val, const unsigned ndims, const dim_t * const dims)
 {
     return CALL(arr, val, ndims, dims);
 }
 
 
-AFAPI af_err af_constant_ulong(af_array *arr, const uintl val, const unsigned ndims, const dim_t * const dims)
+af_err af_constant_ulong(af_array *arr, const uintl val, const unsigned ndims, const dim_t * const dims)
 {
     return CALL(arr, val, ndims, dims);
 }
 
-AFAPI af_err af_range(af_array *out, const unsigned ndims, const dim_t * const dims,
+af_err af_range(af_array *out, const unsigned ndims, const dim_t * const dims,
         const int seq_dim, const af_dtype type)
 {
     return CALL(out, ndims, dims, seq_dim, type);
 }
 
-AFAPI af_err af_iota(af_array *out, const unsigned ndims, const dim_t * const dims,
+af_err af_iota(af_array *out, const unsigned ndims, const dim_t * const dims,
         const unsigned t_ndims, const dim_t * const tdims, const af_dtype type)
 {
     return CALL(out, ndims, dims, t_ndims, tdims, type);
 }
 
-AFAPI af_err af_randu(af_array *out, const unsigned ndims, const dim_t * const dims, const af_dtype type)
+af_err af_randu(af_array *out, const unsigned ndims, const dim_t * const dims, const af_dtype type)
 {
     return CALL(out, ndims, dims, type);
 }
 
-AFAPI af_err af_randn(af_array *out, const unsigned ndims, const dim_t * const dims, const af_dtype type)
+af_err af_randn(af_array *out, const unsigned ndims, const dim_t * const dims, const af_dtype type)
 {
     return CALL(out, ndims, dims, type);
 }
 
-AFAPI af_err af_set_seed(const uintl seed)
+af_err af_set_seed(const uintl seed)
 {
     return CALL(seed);
 }
 
-AFAPI af_err af_get_seed(uintl *seed)
+af_err af_get_seed(uintl *seed)
 {
     return CALL(seed);
 }
 
-AFAPI af_err af_identity(af_array *out, const unsigned ndims, const dim_t * const dims, const af_dtype type)
+af_err af_identity(af_array *out, const unsigned ndims, const dim_t * const dims, const af_dtype type)
 {
     return CALL(out, ndims, dims, type);
 }
 
-AFAPI af_err af_diag_create(af_array *out, const af_array in, const int num)
+af_err af_diag_create(af_array *out, const af_array in, const int num)
 {
     return CALL(out, in, num);
 }
 
-AFAPI af_err af_diag_extract(af_array *out, const af_array in, const int num)
+af_err af_diag_extract(af_array *out, const af_array in, const int num)
 {
     return CALL(out, in, num);
 }
 
-AFAPI af_err af_join(af_array *out, const int dim, const af_array first, const af_array second)
+af_err af_join(af_array *out, const int dim, const af_array first, const af_array second)
 {
     return CALL(out, dim, first, second);
 }
 
-AFAPI af_err af_join_many(af_array *out, const int dim, const unsigned n_arrays, const af_array *inputs)
+af_err af_join_many(af_array *out, const int dim, const unsigned n_arrays, const af_array *inputs)
 {
     return CALL(out, dim, n_arrays, inputs);
 }
 
-AFAPI af_err af_tile(af_array *out, const af_array in,
+af_err af_tile(af_array *out, const af_array in,
         const unsigned x, const unsigned y, const unsigned z, const unsigned w)
 {
     return CALL(out, in, x, y, z, w);
 }
 
-AFAPI af_err af_reorder(af_array *out, const af_array in,
+af_err af_reorder(af_array *out, const af_array in,
         const unsigned x, const unsigned y, const unsigned z, const unsigned w)
 {
     return CALL(out, in, x, y, z, w);
 }
 
-AFAPI af_err af_shift(af_array *out, const af_array in, const int x, const int y, const int z, const int w)
+af_err af_shift(af_array *out, const af_array in, const int x, const int y, const int z, const int w)
 {
     return CALL(out, in, x, y, z, w);
 }
 
-AFAPI af_err af_moddims(af_array *out, const af_array in, const unsigned ndims, const dim_t * const dims)
+af_err af_moddims(af_array *out, const af_array in, const unsigned ndims, const dim_t * const dims)
 {
     return CALL(out, in, ndims, dims);
 }
 
-AFAPI af_err af_flat(af_array *out, const af_array in)
+af_err af_flat(af_array *out, const af_array in)
 {
     return CALL(out, in);
 }
 
-AFAPI af_err af_flip(af_array *out, const af_array in, const unsigned dim)
+af_err af_flip(af_array *out, const af_array in, const unsigned dim)
 {
     return CALL(out, in, dim);
 }
 
-AFAPI af_err af_lower(af_array *out, const af_array in, bool is_unit_diag)
+af_err af_lower(af_array *out, const af_array in, bool is_unit_diag)
 {
     return CALL(out, in, is_unit_diag);
 }
 
-AFAPI af_err af_upper(af_array *out, const af_array in, bool is_unit_diag)
+af_err af_upper(af_array *out, const af_array in, bool is_unit_diag)
 {
     return CALL(out, in, is_unit_diag);
 }
 
-AFAPI af_err af_select(af_array *out, const af_array cond, const af_array a, const af_array b)
+af_err af_select(af_array *out, const af_array cond, const af_array a, const af_array b)
 {
     return CALL(out, cond, a, b);
 }
 
-AFAPI af_err af_select_scalar_r(af_array *out, const af_array cond, const af_array a, const double b)
+af_err af_select_scalar_r(af_array *out, const af_array cond, const af_array a, const double b)
 {
     return CALL(out, cond, a, b);
 }
 
-AFAPI af_err af_select_scalar_l(af_array *out, const af_array cond, const double a, const af_array b)
+af_err af_select_scalar_l(af_array *out, const af_array cond, const double a, const af_array b)
 {
     return CALL(out, cond, a, b);
 }
 
-AFAPI af_err af_replace(af_array a, const af_array cond, const af_array b)
+af_err af_replace(af_array a, const af_array cond, const af_array b)
 {
     return CALL(a, cond, b);
 }
 
-AFAPI af_err af_replace_scalar(af_array a, const af_array cond, const double b)
+af_err af_replace_scalar(af_array a, const af_array cond, const double b)
 {
     return CALL(a, cond, b);
 }
diff --git a/src/api/hapi/device.cpp b/src/api/hapi/device.cpp
index ebaa0d6..db59987 100644
--- a/src/api/hapi/device.cpp
+++ b/src/api/hapi/device.cpp
@@ -21,98 +21,98 @@ af_err af_info()
     return CALL_NO_PARAMS();
 }
 
-AFAPI af_err af_init()
+af_err af_init()
 {
     return CALL_NO_PARAMS();
 }
 
-AFAPI af_err af_device_info(char* d_name, char* d_platform, char *d_toolkit, char* d_compute)
+af_err af_device_info(char* d_name, char* d_platform, char *d_toolkit, char* d_compute)
 {
     return CALL(d_name, d_platform, d_toolkit, d_compute);
 }
 
-AFAPI af_err af_get_device_count(int *num_of_devices)
+af_err af_get_device_count(int *num_of_devices)
 {
     return CALL(num_of_devices);
 }
 
-AFAPI af_err af_get_dbl_support(bool* available, const int device)
+af_err af_get_dbl_support(bool* available, const int device)
 {
     return CALL(available, device);
 }
 
-AFAPI af_err af_set_device(const int device)
+af_err af_set_device(const int device)
 {
     return CALL(device);
 }
 
-AFAPI af_err af_get_device(int *device)
+af_err af_get_device(int *device)
 {
     return CALL(device);
 }
 
-AFAPI af_err af_sync(const int device)
+af_err af_sync(const int device)
 {
     return CALL(device);
 }
 
-AFAPI af_err af_alloc_device(void **ptr, const dim_t bytes)
+af_err af_alloc_device(void **ptr, const dim_t bytes)
 {
     return CALL(ptr, bytes);
 }
 
-AFAPI af_err af_alloc_pinned(void **ptr, const dim_t bytes)
+af_err af_alloc_pinned(void **ptr, const dim_t bytes)
 {
     return CALL(ptr, bytes);
 }
 
-AFAPI af_err af_free_device(void *ptr)
+af_err af_free_device(void *ptr)
 {
     return CALL(ptr);
 }
 
-AFAPI af_err af_free_pinned(void *ptr)
+af_err af_free_pinned(void *ptr)
 {
     return CALL(ptr);
 }
 
-AFAPI af_err af_device_array(af_array *arr, const void *data, const unsigned ndims, const dim_t * const dims, const af_dtype type)
+af_err af_device_array(af_array *arr, const void *data, const unsigned ndims, const dim_t * const dims, const af_dtype type)
 {
     return CALL(arr, data, ndims, dims, type);
 }
 
-AFAPI af_err af_device_mem_info(size_t *alloc_bytes, size_t *alloc_buffers,
+af_err af_device_mem_info(size_t *alloc_bytes, size_t *alloc_buffers,
         size_t *lock_bytes, size_t *lock_buffers)
 {
     return CALL(alloc_bytes, alloc_buffers, lock_bytes, lock_buffers);
 }
 
-AFAPI af_err af_device_gc()
+af_err af_device_gc()
 {
     return CALL_NO_PARAMS();
 }
 
-AFAPI af_err af_set_mem_step_size(const size_t step_bytes)
+af_err af_set_mem_step_size(const size_t step_bytes)
 {
     return CALL(step_bytes);
 }
 
-AFAPI af_err af_get_mem_step_size(size_t *step_bytes)
+af_err af_get_mem_step_size(size_t *step_bytes)
 {
     return CALL(step_bytes);
 }
 
-AFAPI af_err af_lock_device_ptr(const af_array arr)
+af_err af_lock_device_ptr(const af_array arr)
 {
     return CALL(arr);
 }
 
-AFAPI af_err af_unlock_device_ptr(const af_array arr)
+af_err af_unlock_device_ptr(const af_array arr)
 {
     return CALL(arr);
 }
 
-AFAPI af_err af_get_device_ptr(void **ptr, const af_array arr)
+af_err af_get_device_ptr(void **ptr, const af_array arr)
 {
     return CALL(ptr, arr);
 }
diff --git a/src/api/hapi/index.cpp b/src/api/hapi/index.cpp
index bdfb3c8..36c671e 100644
--- a/src/api/hapi/index.cpp
+++ b/src/api/hapi/index.cpp
@@ -11,21 +11,21 @@
 #include <af/index.h>
 #include "symbol_manager.hpp"
 
-AFAPI af_err af_index(  af_array *out,
+af_err af_index(  af_array *out,
         const af_array in,
         const unsigned ndims, const af_seq* const index)
 {
     return CALL(out, in, ndims, index);
 }
 
-AFAPI af_err af_lookup( af_array *out,
+af_err af_lookup( af_array *out,
         const af_array in, const af_array indices,
         const unsigned dim)
 {
     return CALL(out, in, indices, dim);
 }
 
-AFAPI af_err af_assign_seq( af_array *out,
+af_err af_assign_seq( af_array *out,
         const af_array lhs,
         const unsigned ndims, const af_seq* const indices,
         const af_array rhs)
@@ -33,14 +33,14 @@ AFAPI af_err af_assign_seq( af_array *out,
     return CALL(out, lhs, ndims, indices, rhs);
 }
 
-AFAPI af_err af_index_gen(  af_array *out,
+af_err af_index_gen(  af_array *out,
         const af_array in,
         const dim_t ndims, const af_index_t* indices)
 {
     return CALL(out, in, ndims, indices);
 }
 
-AFAPI af_err af_assign_gen( af_array *out,
+af_err af_assign_gen( af_array *out,
         const af_array lhs,
         const dim_t ndims, const af_index_t* indices,
         const af_array rhs)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list