[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #10362] Fix problem with trivial ranges in
From: |
Markus Mützel |
Subject: |
[Octave-patch-tracker] [patch #10362] Fix problem with trivial ranges in VM |
Date: |
Mon, 17 Jul 2023 02:29:08 -0400 (EDT) |
Follow-up Comment #3, patch #10362 (project octave):
In case this depends on whether an integer is representable as a double
precision number, 2^53 might not be the universal upper limit. IIUC, it can be
larger. E.g., if the base is a multiple of 2^N and the increment is 2^N, the
integers can be represented correctly up to 2^(53+N).
Anyway, the "easy way out" would probably be to just use `octave_idx_type`
here. Afaict, that is `int64_t`. That should be `long` on Linux or `long long`
on Windows.
Imho, correct behavior might be more important than performance in this case.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?10362>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-patch-tracker] [patch #10362] Fix problem with trivial ranges in VM, Markus Mützel, 2023/07/15
- [Octave-patch-tracker] [patch #10362] Fix problem with trivial ranges in VM, Petter T., 2023/07/16
- [Octave-patch-tracker] [patch #10362] Fix problem with trivial ranges in VM,
Markus Mützel <=
- [Octave-patch-tracker] [patch #10362] Fix problem with trivial ranges in VM, Petter T., 2023/07/17
- [Octave-patch-tracker] [patch #10362] Fix problem with trivial ranges in VM, John W. Eaton, 2023/07/18
- [Octave-patch-tracker] [patch #10362] Fix problem with trivial ranges in VM, John W. Eaton, 2023/07/18
- [Octave-patch-tracker] [patch #10362] Fix problem with trivial ranges in VM, Petter T., 2023/07/18
- [Octave-patch-tracker] [patch #10362] Fix problem with trivial ranges in VM, Petter T., 2023/07/30