Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dseries
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sébastien Villemot
dseries
Commits
82f10685
Verified
Commit
82f10685
authored
Oct 03, 2019
by
Sébastien Villemot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
is64bit.m: test the operating system, not MATLAB’s index size
Closes:
#41
parent
d6c536f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
src/utilities/is/is64bit.m
src/utilities/is/is64bit.m
+12
-4
No files found.
src/utilities/is/is64bit.m
View file @
82f10685
function
b
=
is64bit
()
% Returns true iff Matlab 64bit version is used.
% Returns true iff operating system is 64-bit
%
% The test logic is the same as in dynare.m when selecting the preprocessor
% flavour.
% Copyright (C) 2017 Dynare Team
% Copyright (C) 2017
-2019
Dynare Team
%
% This code is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
...
...
@@ -17,5 +20,10 @@ function b = is64bit()
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
[
~
,
maxsize
]
=
computer
();
b
=
(
maxsize
>
2
^
31
);
\ No newline at end of file
if
ispc
arch
=
getenv
(
'PROCESSOR_ARCHITECTURE'
);
else
[
~
,
arch
]
=
system
(
'uname -m'
);
end
b
=
~
isempty
(
strfind
(
arch
,
'64'
));
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment