xref: /aosp_15_r20/external/libffi/src/ia64/ia64_flags.h (revision 1fd5a2e1d639cd1ddf29dd0c484c123bbd850c21)
1*1fd5a2e1SPrashanth Swaminathan /* -----------------------------------------------------------------------
2*1fd5a2e1SPrashanth Swaminathan    ia64_flags.h - Copyright (c) 2000 Hewlett Packard Company
3*1fd5a2e1SPrashanth Swaminathan 
4*1fd5a2e1SPrashanth Swaminathan    IA64/unix Foreign Function Interface
5*1fd5a2e1SPrashanth Swaminathan 
6*1fd5a2e1SPrashanth Swaminathan    Original author: Hans Boehm, HP Labs
7*1fd5a2e1SPrashanth Swaminathan 
8*1fd5a2e1SPrashanth Swaminathan    Permission is hereby granted, free of charge, to any person obtaining
9*1fd5a2e1SPrashanth Swaminathan    a copy of this software and associated documentation files (the
10*1fd5a2e1SPrashanth Swaminathan    ``Software''), to deal in the Software without restriction, including
11*1fd5a2e1SPrashanth Swaminathan    without limitation the rights to use, copy, modify, merge, publish,
12*1fd5a2e1SPrashanth Swaminathan    distribute, sublicense, and/or sell copies of the Software, and to
13*1fd5a2e1SPrashanth Swaminathan    permit persons to whom the Software is furnished to do so, subject to
14*1fd5a2e1SPrashanth Swaminathan    the following conditions:
15*1fd5a2e1SPrashanth Swaminathan 
16*1fd5a2e1SPrashanth Swaminathan    The above copyright notice and this permission notice shall be included
17*1fd5a2e1SPrashanth Swaminathan    in all copies or substantial portions of the Software.
18*1fd5a2e1SPrashanth Swaminathan 
19*1fd5a2e1SPrashanth Swaminathan    THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,
20*1fd5a2e1SPrashanth Swaminathan    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21*1fd5a2e1SPrashanth Swaminathan    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22*1fd5a2e1SPrashanth Swaminathan    NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
23*1fd5a2e1SPrashanth Swaminathan    HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
24*1fd5a2e1SPrashanth Swaminathan    WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25*1fd5a2e1SPrashanth Swaminathan    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26*1fd5a2e1SPrashanth Swaminathan    DEALINGS IN THE SOFTWARE.
27*1fd5a2e1SPrashanth Swaminathan    ----------------------------------------------------------------------- */
28*1fd5a2e1SPrashanth Swaminathan 
29*1fd5a2e1SPrashanth Swaminathan /* "Type" codes used between assembly and C.  When used as a part of
30*1fd5a2e1SPrashanth Swaminathan    a cfi->flags value, the low byte will be these extra type codes,
31*1fd5a2e1SPrashanth Swaminathan    and bits 8-31 will be the actual size of the type.  */
32*1fd5a2e1SPrashanth Swaminathan 
33*1fd5a2e1SPrashanth Swaminathan /* Small structures containing N words in integer registers.  */
34*1fd5a2e1SPrashanth Swaminathan #define FFI_IA64_TYPE_SMALL_STRUCT	(FFI_TYPE_LAST + 1)
35*1fd5a2e1SPrashanth Swaminathan 
36*1fd5a2e1SPrashanth Swaminathan /* Homogeneous Floating Point Aggregates (HFAs) which are returned
37*1fd5a2e1SPrashanth Swaminathan    in FP registers.  */
38*1fd5a2e1SPrashanth Swaminathan #define FFI_IA64_TYPE_HFA_FLOAT		(FFI_TYPE_LAST + 2)
39*1fd5a2e1SPrashanth Swaminathan #define FFI_IA64_TYPE_HFA_DOUBLE	(FFI_TYPE_LAST + 3)
40*1fd5a2e1SPrashanth Swaminathan #define FFI_IA64_TYPE_HFA_LDOUBLE	(FFI_TYPE_LAST + 4)
41