Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6eac78

Browse files
committed
Prefix ALIGN_DOWN macro with FFI_
1 parent 980908b commit e6eac78

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

include/ffi_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void ffi_type_test(ffi_type *a, char *file, int line);
7777
/* v cast to size_t and aligned up to a multiple of a */
7878
#define FFI_ALIGN(v, a) (((((size_t) (v))-1) | ((a)-1))+1)
7979
/* v cast to size_t and aligned down to a multiple of a */
80-
#define ALIGN_DOWN(v, a) (((size_t) (v)) & -a)
80+
#define FFI_ALIGN_DOWN(v, a) (((size_t) (v)) & -a)
8181

8282
/* Perform machine dependent cif processing */
8383
ffi_status ffi_prep_cif_machdep(ffi_cif *cif);

src/frv/ffi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ void *ffi_prep_args(char *stack, extended_cif *ecif)
107107
count += z;
108108
}
109109

110-
return (stack + ((count > 24) ? 24 : ALIGN_DOWN(count, 8)));
110+
return (stack + ((count > 24) ? 24 : FFI_ALIGN_DOWN(count, 8)));
111111
}
112112

113113
/* Perform machine dependent cif processing */

src/metag/ffi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ unsigned int ffi_prep_args(char *stack, extended_cif *ecif)
6161
argp -= z;
6262

6363
/* Align if necessary */
64-
argp = (char *) ALIGN_DOWN(ALIGN_DOWN(argp, (*p_arg)->alignment), 4);
64+
argp = (char *) FFI_ALIGN_DOWN(FFI_ALIGN_DOWN(argp, (*p_arg)->alignment), 4);
6565

6666
if (z < sizeof(int)) {
6767
z = sizeof(int);

src/moxie/ffi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ void *ffi_prep_args(char *stack, extended_cif *ecif)
100100
count += z;
101101
}
102102

103-
return (stack + ((count > 24) ? 24 : ALIGN_DOWN(count, 8)));
103+
return (stack + ((count > 24) ? 24 : FFI_ALIGN_DOWN(count, 8)));
104104
}
105105

106106
/* Perform machine dependent cif processing */

0 commit comments

Comments
 (0)