FFmpeg
Loading...
Searching...
No Matches
loongarch.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_LOONGARCH_H
30#define CHECKASM_PLATFORM_LOONGARCH_H
31
32#include "checkasm/attributes.h"
33
35
36#define checkasm_declare_impl(ret, ...) \
37 ret (*checked_call)(void *, int, int, int, int, int, int, int, __VA_ARGS__, int, \
38 int, int, int, int, int, int, int, int, int, int, int, int, int, \
39 int, int) \
40 = (ret (*)(void *, int, int, int, int, int, int, int, __VA_ARGS__, int, int, \
41 int, int, int, int, int, int, int, int, int, int, int, int, int, \
42 int))(void *) checkasm_checked_call
43
44#define checkasm_call_checked(func, ...) \
45 (checkasm_set_signal_handler_state(1), \
46 checked_call(func, 0, 0, 0, 0, 0, 0, 0, __VA_ARGS__, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, \
47 0, 0, 0, 0, 0, 0)); \
48 checkasm_set_signal_handler_state(0)
49
50#define CHECKASM_ALIGNMENT 16
51
52#endif /* CHECKASM_PLATFORM_LOONGARCH_H */
int(* func)(AVBPrint *dst, const char *in, const char *arg)
Definition jacosubdec.c:66
CHECKASM_API void checkasm_checked_call(void *func,...)
Platform and compiler attribute macros.
#define CHECKASM_API
Symbol visibility attribute for public API functions.
Definition attributes.h:90