2 |
7u83 |
1 |
/*
|
|
|
2 |
Crown Copyright (c) 1997
|
|
|
3 |
|
|
|
4 |
This TenDRA(r) Computer Program is subject to Copyright
|
|
|
5 |
owned by the United Kingdom Secretary of State for Defence
|
|
|
6 |
acting through the Defence Evaluation and Research Agency
|
|
|
7 |
(DERA). It is made available to Recipients with a
|
|
|
8 |
royalty-free licence for its use, reproduction, transfer
|
|
|
9 |
to other parties and amendment for any purpose not excluding
|
|
|
10 |
product development provided that any such use et cetera
|
|
|
11 |
shall be deemed to be acceptance of the following conditions:-
|
|
|
12 |
|
|
|
13 |
(1) Its Recipients shall ensure that this Notice is
|
|
|
14 |
reproduced upon any copies or amended versions of it;
|
|
|
15 |
|
|
|
16 |
(2) Any amended version of it shall be clearly marked to
|
|
|
17 |
show both the nature of and the organisation responsible
|
|
|
18 |
for the relevant amendment or amendments;
|
|
|
19 |
|
|
|
20 |
(3) Its onward transfer from a recipient to another
|
|
|
21 |
party shall be deemed to be that party's acceptance of
|
|
|
22 |
these conditions;
|
|
|
23 |
|
|
|
24 |
(4) DERA gives no warranty or assurance as to its
|
|
|
25 |
quality or suitability for any purpose and DERA accepts
|
|
|
26 |
no liability whatsoever in relation to any use to which
|
|
|
27 |
it may be put.
|
|
|
28 |
*/
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
/*
|
|
|
34 |
VERSION INFORMATION
|
|
|
35 |
===================
|
|
|
36 |
|
|
|
37 |
--------------------------------------------------------------------------
|
|
|
38 |
$Header: /u/g/release/CVSROOT/Source/src/installers/sparc/common/machine.c,v 1.1.1.1 1998/01/17 15:55:54 release Exp $
|
|
|
39 |
--------------------------------------------------------------------------
|
|
|
40 |
$Log: machine.c,v $
|
|
|
41 |
* Revision 1.1.1.1 1998/01/17 15:55:54 release
|
|
|
42 |
* First version to be checked into rolling release.
|
|
|
43 |
*
|
|
|
44 |
* Revision 1.1.1.1 1995/03/13 10:18:42 john
|
|
|
45 |
* Entered into CVS
|
|
|
46 |
*
|
|
|
47 |
* Revision 1.2 1994/07/07 16:11:33 djch
|
|
|
48 |
* Jul94 tape
|
|
|
49 |
*
|
|
|
50 |
* Revision 1.2 1994/07/07 16:11:33 djch
|
|
|
51 |
* Jul94 tape
|
|
|
52 |
*
|
|
|
53 |
* Revision 1.1 1994/05/03 14:49:42 djch
|
|
|
54 |
* Initial revision
|
|
|
55 |
*
|
|
|
56 |
* Revision 1.5 94/02/21 16:11:33 16:11:33 ra (Robert Andrews)
|
|
|
57 |
* reg_result now returns an int, not a bool.
|
|
|
58 |
*
|
|
|
59 |
* Revision 1.4 93/09/27 14:47:18 14:47:18 ra (Robert Andrews)
|
|
|
60 |
* Long double procedure return values are not passed in registers.
|
|
|
61 |
*
|
|
|
62 |
* Revision 1.3 93/08/27 11:29:57 11:29:57 ra (Robert Andrews)
|
|
|
63 |
* Added a couple of explicit integer casts. Removed definitions of
|
|
|
64 |
* local_prefix and name_prefix (they are duplicated in sparctrans.c).
|
|
|
65 |
*
|
|
|
66 |
* Revision 1.2 93/06/29 14:27:38 14:27:38 ra (Robert Andrews)
|
|
|
67 |
* Need to include regable.h.
|
|
|
68 |
*
|
|
|
69 |
* Revision 1.1 93/06/24 14:58:39 14:58:39 ra (Robert Andrews)
|
|
|
70 |
* Initial revision
|
|
|
71 |
*
|
|
|
72 |
--------------------------------------------------------------------------
|
|
|
73 |
*/
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
#define SPARCTRANS_CODE
|
|
|
77 |
#include "config.h"
|
|
|
78 |
#include "common_types.h"
|
|
|
79 |
#include "expmacs.h"
|
|
|
80 |
#include "shapemacs.h"
|
|
|
81 |
#include "regable.h"
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
/*
|
|
|
85 |
DOES A PROCEDURE RETURN THE GIVEN SHAPE IN A REGISTER?
|
|
|
86 |
*/
|
|
|
87 |
|
|
|
88 |
int reg_result
|
|
|
89 |
PROTO_N ( ( sha ) )
|
|
|
90 |
PROTO_T ( shape sha )
|
|
|
91 |
{
|
|
|
92 |
if ( valregable ( sha ) ) return ( 1 ) ;
|
|
|
93 |
if ( is_floating ( name ( sha ) ) ) {
|
|
|
94 |
#if use_long_double
|
|
|
95 |
if ( shape_size ( sha ) > 64 ) return ( 0 ) ;
|
|
|
96 |
#endif
|
|
|
97 |
return ( 1 ) ;
|
|
|
98 |
}
|
|
|
99 |
return ( 0 ) ;
|
|
|
100 |
}
|