LMMP
4.3.0
Lamina High-Precision Arithmetic Library
Toggle main menu visibility
载入中...
搜索中...
未找到
lmmp_asm.h
浏览该文件的文档.
1
/**
2
* Copyright (C) 2026 HJimmyK (Jericho Knox)
3
*
4
* This file is part of LMMP.
5
*
6
* LMMP is free software: you can redistribute it and/or modify it
7
* under the terms of the GNU Lesser General Public License as
8
* published by the Free Software Foundation; either version 3 of
9
* the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, see
18
* <https://www.gnu.org/licenses/>.
19
*
20
* SPDX-License-Identifier: LGPL-3.0-or-later
21
*/
22
23
24
#ifndef LMMP_X64_ASM_H
25
#define LMMP_X64_ASM_H
26
27
.intel_syntax noprefix
28
29
#ifdef LMMP_MACOS
30
#define ASM_GSYM(s) _##s
31
#else
32
#define ASM_GSYM(s) s
33
#endif
34
35
#ifdef LMMP_WINDOWS
36
#define rx0 rcx
37
#define rx1 rdx
38
#define rx2 r8
39
#define rx3 r9
40
#define CALL(name) call name
41
#else
42
#define rx0 rdi
43
#define rx1 rsi
44
#define rx2 rdx
45
#define rx3 rcx
46
#ifdef LMMP_MACOS
47
#define CALL(name) call name
48
#else
49
#define CALL(name) call name@PLT
50
#endif
51
#endif
52
53
#endif
/* LMMP_X64_ASM_H */
src
lmmp
lmmpn
arch
x64
lmmp_asm.h
生成于
, 为 LMMP使用
1.18.0