1 --- /dev/null 2006-11-30 17:00:00.000000000 -0700
2 +++ include/avr/builtins.h 2008-12-04 09:44:13.575895200 -0700
4 +/* Copyright (c) 2008 Anatoly Sokolv
7 + Redistribution and use in source and binary forms, with or without
8 + modification, are permitted provided that the following conditions are met:
10 + * Redistributions of source code must retain the above copyright
11 + notice, this list of conditions and the following disclaimer.
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
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.
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. */
40 +#ifndef _AVR_BUILTINS_H_
41 +#define _AVR_BUILTINS_H_
44 +/** \defgroup avr_builtins <avr/builtins.h>: GCC builtins
45 + \code #include <avr/builtins.h> \endcode
47 + This header file declares avr builtins. */
50 + \ingroup avr_builtins
52 + Enables interrupts by setting the global interrupt mask. */
53 +extern void __builtin_avr_sei(void);
56 + \ingroup avr_builtins
58 + Disables all interrupts by clearing the global interrupt mask. */
59 +extern void __builtin_avr_cli(void);
62 + \ingroup avr_builtins
66 +extern void __builtin_avr_sleep(void);
69 + \ingroup avr_builtins
72 +extern void __builtin_avr_wdr(void);
75 + \ingroup avr_builtins
78 +extern unsigned char __builtin_avr_swap(unsigned char __b);
81 + \ingroup avr_builtins
84 +extern unsigned int __builtin_avr_fmul(unsigned char __a, unsigned char __b);
87 + \ingroup avr_builtins
90 +extern int __builtin_avr_fmuls(char __a, char __b);
93 + \ingroup avr_builtins
96 +extern int __builtin_avr_fmulsu(char __a, unsigned char __b);
99 + \ingroup avr_builtins
102 +extern void __builtin_avr_delay_cycles(unsigned long __n);
104 +#endif /* _AVR_BUILTINS_H_ */
105 \ No newline at end of file
106 Index: include/avr/Makefile.am
107 ===================================================================
108 RCS file: /sources/avr-libc/avr-libc/include/avr/Makefile.am,v
109 retrieving revision 1.34.2.8
110 diff -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
114 avrdir = $(prefix)/avr/include/avr