Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 399
    • Issues 399
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2326
Closed
Open
Created Feb 15, 2023 by Michiel Verloop@MVerloopMaintainer

_mod_SxS_ sometimes behaves as _aplmod_SxS_

Modulo is supposed to be equal to the c modulo in that -1 % 3 = -1.

When running the below program, 2 is printed instead, as if _aplmod_SxS_ were called.

int main ()
{
    StdIO::print (_mod_SxS_( _neg_S_(1), 3));
    return 0;
}

Output of sac2c -V:

sac2c 1.3.3-MijasCosta-1047-g0c4a5
build-type: RELEASE
built-by: "mverloop" at 2023-02-06T10:27:54
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking