Skip to content

Stabilize __jcvt - #1993

Merged
folkertdev merged 1 commit into
rust-lang:mainfrom
folkertdev:stabilize-jscvt
Jan 24, 2026
Merged

folkertdev merged 1 commit into
rust-lang:mainfrom
folkertdev:stabilize-jscvt

Conversation

@folkertdev

Copy link
Copy Markdown
Contributor

implementation: #1938
tracking issue: rust-lang/rust#147555

I think we should stabilize this intrinsic. The jsconv feature itself has been stable since 1.60.0. The intrinsic works as expected in ruffle, see ruffle-rs/ruffle#22138 (comment).

API surface

The stdarch_aarch64_jscvt feature contains one function:

Floating-point JavaScript convert to signed fixed-point, rounding toward zero

#[target_feature(enable = "jsconv")]
pub fn __jcvt(a: f64) -> i32;

@rustbot

rustbot commented Jan 13, 2026

Copy link
Copy Markdown
Collaborator

r? @sayantn

rustbot has assigned @sayantn.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@folkertdev

Copy link
Copy Markdown
Contributor Author

@adamgemmell (or someone else from arm), could you give the changes to intrinsics_data/arm_intrinsics.json from #1938 a once-over just to make sure that is all correct?

@adamgemmell

adamgemmell commented Jan 13, 2026 •

Copy link
Copy Markdown
Contributor

The JSON looks good to me. This intrinsic isn't part of Neon but it's fine for the JSON to say that to avoid having to edit some of stdarch's tests.

As was pointed out on the original rust PR the link to our documentation 404s, but I'll see if we can get this added to that page.

@dtolnay dtolnay changed the title stabilize __jscvt stabilize __jcvt Jan 13, 2026
@traviscross traviscross added I-lang-nominated Nominated for discussion during a lang team meeting. I-lang-radar Items that are on lang's radar and will need eventual work or consideration. T-lang Relevant to the language team. labels Jan 13, 2026
@traviscross

Copy link
Copy Markdown
Contributor

@rfcbot fcp merge lang

(Doing the lang-side of the FCP from rust-lang/rust#147555; will check the lang boxes already checked there.)

@rust-rfcbot

rust-rfcbot commented Jan 13, 2026 •

Copy link
Copy Markdown
Collaborator

Team member @traviscross has proposed to merge this. The next step is review by the rest of the tagged team members:

No concerns currently listed.

Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up!

cc @rust-lang/lang-advisors: FCP proposed for lang, please feel free to register concerns.
See this document for info about what commands tagged team members can give me.

@rust-rfcbot rust-rfcbot added proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-merge This PR / issue is in pFCP or FCP with a disposition to merge it. final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. and removed proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. labels Jan 13, 2026
@rust-rfcbot

Copy link
Copy Markdown
Collaborator

🔔 This is now entering its final comment period, as per the review above. 🔔

@traviscross traviscross added the P-lang-drag-1 Lang team prioritization drag level 1. label Jan 14, 2026
@traviscross

Copy link
Copy Markdown
Contributor

cc @RalfJung

@traviscross traviscross changed the title stabilize __jcvt Stabilize __jcvt Jan 14, 2026
@nikomatsakis

Copy link
Copy Markdown

@rfcbot reviewed

@traviscross traviscross removed I-lang-nominated Nominated for discussion during a lang team meeting. P-lang-drag-1 Lang team prioritization drag level 1. labels Jan 14, 2026
@rust-rfcbot rust-rfcbot added finished-final-comment-period The final comment period is finished for this PR / issue. and removed final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised. labels Jan 24, 2026
@rust-rfcbot

Copy link
Copy Markdown
Collaborator

The final comment period, with a disposition to merge, as per the review above, is now complete.

As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed.

@tgross35 tgross35 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but still waiting on FCP at rust-lang/rust#147555 (comment) to complete.

@folkertdev

Copy link
Copy Markdown
Contributor Author

The other FCP is over as well.

@folkertdev
folkertdev added this pull request to the merge queue Jan 24, 2026
Merged via the queue into rust-lang:main with commit 9cf9966 Jan 24, 2026
75 checks passed
linkmauve added a commit to linkmauve/boa that referenced this pull request Oct 11, 2026
I originally added this intrinsic for Ruffle[1][2], it is now available
since Rust 1.95.0[3], and should be easier to read and use.

I’m not sure if the check for NaN is still useful or not, Ruffle doesn’t
need it, but maybe they configure the FPU differently.

[1] ruffle-rs/ruffle#22138
[2] ruffle-rs/ruffle#23937
[3] rust-lang/stdarch#1993
linkmauve added a commit to linkmauve/boa that referenced this pull request Oct 11, 2026
I originally added this intrinsic for Ruffle[1][2], it is now available
since Rust 1.95.0[3], and should be easier to read and use.

I’m not sure if the check for NaN is still useful or not, Ruffle doesn’t
need it, but maybe they configure the FPU differently.

[1] ruffle-rs/ruffle#22138
[2] ruffle-rs/ruffle#23937
[3] rust-lang/stdarch#1993
anugrah55 pushed a commit to anugrah55/boa that referenced this pull request Oct 11, 2026
…-dev#5577)

I originally added this intrinsic for Ruffle[1][2], it is now available
since Rust 1.95.0[3], and should be easier to read and use.

I’m not sure if the check for NaN is still useful or not, Ruffle doesn’t
need it, but maybe they configure the FPU differently.

[1] ruffle-rs/ruffle#22138
[2] ruffle-rs/ruffle#23937
[3] rust-lang/stdarch#1993

<!---
Thank you for contributing to Boa! Please fill out the template below,
and remove or add any
information as you feel necessary.
--->

This Pull Request doesn’t fix any issue.

It changes the following:

- It now uses the `__jcvt()` intrinsic instead of a raw `asm!()` block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disposition-merge This PR / issue is in pFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this PR / issue. I-lang-radar Items that are on lang's radar and will need eventual work or consideration. T-lang Relevant to the language team. to-announce

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants