Subversion Repositories tendra.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
$Author: release $
33
$Date: 1998/01/17 15:55:47 $
34
$Revision: 1.1.1.1 $
35
$Log: flpt.h,v $
36
 * Revision 1.1.1.1  1998/01/17  15:55:47  release
37
 * First version to be checked into rolling release.
38
 *
39
 * Revision 1.1  1995/04/06  10:44:05  currie
40
 * Initial revision
41
 *
42
***********************************************************************/
43
#ifndef flpt_key
44
#define flpt_key 1
45
 
46
 
47
 
48
#include "flpttypes.h"
49
 
50
extern  void init_flpt PROTO_S ((void));
51
extern  void more_flpts PROTO_S ((void));
52
extern  flpt new_flpt PROTO_S ((void));
53
extern  void flpt_ret PROTO_S ((flpt f));
54
extern  int cmpflpt PROTO_S ((flpt a, flpt b, int testno));
55
extern  flpt floatrep PROTO_S ((int n));
56
extern  flpt floatrep_unsigned PROTO_S ((unsigned int n));
57
extern  flt * flptnos;
58
 
59
/* floatingpoint functions - are these needed externally??? */
60
extern  void flt_zero PROTO_S ((flt * f));
61
extern  void flt_copy PROTO_S ((flt f, flt * res));
62
extern int  flt_add PROTO_S ((flt f1, flt f2, flt * res));
63
extern int  flt_sub PROTO_S ((flt f1, flt f2, flt * res));
64
extern int  flt_mul PROTO_S ((flt f1, flt f2, flt * res));
65
extern int  flt_div PROTO_S ((flt f1, flt f2, flt * res));
66
extern int  flt_cmp PROTO_S ((flt f1, flt f2));
67
extern  void flt_round PROTO_S ((flt f, flt * res));
68
extern  void flt_trunc PROTO_S ((flt f, flt * res));
69
extern void flpt_newdig PROTO_S ((unsigned int dig, flt * res, int base));
70
extern void flpt_scale PROTO_S ((int decexp, flt * res, int base));
71
extern void flpt_round PROTO_S ((int rdnmd, int pos, flt * res));
72
extern int flpt_bits PROTO_S ((floating_variety fv));
73
extern int flpt_round_to_integer PROTO_S ((int rndmd, flt * f));
74
 
75
#if FBASE != 10
76
extern r2l real2longs_IEEE PROTO_S ((flt * f, int sw));
77
#endif
78
 
79
extern int fzero_no;
80
extern int fone_no;
81
 
82
#endif
83