remove old files
[rpi-open-firmware.git] / vc4_include / common.h
1 #pragma once
2
3 #include "../lib/stdarg.h"
4
5 typedef unsigned long long u64;
6 typedef unsigned long long uint64_t;
7 typedef long long int64_t;
8
9 typedef unsigned int u32;
10 typedef unsigned int uint32_t;
11 typedef int int32_t;
12
13 typedef unsigned short u16;
14 typedef unsigned short uint16_t;
15 typedef short int16_t;
16
17 typedef unsigned char u8;
18 typedef unsigned char uint8_t;
19
20 typedef int bool;
21
22 #define true 1
23 #define false 0
24
25 #define NULL ((void*)0)
26
27 typedef uint32_t size_t;
28
29 # define ALWAYS_INLINE __attribute__((always_inline)) inline
30
31 #define _OPEN_SOURCE
32
33 extern void udelay(uint32_t time);
34 extern uint32_t __div64_32(uint64_t *n, uint32_t base);
35
36 #include "../lib/panic.h"
37
38 #define do_div __div64_32
39
40 /*
41 * this is done like that because clang likes using __builtin_memcpy
42 * which makes LLC choke in a fabulous way.
43 */
44 extern void *__memcpy(void *_dst, const void *_src, unsigned len);
45 #define bcopy(s,d,l) __memcpy(d,s,l)
46 #define memcpy(d,s,l) __memcpy(d,s,l)
47
48 extern int putchar(int c);
49 extern int vprintf(const char* fmt, va_list arp);
50 extern int printf(const char *fmt, ...);
51 extern int puts(const char* str);
This page took 0.07687 seconds and 4 git commands to generate.