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
efd750d8
Kaydet (Commit)
efd750d8
authored
Ara 05, 2011
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lp#726529: inline arm assembler is obsolete by now
üst
fe05a4b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
45 deletions
+0
-45
interlck.c
sal/osl/unx/interlck.c
+0
-45
No files found.
sal/osl/unx/interlck.c
Dosyayı görüntüle @
efd750d8
...
...
@@ -37,51 +37,6 @@
#error please use asm/interlck_sparc.s
#elif defined ( SOLARIS) && defined ( X86 )
#error please use asm/interlck_x86.s
#elif defined ( ARM ) && (( __GNUC__ < 4 ) || (( __GNUC__ == 4) && ( __GNUC_MINOR__ < 6 ))) && ( __ARM_ARCH__ >= 6)
// assembler implementation for gcc <4.6 on arm
// originally contributed by Eric Bachard / OOo4Kids
// replaced with the asm code generated by Linaro gcc 4.5
// which includes memory barriers to make it SMP-safe
// #i117017# and lp#726529
oslInterlockedCount
SAL_CALL
osl_incrementInterlockedCount
(
oslInterlockedCount
*
pCount
)
{
register
oslInterlockedCount
nCount
__asm__
(
"r1"
);
int
nResult
;
__asm__
__volatile__
(
" dmb
\n
"
"1: ldrex %0, [%3]
\n
"
" add %0, %0, #1
\n
"
" strex %1, %0, [%3]
\n
"
" teq %1, #0
\n
"
" bne 1b
\n
"
" dmb
\n
"
:
"=&r"
(
nCount
),
"=&r"
(
nResult
),
"=m"
(
*
pCount
)
:
"r"
(
pCount
)
:
"memory"
);
return
nCount
;
}
oslInterlockedCount
SAL_CALL
osl_decrementInterlockedCount
(
oslInterlockedCount
*
pCount
)
{
register
oslInterlockedCount
nCount
__asm__
(
"r1"
);
int
nResult
;
__asm__
__volatile__
(
" dmb
\n
"
"0: ldrex %0, [%3]
\n
"
" sub %0, %0, #1
\n
"
" strex %1, %0, [%3]
\n
"
" teq %1, #0
\n
"
" bne 0b
\n
"
" dmb
\n
"
:
"=&r"
(
nCount
),
"=&r"
(
nResult
),
"=m"
(
*
pCount
)
:
"r"
(
pCount
)
:
"memory"
);
return
nCount
;
}
#elif defined ( GCC ) && ( defined ( X86 ) || defined ( X86_64 ) )
/* That's possible on x86-64 too since oslInterlockedCount is a sal_Int32 */
...
...
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