KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
args.h File Reference

Macros for getting argument registers in inline assembly. More...

#include <kos/cdefs.h>

Go to the source code of this file.

Macros

#define KOS_SH4_SINGLE_ONLY   0
 
#define __KOS_FPARG_0_1   "fr4"
 
#define __KOS_FPARG_0_0   "fr5"
 
#define __KOS_FPARG_1_1   "fr5"
 
#define __KOS_FPARG_1_0   "fr4"
 
#define __KOS_FPARG_2_1   "fr6"
 
#define __KOS_FPARG_2_0   "fr7"
 
#define __KOS_FPARG_3_1   "fr7"
 
#define __KOS_FPARG_3_0   "fr6"
 
#define __KOS_FPARG_4_1   "fr8"
 
#define __KOS_FPARG_4_0   "fr9"
 
#define __KOS_FPARG_5_1   "fr9"
 
#define __KOS_FPARG_5_0   "fr8"
 
#define __KOS_FPARG_6_1   "fr10"
 
#define __KOS_FPARG_6_0   "fr11"
 
#define __KOS_FPARG_7_1   "fr11"
 
#define __KOS_FPARG_7_0   "fr10"
 
#define __KOS_FPARG(n, single)
 
#define _KOS_FPARG(n, single)
 
#define KOS_FPARG(n)
 Get the name of the nth floating-point argument register.
 

Detailed Description

Macros for getting argument registers in inline assembly.

This file contains the KOS_FPARG(n) macro, which resolves to the register name that corresponds to the nth floating-point argument of a function.

Author
Paul Cercueil

Macro Definition Documentation

◆ __KOS_FPARG

#define __KOS_FPARG ( n,
single )
Value:
__KOS_FPARG_##n##_##single

◆ __KOS_FPARG_0_0

#define __KOS_FPARG_0_0   "fr5"

◆ __KOS_FPARG_0_1

#define __KOS_FPARG_0_1   "fr4"

◆ __KOS_FPARG_1_0

#define __KOS_FPARG_1_0   "fr4"

◆ __KOS_FPARG_1_1

#define __KOS_FPARG_1_1   "fr5"

◆ __KOS_FPARG_2_0

#define __KOS_FPARG_2_0   "fr7"

◆ __KOS_FPARG_2_1

#define __KOS_FPARG_2_1   "fr6"

◆ __KOS_FPARG_3_0

#define __KOS_FPARG_3_0   "fr6"

◆ __KOS_FPARG_3_1

#define __KOS_FPARG_3_1   "fr7"

◆ __KOS_FPARG_4_0

#define __KOS_FPARG_4_0   "fr9"

◆ __KOS_FPARG_4_1

#define __KOS_FPARG_4_1   "fr8"

◆ __KOS_FPARG_5_0

#define __KOS_FPARG_5_0   "fr8"

◆ __KOS_FPARG_5_1

#define __KOS_FPARG_5_1   "fr9"

◆ __KOS_FPARG_6_0

#define __KOS_FPARG_6_0   "fr11"

◆ __KOS_FPARG_6_1

#define __KOS_FPARG_6_1   "fr10"

◆ __KOS_FPARG_7_0

#define __KOS_FPARG_7_0   "fr10"

◆ __KOS_FPARG_7_1

#define __KOS_FPARG_7_1   "fr11"

◆ _KOS_FPARG

#define _KOS_FPARG ( n,
single )
Value:
__KOS_FPARG(n,single)
#define __KOS_FPARG(n, single)
Definition args.h:46

◆ KOS_FPARG

#define KOS_FPARG ( n)
Value:
#define KOS_SH4_SINGLE_ONLY
Definition args.h:26
#define _KOS_FPARG(n, single)
Definition args.h:47

Get the name of the nth floating-point argument register.

This macro resolves to the register name that corresponds to the nth floating-point argument of a function (starting from n=0).

◆ KOS_SH4_SINGLE_ONLY

#define KOS_SH4_SINGLE_ONLY   0