/[eiffelstudio]/FreeELKS/trunk/library/kernel/integer_64.e
ViewVC logotype

Contents of /FreeELKS/trunk/library/kernel/integer_64.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 91477 - (show annotations)
Sun Jan 14 09:47:13 2007 UTC (13 years ago) by ericb
File size: 4124 byte(s)
Synchronized with ISE 6.0.65740
1 indexing
2 description: "Integer values coded on 64 bits"
3 external_name: "System.Int64"
4 assembly: "mscorlib"
5 library: "Free implementation of ELKS library"
6 copyright: "Copyright (c) 1986-2005, Eiffel Software and others"
7 license: "Eiffel Forum License v2 (see forum.txt)"
8 date: "$Date$"
9 revision: "$Revision$"
10
11 frozen expanded class INTEGER_64
12
13 inherit
14 INTEGER_64_REF
15 redefine
16 infix "<",
17 infix "+",
18 infix "-",
19 infix "*",
20 infix "/",
21 prefix "+",
22 prefix "-",
23 infix "//",
24 infix "\\",
25 infix "^",
26 as_natural_8,
27 as_natural_16,
28 as_natural_32,
29 as_natural_64,
30 as_integer_8,
31 as_integer_16,
32 as_integer_32,
33 as_integer_64,
34 to_real,
35 to_double,
36 to_character_8,
37 to_character_32,
38 bit_and,
39 bit_or,
40 bit_xor,
41 bit_not,
42 bit_shift_left,
43 bit_shift_right
44 end
45
46 create
47 default_create,
48 make_from_reference
49
50 convert
51 make_from_reference ({INTEGER_64_REF}),
52 to_real: {REAL},
53 to_double: {DOUBLE}
54
55 feature -- Comparison
56
57 infix "<" (other: like Current): BOOLEAN is
58 -- Is current integer less than `other'?
59 external
60 "built_in"
61 end
62
63 feature -- Basic operations
64
65 infix "+" (other: like Current): like Current is
66 -- Sum with `other'
67 external
68 "built_in"
69 end
70
71 infix "-" (other: like Current): like Current is
72 -- Result of subtracting `other'
73 external
74 "built_in"
75 end
76
77 infix "*" (other: like Current): like Current is
78 -- Product by `other'
79 external
80 "built_in"
81 end
82
83 infix "/" (other: like Current): DOUBLE is
84 -- Division by `other'
85 external
86 "built_in"
87 end
88
89 prefix "+": like Current is
90 -- Unary plus
91 external
92 "built_in"
93 end
94
95 prefix "-": like Current is
96 -- Unary minus
97 external
98 "built_in"
99 end
100
101 infix "//" (other: like Current): like Current is
102 -- Integer division of Current by `other'
103 external
104 "built_in"
105 end
106
107 infix "\\" (other: like Current): like Current is
108 -- Remainder of the integer division of Current by `other'
109 external
110 "built_in"
111 end
112
113 infix "^" (other: DOUBLE): DOUBLE is
114 -- Integer power of Current by `other'
115 external
116 "built_in"
117 end
118
119 feature -- Conversion
120
121 as_natural_8: NATURAL_8 is
122 -- Convert `item' into an NATURAL_8 value.
123 external
124 "built_in"
125 end
126
127 as_natural_16: NATURAL_16 is
128 -- Convert `item' into an NATURAL_16 value.
129 external
130 "built_in"
131 end
132
133 as_natural_32: NATURAL_32 is
134 -- Convert `item' into an NATURAL_32 value.
135 external
136 "built_in"
137 end
138
139 as_natural_64: NATURAL_64 is
140 -- Convert `item' into an NATURAL_64 value.
141 external
142 "built_in"
143 end
144
145 as_integer_8: INTEGER_8 is
146 -- Convert `item' into an INTEGER_8 value.
147 external
148 "built_in"
149 end
150
151 as_integer_16: INTEGER_16 is
152 -- Convert `item' into an INTEGER_16 value.
153 external
154 "built_in"
155 end
156
157 as_integer_32: INTEGER is
158 -- Convert `item' into an INTEGER_32 value.
159 external
160 "built_in"
161 end
162
163 as_integer_64: INTEGER_64 is
164 -- Convert `item' into an INTEGER_64 value.
165 external
166 "built_in"
167 end
168
169 to_real: REAL is
170 -- Convert `item' into a REAL
171 external
172 "built_in"
173 end
174
175 to_double: DOUBLE is
176 -- Convert `item' into a DOUBLE
177 external
178 "built_in"
179 end
180
181 to_character_8: CHARACTER_8 is
182 -- Associated character in 8 bit version.
183 external
184 "built_in"
185 end
186
187 to_character_32: CHARACTER_32 is
188 -- Associated character in 32 bit version.
189 external
190 "built_in"
191 end
192
193 feature -- Bit operations
194
195 bit_and (i: like Current): like Current is
196 -- Bitwise and between Current' and `i'.
197 external
198 "built_in"
199 end
200
201 bit_or (i: like Current): like Current is
202 -- Bitwise or between Current' and `i'.
203 external
204 "built_in"
205 end
206
207 bit_xor (i: like Current): like Current is
208 -- Bitwise xor between Current' and `i'.
209 external
210 "built_in"
211 end
212
213 bit_not: like Current is
214 -- One's complement of Current.
215 external
216 "built_in"
217 end
218
219 bit_shift_left (n: INTEGER): like Current is
220 -- Shift Current from `n' position to left.
221 external
222 "built_in"
223 end
224
225 bit_shift_right (n: INTEGER): like Current is
226 -- Shift Current from `n' position to right.
227 external
228 "built_in"
229 end
230
231 end

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23