{"id":17441650,"url":"https://github.com/rokerhro/xrm","last_synced_at":"2025-10-10T11:40:12.079Z","repository":{"id":175023888,"uuid":"190176004","full_name":"RokerHRO/xrm","owner":"RokerHRO","description":"XOR, (Bit-)Rotate, Multiply","archived":false,"fork":false,"pushed_at":"2019-06-04T10:14:17.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-19T13:58:40.140Z","etag":null,"topics":["mathematical-functions","nerd","riddle"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RokerHRO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-04T10:01:31.000Z","updated_at":"2021-08-26T17:40:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"b967c6a2-7d63-40aa-859d-4207cb7b595d","html_url":"https://github.com/RokerHRO/xrm","commit_stats":null,"previous_names":["rokerhro/xrm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RokerHRO/xrm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RokerHRO%2Fxrm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RokerHRO%2Fxrm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RokerHRO%2Fxrm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RokerHRO%2Fxrm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RokerHRO","download_url":"https://codeload.github.com/RokerHRO/xrm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RokerHRO%2Fxrm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003718,"owners_count":26083610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mathematical-functions","nerd","riddle"],"created_at":"2024-10-17T15:44:12.598Z","updated_at":"2025-10-10T11:40:12.039Z","avatar_url":"https://github.com/RokerHRO.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XOR, Rotate, Multiply\n\nI'm looking for 6 parameters X1, X2, R1, R2, M1, M2 so that the nested function call is equivalent to addition:\n\n```c++\n// C++:\n#include \"xrm_template.cc\"\n\nXRM\u003cX1, R1, M1\u003e xrm1;\nXRM\u003cX2, R2, M2\u003e xrm2;\n\nASSERT_TRUE( xrm1(xrm2(u)) == u+1 );  // for all u from 0 … 2⁶⁴-1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frokerhro%2Fxrm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frokerhro%2Fxrm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frokerhro%2Fxrm/lists"}