Mercurial > octave
annotate libinterp/octave-value/ov-int64.cc @ 23219:3ac9f9ecfae5 stable
maint: Update copyright dates.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 22 Feb 2017 12:39:29 -0500 |
parents | e9a0469dedd9 |
children | 092078913d54 |
rev | line source |
---|---|
4901 | 1 /* |
2 | |
23219
3ac9f9ecfae5
maint: Update copyright dates.
John W. Eaton <jwe@octave.org>
parents:
23083
diff
changeset
|
3 Copyright (C) 2004-2017 John W. Eaton |
4901 | 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 | |
7016 | 9 Free Software Foundation; either version 3 of the License, or (at your |
10 option) any later version. | |
4901 | 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 | |
7016 | 18 along with Octave; see the file COPYING. If not, see |
19 <http://www.gnu.org/licenses/>. | |
4901 | 20 |
21 */ | |
22 | |
21724
aba2e6293dd8
use "#if ..." consistently instead of "#ifdef" and "#ifndef"
John W. Eaton <jwe@octave.org>
parents:
21574
diff
changeset
|
23 #if defined (HAVE_CONFIG_H) |
21301
40de9f8f23a6
Use '#include "config.h"' rather than <config.h>.
Rik <rik@octave.org>
parents:
21200
diff
changeset
|
24 # include "config.h" |
4901 | 25 #endif |
26 | |
27 #include <iostream> | |
15215
9020dddc925a
use std::numeric_limits for integer max and min values
John W. Eaton <jwe@octave.org>
parents:
15195
diff
changeset
|
28 #include <limits> |
4901 | 29 |
30 #include "lo-ieee.h" | |
31 #include "lo-utils.h" | |
32 #include "mx-base.h" | |
33 #include "quit.h" | |
34 | |
21100
e39e05d90788
Switch gripe_XXX to either err_XXX or warn_XXX naming scheme.
Rik <rik@octave.org>
parents:
20940
diff
changeset
|
35 #include "errwarn.h" |
4901 | 36 #include "oct-lvalue.h" |
19863
09ed6f7538dd
avoid needing to include hdf5 in public header files (bug #44370, #43180)
John W. Eaton <jwe@octave.org> and Mike Miller <mtmiller@ieee.org>
parents:
19697
diff
changeset
|
37 #include "oct-hdf5.h" |
4901 | 38 #include "ops.h" |
39 #include "ov-base.h" | |
4917 | 40 |
20257
d54aa96abadf
Fix load/save of integers with -hdf5 (bug #45225)
Mike Miller <mtmiller@octave.org>
parents:
19863
diff
changeset
|
41 #if defined (HAVE_HDF5) |
21200
fcac5dbbf9ed
maint: Indent #ifdef blocks in libinterp.
Rik <rik@octave.org>
parents:
21100
diff
changeset
|
42 # define HDF5_SAVE_TYPE H5T_NATIVE_INT64 |
20257
d54aa96abadf
Fix load/save of integers with -hdf5 (bug #45225)
Mike Miller <mtmiller@octave.org>
parents:
19863
diff
changeset
|
43 #endif |
d54aa96abadf
Fix load/save of integers with -hdf5 (bug #45225)
Mike Miller <mtmiller@octave.org>
parents:
19863
diff
changeset
|
44 |
4901 | 45 #include "ov-base-int.h" |
46 #include "ov-base-int.cc" | |
47 #include "ov-int64.h" | |
48 #include "pr-output.h" | |
49 #include "variables.h" | |
50 | |
51 #include "byte-swap.h" | |
20447
c6224b4e7774
maint: Rename instances of LS_ASCII to LS_TEXT for clarity.
Rik <rik@octave.org>
parents:
20257
diff
changeset
|
52 #include "ls-oct-text.h" |
4901 | 53 #include "ls-utils.h" |
54 #include "ls-hdf5.h" | |
55 | |
21573
f3f8e1d3e399
avoid mulitple definitions of static function-scope vars (bug #47372)
John W. Eaton <jwe@octave.org>
parents:
20257
diff
changeset
|
56 // Prevent implicit instantiations on some systems (Windows, others?) |
f3f8e1d3e399
avoid mulitple definitions of static function-scope vars (bug #47372)
John W. Eaton <jwe@octave.org>
parents:
20257
diff
changeset
|
57 // that can lead to duplicate definitions of static data members. |
f3f8e1d3e399
avoid mulitple definitions of static function-scope vars (bug #47372)
John W. Eaton <jwe@octave.org>
parents:
20257
diff
changeset
|
58 |
f3f8e1d3e399
avoid mulitple definitions of static function-scope vars (bug #47372)
John W. Eaton <jwe@octave.org>
parents:
20257
diff
changeset
|
59 extern template class OCTINTERP_API octave_base_scalar<double>; |
f3f8e1d3e399
avoid mulitple definitions of static function-scope vars (bug #47372)
John W. Eaton <jwe@octave.org>
parents:
20257
diff
changeset
|
60 |
4901 | 61 template class octave_base_matrix<int64NDArray>; |
62 | |
63 template class octave_base_int_matrix<int64NDArray>; | |
64 | |
65 DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_int64_matrix, | |
10315
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
66 "int64 matrix", "int64"); |
4901 | 67 |
68 template class octave_base_scalar<octave_int64>; | |
69 | |
70 template class octave_base_int_scalar<octave_int64>; | |
71 | |
72 DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA (octave_int64_scalar, | |
10315
57a59eae83cc
untabify src C++ source files
John W. Eaton <jwe@octave.org>
parents:
10160
diff
changeset
|
73 "int64 scalar", "int64"); |