4901
|
1 /* |
|
2 |
|
3 Copyright (C) 2004 John W. Eaton |
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
|
23 #if defined (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION) |
|
24 #pragma implementation |
|
25 #endif |
|
26 |
|
27 #ifdef HAVE_CONFIG_H |
|
28 #include <config.h> |
|
29 #endif |
|
30 |
|
31 #include <climits> |
|
32 |
|
33 #include <iostream> |
|
34 #include <vector> |
|
35 |
|
36 #include "lo-ieee.h" |
|
37 #include "lo-utils.h" |
|
38 #include "mx-base.h" |
|
39 #include "quit.h" |
|
40 |
|
41 #include "defun.h" |
|
42 #include "gripes.h" |
|
43 #include "oct-obj.h" |
|
44 #include "oct-lvalue.h" |
|
45 #include "ops.h" |
|
46 #include "ov-base.h" |
4917
|
47 |
|
48 #ifdef HAVE_HDF5 |
|
49 #define HDF5_SAVE_TYPE H5T_NATIVE_UINT32 |
|
50 #endif |
|
51 |
4901
|
52 #include "ov-base-int.h" |
|
53 #include "ov-base-int.cc" |
|
54 #include "ov-uint32.h" |
|
55 #include "ov-type-conv.h" |
|
56 #include "pr-output.h" |
|
57 #include "variables.h" |
|
58 |
|
59 #include "byte-swap.h" |
|
60 #include "ls-oct-ascii.h" |
|
61 #include "ls-utils.h" |
|
62 #include "ls-hdf5.h" |
|
63 |
|
64 template class octave_base_matrix<uint32NDArray>; |
|
65 |
|
66 template class octave_base_int_matrix<uint32NDArray>; |
|
67 |
|
68 DEFINE_OCTAVE_ALLOCATOR (octave_uint32_matrix); |
|
69 |
|
70 DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_uint32_matrix, |
|
71 "uint32 matrix", "uint32"); |
|
72 |
|
73 template class octave_base_scalar<octave_uint32>; |
|
74 |
|
75 template class octave_base_int_scalar<octave_uint32>; |
|
76 |
|
77 DEFINE_OCTAVE_ALLOCATOR (octave_uint32_scalar); |
|
78 |
|
79 DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_uint32_scalar, |
|
80 "uint32 scalar", "uint32"); |
|
81 |
|
82 DEFUN (uint32, args, , |
|
83 "-*- texinfo -*-\n\ |
|
84 @deftypefn {Built-in Function} {} uint32 (@var{x})\n\ |
|
85 Convert @var{x} to unsigned 32-bit integer type.\n\ |
|
86 @end deftypefn") |
|
87 { |
|
88 OCTAVE_TYPE_CONV_BODY (uint32); |
|
89 } |
|
90 |
|
91 /* |
|
92 ;;; Local Variables: *** |
|
93 ;;; mode: C++ *** |
|
94 ;;; End: *** |
|
95 */ |