Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
b09356c2
Kaydet (Commit)
b09356c2
authored
Kas 19, 2013
tarafından
I-Jui (Ray) Sung
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
GPU Calc: add compile time option for using fmin/fmax intrinsics
Change-Id: I791d6c8f4335ab2c2618529f2e3d22d59c4f0b5a
üst
0e52d87c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
formulagroupcl.cxx
sc/source/core/opencl/formulagroupcl.cxx
+4
-2
formulagroupcl_public.hxx
sc/source/core/opencl/formulagroupcl_public.hxx
+8
-0
No files found.
sc/source/core/opencl/formulagroupcl.cxx
Dosyayı görüntüle @
b09356c2
...
@@ -24,6 +24,8 @@
...
@@ -24,6 +24,8 @@
#include "op_logical.hxx"
#include "op_logical.hxx"
#include "op_statistical.hxx"
#include "op_statistical.hxx"
#include "op_array.hxx"
#include "op_array.hxx"
// Comment out this to turn off FMIN and FMAX intrinsics
#define USE_FMIN_FMAX 1
#include "formulagroupcl_public.hxx"
#include "formulagroupcl_public.hxx"
#include <list>
#include <list>
...
@@ -1038,7 +1040,7 @@ public:
...
@@ -1038,7 +1040,7 @@ public:
virtual
std
::
string
GetBottom
(
void
)
{
return
"MAXFLOAT"
;
}
virtual
std
::
string
GetBottom
(
void
)
{
return
"MAXFLOAT"
;
}
virtual
std
::
string
Gen2
(
const
std
::
string
&
lhs
,
const
std
::
string
&
rhs
)
const
virtual
std
::
string
Gen2
(
const
std
::
string
&
lhs
,
const
std
::
string
&
rhs
)
const
{
{
return
"fmin("
+
lhs
+
","
+
rhs
+
")"
;
return
"
mcw_
fmin("
+
lhs
+
","
+
rhs
+
")"
;
}
}
virtual
std
::
string
BinFuncName
(
void
)
const
{
return
"min"
;
}
virtual
std
::
string
BinFuncName
(
void
)
const
{
return
"min"
;
}
};
};
...
@@ -1048,7 +1050,7 @@ public:
...
@@ -1048,7 +1050,7 @@ public:
virtual
std
::
string
GetBottom
(
void
)
{
return
"-MAXFLOAT"
;
}
virtual
std
::
string
GetBottom
(
void
)
{
return
"-MAXFLOAT"
;
}
virtual
std
::
string
Gen2
(
const
std
::
string
&
lhs
,
const
std
::
string
&
rhs
)
const
virtual
std
::
string
Gen2
(
const
std
::
string
&
lhs
,
const
std
::
string
&
rhs
)
const
{
{
return
"fmax("
+
lhs
+
","
+
rhs
+
")"
;
return
"
mcw_
fmax("
+
lhs
+
","
+
rhs
+
")"
;
}
}
virtual
std
::
string
BinFuncName
(
void
)
const
{
return
"max"
;
}
virtual
std
::
string
BinFuncName
(
void
)
const
{
return
"max"
;
}
};
};
...
...
sc/source/core/opencl/formulagroupcl_public.hxx
Dosyayı görüntüle @
b09356c2
...
@@ -16,6 +16,14 @@ const char* publicFunc =
...
@@ -16,6 +16,14 @@ const char* publicFunc =
"double fsub(double a, double b) { return a-b; }
\n
"
"double fsub(double a, double b) { return a-b; }
\n
"
"double fdiv(double a, double b) { return a/b; }
\n
"
"double fdiv(double a, double b) { return a/b; }
\n
"
"double strequal(unsigned a, unsigned b) { return (a==b)?1.0:0; }
\n
"
"double strequal(unsigned a, unsigned b) { return (a==b)?1.0:0; }
\n
"
#ifdef USE_FMIN_FMAX
"double mcw_fmin(double a, double b) { return fmin(a, b); }
\n
"
"double mcw_fmax(double a, double b) { return fmax(a, b); }
\n
"
#else
"double mcw_fmin(double a, double b) { return a>b?b:a; }
\n
"
"double mcw_fmax(double a, double b) { return a>b?a:b; }
\n
"
#endif
;
;
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment