]> git.pld-linux.org Git - packages/crossavr-libc.git/blame - crossavr-libc-builtins.patch
- cleanup, use arch*dir macros, release 5 (x32 rebuild)
[packages/crossavr-libc.git] / crossavr-libc-builtins.patch
CommitLineData
ea009d2e 1--- /dev/null 2006-11-30 17:00:00.000000000 -0700
2+++ include/avr/builtins.h 2008-12-04 09:44:13.575895200 -0700
3@@ -0,0 +1,101 @@
4+/* Copyright (c) 2008 Anatoly Sokolv
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+ * Redistributions of source code must retain the above copyright
11+ notice, this list of conditions and the following disclaimer.
12+
13+ * Redistributions in binary form must reproduce the above copyright
14+ notice, this list of conditions and the following disclaimer in
15+ the documentation and/or other materials provided with the
16+ distribution.
17+
18+ * Neither the name of the copyright holders nor the names of
19+ contributors may be used to endorse or promote products derived
20+ from this software without specific prior written permission.
21+
22+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32+ POSSIBILITY OF SUCH DAMAGE. */
33+
34+/* $Id$ */
35+
36+/*
37+ avr/builtins.h -
38+ */
39+
40+#ifndef _AVR_BUILTINS_H_
41+#define _AVR_BUILTINS_H_
42+
43+/** \file */
44+/** \defgroup avr_builtins <avr/builtins.h>: GCC builtins
45+ \code #include <avr/builtins.h> \endcode
46+
47+ This header file declares avr builtins. */
48+
49+/**
50+ \ingroup avr_builtins
51+
52+ Enables interrupts by setting the global interrupt mask. */
53+extern void __builtin_avr_sei(void);
54+
55+/**
56+ \ingroup avr_builtins
57+
58+ Disables all interrupts by clearing the global interrupt mask. */
59+extern void __builtin_avr_cli(void);
60+
61+/**
62+ \ingroup avr_builtins
63+
64+ TODO. */
65+
66+extern void __builtin_avr_sleep(void);
67+
68+/**
69+ \ingroup avr_builtins
70+
71+ TODO. */
72+extern void __builtin_avr_wdr(void);
73+
74+/**
75+ \ingroup avr_builtins
76+
77+ TODO. */
78+extern unsigned char __builtin_avr_swap(unsigned char __b);
79+
80+/**
81+ \ingroup avr_builtins
82+
83+ TODO. */
84+extern unsigned int __builtin_avr_fmul(unsigned char __a, unsigned char __b);
85+
86+/**
87+ \ingroup avr_builtins
88+
89+ TODO. */
90+extern int __builtin_avr_fmuls(char __a, char __b);
91+
92+/**
93+ \ingroup avr_builtins
94+
95+ TODO. */
96+extern int __builtin_avr_fmulsu(char __a, unsigned char __b);
97+
98+/**
99+ \ingroup avr_builtins
100+
101+ TODO. */
102+extern void __builtin_avr_delay_cycles(unsigned long __n);
103+
104+#endif /* _AVR_BUILTINS_H_ */
105\ No newline at end of file
106Index: include/avr/Makefile.am
107===================================================================
108RCS file: /sources/avr-libc/avr-libc/include/avr/Makefile.am,v
109retrieving revision 1.34.2.8
110diff -u -p -r1.34.2.8 Makefile.am
111--- include/avr/Makefile.am 3 Nov 2008 04:13:14 -0000 1.34.2.8
112+++ include/avr/Makefile.am 4 Dec 2008 16:50:28 -0000
113@@ -32,6 +32,7 @@
114 avrdir = $(prefix)/avr/include/avr
115 avr_HEADERS = \
116 boot.h \
117+ builtins.h \
118 common.h \
119 crc16.h \
120 delay.h \
This page took 0.061121 seconds and 4 git commands to generate.