[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #10231] interpreter: checkelement_value in
From: |
John W. Eaton |
Subject: |
[Octave-patch-tracker] [patch #10231] interpreter: checkelement_value in Array.h to avoid make_unique |
Date: |
Wed, 22 Jun 2022 09:45:15 -0400 (EDT) |
URL:
<https://savannah.gnu.org/patch/?10231>
Summary: interpreter: checkelement_value in Array.h to avoid
make_unique
Project: GNU Octave
Submitter: jwe
Submitted: Wed 22 Jun 2022 01:45:13 PM UTC
Category: Core : other
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 22 Jun 2022 01:45:13 PM UTC By: John W. Eaton <jwe>
>From Petter Tomner <petter>, extracted from the zip file attached to the
following comment in the discourse thread "WIP stack VM f\
or Octave": https://octave.discourse.group/t/wip-stack-vm-for-octave/2884/10
Add checkelement_value to Array to be able to get an element value
without calling make_unique, like const T& operator[](size_t idx),
but this works with non-const Array:s.
Also inline index computations. Benifitial for operator look-up.
Adding branch hint macros OCTAVE_LIKELY and OCTAVE_UNLIKELY,
using __builtin_expect for gcc and clang.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 22 Jun 2022 01:45:13 PM UTC Name: octave_30613.patch Size: 18KiB
By: jwe
<http://savannah.gnu.org/patch/download.php?file_id=53349>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?10231>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-patch-tracker] [patch #10231] interpreter: checkelement_value in Array.h to avoid make_unique,
John W. Eaton <=