[arrayfire] 45/248: Removed AFAPI attribute declaration where no needed for func definitions

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Nov 17 15:53:53 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 aa5b8ae95802a74047cc854b5d3adca089ff1c07
Author: Pradeep <pradeep at arrayfire.com>
Date:   Tue Sep 8 11:15:15 2015 -0400

    Removed AFAPI attribute declaration where no needed for func definitions
---
 src/api/cpp/median.cpp | 2 +-
 src/api/cpp/seq.cpp    | 4 ++--
 src/api/cpp/timing.cpp | 8 ++++----
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/api/cpp/median.cpp b/src/api/cpp/median.cpp
index 0528b5b..2d6d878 100644
--- a/src/api/cpp/median.cpp
+++ b/src/api/cpp/median.cpp
@@ -32,7 +32,7 @@ INSTANTIATE_MEDIAN(unsigned char);
 
 #undef INSTANTIATE_MEDIAN
 
-AFAPI array median(const array& in, const dim_t dim)
+array median(const array& in, const dim_t dim)
 {
     af_array temp = 0;
     AF_THROW(af_median(&temp, in.get(), getFNSD(dim, in.dims())));
diff --git a/src/api/cpp/seq.cpp b/src/api/cpp/seq.cpp
index d143356..3e2b486 100644
--- a/src/api/cpp/seq.cpp
+++ b/src/api/cpp/seq.cpp
@@ -15,8 +15,8 @@
 namespace af
 {
 
-AFAPI int end = -1;
-AFAPI seq span(af_span);
+int end = -1;
+seq span(af_span);
 
 void seq::init(double begin, double end, double step)
 {
diff --git a/src/api/cpp/timing.cpp b/src/api/cpp/timing.cpp
index f530ba7..2758021 100644
--- a/src/api/cpp/timing.cpp
+++ b/src/api/cpp/timing.cpp
@@ -67,20 +67,20 @@ namespace af {
 
 static timer _timer_;
 
-AFAPI timer timer::start()
+timer timer::start()
 {
     return _timer_ = time_now();
 }
-AFAPI double timer::stop(timer start)
+double timer::stop(timer start)
 {
     return time_seconds(start, time_now());
 }
-AFAPI double timer::stop()
+double timer::stop()
 {
     return time_seconds(_timer_, time_now());
 }
 
-AFAPI double timeit(void(*fn)())
+double timeit(void(*fn)())
 {
     // parameters
     int sample_trials = 3;

-- 
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