mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Untabify engine_priv.h
git-svn-id: https://svn.eduke32.com/eduke32@6809 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
86a4158b8a
commit
16a72c4530
1 changed files with 32 additions and 32 deletions
|
@ -323,50 +323,50 @@ extern int32_t m32_numdebuglines;
|
||||||
|
|
||||||
static inline void setgotpic(int32_t a)
|
static inline void setgotpic(int32_t a)
|
||||||
{
|
{
|
||||||
_asm {
|
_asm {
|
||||||
push ebx
|
push ebx
|
||||||
mov eax, a
|
mov eax, a
|
||||||
mov ebx, eax
|
mov ebx, eax
|
||||||
cmp byte ptr walock[eax], 200
|
cmp byte ptr walock[eax], 200
|
||||||
jae skipit
|
jae skipit
|
||||||
mov byte ptr walock[eax], 199
|
mov byte ptr walock[eax], 199
|
||||||
skipit:
|
skipit:
|
||||||
shr eax, 3
|
shr eax, 3
|
||||||
and ebx, 7
|
and ebx, 7
|
||||||
mov dl, byte ptr gotpic[eax]
|
mov dl, byte ptr gotpic[eax]
|
||||||
mov bl, byte ptr pow2char[ebx]
|
mov bl, byte ptr pow2char[ebx]
|
||||||
or dl, bl
|
or dl, bl
|
||||||
mov byte ptr gotpic[eax], dl
|
mov byte ptr gotpic[eax], dl
|
||||||
pop ebx
|
pop ebx
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(__GNUC__) && defined(__i386__) && !defined(NOASM) // _MSC_VER
|
#elif defined(__GNUC__) && defined(__i386__) && !defined(NOASM) // _MSC_VER
|
||||||
|
|
||||||
#define setgotpic(a) \
|
#define setgotpic(a) \
|
||||||
({ int32_t __a=(a); \
|
({ int32_t __a=(a); \
|
||||||
__asm__ __volatile__ ( \
|
__asm__ __volatile__ ( \
|
||||||
"movl %%eax, %%ebx\n\t" \
|
"movl %%eax, %%ebx\n\t" \
|
||||||
"cmpb $200, " ASMSYM("walock") "(%%eax)\n\t" \
|
"cmpb $200, " ASMSYM("walock") "(%%eax)\n\t" \
|
||||||
"jae 0f\n\t" \
|
"jae 0f\n\t" \
|
||||||
"movb $199, " ASMSYM("walock") "(%%eax)\n\t" \
|
"movb $199, " ASMSYM("walock") "(%%eax)\n\t" \
|
||||||
"0:\n\t" \
|
"0:\n\t" \
|
||||||
"shrl $3, %%eax\n\t" \
|
"shrl $3, %%eax\n\t" \
|
||||||
"andl $7, %%ebx\n\t" \
|
"andl $7, %%ebx\n\t" \
|
||||||
"movb " ASMSYM("gotpic") "(%%eax), %%dl\n\t" \
|
"movb " ASMSYM("gotpic") "(%%eax), %%dl\n\t" \
|
||||||
"movb " ASMSYM("pow2char") "(%%ebx), %%bl\n\t" \
|
"movb " ASMSYM("pow2char") "(%%ebx), %%bl\n\t" \
|
||||||
"orb %%bl, %%dl\n\t" \
|
"orb %%bl, %%dl\n\t" \
|
||||||
"movb %%dl, " ASMSYM("gotpic") "(%%eax)" \
|
"movb %%dl, " ASMSYM("gotpic") "(%%eax)" \
|
||||||
: "=a" (__a) : "a" (__a) \
|
: "=a" (__a) : "a" (__a) \
|
||||||
: "ebx", "edx", "memory", "cc"); \
|
: "ebx", "edx", "memory", "cc"); \
|
||||||
__a; })
|
__a; })
|
||||||
|
|
||||||
#else // __GNUC__ && __i386__
|
#else // __GNUC__ && __i386__
|
||||||
|
|
||||||
static FORCE_INLINE void setgotpic(int32_t tilenume)
|
static FORCE_INLINE void setgotpic(int32_t tilenume)
|
||||||
{
|
{
|
||||||
if (walock[tilenume] < 200) walock[tilenume] = 199;
|
if (walock[tilenume] < 200) walock[tilenume] = 199;
|
||||||
gotpic[tilenume>>3] |= pow2char[tilenume&7];
|
gotpic[tilenume>>3] |= pow2char[tilenume&7];
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue