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

Contents of /FreeELKS/trunk/library/kernel/natural_32.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: 4141 byte(s)
Synchronized with ISE 6.0.65740
1 indexing
2 description: "Unsigned integer values coded on 32 bits."
3 external_name: "System.UInt32"
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 NATURAL_32 inherit
12
13 NATURAL_32_REF
14 redefine
15 infix "<",
16 infix "+",
17 infix "-",
18 infix "*",
19 infix "/",
20 prefix "+",
21 infix "//",
22 infix "\\",
23 infix "^",
24 as_natural_8,
25 as_natural_16,
26 as_natural_32,
27 as_natural_64,
28 as_integer_8,
29 as_integer_16,
30 as_integer_32,
31 as_integer_64,
32 to_real_32,
33 to_real_64,
34 to_character_8,
35 to_character_32,
36 bit_and,
37 bit_or,
38 bit_xor,
39 bit_not,
40 bit_shift_left,
41 bit_shift_right
42 end
43
44 create
45 default_create,
46 make_from_reference
47
48 convert
49 make_from_reference ({NATURAL_32_REF}),
50 to_real_32: {REAL},
51 to_real_64: {DOUBLE},
52 to_integer_64: {INTEGER_64},
53 to_natural_64: {NATURAL_64}
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 infix "//" (other: like Current): like Current is
96 -- Integer division of Current by `other'
97 external
98 "built_in"
99 end
100
101 infix "\\" (other: like Current): like Current is
102 -- Remainder of the integer division of Current by `other'
103 external
104 "built_in"
105 end
106
107 infix "^" (other: DOUBLE): DOUBLE is
108 -- Integer power of Current by `other'
109 external
110 "built_in"
111 end
112
113 feature -- Conversion
114
115 as_natural_8: NATURAL_8 is
116 -- Convert `item' into an NATURAL_8 value.
117 external
118 "built_in"
119 end
120
121 as_natural_16: NATURAL_16 is
122 -- Convert `item' into an NATURAL_16 value.
123 external
124 "built_in"
125 end
126
127 as_natural_32: NATURAL_32 is
128 -- Convert `item' into an NATURAL_32 value.
129 external
130 "built_in"
131 end
132
133 as_natural_64: NATURAL_64 is
134 -- Convert `item' into an NATURAL_64 value.
135 external
136 "built_in"
137 end
138
139 as_integer_8: INTEGER_8 is
140 -- Convert `item' into an INTEGER_8 value.
141 external
142 "built_in"
143 end
144
145 as_integer_16: INTEGER_16 is
146 -- Convert `item' into an INTEGER_16 value.
147 external
148 "built_in"
149 end
150
151 as_integer_32: INTEGER is
152 -- Convert `item' into an INTEGER_32 value.
153 external
154 "built_in"
155 end
156
157 as_integer_64: INTEGER_64 is
158 -- Convert `item' into an INTEGER_64 value.
159 external
160 "built_in"
161 end
162
163 to_real_32: REAL is
164 -- Convert `item' into a REAL
165 external
166 "built_in"
167 end
168
169 to_real_64: DOUBLE is
170 -- Convert `item' into a DOUBLE
171 external
172 "built_in"
173 end
174
175 to_character_8: CHARACTER_8 is
176 -- Returns corresponding ASCII character to `item' value.
177 external
178 "built_in"
179 end
180
181 to_character_32: CHARACTER_32 is
182 -- Returns corresponding CHARACTER_32 to `item' value.
183 external
184 "built_in"
185 end
186
187 feature -- Bit operations
188
189 bit_and (i: like Current): like Current is
190 -- Bitwise and between Current' and `i'.
191 external
192 "built_in"
193 end
194
195 bit_or (i: like Current): like Current is
196 -- Bitwise or between Current' and `i'.
197 external
198 "built_in"
199 end
200
201 bit_xor (i: like Current): like Current is
202 -- Bitwise xor between Current' and `i'.
203 external
204 "built_in"
205 end
206
207 bit_not: like Current is
208 -- One's complement of Current.
209 external
210 "built_in"
211 end
212
213 bit_shift_left (n: INTEGER): like Current is
214 -- Shift Current from `n' position to left.
215 external
216 "built_in"
217 end
218
219 bit_shift_right (n: INTEGER): like Current is
220 -- Shift Current from `n' position to right.
221 external
222 "built_in"
223 end
224
225 end

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23