Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
d5a7d08f
Commit
d5a7d08f
authored
Oct 13, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add a define to enable fastcall wrappers, similar to the thiscall one.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
84bfdccf
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
8 deletions
+9
-8
hal.c
dlls/hal/hal.c
+3
-3
pnp.c
dlls/hidclass.sys/pnp.c
+1
-1
main.c
dlls/winebus.sys/main.c
+1
-1
wineusb.c
dlls/wineusb.sys/wineusb.c
+1
-1
main.c
dlls/winexinput.sys/main.c
+1
-1
asm.h
include/wine/asm.h
+2
-1
No files found.
dlls/hal/hal.c
View file @
d5a7d08f
...
...
@@ -34,7 +34,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ntoskrnl);
#ifdef __i386__
#if
ndef _WIN32
#if
def __ASM_USE_FASTCALL_WRAPPER
extern
void
*
WINAPI
wrap_fastcall_func1
(
void
*
func
,
const
void
*
a
);
__ASM_STDCALL_FUNC
(
wrap_fastcall_func1
,
8
,
...
...
@@ -53,12 +53,12 @@ __ASM_STDCALL_FUNC( wrap_fastcall_func2, 12,
#define call_fastcall_func1(func,a) wrap_fastcall_func1(func,a)
#define call_fastcall_func2(func,a,b) wrap_fastcall_func2(func,a,b)
#else
/* _
WIN32
*/
#else
/* _
_ASM_USE_FASTCALL_WRAPPER
*/
#define call_fastcall_func1(func,a) func(a)
#define call_fastcall_func2(func,a,b) func(a,b)
#endif
/* _
WIN32
*/
#endif
/* _
_ASM_USE_FASTCALL_WRAPPER
*/
DEFINE_FASTCALL1_WRAPPER
(
ExAcquireFastMutex
)
void
FASTCALL
ExAcquireFastMutex
(
FAST_MUTEX
*
mutex
)
...
...
dlls/hidclass.sys/pnp.c
View file @
d5a7d08f
...
...
@@ -40,7 +40,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(hid);
DEFINE_DEVPROPKEY
(
DEVPROPKEY_HID_HANDLE
,
0xbc62e415
,
0xf4fe
,
0x405c
,
0x8e
,
0xda
,
0x63
,
0x6f
,
0xb5
,
0x9f
,
0x08
,
0x98
,
2
);
DEFINE_GUID
(
GUID_DEVINTERFACE_WINEXINPUT
,
0x6c53d5fd
,
0x6480
,
0x440f
,
0xb6
,
0x18
,
0x47
,
0x67
,
0x50
,
0xc5
,
0xe1
,
0xa6
);
#if
defined(__i386__) && !defined(_WIN32)
#if
def __ASM_USE_FASTCALL_WRAPPER
extern
void
*
WINAPI
wrap_fastcall_func1
(
void
*
func
,
const
void
*
a
);
__ASM_STDCALL_FUNC
(
wrap_fastcall_func1
,
8
,
...
...
dlls/winebus.sys/main.c
View file @
d5a7d08f
...
...
@@ -343,7 +343,7 @@ static void bus_unlink_hid_device(DEVICE_OBJECT *device)
RtlLeaveCriticalSection
(
&
device_list_cs
);
}
#if
defined(__i386__) && !defined(_WIN32)
#if
def __ASM_USE_FASTCALL_WRAPPER
extern
void
*
WINAPI
wrap_fastcall_func1
(
void
*
func
,
const
void
*
a
);
__ASM_STDCALL_FUNC
(
wrap_fastcall_func1
,
8
,
"popl %ecx
\n\t
"
...
...
dlls/wineusb.sys/wineusb.c
View file @
d5a7d08f
...
...
@@ -38,7 +38,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
wineusb
);
#if
defined(__i386__) && !defined(_WIN32)
#if
def __ASM_USE_FASTCALL_WRAPPER
extern
void
*
WINAPI
wrap_fastcall_func1
(
void
*
func
,
const
void
*
a
);
__ASM_STDCALL_FUNC
(
wrap_fastcall_func1
,
8
,
...
...
dlls/winexinput.sys/main.c
View file @
d5a7d08f
...
...
@@ -39,7 +39,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
winexinput
);
#if
defined(__i386__) && !defined(_WIN32)
#if
def __ASM_USE_FASTCALL_WRAPPER
extern
void
*
WINAPI
wrap_fastcall_func1
(
void
*
func
,
const
void
*
a
);
__ASM_STDCALL_FUNC
(
wrap_fastcall_func1
,
8
,
"popl %ecx
\n\t
"
...
...
include/wine/asm.h
View file @
d5a7d08f
...
...
@@ -119,6 +119,7 @@
#if defined(__i386__) && !defined(_WIN32)
# define __ASM_USE_FASTCALL_WRAPPER
# define DEFINE_FASTCALL1_WRAPPER(func) \
__ASM_FASTCALL_FUNC( func, 4, \
"popl %eax\n\t" \
...
...
@@ -144,7 +145,7 @@
#if defined(__i386__) && !defined(__MINGW32__) && (!defined(_MSC_VER) || !defined(__clang__))
#define __ASM_USE_THISCALL_WRAPPER
#
define __ASM_USE_THISCALL_WRAPPER
# ifdef _MSC_VER
# define DEFINE_THISCALL_WRAPPER(func,args) \
__declspec(naked) void __thiscall_##func(void) \
...
...
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