{"id":18191097,"url":"https://github.com/sporeventexplosion/one-byte-inc","last_synced_at":"2026-04-29T14:38:39.565Z","repository":{"id":260835807,"uuid":"882481424","full_name":"sporeventexplosion/one-byte-inc","owner":"sporeventexplosion","description":"Increment a variable on x86-64 with just 1 byte!","archived":false,"fork":false,"pushed_at":"2024-11-02T22:22:35.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T17:53:23.862Z","etag":null,"topics":["assembly","x86","x86-64"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sporeventexplosion.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":"2024-11-02T22:18:02.000Z","updated_at":"2024-11-02T23:37:16.000Z","dependencies_parsed_at":"2024-11-02T23:19:45.408Z","dependency_job_id":"921f8c12-a314-49e5-a143-16614f1d8261","html_url":"https://github.com/sporeventexplosion/one-byte-inc","commit_stats":null,"previous_names":["sporeventexplosion/one-byte-inc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporeventexplosion%2Fone-byte-inc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporeventexplosion%2Fone-byte-inc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporeventexplosion%2Fone-byte-inc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporeventexplosion%2Fone-byte-inc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sporeventexplosion","download_url":"https://codeload.github.com/sporeventexplosion/one-byte-inc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675597,"owners_count":20977378,"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","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":["assembly","x86","x86-64"],"created_at":"2024-11-03T05:02:59.622Z","updated_at":"2026-04-29T14:38:39.537Z","avatar_url":"https://github.com/sporeventexplosion.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 1-Byte INC in 64-bit code!\n\n![Logo](/logo.png)\n\nAre you still mad at AMD for destroying the one-byte encoding of INC when they stomped over the whole row from 40h to 4Fh with their newfangled \"REX\" prefixes?\nThink of the code density!\nBe mad no more with `one_byte_inc`!!!\n\nAs we all know, x86-64 CPUs all support *compatibility mode*, so the instruction decoder still needs to support the 1-byte INC.\nIf only we can access it in 64-bit code...\n\nWell, now you can!!!\n\n## Usage\n\nSimply include `one_byte_inc.h` in your source and link with `-lone_byte_inc`.\n\nIn your code, initialize the library using `init_one_byte_inc()`, which returns 0 on success.\n-1 is returned on error and errno is set.\n\nAfter that, just use `one_byte_inc()` for all your 1-byte incrementing needs!\n\n## Example\n\n```c\n#include \u003cstdio.h\u003e\n#include \"one_byte_inc.h\"\n\nint main() {\n    init_one_byte_inc();\n    printf(\"%d\\n\", one_byte_inc(89017)); // prints: 89018\n}\n```\n\nSee also the example in `example.c`.\n\n## Building\n\nRun `./build.sh` to generate static and dynamic libraries, as well as the example binary.\n\n## How does it work?\n\numm... uhh...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsporeventexplosion%2Fone-byte-inc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsporeventexplosion%2Fone-byte-inc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsporeventexplosion%2Fone-byte-inc/lists"}