CDBDatabase: convert CreateRecordImAtOnce_ to matching C #555

Merged
coah80 merged 1 commits from agent/asm2c/CDBDatabase-CreateRecordImAtOnce_ into main 2026-10-01 22:42:32 +00:00
coah80 commented 2026-10-01 22:27:49 +00:00 (Migrated from github.com)

Summary

Exact C conversion in libs/RevoEX/src/cdb/CDBDatabase.c (one unit).

Function Exact
CDBDatabaseCreateRecordImAtOnce_ 84/84, diffs 0

Checks closed (instance == NULL / flags == 0) and readonly (!(flags & 2)), converts OSTime with OS_BUS_CLOCK / 4, clamps, then calls CDBRecordCreateAtOnce. Remaining asm in this TU left alone.

Also typed the CDBRecordCreateAtOnce / CreateRecordImAtOnce_ prototypes to match the call.

DOL SHA1

26116613f624061ba99c8d1a299aaa6efa85670d (ninja build/43U/ok OK)

Asm before / after

  • Before: CDBDatabaseCreateRecordImAtOnce_ as PPC asm.
  • After: matching C.

Do not merge until reviewed.

## Summary Exact C conversion in `libs/RevoEX/src/cdb/CDBDatabase.c` (one unit). | Function | Exact | |---|---| | `CDBDatabaseCreateRecordImAtOnce_` | 84/84, diffs 0 | Checks closed (`instance == NULL` / `flags == 0`) and readonly (`!(flags & 2)`), converts `OSTime` with `OS_BUS_CLOCK / 4`, clamps, then calls `CDBRecordCreateAtOnce`. Remaining asm in this TU left alone. Also typed the `CDBRecordCreateAtOnce` / `CreateRecordImAtOnce_` prototypes to match the call. ## DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d` (`ninja build/43U/ok` OK) ## Asm before / after - Before: `CDBDatabaseCreateRecordImAtOnce_` as PPC asm. - After: matching C. **Do not merge** until reviewed.
coah80 commented 2026-10-01 22:42:30 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.