Skip to content

[Question] Are bit shift functions available in structured text? #1494

@Servostar

Description

@Servostar

While experimenting with ruSTy on some implementations for PRNGs, I came across this:

Image

Seemingly, ruSTy does not support bitwise function defined in IEC 61131-3 (6.6.2.5.10). Am I mistaken about that?
What would be the best way to implement this? Perhaps an external library implementing these functions in C which is then added during link time. However, this would add an unnecessary function call.
Is there a way to have ruSTy/LLVM generate platform native bitshift functions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions