Skip to content

Conversation

@pguyot
Copy link
Collaborator

@pguyot pguyot commented Oct 26, 2025

Make imported functions available to JIT compiler
Optimize +/2 and -/2 as well as < and > using types.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

bool status;
switch (n) {
case 16:
status = bitstring_extract_f16(((term) bin_ptr) | TERM_PRIMARY_BOXED, offset, n, bs_flags, &value);

Check failure

Code scanning / CodeQL

Passing a non-term to a function expecting a term

Passing a non-term to a function expecting a term, without an explicit cast
This reduces memory usage when call_or_schedule_next or
set_continuation_to_label are invoked with known labels

Signed-off-by: Paul Guyot <[email protected]>
Optimize + and - as well as < and > when types are integers of known range.

Also fix array functions of armv6m backend for higher indexes (>= 32).

Signed-off-by: Paul Guyot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant