FFmpeg
tests
checkasm
ext
include
checkasm
platform
arm.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2025, Niklas Haas
3
* Copyright © 2018, VideoLAN and dav1d authors
4
* Copyright © 2018, Two Orioles, LLC
5
* All rights reserved.
6
*
7
* Redistribution and use in source and binary forms, with or without
8
* modification, are permitted provided that the following conditions are met:
9
*
10
* 1. Redistributions of source code must retain the above copyright notice, this
11
* list of conditions and the following disclaimer.
12
*
13
* 2. Redistributions in binary form must reproduce the above copyright notice,
14
* this list of conditions and the following disclaimer in the documentation
15
* and/or other materials provided with the distribution.
16
*
17
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
21
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
*/
28
29
#ifndef CHECKASM_PLATFORM_ARM_H
30
#define CHECKASM_PLATFORM_ARM_H
31
32
#include "
checkasm/attributes.h
"
33
34
/* Use a dummy argument, to offset the real parameters by 2, not only 1.
35
* This makes sure that potential 8-byte-alignment of parameters is kept
36
* the same even when the extra parameters have been removed. */
37
typedef
void (*
checkasm_checked_call_func
)(
void
*
func
,
int
dummy
, ...);
38
CHECKASM_API
checkasm_checked_call_func
checkasm_checked_call_ptr
(
void
);
39
40
#define checkasm_declare_impl(ret, ...) \
41
ret (*checked_call)(void *, int dummy, __VA_ARGS__, int, int, int, int, int, int, \
42
int, int, int, int, int, int, int, int, int, int) \
43
= (ret (*)(void *, int, __VA_ARGS__, int, int, int, int, int, int, int, int, \
44
int, int, int, int, int, int, int, \
45
int))(void *) checkasm_checked_call_ptr()
46
47
#define checkasm_call_checked(func, ...) \
48
(checkasm_set_signal_handler_state(1), \
49
checked_call(func, 0, __VA_ARGS__, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, \
50
0)); \
51
checkasm_set_signal_handler_state(0)
52
53
/* ARM doesn't benefit from anything more than 16-byte alignment. */
54
#define CHECKASM_ALIGNMENT 16
55
56
#endif
/* CHECKASM_PLATFORM_ARM_H */
func
int(* func)(AVBPrint *dst, const char *in, const char *arg)
Definition:
jacosubdec.c:66
checkasm_checked_call_ptr
CHECKASM_API checkasm_checked_call_func checkasm_checked_call_ptr(void)
dummy
static int dummy
Definition:
ffplay.c:3751
attributes.h
Platform and compiler attribute macros.
checkasm_checked_call_func
void(* checkasm_checked_call_func)(void *func, int dummy,...)
Definition:
arm.h:37
CHECKASM_API
#define CHECKASM_API
Symbol visibility attribute for public API functions.
Definition:
attributes.h:90
Generated on Mon Jun 15 2026 19:23:52 for FFmpeg by
1.8.17