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
d835c0ff
Kaydet (Commit)
d835c0ff
authored
Agu 30, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-Werror,-Wswitch
Change-Id: I4fec831898b65737fe4b81b576891b28a3fb6cba
üst
380c557f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
18 deletions
+11
-18
formulagroupcl.cxx
sc/source/core/opencl/formulagroupcl.cxx
+11
-18
No files found.
sc/source/core/opencl/formulagroupcl.cxx
Dosyayı görüntüle @
d835c0ff
...
...
@@ -218,13 +218,9 @@ bool FormulaGroupInterpreterOpenCL::getPosition(const ScTokenArray& rCode,const
bool
isAllocFormulaOclBuf
=
true
;
for
(
const
formula
::
FormulaToken
*
p
=
rCodePos
->
First
();
p
;
p
=
rCodePos
->
Next
()
)
{
switch
(
p
->
GetType
()
)
if
(
p
->
GetType
()
==
formula
::
svDoubleVectorRef
)
{
case
formula
:
:
svDoubleVectorRef
:
{
nColPosition
++
;
break
;
}
nColPosition
++
;
}
}
int
nPositionSize
=
nColPosition
*
nRowSize
;
...
...
@@ -241,19 +237,16 @@ bool FormulaGroupInterpreterOpenCL::getPosition(const ScTokenArray& rCode,const
int
j
=
0
;
for
(
const
formula
::
FormulaToken
*
p
=
rCodeTemp
->
First
();
p
;
p
=
rCodeTemp
->
Next
()
)
{
switch
(
p
->
GetType
()
)
if
(
p
->
GetType
()
==
formula
::
svDoubleVectorRef
)
{
case
formula
:
:
svDoubleVectorRef
:
{
const
formula
::
DoubleVectorRefToken
*
p2
=
static_cast
<
const
formula
::
DoubleVectorRefToken
*>
(
p
);
size_t
nRowStart
=
p2
->
IsStartFixed
()
?
0
:
i
;
size_t
nRowEnd
=
p2
->
GetRefRowSize
()
-
1
;
if
(
!
p2
->
IsEndFixed
())
nRowEnd
+=
i
;
npOclStartPos
[
j
*
nRowSize
+
i
]
=
nRowStart
;
//record the start position
npOclEndPos
[
j
*
nRowSize
+
i
]
=
nRowEnd
;
//record the end position
j
++
;
}
const
formula
::
DoubleVectorRefToken
*
p2
=
static_cast
<
const
formula
::
DoubleVectorRefToken
*>
(
p
);
size_t
nRowStart
=
p2
->
IsStartFixed
()
?
0
:
i
;
size_t
nRowEnd
=
p2
->
GetRefRowSize
()
-
1
;
if
(
!
p2
->
IsEndFixed
())
nRowEnd
+=
i
;
npOclStartPos
[
j
*
nRowSize
+
i
]
=
nRowStart
;
//record the start position
npOclEndPos
[
j
*
nRowSize
+
i
]
=
nRowEnd
;
//record the end position
j
++
;
}
}
}
...
...
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