Compare commits
37 Commits
agent/w092
...
agent/w092
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d36ebeff85 | ||
|
|
6ade163015 | ||
|
|
e6496cc6a8 | ||
|
|
99cfa80f99 | ||
|
|
dfb64b9747 | ||
|
|
94e6d86223 | ||
|
|
c923937c3b | ||
|
|
bf90a97c1a | ||
|
|
884952a19b | ||
|
|
70b04f1d72 | ||
|
|
95d895d71a | ||
|
|
6a2a3dd67f | ||
|
|
341354dce2 | ||
|
|
a22313e57e | ||
|
|
91e65d765b | ||
|
|
dc93ab5777 | ||
|
|
a3b04ad9ea | ||
|
|
55fd34f972 | ||
|
|
7f055a587e | ||
|
|
7a6efe8a2c | ||
|
|
de2c8c4688 | ||
|
|
d08d7dec60 | ||
|
|
f20fc7b8e9 | ||
|
|
03ed29ccee | ||
|
|
2058b121cc | ||
|
|
4588eee6a9 | ||
|
|
ad3da3bb76 | ||
|
|
f9bd6755ba | ||
|
|
4f78910f8b | ||
|
|
9189c9bb9f | ||
|
|
eccd5f8c45 | ||
|
|
038cd6f939 | ||
|
|
1c505b9708 | ||
|
|
b646f1caaf | ||
|
|
46066115ab | ||
|
|
bc6d67e3f5 | ||
|
|
d399446f10 |
@@ -53,9 +53,9 @@ Progress
|
||||
<!-- progress:start -->
|
||||
| Decompiled | Matched | Linked | Data |
|
||||
|:---:|:---:|:---:|:---:|
|
||||
| 94.06% | 82.26% | 58.17% | 89.35% |
|
||||
| 98.06% | 84.71% | 58.20% | 90.34% |
|
||||
|
||||
units 776/1027 complete, functions 11927/12563 matched.
|
||||
units 778/1027 complete, functions 12070/12563 matched.
|
||||
|
||||
decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data
|
||||
<!-- progress:end -->
|
||||
|
||||
@@ -11,12 +11,23 @@ splits: 'config/43U/splits.txt'
|
||||
ldscript_template: 'config/ldscript_ipl2.lcf'
|
||||
|
||||
force_active:
|
||||
- fprintf
|
||||
- leap_days
|
||||
- __msl_time2tm
|
||||
- __tm2time
|
||||
- clock
|
||||
- mktime
|
||||
- localtime
|
||||
- emit
|
||||
- __MSL_ISO8601NewYear
|
||||
- __MSL_ISO8601Week
|
||||
- strftime
|
||||
- labs
|
||||
- atol
|
||||
- itoa
|
||||
- strpbrk
|
||||
- strspn
|
||||
- strcspn
|
||||
- atol
|
||||
- padding__Q23ipl5scene
|
||||
- lbl_81695063
|
||||
- lbl_81695067
|
||||
|
||||
56
configure.py
56
configure.py
@@ -878,8 +878,8 @@ config.libs = [
|
||||
Object(Matching, "scene/setting/iplAOSSThread.cpp"),
|
||||
Object(NonMatching, "scene/setting/AOSSLink.c"),
|
||||
Object(NonMatching, "scene/setting/iplRakuRakuThread.cpp"),
|
||||
Object(NonMatching, "scene/setting/AOSS.c"),
|
||||
Object(NonMatching, "scene/setting/ATERM.c"),
|
||||
Object(NonMatching, "scene/setting/AOSS.c", extra_cflags=["-O4,p", "-inline off"]),
|
||||
Object(NonMatching, "scene/setting/ATERM.c", extra_cflags=["-O4,p", "-inline off"]),
|
||||
]
|
||||
),
|
||||
IPLSection("settingSelect", [
|
||||
@@ -1827,29 +1827,29 @@ config.libs = [
|
||||
Object(NonMatching, "fa/pf_stub_unicode.c"),
|
||||
|
||||
Object(NonMatching, "fa/api/FAAttach.c"),
|
||||
Object(NonMatching, "fa/api/FABuffering.c"),
|
||||
Object(NonMatching, "fa/api/FACreate.c"),
|
||||
Object(NonMatching, "fa/api/FACreatedir.c"),
|
||||
Object(NonMatching, "fa/api/FADetach.c"),
|
||||
Object(NonMatching, "fa/api/FAErrnum.c"),
|
||||
Object(Matching, "fa/api/FABuffering.c"),
|
||||
Object(Matching, "fa/api/FACreate.c"),
|
||||
Object(Matching, "fa/api/FACreatedir.c"),
|
||||
Object(Matching, "fa/api/FADetach.c"),
|
||||
Object(Matching, "fa/api/FAErrnum.c"),
|
||||
Object(Matching, "fa/api/FAFclose.c"),
|
||||
Object(Matching, "fa/api/FAFinfo.c"),
|
||||
Object(NonMatching, "fa/api/FAFopen.c"),
|
||||
Object(NonMatching, "fa/api/FAFormat.c"),
|
||||
Object(Matching, "fa/api/FAFopen.c"),
|
||||
Object(Matching, "fa/api/FAFormat.c"),
|
||||
Object(Matching, "fa/api/FAFread.c"),
|
||||
Object(NonMatching, "fa/api/FAFseek.c"),
|
||||
Object(NonMatching, "fa/api/FAFsfirst.c"),
|
||||
Object(NonMatching, "fa/api/FAFsnext.c"),
|
||||
Object(NonMatching, "fa/api/FAFstat.c"),
|
||||
Object(Matching, "fa/api/FAFseek.c"),
|
||||
Object(Matching, "fa/api/FAFsfirst.c"),
|
||||
Object(Matching, "fa/api/FAFsnext.c"),
|
||||
Object(Matching, "fa/api/FAFstat.c"),
|
||||
Object(Matching, "fa/api/FAFwrite.c"),
|
||||
Object(NonMatching, "fa/api/FAGetdev.c"),
|
||||
Object(NonMatching, "fa/api/FAInit.c"),
|
||||
Object(Matching, "fa/api/FAGetdev.c"),
|
||||
Object(Matching, "fa/api/FAInit.c"),
|
||||
Object(Matching, "fa/api/FAInitDiskManager.c"),
|
||||
Object(NonMatching, "fa/api/FAMount.c"),
|
||||
Object(NonMatching, "fa/api/FARegistCB.c"),
|
||||
Object(NonMatching, "fa/api/FARemove.c"),
|
||||
Object(NonMatching, "fa/api/FASetThreadPriority.c"),
|
||||
Object(NonMatching, "fa/api/FAUnmount.c"),
|
||||
Object(Matching, "fa/api/FAMount.c"),
|
||||
Object(Matching, "fa/api/FARegistCB.c"),
|
||||
Object(Matching, "fa/api/FARemove.c"),
|
||||
Object(Matching, "fa/api/FASetThreadPriority.c"),
|
||||
Object(Matching, "fa/api/FAUnmount.c"),
|
||||
|
||||
Object(NonMatching, "fa/kernel/pfk_api.c"),
|
||||
|
||||
@@ -1870,7 +1870,7 @@ config.libs = [
|
||||
RVLSDKLib("nup", [
|
||||
Object(NonMatching, "nup/nup.cpp"),
|
||||
Object(NonMatching, "nup/nup_nhttp.cpp"),
|
||||
Object(NonMatching, "nup/nup_mem.cpp"),
|
||||
Object(Matching, "nup/nup_mem.cpp"),
|
||||
]
|
||||
),
|
||||
RVLSDKLib("scutil", [
|
||||
@@ -1944,30 +1944,30 @@ config.libs = [
|
||||
Object(Matching, "MSL_Common/alloc.c"),
|
||||
Object(Matching, "MSL_Common/errno.c"),
|
||||
Object(Matching, "MSL_Common/ansi_files.c"),
|
||||
Object(NonMatching, "MSL_Common_Embedded/ansi_fp.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common_Embedded/ansi_fp.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/ctype.c"),
|
||||
Object(NonMatching, "MSL_Common/locale.c"),
|
||||
Object(Matching, "MSL_Common/locale.c"),
|
||||
Object(Matching, "MSL_Common/arith.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/bsearch.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/buffer_io.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/direct_io.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(NonMatching, "MSL_Common/file_io.c"),
|
||||
Object(Matching, "MSL_Common/file_io.c"),
|
||||
Object(Matching, "MSL_Common/FILE_POS.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/mbstring.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/mem.c"),
|
||||
Object(Matching, "MSL_Common/mem_funcs.c"),
|
||||
Object(Matching, "MSL_Common/math_api.c"),
|
||||
Object(Matching, "MSL_Common/misc_io.c"),
|
||||
Object(NonMatching, "MSL_Common/printf.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/printf.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/qsort.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/rand.c"),
|
||||
Object(NonMatching, "MSL_Common/scanf.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/scanf.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/signal.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/string.c"),
|
||||
Object(Matching, "MSL_Common/float.c"),
|
||||
Object(NonMatching, "MSL_Common/strtold.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/strtold.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/strtoul.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(NonMatching, "MSL_Common/time.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/time.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(Matching, "MSL_Common/wctype.c"),
|
||||
Object(Matching, "MSL_Common/wmem.c"),
|
||||
Object(NonMatching, "MSL_Common/wprintf.c", extra_cflags=["-Cpp_exceptions on"]),
|
||||
|
||||
@@ -14,7 +14,12 @@ enum {
|
||||
typedef struct BS2UpdateHeader {
|
||||
char timestamp[16]; // 0x00
|
||||
u32 wadCount; // 0x10
|
||||
#ifdef BS2_UPDATE_SOURCE
|
||||
u32 extraCount;
|
||||
u32 reserved[2];
|
||||
#else
|
||||
u32 reserved[3]; // 0x14
|
||||
#endif
|
||||
} BS2UpdateHeader;
|
||||
|
||||
typedef struct BS2UpdateEntry {
|
||||
@@ -29,7 +34,12 @@ typedef struct BS2UpdateEntry {
|
||||
u64 titleId; // 0x50
|
||||
u16 titleVersion; // 0x58
|
||||
|
||||
#ifdef BS2_UPDATE_SOURCE
|
||||
u16 reservedTitle;
|
||||
u32 inodes;
|
||||
#else
|
||||
u8 padding[6]; // 0x5A
|
||||
#endif
|
||||
|
||||
// Update Data
|
||||
char dataName[0x40]; // 0x60
|
||||
|
||||
@@ -183,125 +183,10 @@ namespace textinput {
|
||||
#endif
|
||||
};
|
||||
|
||||
class LayoutByNW4R : public Base, public nw4rmanager::Layout {
|
||||
public:
|
||||
#if defined(MYTIMANAGER_IMPLEMENTATION) || defined(TIINPUTFORM_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION) || defined(TIMANAGER_IMPLEMENTATION)
|
||||
#ifdef TIMANAGER_IMPLEMENTATION
|
||||
LayoutByNW4R(Manager* manager, nw4r::lyt::MultiArcResourceAccessor* accessor, EventObserver* observer, const char* layoutName)
|
||||
: Base(manager), nw4rmanager::Layout(accessor, layoutName, observer), mpEventHandler(NULL) {}
|
||||
virtual ~LayoutByNW4R();
|
||||
virtual void create(MEMAllocator* allocator);
|
||||
virtual void init();
|
||||
virtual void setCommandReceiver(CommandReceiver* receiver);
|
||||
virtual void updateFromReceiver(u32 command, void* data);
|
||||
virtual void onKey(u32 event, void* data);
|
||||
virtual void setLanguage(Language language);
|
||||
virtual void update();
|
||||
virtual void onActive();
|
||||
virtual void calc();
|
||||
virtual void draw();
|
||||
virtual void changeInputMode(InputMode mode);
|
||||
virtual void setInputMode(InputMode mode);
|
||||
virtual void setUpperCaseJP(bool upper);
|
||||
virtual void setLangKeyActive(bool active);
|
||||
virtual void goSignInputMode();
|
||||
virtual void changePredictLanguage();
|
||||
virtual void setAbcMode(bool abc);
|
||||
virtual void doNumericMode(bool);
|
||||
virtual void setPredictLanguageDialog(predictlang::LayoutByNW4R* dialog);
|
||||
virtual void setSignWindow(signwindow::LayoutByNW4R* window);
|
||||
#ifndef TI_CELLPHONE_MATCH_LAYOUT
|
||||
#include "tiCellPhoneLayout.h"
|
||||
#else
|
||||
#if defined(MYTIMANAGER_IMPLEMENTATION) && defined(TI_CELLPHONE_SAMPLE_CLASS)
|
||||
LayoutByNW4R(Manager* manager, nw4r::lyt::MultiArcResourceAccessor* resAccessor, EventObserver* observer)
|
||||
: Base(manager), nw4rmanager::Layout(resAccessor, "fs_VK_cellPhone_a.brlyt", observer), mpSignWindow(NULL) {}
|
||||
#endif
|
||||
virtual void doNumericMode(bool);
|
||||
#ifdef TI_CELLPHONE_IMPLEMENTATION
|
||||
virtual void setPredictLanguageDialog(predictlang::LayoutByNW4R*);
|
||||
virtual void setSignWindow(signwindow::LayoutByNW4R*);
|
||||
#else
|
||||
virtual void setPredictLanguageDialog(void*);
|
||||
virtual void setSignWindow(void*);
|
||||
#endif
|
||||
#endif
|
||||
virtual void doNumericWithDotMode(bool);
|
||||
virtual void setLineFeedButton(bool);
|
||||
virtual void setPredictLanguageButton(bool);
|
||||
virtual void setSignWindowButton(bool);
|
||||
#endif
|
||||
virtual bool onClose();
|
||||
|
||||
void onPressedShift(bool shift);
|
||||
void onReleasedShift();
|
||||
#if defined(TIINPUTFORM_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION) || defined(TIMANAGER_IMPLEMENTATION)
|
||||
bool hasLineFeedButton() const { return mbLineFeedButton; }
|
||||
private:
|
||||
bool mbLineFeedButton;
|
||||
#ifdef TIMANAGER_IMPLEMENTATION
|
||||
GXTexObj mSpaceTexture;
|
||||
GXTexObj mSpaceTextureCN;
|
||||
GXTexObj mSpaceTextureKR;
|
||||
nw4rmanager::TiEventHandler* mpEventHandler;
|
||||
predictlang::LayoutByNW4R* mpPredictDialog;
|
||||
signwindow::LayoutByNW4R* mpSignWindow;
|
||||
#endif
|
||||
public:
|
||||
#endif
|
||||
#if defined(MYTIMANAGER_IMPLEMENTATION) || defined(TIINPUTFORM_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION) || defined(TIMANAGER_IMPLEMENTATION)
|
||||
virtual bool updateInput(int chan, f32 x, f32 y, u32 trig, u32 hold, u32 release, void* data) override;
|
||||
virtual bool updateInput(input::HKBManager& hkbManager) override;
|
||||
#endif
|
||||
#ifdef TI_CELLPHONE_IMPLEMENTATION
|
||||
virtual ~LayoutByNW4R();
|
||||
virtual void create(MEMAllocator* allocator) override;
|
||||
virtual void init() override;
|
||||
virtual void draw() override;
|
||||
virtual void calc() override;
|
||||
virtual void update() override;
|
||||
virtual void onKey(u32 key, void* data) override;
|
||||
virtual void onActive() override;
|
||||
virtual void updateFromReceiver(u32 command, void* data) override;
|
||||
virtual void changeInputMode(InputMode mode) override;
|
||||
virtual void changePredictLanguage() override;
|
||||
virtual void setAbcMode(bool enabled) override;
|
||||
virtual void goSignInputMode() override;
|
||||
virtual void setInputMode(InputMode mode) override;
|
||||
virtual void setLanguage(Language language) override;
|
||||
virtual void setCommandReceiver(CommandReceiver* receiver) override;
|
||||
|
||||
virtual CellPhoneAnmPane* getAnmPane(InputMode mode);
|
||||
virtual void throwReleaseForAll();
|
||||
virtual void changeAnimationAllToNormal();
|
||||
virtual void updatePredictLanguage(CommandReceiver::ChangePredictMode* mode);
|
||||
virtual void changeKeyTop(const PaneNameToCharCode* keys);
|
||||
virtual void changeSpaceKeyTop(const PaneNameToCharCode* keys);
|
||||
void setUpperCaseJP(bool enabled);
|
||||
void setLangKeyActive(bool enabled);
|
||||
void resetHoldingButton();
|
||||
|
||||
private:
|
||||
bool mbLineFeedButton;
|
||||
GXTexObj mTextures[3];
|
||||
EventHandler* mpEventHandler;
|
||||
predictlang::LayoutByNW4R* mpPredictLanguageDialog;
|
||||
signwindow::LayoutByNW4R* mpSignWindow;
|
||||
#elif defined(TIMANAGER_IMPLEMENTATION)
|
||||
virtual nw4rmanager::AnmPane* getAnmPane(InputMode mode);
|
||||
virtual void throwReleaseForAll();
|
||||
virtual void changeAnimationAllToNormal();
|
||||
virtual void updatePredictLanguage(CommandReceiver::ChangePredictMode* mode);
|
||||
virtual void changeKeyTop(const struct PaneNameToCharCode* table);
|
||||
virtual void changeSpaceKeyTop(const struct PaneNameToCharCode* table);
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifdef TI_CELLPHONE_SAMPLE_CLASS
|
||||
class Sample : public LayoutByNW4R {
|
||||
public:
|
||||
Sample(Manager* manager, nw4r::lyt::MultiArcResourceAccessor* resAccessor, EventObserver* observer)
|
||||
: LayoutByNW4R(manager, resAccessor, observer) {}
|
||||
virtual ~Sample() {}
|
||||
};
|
||||
class LayoutByNW4R;
|
||||
#endif
|
||||
|
||||
#ifdef TI_CELLPHONE_IMPLEMENTATION
|
||||
@@ -322,10 +207,29 @@ namespace textinput {
|
||||
KT_ControlButton,
|
||||
};
|
||||
|
||||
#ifdef TI_CELLPHONE_MATCH_LAYOUT
|
||||
class EventHandler : public nw4rmanager::TiEventHandler {
|
||||
public:
|
||||
EventHandler(LayoutByNW4R* layout) : mpLayoutByNW4R(layout) {}
|
||||
virtual ~EventHandler();
|
||||
virtual void onTiEvent(gui::PaneComponent* pane, u32 event, Input* input) override;
|
||||
|
||||
private:
|
||||
LayoutByNW4R* mpLayoutByNW4R;
|
||||
};
|
||||
#endif
|
||||
|
||||
class CellPhoneAnmPane : public nw4rmanager::AnmPane {
|
||||
public:
|
||||
CellPhoneAnmPane(nw4r::lyt::Pane* pane, nw4rmanager::AnmObserver* observer)
|
||||
#ifdef TI_CELLPHONE_MATCH_LAYOUT
|
||||
: nw4rmanager::AnmPane(pane, observer), meState(ANM_Normal), meKeyType(KT_NormalButton) {
|
||||
init();
|
||||
changeAnimation(meState);
|
||||
}
|
||||
#else
|
||||
: nw4rmanager::AnmPane(pane, observer), meState(ANM_Normal), meKeyType(KT_NormalButton) {}
|
||||
#endif
|
||||
|
||||
virtual void init() override;
|
||||
virtual void onAnmEvent(AnmPaneEvent event) override;
|
||||
@@ -348,6 +252,7 @@ namespace textinput {
|
||||
virtual ~CellPhoneControlAnmPane();
|
||||
};
|
||||
|
||||
#ifndef TI_CELLPHONE_MATCH_LAYOUT
|
||||
class EventHandler : public nw4rmanager::TiEventHandler {
|
||||
public:
|
||||
EventHandler(LayoutByNW4R* layout) : mpLayoutByNW4R(layout) {}
|
||||
@@ -357,7 +262,12 @@ namespace textinput {
|
||||
private:
|
||||
LayoutByNW4R* mpLayoutByNW4R;
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef TI_CELLPHONE_MATCH_LAYOUT
|
||||
#include "tiCellPhoneLayout.h"
|
||||
#endif
|
||||
|
||||
} // namespace cellphonetype
|
||||
|
||||
126
include/keyboard/tiCellPhoneLayout.h
Normal file
126
include/keyboard/tiCellPhoneLayout.h
Normal file
@@ -0,0 +1,126 @@
|
||||
#ifndef TEXTINPUT_CELL_PHONE_LAYOUT_H
|
||||
#define TEXTINPUT_CELL_PHONE_LAYOUT_H
|
||||
|
||||
class LayoutByNW4R : public Base, public nw4rmanager::Layout {
|
||||
public:
|
||||
#if defined(MYTIMANAGER_IMPLEMENTATION) || defined(TIINPUTFORM_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION) || defined(TIMANAGER_IMPLEMENTATION)
|
||||
#ifdef TIMANAGER_IMPLEMENTATION
|
||||
LayoutByNW4R(Manager* manager, nw4r::lyt::MultiArcResourceAccessor* accessor, EventObserver* observer, const char* layoutName)
|
||||
: Base(manager), nw4rmanager::Layout(accessor, layoutName, observer), mpEventHandler(NULL) {}
|
||||
virtual ~LayoutByNW4R();
|
||||
virtual void create(MEMAllocator* allocator);
|
||||
virtual void init();
|
||||
virtual void setCommandReceiver(CommandReceiver* receiver);
|
||||
virtual void updateFromReceiver(u32 command, void* data);
|
||||
virtual void onKey(u32 event, void* data);
|
||||
virtual void setLanguage(Language language);
|
||||
virtual void update();
|
||||
virtual void onActive();
|
||||
virtual void calc();
|
||||
virtual void draw();
|
||||
virtual void changeInputMode(InputMode mode);
|
||||
virtual void setInputMode(InputMode mode);
|
||||
virtual void setUpperCaseJP(bool upper);
|
||||
virtual void setLangKeyActive(bool active);
|
||||
virtual void goSignInputMode();
|
||||
virtual void changePredictLanguage();
|
||||
virtual void setAbcMode(bool abc);
|
||||
virtual void doNumericMode(bool);
|
||||
virtual void setPredictLanguageDialog(predictlang::LayoutByNW4R* dialog);
|
||||
virtual void setSignWindow(signwindow::LayoutByNW4R* window);
|
||||
#else
|
||||
#if defined(MYTIMANAGER_IMPLEMENTATION) && defined(TI_CELLPHONE_SAMPLE_CLASS)
|
||||
LayoutByNW4R(Manager* manager, nw4r::lyt::MultiArcResourceAccessor* resAccessor, EventObserver* observer)
|
||||
: Base(manager), nw4rmanager::Layout(resAccessor, "fs_VK_cellPhone_a.brlyt", observer), mpSignWindow(NULL) {}
|
||||
#endif
|
||||
virtual void doNumericMode(bool);
|
||||
#ifdef TI_CELLPHONE_IMPLEMENTATION
|
||||
virtual void setPredictLanguageDialog(predictlang::LayoutByNW4R*);
|
||||
virtual void setSignWindow(signwindow::LayoutByNW4R*);
|
||||
#else
|
||||
virtual void setPredictLanguageDialog(void*);
|
||||
virtual void setSignWindow(void*);
|
||||
#endif
|
||||
#endif
|
||||
virtual void doNumericWithDotMode(bool);
|
||||
virtual void setLineFeedButton(bool);
|
||||
virtual void setPredictLanguageButton(bool);
|
||||
virtual void setSignWindowButton(bool);
|
||||
#endif
|
||||
virtual bool onClose();
|
||||
|
||||
void onPressedShift(bool shift);
|
||||
void onReleasedShift();
|
||||
#if defined(TIINPUTFORM_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION) || defined(TIMANAGER_IMPLEMENTATION)
|
||||
bool hasLineFeedButton() const { return mbLineFeedButton; }
|
||||
private:
|
||||
bool mbLineFeedButton;
|
||||
#ifdef TIMANAGER_IMPLEMENTATION
|
||||
GXTexObj mSpaceTexture;
|
||||
GXTexObj mSpaceTextureCN;
|
||||
GXTexObj mSpaceTextureKR;
|
||||
nw4rmanager::TiEventHandler* mpEventHandler;
|
||||
predictlang::LayoutByNW4R* mpPredictDialog;
|
||||
signwindow::LayoutByNW4R* mpSignWindow;
|
||||
#endif
|
||||
public:
|
||||
#endif
|
||||
#if defined(MYTIMANAGER_IMPLEMENTATION) || defined(TIINPUTFORM_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION) || defined(TIMANAGER_IMPLEMENTATION)
|
||||
virtual bool updateInput(int chan, f32 x, f32 y, u32 trig, u32 hold, u32 release, void* data) override;
|
||||
virtual bool updateInput(input::HKBManager& hkbManager) override;
|
||||
#endif
|
||||
#ifdef TI_CELLPHONE_IMPLEMENTATION
|
||||
virtual ~LayoutByNW4R();
|
||||
virtual void create(MEMAllocator* allocator) override;
|
||||
virtual void init() override;
|
||||
virtual void draw() override;
|
||||
virtual void calc() override;
|
||||
virtual void update() override;
|
||||
virtual void onKey(u32 key, void* data) override;
|
||||
virtual void onActive() override;
|
||||
virtual void updateFromReceiver(u32 command, void* data) override;
|
||||
virtual void changeInputMode(InputMode mode) override;
|
||||
virtual void changePredictLanguage() override;
|
||||
virtual void setAbcMode(bool enabled) override;
|
||||
virtual void goSignInputMode() override;
|
||||
virtual void setInputMode(InputMode mode) override;
|
||||
virtual void setLanguage(Language language) override;
|
||||
virtual void setCommandReceiver(CommandReceiver* receiver) override;
|
||||
|
||||
virtual CellPhoneAnmPane* getAnmPane(InputMode mode);
|
||||
virtual void throwReleaseForAll();
|
||||
virtual void changeAnimationAllToNormal();
|
||||
virtual void updatePredictLanguage(CommandReceiver::ChangePredictMode* mode);
|
||||
virtual void changeKeyTop(const PaneNameToCharCode* keys);
|
||||
virtual void changeSpaceKeyTop(const PaneNameToCharCode* keys);
|
||||
void setUpperCaseJP(bool enabled);
|
||||
void setLangKeyActive(bool enabled);
|
||||
void resetHoldingButton();
|
||||
|
||||
private:
|
||||
bool mbLineFeedButton;
|
||||
GXTexObj mTextures[3];
|
||||
EventHandler* mpEventHandler;
|
||||
predictlang::LayoutByNW4R* mpPredictLanguageDialog;
|
||||
signwindow::LayoutByNW4R* mpSignWindow;
|
||||
#elif defined(TIMANAGER_IMPLEMENTATION)
|
||||
virtual nw4rmanager::AnmPane* getAnmPane(InputMode mode);
|
||||
virtual void throwReleaseForAll();
|
||||
virtual void changeAnimationAllToNormal();
|
||||
virtual void updatePredictLanguage(CommandReceiver::ChangePredictMode* mode);
|
||||
virtual void changeKeyTop(const struct PaneNameToCharCode* table);
|
||||
virtual void changeSpaceKeyTop(const struct PaneNameToCharCode* table);
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifdef TI_CELLPHONE_SAMPLE_CLASS
|
||||
class Sample : public LayoutByNW4R {
|
||||
public:
|
||||
Sample(Manager* manager, nw4r::lyt::MultiArcResourceAccessor* resAccessor, EventObserver* observer)
|
||||
: LayoutByNW4R(manager, resAccessor, observer) {}
|
||||
virtual ~Sample() {}
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
@@ -93,8 +93,13 @@ namespace textinput {
|
||||
extern const KeySet csKeySetCNPinyin;
|
||||
extern const KeySet csKeySetHangul;
|
||||
|
||||
#ifdef TI_CELLPHONE_MATCH_LAYOUT
|
||||
extern const wchar_t* csSpaceZero;
|
||||
extern const wchar_t* csSpace;
|
||||
#else
|
||||
extern const wchar_t csSpaceZero[3];
|
||||
extern const wchar_t csSpace[3];
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,6 +151,26 @@ namespace textinput {
|
||||
u32 GetModifierState() const;
|
||||
void SetModifierState(u32, u32);
|
||||
|
||||
#if defined(TI_CELLPHONE_HKB_KEYSET)
|
||||
class KeySet {
|
||||
public:
|
||||
u8 GetKey() const;
|
||||
u32 GetWChar() const;
|
||||
bool IsValid() const;
|
||||
KeySet GetNext() const;
|
||||
KeySet(const KeySet& other)
|
||||
: mpManager(other.mpManager), mKind(other.mKind), mIndex(other.mIndex),
|
||||
mDevice(other.mDevice), mCharacter(other.mCharacter) {}
|
||||
private:
|
||||
const HKBManager* mpManager;
|
||||
u8 mKind;
|
||||
s8 mIndex;
|
||||
u8 mDevice;
|
||||
u16 mCharacter;
|
||||
};
|
||||
KeySet GetTriggeredKeySet() const;
|
||||
KeySet GetRepeatedKeySet() const;
|
||||
#else
|
||||
#if defined(TI_PC_KEYBOARD_IMPLEMENTATION) || defined(TISIGNWINDOW_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION)
|
||||
class KeySet {
|
||||
public:
|
||||
@@ -202,6 +222,7 @@ namespace textinput {
|
||||
KeySet GetRepeatedKeySet() const;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
private:
|
||||
u8 unk_0x00[0xFC];
|
||||
|
||||
@@ -15,9 +15,12 @@ namespace textinput {
|
||||
#if !(defined(TI_PC_KEYBOARD_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION)) && !defined(TIMANAGER_IMPLEMENTATION) && !defined(TISIGNWINDOW_IMPLEMENTATION)
|
||||
virtual void create(MEMAllocator* alloc) override;
|
||||
virtual void init() override;
|
||||
|
||||
#ifndef TI_CELLPHONE_MATCH_LAYOUT
|
||||
virtual void setCommandReceiver(CommandReceiver* receiver) override;
|
||||
virtual void sendCommand(u32 command, void*) override;
|
||||
#endif
|
||||
#endif
|
||||
#if !defined(TIMANAGER_IMPLEMENTATION) && !defined(TISIGNWINDOW_IMPLEMENTATION)
|
||||
virtual void updateFromReceiver(u32, void*) override;
|
||||
#endif
|
||||
|
||||
@@ -163,6 +163,28 @@ namespace ipl {
|
||||
unkVal1 = param_6;
|
||||
}
|
||||
|
||||
#ifdef IPL_SD_CHANNEL_SELECT_CPP
|
||||
T get() const {
|
||||
f32 frame = mFrame;
|
||||
f32 inverseDuration = 1.0f / mMaxFrame;
|
||||
T result =
|
||||
(mStart * (1.0f + (inverseDuration * (inverseDuration *
|
||||
(inverseDuration * (frame * (2.0f * frame * frame)))) -
|
||||
inverseDuration * (inverseDuration * (3.0f * frame * frame))))) -
|
||||
(mEnd * (inverseDuration * (inverseDuration *
|
||||
(inverseDuration * (frame * (2.0f * frame * frame)))) -
|
||||
inverseDuration * (inverseDuration * (3.0f * frame * frame))));
|
||||
f32 frameSquared = frame * frame;
|
||||
f32 cubic = inverseDuration * (inverseDuration * (frame * frameSquared));
|
||||
f32 tangent = unkVal0 * (frame + (cubic -
|
||||
inverseDuration * (2.0f * frame * frame))) +
|
||||
unkVal1 * (cubic - inverseDuration * frameSquared);
|
||||
result.x += tangent;
|
||||
result.y += tangent;
|
||||
result.z += tangent;
|
||||
return result;
|
||||
}
|
||||
#else
|
||||
T get() const {
|
||||
f32 var_f27 = mFrame;
|
||||
f32 var_f28 = 1.0f / mMaxFrame;
|
||||
@@ -195,6 +217,7 @@ namespace ipl {
|
||||
r = r + temp_f3;
|
||||
return r;*/
|
||||
}
|
||||
#endif
|
||||
|
||||
protected:
|
||||
f32 unkVal0;
|
||||
|
||||
@@ -134,7 +134,15 @@ namespace ipl {
|
||||
VEC3& operator/=(f32 val) { return operator*=(1.f / val); }
|
||||
VEC3 operator+(const VEC3& rhs) const { return VEC3(x + rhs.x, y + rhs.y, z + rhs.z); }
|
||||
VEC3 operator+(f32 v) const { return VEC3(x + v, y + v, z + v); }
|
||||
#ifdef IPL_SD_CHANNEL_SELECT_CPP
|
||||
nw4r::math::VEC3 operator-(const VEC3& rhs) const {
|
||||
nw4r::math::VEC3 difference;
|
||||
nw4r::math::VEC3Sub(&difference, this, &rhs);
|
||||
return difference;
|
||||
}
|
||||
#else
|
||||
VEC3 operator-(const VEC3& rhs) const { return VEC3(x - rhs.x, y - rhs.y, z - rhs.z); }
|
||||
#endif
|
||||
VEC3 operator*(f32 val) const { return VEC3(x * val, y * val, z * val); }
|
||||
VEC3 operator*(f64 val) const {
|
||||
nw4r::math::VEC3 vecOut;
|
||||
|
||||
@@ -86,6 +86,7 @@ namespace ipl {
|
||||
|
||||
const utility::BScroller& getBInst() { return mBScroller; }
|
||||
#ifdef IPL_SDMEMORY_SCROLLER_BINST_RESET
|
||||
void initScroll() { mScroller.init(); }
|
||||
void resetBInst() { mBScroller.reset(); }
|
||||
#endif
|
||||
|
||||
|
||||
@@ -312,6 +312,33 @@ namespace ipl {
|
||||
void setLayoutFrame(int state);
|
||||
BOOL tellStartingZoomAnm();
|
||||
void initPageAnimations(const math::VEC3& position, int direction);
|
||||
#ifdef IPL_SD_CHANNEL_SELECT_CPP
|
||||
void removeNandTitleInfo(ESTitleId titleId) {
|
||||
u32 titleCount = mNandTitleCount;
|
||||
u32 index = 0;
|
||||
for (; index < titleCount; ++index) {
|
||||
if (mpNandTitleInfo[index].curTitleId == titleId) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (index < mNandTitleCount) {
|
||||
for (; index < mNandTitleCount - 1; ++index) {
|
||||
NandSDWorker::TitleUsage& nextTitle = mpNandTitleInfo[index + 1];
|
||||
NandSDWorker::TitleUsage& currentTitle = mpNandTitleInfo[index];
|
||||
currentTitle.curTitleId = nextTitle.curTitleId;
|
||||
currentTitle.size = nextTitle.size;
|
||||
currentTitle.inode = nextTitle.inode;
|
||||
}
|
||||
--mNandTitleCount;
|
||||
}
|
||||
}
|
||||
nw4r::math::VEC3 getPageTransitionPosition(int index) const {
|
||||
nw4r::math::VEC3 position(0.0f, 0.0f, 0.0f);
|
||||
nw4r::lyt::Pane* pane = getCenterChannelPane(index);
|
||||
PSMTXMultVec(pane->GetGlobalMtx(), position, position);
|
||||
return position;
|
||||
}
|
||||
#endif
|
||||
static BOOL isChannelReady(const SDChannelObj* channel);
|
||||
nw4r::ut::List mChannelObjects;
|
||||
nand::LayoutFile* mpLayoutFile;
|
||||
|
||||
@@ -29,6 +29,9 @@ namespace ipl {
|
||||
class Setting;
|
||||
class APScanThread;
|
||||
|
||||
#ifdef IPL_SETTING_IMPLEMENTATION
|
||||
class APEvent;
|
||||
#else
|
||||
class APEvent : public ::gui::EventHandler {
|
||||
public:
|
||||
APEvent(Setting* setting) : ::gui::EventHandler(), mpSetting(setting) {}
|
||||
@@ -38,16 +41,17 @@ namespace ipl {
|
||||
private:
|
||||
Setting* mpSetting;
|
||||
};
|
||||
|
||||
struct SettingAnimation {
|
||||
u8 unknown[0x14];
|
||||
int state;
|
||||
};
|
||||
#endif
|
||||
|
||||
struct SettingAPScanList {
|
||||
u8 unknown[0x14];
|
||||
u16 count;
|
||||
u8 entries[0x7fe];
|
||||
union {
|
||||
struct {
|
||||
u16 count;
|
||||
u8 entries[0x7fe];
|
||||
};
|
||||
u8 recordBuffer[0x800];
|
||||
};
|
||||
union {
|
||||
WDBssDesc_* currentDescriptor;
|
||||
u16* currentDescriptorWords;
|
||||
@@ -86,7 +90,7 @@ namespace ipl {
|
||||
void initHTMLText();
|
||||
void initMessage();
|
||||
void initKeyboard(const char* text);
|
||||
bool checkInputString(const wchar_t* text);
|
||||
bool checkInputString(const wchar_t* text) NO_INLINE;
|
||||
int checkIPString(const wchar_t* text);
|
||||
void setDefaultBackString();
|
||||
void calcKeyboard();
|
||||
@@ -158,7 +162,6 @@ namespace ipl {
|
||||
virtual void destroy();
|
||||
virtual void prepare();
|
||||
virtual void create();
|
||||
virtual void calc();
|
||||
virtual void draw();
|
||||
virtual FaderSceneCommand calcFadein();
|
||||
virtual FaderSceneCommand calcNormal();
|
||||
@@ -208,8 +211,8 @@ namespace ipl {
|
||||
layout::Object* mpChangeLayout;
|
||||
layout::Object* mpMainLayout;
|
||||
layout::Object* mpWaitLayout;
|
||||
SettingAnimation* mpFirstAnimation;
|
||||
SettingAnimation* mpSecondAnimation;
|
||||
utility::FrameController* mpFirstAnimation;
|
||||
utility::FrameController* mpSecondAnimation;
|
||||
APEvent* mpEventHandler;
|
||||
gui::PaneManager* mpPaneManager;
|
||||
void* mpUSBAPThread;
|
||||
@@ -262,6 +265,17 @@ namespace ipl {
|
||||
#endif
|
||||
|
||||
};
|
||||
#ifdef IPL_SETTING_IMPLEMENTATION
|
||||
class APEvent : public ::gui::EventHandler {
|
||||
public:
|
||||
APEvent(Setting* setting) : ::gui::EventHandler(), mpSetting(setting) {}
|
||||
|
||||
virtual void onEvent(u32 componentID, u32 event, void* data);
|
||||
|
||||
private:
|
||||
Setting* mpSetting;
|
||||
};
|
||||
#endif
|
||||
} // namespace scene
|
||||
} // namespace ipl
|
||||
|
||||
|
||||
@@ -37,23 +37,41 @@ namespace ipl {
|
||||
LETTER,
|
||||
PHOTO_LETTER,
|
||||
NUMERIC,
|
||||
#ifdef IPL_SETTING_IMPLEMENTATION
|
||||
NORMAL_WITHOUT_LINEFEED = 2,
|
||||
NORMAL_WITHOUT_LINEFEED_WITH_SIGN = 4,
|
||||
NORMAL_BIGTEXT_WITHOUT_LINEFEED = 6,
|
||||
#else
|
||||
NORMAL_WITHOUT_LINEFEED,
|
||||
NORMAL_WITHOUT_LINEFEED_WITH_SIGN,
|
||||
NORMAL_BIGTEXT_WITHOUT_LINEFEED,
|
||||
#endif
|
||||
ONLY_QWERTY_WITHOUT_LINEFEED_AND_SIGN,
|
||||
ONLY_QWERTY_BIGTEXT_WITHOUT_LINEFEED_AND_SIGN,
|
||||
#ifdef IPL_SETTING_IMPLEMENTATION
|
||||
NUMERIC_WITH_DOT = 16,
|
||||
NUMERIC_BIGTEXT_WITH_DOT = 10,
|
||||
#else
|
||||
NUMERIC_WITH_DOT,
|
||||
NUMERIC_BIGTEXT_WITH_DOT,
|
||||
#endif
|
||||
NORMAL_BIGTEXT_WITHOUT_LINEFEED_WITH_SIGN,
|
||||
NUMERIC_WITH_SEPERATOR,
|
||||
PREDICT_WITHOUT_LINEFEED,
|
||||
} KeyboardType;
|
||||
|
||||
typedef struct KeyboardSetting {
|
||||
#ifdef IPL_SETTING_IMPLEMENTATION
|
||||
u32 rowLimit;
|
||||
const wchar_t* wcString;
|
||||
u32 stringLimit;
|
||||
KeyboardType type;
|
||||
#else
|
||||
KeyboardType type; // 0x00
|
||||
const wchar_t* wcString; // 0x04
|
||||
u32 stringLimit; // 0x08
|
||||
u32 rowLimit; // 0x0C
|
||||
#endif
|
||||
#ifdef IPL_ADDRESS_EDIT_CPP
|
||||
KeyboardSetting(KeyboardType keyboardType, const wchar_t* value, u32 limit, u32 rows);
|
||||
#endif
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
#include "system/iplMessage.h"
|
||||
|
||||
namespace ipl {
|
||||
#ifdef IPL_SETTING_IMPLEMENTATION
|
||||
namespace scene { class Setting; }
|
||||
#endif
|
||||
namespace message {
|
||||
class Manager {
|
||||
public:
|
||||
@@ -16,6 +19,9 @@ namespace ipl {
|
||||
void setResource(u8* msgData) const { mpMessage->setResource(msgData); }
|
||||
|
||||
private:
|
||||
#ifdef IPL_SETTING_IMPLEMENTATION
|
||||
friend class scene::Setting;
|
||||
#endif
|
||||
void initMessage();
|
||||
|
||||
Message* mpMessage; // 0x00
|
||||
|
||||
@@ -65,6 +65,18 @@ namespace ipl {
|
||||
void setDidntGotoSDMenu(BOOL value) { mData.didntGotoSDMenu = value; }
|
||||
#endif
|
||||
|
||||
#ifdef IPL_SDMEMORY_TITLE_CACHE_ACCESS
|
||||
const ESTitleId* getTitleCache() const { return &mData.titleCache[0][0]; }
|
||||
#endif
|
||||
#ifdef IPL_SD_CHANNEL_SELECT_CPP
|
||||
ESTitleId getCachedTitle(int index) const {
|
||||
if (index < 0 || index >= MAX_CHANNEL_TOTAL) {
|
||||
return 0;
|
||||
}
|
||||
return (&mData.titleCache[0][0])[index];
|
||||
}
|
||||
#endif
|
||||
|
||||
bool hasPhotoMP3Dummy() { return mbPhotoMP3; }
|
||||
bool hasPhoto2Title() { return mbPhoto2; }
|
||||
bool hasPhoto2DummyCheck() { return mbPhoto2Check; }
|
||||
|
||||
@@ -528,6 +528,7 @@ static char* double2hex(long double num, char* buff, print_format format) {
|
||||
unsigned snum;
|
||||
long exp;
|
||||
print_format exp_format;
|
||||
print_format* exp_fmt_ptr = &exp_format;
|
||||
int hex_precision;
|
||||
int mantissa_bit;
|
||||
decform form;
|
||||
@@ -602,7 +603,7 @@ static char* double2hex(long double num, char* buff, print_format format) {
|
||||
|
||||
exp = snum - 0x3FF;
|
||||
|
||||
p = long2str(exp, buff, exp_format);
|
||||
p = long2str(exp, buff, *exp_fmt_ptr);
|
||||
if (format.conversion_char == 'a')
|
||||
*--p = 'p';
|
||||
else
|
||||
@@ -624,7 +625,7 @@ static char* double2hex(long double num, char* buff, print_format format) {
|
||||
working_byte = (*(q + mantissa_byte)) >> (7 - (mantissa_bit & 7));
|
||||
|
||||
if ((mantissa_bit & ~7) != ((mantissa_bit - 4) & ~7)) {
|
||||
working_byte |= (unsigned char)(((*(q + (mantissa_byte - 1))) << 8) >> (7 - ((mantissa_bit) & 7)));
|
||||
working_byte |= (((*(q + (mantissa_byte - 1))) << 8) >> (7 - ((mantissa_bit) & 7)));
|
||||
}
|
||||
|
||||
if (!TARGET_FLOAT_IMPLICIT_J_BIT) {
|
||||
@@ -635,14 +636,14 @@ static char* double2hex(long double num, char* buff, print_format format) {
|
||||
}
|
||||
|
||||
if ((working_byte &= 0xF) < 10) {
|
||||
working_byte = (unsigned char)(working_byte + '0');
|
||||
working_byte += '0';
|
||||
}
|
||||
else
|
||||
if (format.conversion_char == 'a') {
|
||||
working_byte = (unsigned char)(working_byte + 'a' - 10);
|
||||
working_byte += 'a' - 10;
|
||||
}
|
||||
else {
|
||||
working_byte = (unsigned char)(working_byte + 'A' - 10);
|
||||
working_byte += 'A' - 10;
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -967,6 +968,7 @@ int __pformatter(void* (*WriteProc)(void*, const char*, size_t), void* WriteProc
|
||||
const char* format_ptr;
|
||||
const char* curr_format;
|
||||
print_format format;
|
||||
print_format* fmt_ptr = &format;
|
||||
signed long long_num;
|
||||
signed long long long_long_num;
|
||||
long double long_double_num;
|
||||
@@ -1033,11 +1035,11 @@ int __pformatter(void* (*WriteProc)(void*, const char*, size_t), void* WriteProc
|
||||
|| format.argument_options == intmax_argument
|
||||
)
|
||||
{
|
||||
if (!(buff_ptr = longlong2str(long_long_num, buff + 512, format))) {
|
||||
if (!(buff_ptr = longlong2str(long_long_num, buff + 512, *fmt_ptr))) {
|
||||
goto conversion_error;
|
||||
}
|
||||
} else {
|
||||
if (!(buff_ptr = long2str(long_num, buff + 512, format))) {
|
||||
if (!(buff_ptr = long2str(long_num, buff + 512, *fmt_ptr))) {
|
||||
goto conversion_error;
|
||||
}
|
||||
}
|
||||
@@ -1079,11 +1081,11 @@ int __pformatter(void* (*WriteProc)(void*, const char*, size_t), void* WriteProc
|
||||
|| format.argument_options == intmax_argument
|
||||
)
|
||||
{
|
||||
if (!(buff_ptr = longlong2str(long_long_num, buff + 512, format))) {
|
||||
if (!(buff_ptr = longlong2str(long_long_num, buff + 512, *fmt_ptr))) {
|
||||
goto conversion_error;
|
||||
}
|
||||
} else {
|
||||
if (!(buff_ptr = long2str(long_num, buff + 512, format))) {
|
||||
if (!(buff_ptr = long2str(long_num, buff + 512, *fmt_ptr))) {
|
||||
goto conversion_error;
|
||||
}
|
||||
}
|
||||
@@ -1103,7 +1105,7 @@ int __pformatter(void* (*WriteProc)(void*, const char*, size_t), void* WriteProc
|
||||
long_double_num = va_arg(arg, double);
|
||||
}
|
||||
|
||||
if (!(buff_ptr = float2str(long_double_num, buff + 512, format))) {
|
||||
if (!(buff_ptr = float2str(long_double_num, buff + 512, *fmt_ptr))) {
|
||||
goto conversion_error;
|
||||
}
|
||||
|
||||
@@ -1118,7 +1120,7 @@ int __pformatter(void* (*WriteProc)(void*, const char*, size_t), void* WriteProc
|
||||
long_double_num = va_arg(arg, double);
|
||||
}
|
||||
|
||||
if (!(buff_ptr = double2hex(long_double_num, buff + 512, format))) {
|
||||
if (!(buff_ptr = double2hex(long_double_num, buff + 512, *fmt_ptr))) {
|
||||
goto conversion_error;
|
||||
}
|
||||
|
||||
|
||||
@@ -248,6 +248,8 @@ static char* find_name(const char* names, int index) {
|
||||
return extracted_name;
|
||||
}
|
||||
|
||||
#pragma exceptions off
|
||||
|
||||
char* asctime(const struct tm* timeptr) {
|
||||
static char asctime_result[26];
|
||||
char* result = asctime_result;
|
||||
@@ -283,6 +285,8 @@ char* ctime(const time_t* timer) {
|
||||
return result;
|
||||
}
|
||||
|
||||
#pragma exceptions on
|
||||
|
||||
static time_t time(time_t* timer) {
|
||||
time_t result = __get_time();
|
||||
|
||||
@@ -312,6 +316,8 @@ static struct tm* gmtime(const time_t* timer) {
|
||||
return &gmtime_tm;
|
||||
}
|
||||
|
||||
#pragma exceptions on
|
||||
|
||||
struct tm* localtime(const time_t* timer) {
|
||||
static struct tm localtime_tm;
|
||||
|
||||
|
||||
@@ -521,6 +521,7 @@ static wchar_t* double2hex(long double num, wchar_t* buff, print_format format)
|
||||
unsigned snum;
|
||||
long exp;
|
||||
print_format exp_format;
|
||||
print_format* exp_fmt_ptr = &exp_format;
|
||||
int hex_precision;
|
||||
int mantissa_bit;
|
||||
decform form;
|
||||
@@ -595,7 +596,7 @@ static wchar_t* double2hex(long double num, wchar_t* buff, print_format format)
|
||||
|
||||
exp = snum - 0x3FF;
|
||||
|
||||
p = long2str(exp, buff, exp_format);
|
||||
p = long2str(exp, buff, *exp_fmt_ptr);
|
||||
if (format.conversion_char == 'a')
|
||||
*--p = 'p';
|
||||
else
|
||||
@@ -617,7 +618,7 @@ static wchar_t* double2hex(long double num, wchar_t* buff, print_format format)
|
||||
working_byte = (*(q + mantissa_byte)) >> (7 - (mantissa_bit & 7));
|
||||
|
||||
if ((mantissa_bit & ~7) != ((mantissa_bit - 4) & ~7)) {
|
||||
working_byte |= (unsigned char)(((*(q + (mantissa_byte - 1))) << 8) >> (7 - ((mantissa_bit) & 7)));
|
||||
working_byte |= (((*(q + (mantissa_byte - 1))) << 8) >> (7 - ((mantissa_bit) & 7)));
|
||||
}
|
||||
|
||||
if (!TARGET_FLOAT_IMPLICIT_J_BIT) {
|
||||
@@ -628,14 +629,14 @@ static wchar_t* double2hex(long double num, wchar_t* buff, print_format format)
|
||||
}
|
||||
|
||||
if ((working_byte &= 0xF) < 10) {
|
||||
working_byte = (unsigned char)(working_byte + '0');
|
||||
working_byte += '0';
|
||||
}
|
||||
else
|
||||
if (format.conversion_char == 'a') {
|
||||
working_byte = (unsigned char)(working_byte + 'a' - 10);
|
||||
working_byte += 'a' - 10;
|
||||
}
|
||||
else {
|
||||
working_byte = (unsigned char)(working_byte + 'A' - 10);
|
||||
working_byte += 'A' - 10;
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -970,6 +971,7 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
|
||||
const wchar_t* format_ptr;
|
||||
const wchar_t* curr_format;
|
||||
print_format format;
|
||||
print_format* fmt_ptr = &format;
|
||||
signed long long_num;
|
||||
signed long long long_long_num;
|
||||
long double long_double_num;
|
||||
@@ -1027,11 +1029,11 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
|
||||
if (format.argument_options == long_long_argument ||
|
||||
format.argument_options == intmax_argument)
|
||||
{
|
||||
if (!(buff_ptr = longlong2str(long_long_num, buff + 512, format))) {
|
||||
if (!(buff_ptr = longlong2str(long_long_num, buff + 512, *fmt_ptr))) {
|
||||
goto conversion_error;
|
||||
}
|
||||
} else {
|
||||
if (!(buff_ptr = long2str(long_num, buff + 512, format))) {
|
||||
if (!(buff_ptr = long2str(long_num, buff + 512, *fmt_ptr))) {
|
||||
goto conversion_error;
|
||||
}
|
||||
}
|
||||
@@ -1069,11 +1071,11 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
|
||||
|| format.argument_options == intmax_argument
|
||||
)
|
||||
{
|
||||
if (!(buff_ptr = longlong2str(long_long_num, buff + 512, format))) {
|
||||
if (!(buff_ptr = longlong2str(long_long_num, buff + 512, *fmt_ptr))) {
|
||||
goto conversion_error;
|
||||
}
|
||||
} else {
|
||||
if (!(buff_ptr = long2str(long_num, buff + 512, format))) {
|
||||
if (!(buff_ptr = long2str(long_num, buff + 512, *fmt_ptr))) {
|
||||
goto conversion_error;
|
||||
}
|
||||
}
|
||||
@@ -1093,7 +1095,7 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
|
||||
long_double_num = va_arg(args, double);
|
||||
}
|
||||
|
||||
if (!(buff_ptr = float2str(long_double_num, buff + 512, format))) {
|
||||
if (!(buff_ptr = float2str(long_double_num, buff + 512, *fmt_ptr))) {
|
||||
goto conversion_error;
|
||||
}
|
||||
|
||||
@@ -1108,7 +1110,7 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
|
||||
long_double_num = va_arg(args, double);
|
||||
}
|
||||
|
||||
if (!(buff_ptr = double2hex(long_double_num, buff + 512, format))) {
|
||||
if (!(buff_ptr = double2hex(long_double_num, buff + 512, *fmt_ptr))) {
|
||||
goto conversion_error;
|
||||
}
|
||||
|
||||
@@ -1124,7 +1126,8 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
|
||||
}
|
||||
|
||||
if (format.alternate_form) {
|
||||
num_chars = (unsigned char)*wcs_ptr++;
|
||||
wchar_t first = *wcs_ptr++;
|
||||
num_chars = (unsigned char)first;
|
||||
|
||||
if (format.precision_specified && num_chars > format.precision) {
|
||||
num_chars = format.precision;
|
||||
@@ -1150,7 +1153,7 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
|
||||
}
|
||||
|
||||
if (format.alternate_form) {
|
||||
num_chars = (unsigned char)*wcs_ptr++;
|
||||
num_chars = (unsigned char)*(const wchar_t*)wcs_ptr;
|
||||
|
||||
if (format.precision_specified && num_chars > format.precision) {
|
||||
num_chars = format.precision;
|
||||
@@ -1222,7 +1225,7 @@ static int __wpformatter(void* (*write_proc)(void*, const wchar_t*, size_t),
|
||||
num_chars = 1;
|
||||
break;
|
||||
|
||||
case 0xFF:
|
||||
case 0xFFFF:
|
||||
default:
|
||||
conversion_error:
|
||||
num_chars = wcslen(curr_format);
|
||||
|
||||
@@ -93,7 +93,11 @@ namespace nw4r {
|
||||
#else
|
||||
void SetTranslate(const math::VEC3& translate) { mTranslate = translate; }
|
||||
#endif
|
||||
#ifdef IPL_SDMEMORY_SET_TRANSLATE_OUT_OF_LINE
|
||||
void SetTranslate(const math::VEC2& translate);
|
||||
#else
|
||||
void SetTranslate(const math::VEC2& translate) { SetTranslate(math::VEC3(translate.x, translate.y, 0.0f)); }
|
||||
#endif
|
||||
|
||||
const math::VEC3& GetRotate() const { return mRotate; }
|
||||
void SetRotate(const math::VEC3& rotate) { mRotate = rotate; }
|
||||
|
||||
@@ -14,7 +14,11 @@ namespace nw4r {
|
||||
#else
|
||||
Rect() : left(), top(), right(), bottom() {}
|
||||
#endif
|
||||
#ifdef IPL_SETTING_RECT_OUT_OF_LINE
|
||||
Rect(f32 l, f32 t, f32 r, f32 b);
|
||||
#else
|
||||
Rect(f32 l, f32 t, f32 r, f32 b) : left(l), top(t), right(r), bottom(b) {}
|
||||
#endif
|
||||
|
||||
#ifndef IPL_CONTROLLER_TRIVIAL_RECT_DTOR
|
||||
~Rect() {}
|
||||
|
||||
@@ -18,7 +18,6 @@ static TMCHuffmanEntry readHuffmanLimit(const TMCHuffmanEntry* entries) {
|
||||
}
|
||||
|
||||
s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_ptr, TMCCJPEGDecWork* work) {
|
||||
TMCHuffmanEntry acEntry;
|
||||
const TMCHuffmanEntry* ac_fast;
|
||||
u8* huff_sym;
|
||||
u32* huff_tbl;
|
||||
@@ -60,6 +59,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
|
||||
work->bitCount = bit_pos;
|
||||
r = extra;
|
||||
} else {
|
||||
s32 dcResult;
|
||||
u32 code;
|
||||
unsigned int i;
|
||||
const TMCHuffmanEntry* entry;
|
||||
@@ -70,9 +70,9 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
|
||||
huff_tbl = work->pDCHuffTbl;
|
||||
|
||||
if (bit_pos <= 17) {
|
||||
r = TMCJPEGDEC_load_buff(work);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
dcResult = TMCJPEGDEC_load_buff(work);
|
||||
if (dcResult < 0) {
|
||||
goto dc_end;
|
||||
}
|
||||
}
|
||||
bit_pos = work->bitCount;
|
||||
@@ -90,7 +90,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
|
||||
i++;
|
||||
entry++;
|
||||
if (i > 16) {
|
||||
r = TMCC_ERROR_OVERFLOW;
|
||||
dcResult = TMCC_ERROR_OVERFLOW;
|
||||
goto dc_end;
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
|
||||
{
|
||||
TMCHuffmanEntry decoded = readHuffmanLimit(entry);
|
||||
thresh = decoded.bitLength;
|
||||
offs = decoded.symbol;
|
||||
offs = entry->symbol;
|
||||
}
|
||||
|
||||
if (code > (u32)thresh) {
|
||||
@@ -113,13 +113,14 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
|
||||
}
|
||||
|
||||
code = code - entry->bitLength + offs;
|
||||
r = huff_sym[code & 0xFF];
|
||||
dcResult = huff_sym[code & 0xFF];
|
||||
break;
|
||||
}
|
||||
|
||||
dc_end:
|
||||
if (r < 0) {
|
||||
return r;
|
||||
r = dcResult;
|
||||
if (dcResult < 0) {
|
||||
return dcResult;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,7 +140,7 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
|
||||
bit_pos -= r;
|
||||
work->bitCount = bit_pos;
|
||||
extra = extra & (bit_data >> bit_pos);
|
||||
if (extra < (s32)tmp >> 1) {
|
||||
if (((s32)tmp >> 1) > extra) {
|
||||
extra -= tmp - 1;
|
||||
}
|
||||
dc_predict_row_ptr[0] += extra;
|
||||
@@ -147,156 +148,159 @@ s32 TMCJPEGDEC_decode_iquant(s32* block, u8* conv_row_ptr, u32* dc_predict_row_p
|
||||
|
||||
*block = dc_predict_row_ptr[0] * blk0;
|
||||
|
||||
ac_fast = (const TMCHuffmanEntry*)work->pACFast;
|
||||
huff_tbl = work->pACHuffTbl;
|
||||
huff_sym = work->pACHuffSym;
|
||||
{
|
||||
TMCHuffmanEntry acEntry;
|
||||
ac_fast = (const TMCHuffmanEntry*)work->pACFast;
|
||||
huff_tbl = work->pACHuffTbl;
|
||||
huff_sym = work->pACHuffSym;
|
||||
|
||||
memset(block + 1, 0, 0xFC);
|
||||
memset(block + 1, 0, 0xFC);
|
||||
|
||||
bit_pos = work->bitCount;
|
||||
idx = 1;
|
||||
if (bit_pos <= 8) {
|
||||
r = TMCJPEGDEC_load_buff(work);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
|
||||
bit_pos = work->bitCount;
|
||||
zztbl = TMCJPEGDEC_Zigzag_data;
|
||||
bit_data = work->bitBuf;
|
||||
t = bit_pos - 8;
|
||||
acEntry = readHuffmanEntry(ac_fast, (bit_data >> t) & 0xFF);
|
||||
|
||||
while (idx < 64) {
|
||||
s32 ac_thresh = acEntry.bitLength;
|
||||
if (ac_thresh != 0) {
|
||||
bit_pos = work->bitCount;
|
||||
bit_pos -= ac_thresh;
|
||||
work->bitCount = bit_pos;
|
||||
r = acEntry.symbol;
|
||||
} else {
|
||||
u32 code;
|
||||
unsigned int i;
|
||||
const TMCHuffmanEntry* entry;
|
||||
s32 thresh;
|
||||
s32 offs;
|
||||
|
||||
bit_pos = work->bitCount;
|
||||
if (bit_pos <= 17) {
|
||||
r = TMCJPEGDEC_load_buff(work);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
}
|
||||
bit_pos = work->bitCount;
|
||||
}
|
||||
bit_data = work->bitBuf;
|
||||
bit_pos -= 9;
|
||||
code = (bit_data >> bit_pos) & 0x1FF;
|
||||
work->bitCount = bit_pos;
|
||||
|
||||
i = 9;
|
||||
entry = (const TMCHuffmanEntry*)huff_tbl + 9;
|
||||
|
||||
goto ac_entry_huff;
|
||||
|
||||
while (1) {
|
||||
i++;
|
||||
entry++;
|
||||
if (i > 16) {
|
||||
r = TMCC_ERROR_OVERFLOW;
|
||||
goto ac_end;
|
||||
}
|
||||
|
||||
bit_pos = work->bitCount;
|
||||
code <<= 1;
|
||||
bit_data = work->bitBuf;
|
||||
bit_pos--;
|
||||
work->bitCount = bit_pos;
|
||||
code |= (bit_data >> bit_pos) & 1;
|
||||
|
||||
ac_entry_huff:
|
||||
{
|
||||
TMCHuffmanEntry decoded = readHuffmanLimit(entry);
|
||||
thresh = decoded.bitLength;
|
||||
offs = decoded.symbol;
|
||||
}
|
||||
|
||||
if (code > (u32)thresh) {
|
||||
continue;
|
||||
}
|
||||
|
||||
code = code - entry->bitLength + offs;
|
||||
r = huff_sym[code & 0xFF];
|
||||
break;
|
||||
}
|
||||
|
||||
ac_end:
|
||||
if (r < 0) {
|
||||
bit_pos = work->bitCount;
|
||||
idx = 1;
|
||||
if (bit_pos <= 8) {
|
||||
r = TMCJPEGDEC_load_buff(work);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
}
|
||||
|
||||
t = r & 0x0F;
|
||||
if (t != 0) {
|
||||
r >>= 4;
|
||||
idx += r;
|
||||
bit_pos = work->bitCount;
|
||||
zztbl = TMCJPEGDEC_Zigzag_data;
|
||||
bit_data = work->bitBuf;
|
||||
t = bit_pos - 8;
|
||||
acEntry = readHuffmanEntry(ac_fast, (bit_data >> t) & 0xFF);
|
||||
|
||||
if (idx >= 64) {
|
||||
return TMCC_ERROR_OVERFLOW;
|
||||
}
|
||||
while (idx < 64) {
|
||||
s32 ac_thresh = acEntry.bitLength;
|
||||
if (ac_thresh != 0) {
|
||||
bit_pos = work->bitCount;
|
||||
bit_pos -= ac_thresh;
|
||||
work->bitCount = bit_pos;
|
||||
r = acEntry.symbol;
|
||||
} else {
|
||||
u32 code;
|
||||
unsigned int i;
|
||||
const TMCHuffmanEntry* entry;
|
||||
s32 thresh;
|
||||
s32 offs;
|
||||
|
||||
zz = zztbl[idx];
|
||||
bit_pos = work->bitCount;
|
||||
if (bit_pos <= 17) {
|
||||
r = TMCJPEGDEC_load_buff(work);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
}
|
||||
bit_pos = work->bitCount;
|
||||
}
|
||||
bit_data = work->bitBuf;
|
||||
bit_pos -= 9;
|
||||
code = (bit_data >> bit_pos) & 0x1FF;
|
||||
work->bitCount = bit_pos;
|
||||
|
||||
bit_pos = work->bitCount;
|
||||
if (bit_pos <= t + 8) {
|
||||
r = TMCJPEGDEC_load_buff(work);
|
||||
i = 9;
|
||||
entry = (const TMCHuffmanEntry*)huff_tbl + 9;
|
||||
|
||||
goto ac_entry_huff;
|
||||
|
||||
while (1) {
|
||||
i++;
|
||||
entry++;
|
||||
if (i > 16) {
|
||||
r = TMCC_ERROR_OVERFLOW;
|
||||
goto ac_end;
|
||||
}
|
||||
|
||||
bit_pos = work->bitCount;
|
||||
code <<= 1;
|
||||
bit_data = work->bitBuf;
|
||||
bit_pos--;
|
||||
work->bitCount = bit_pos;
|
||||
code |= (bit_data >> bit_pos) & 1;
|
||||
|
||||
ac_entry_huff:
|
||||
{
|
||||
TMCHuffmanEntry decoded = readHuffmanLimit(entry);
|
||||
thresh = decoded.bitLength;
|
||||
offs = entry->symbol;
|
||||
}
|
||||
|
||||
if (code > (u32)thresh) {
|
||||
continue;
|
||||
}
|
||||
|
||||
code = code - entry->bitLength + offs;
|
||||
r = huff_sym[code & 0xFF];
|
||||
break;
|
||||
}
|
||||
|
||||
ac_end:
|
||||
if (r < 0) {
|
||||
return r;
|
||||
}
|
||||
}
|
||||
|
||||
t = r & 0x0F;
|
||||
if (t != 0) {
|
||||
r >>= 4;
|
||||
idx += r;
|
||||
|
||||
if (idx >= 64) {
|
||||
return TMCC_ERROR_OVERFLOW;
|
||||
}
|
||||
|
||||
zz = zztbl[idx];
|
||||
|
||||
bit_pos = work->bitCount;
|
||||
if (bit_pos <= t + 8) {
|
||||
r = TMCJPEGDEC_load_buff(work);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
}
|
||||
bit_pos = work->bitCount;
|
||||
}
|
||||
tmp = 1 << t;
|
||||
bit_data = work->bitBuf;
|
||||
extra = tmp - 1;
|
||||
bit_pos -= t;
|
||||
work->bitCount = bit_pos;
|
||||
t = bit_pos - 8;
|
||||
extra = extra & (bit_data >> bit_pos);
|
||||
acEntry = readHuffmanEntry(ac_fast, (bit_data >> t) & 0xFF);
|
||||
|
||||
if (((s32)tmp >> 1) > extra) {
|
||||
extra -= tmp - 1;
|
||||
}
|
||||
|
||||
q = ((s32*)conv_row_ptr)[zz];
|
||||
block[zz] = extra * q;
|
||||
|
||||
idx++;
|
||||
} else {
|
||||
if (r == 0) {
|
||||
break;
|
||||
}
|
||||
bit_pos = work->bitCount;
|
||||
}
|
||||
tmp = 1 << t;
|
||||
bit_data = work->bitBuf;
|
||||
extra = tmp - 1;
|
||||
bit_pos -= t;
|
||||
work->bitCount = bit_pos;
|
||||
t = bit_pos - 8;
|
||||
extra = extra & (bit_data >> bit_pos);
|
||||
acEntry = readHuffmanEntry(ac_fast, (bit_data >> t) & 0xFF);
|
||||
|
||||
if (extra < (s32)tmp >> 1) {
|
||||
extra -= tmp - 1;
|
||||
}
|
||||
|
||||
q = ((s32*)conv_row_ptr)[zz];
|
||||
block[zz] = extra * q;
|
||||
|
||||
idx++;
|
||||
} else {
|
||||
if (r == 0) {
|
||||
break;
|
||||
}
|
||||
bit_pos = work->bitCount;
|
||||
if (bit_pos <= 8) {
|
||||
r = TMCJPEGDEC_load_buff(work);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
if (bit_pos <= 8) {
|
||||
r = TMCJPEGDEC_load_buff(work);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
}
|
||||
}
|
||||
bit_data = work->bitBuf;
|
||||
bit_pos = work->bitCount;
|
||||
t = bit_pos - 8;
|
||||
tmp = ((bit_data >> t) & 0xFF) << 2;
|
||||
acEntry = readHuffmanEntry(ac_fast, tmp >> 2);
|
||||
|
||||
idx += 16;
|
||||
}
|
||||
bit_data = work->bitBuf;
|
||||
bit_pos = work->bitCount;
|
||||
t = bit_pos - 8;
|
||||
tmp = ((bit_data >> t) & 0xFF) << 2;
|
||||
acEntry = readHuffmanEntry(ac_fast, tmp >> 2);
|
||||
|
||||
idx += 16;
|
||||
}
|
||||
}
|
||||
|
||||
if (idx > 64) {
|
||||
return TMCC_ERROR_OVERFLOW;
|
||||
}
|
||||
if (idx > 64) {
|
||||
return TMCC_ERROR_OVERFLOW;
|
||||
}
|
||||
|
||||
idx--;
|
||||
return TMCJPEGDEC_Zigzag_loop[idx];
|
||||
idx--;
|
||||
return TMCJPEGDEC_Zigzag_loop[idx];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ void TMCJPEGDEC_IdctBlock_Lumi(s32* block, u8* conv_row_ptr, u16 pitch, s32 zigz
|
||||
n = (b1 + b7) + ((b5 + b3) + m);
|
||||
o = x + m;
|
||||
p = z + p_part;
|
||||
q = p + x;
|
||||
q = x + p;
|
||||
dst[0] = w + n;
|
||||
dst[7] = w - n;
|
||||
dst[1] = v + o;
|
||||
@@ -159,10 +159,10 @@ void TMCJPEGDEC_IdctBlock_Lumi(s32* block, u8* conv_row_ptr, u16 pitch, s32 zigz
|
||||
z_factor = ((b5 - b3) + (b1 - b7)) * 0x62 >> 8;
|
||||
m_part = ((b1 - b7) * 0x14E >> 8) - z_factor;
|
||||
|
||||
n = b1 + b7 + b5 + b3 + m_part;
|
||||
n = (b1 + b7) + ((b5 + b3) + m_part);
|
||||
o = x + m_part;
|
||||
p = z_factor + ((b5 - b3) * 0x8B >> 8);
|
||||
q = p + x;
|
||||
p = ((b5 - b3) * 0x8B >> 8) + z_factor;
|
||||
q = x + p;
|
||||
|
||||
out[0] = scalingClampU8(w + n);
|
||||
out[r] = scalingClampU8(w - n);
|
||||
@@ -272,7 +272,7 @@ void TMCJPEGDEC_IdctBlock_Col(s32* block, u8* conv_row_ptr, u16 pitch, s32 zigza
|
||||
}
|
||||
zero_fill:
|
||||
dst = tmp + done;
|
||||
for (; done < 0x39; done += 8) {
|
||||
for (; done <= 0x38; done += 8) {
|
||||
memset(dst, 0, 0x20);
|
||||
dst += 8;
|
||||
}
|
||||
@@ -347,7 +347,7 @@ mode_gt_2:
|
||||
}
|
||||
|
||||
dst = tmp + done;
|
||||
for (; done < 0x39; done += 8) {
|
||||
for (; done <= 0x38; done += 8) {
|
||||
memset(dst, 0, 0x20);
|
||||
dst += 8;
|
||||
}
|
||||
|
||||
@@ -30,14 +30,14 @@ s32 TMCJPEGDEC_set_converterRGB565(TMCCJPEGDecWork* work) {
|
||||
u8* p2 = p1 + mode;
|
||||
u8* p3 = p2 + mode;
|
||||
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV411toRGB565;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV411toRGB565edge;
|
||||
work->pConvRowPtrs[0] = (void*)ptr;
|
||||
work->pConvRowPtrs[1] = (void*)p1;
|
||||
work->pConvRowPtrs[2] = (void*)p2;
|
||||
work->pConvRowPtrs[3] = (void*)p3;
|
||||
work->pConvRowPtrs[5] = (void*)(ob + 0x104);
|
||||
work->pConvRowPtrs[6] = (void*)(ob + 0x144);
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV411toRGB565;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV411toRGB565edge;
|
||||
work->pitch = 0x20;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
@@ -45,12 +45,12 @@ s32 TMCJPEGDEC_set_converterRGB565(TMCCJPEGDecWork* work) {
|
||||
case 1: {
|
||||
u8 mode = work->idctMode;
|
||||
u8* ptr = ob + 4;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV422toRGB565;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV422toRGB565edge;
|
||||
work->pConvRowPtrs[0] = (void*)ptr;
|
||||
work->pConvRowPtrs[1] = (void*)(ptr + mode);
|
||||
work->pConvRowPtrs[5] = (void*)(ob + 0x84);
|
||||
work->pConvRowPtrs[6] = (void*)(ob + 0xc4);
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV422toRGB565;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV422toRGB565edge;
|
||||
work->pitch = 0x10;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
@@ -61,14 +61,14 @@ s32 TMCJPEGDEC_set_converterRGB565(TMCCJPEGDecWork* work) {
|
||||
u8* p1 = ptr + mode;
|
||||
u8* p2 = ptr + mode * 16;
|
||||
u8* p3 = p2 + mode;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV420toRGB565;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV420toRGB565edge;
|
||||
work->pConvRowPtrs[0] = (void*)ptr;
|
||||
work->pConvRowPtrs[1] = (void*)p1;
|
||||
work->pConvRowPtrs[2] = (void*)p2;
|
||||
work->pConvRowPtrs[3] = (void*)p3;
|
||||
work->pConvRowPtrs[5] = (void*)(ob + 0x104);
|
||||
work->pConvRowPtrs[6] = (void*)(ob + 0x144);
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV420toRGB565;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV420toRGB565edge;
|
||||
work->pitch = 0x10;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
@@ -76,30 +76,30 @@ s32 TMCJPEGDEC_set_converterRGB565(TMCCJPEGDecWork* work) {
|
||||
case 3: {
|
||||
u8 mode = work->idctMode;
|
||||
u8* ptr = ob + 4;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV211toRGB565;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV211toRGB565edge;
|
||||
work->pConvRowPtrs[0] = (void*)ptr;
|
||||
work->pConvRowPtrs[1] = (void*)(ptr + mode * 8);
|
||||
work->pConvRowPtrs[5] = (void*)(ob + 0x84);
|
||||
work->pConvRowPtrs[6] = (void*)(ob + 0xc4);
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV211toRGB565;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV211toRGB565edge;
|
||||
work->pitch = 0x08;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 4: {
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV444toRGB565;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV444toRGB565edge;
|
||||
work->pConvRowPtrs[0] = (void*)(ob + 0x4);
|
||||
work->pConvRowPtrs[5] = (void*)(ob + 0x44);
|
||||
work->pConvRowPtrs[6] = (void*)(ob + 0x84);
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV444toRGB565;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV444toRGB565edge;
|
||||
work->pitch = 0x08;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 5: {
|
||||
work->pConvRowPtrs[0] = (void*)(ob + 0x4);
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV400toRGB565;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV400toRGB565edge;
|
||||
work->pConvRowPtrs[0] = (void*)(ob + 0x4);
|
||||
work->pitch = 0x08;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
@@ -144,7 +144,7 @@ static void TMCJPEGDEC_converterYUV411toRGB565(TMCCJPEGDecWork* work, s32 x, s32
|
||||
s32 cbValue = (s8)*cb++;
|
||||
s32 crValue = (s8)*cr++;
|
||||
redOffset = (crValue * 359) >> 8;
|
||||
greenOffset = -(cbValue * 88 + crValue * 183) >> 8;
|
||||
greenOffset = -(crValue * 183 + cbValue * 88) >> 8;
|
||||
blueOffset = (cbValue * 454) >> 8;
|
||||
}
|
||||
{
|
||||
@@ -152,7 +152,7 @@ static void TMCJPEGDEC_converterYUV411toRGB565(TMCCJPEGDecWork* work, s32 x, s32
|
||||
s32 red = value + redOffset;
|
||||
s32 green = value + greenOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
if ((blue | red | green) >> 8) {
|
||||
if ((red | blue | green) >> 8) {
|
||||
blue = (blue > 255) ? 255 : blue & ~(blue >> 31);
|
||||
green = (green > 255) ? 255 : green & ~(green >> 31);
|
||||
red = (red > 255) ? 255 : red & ~(red >> 31);
|
||||
@@ -165,7 +165,7 @@ static void TMCJPEGDEC_converterYUV411toRGB565(TMCCJPEGDecWork* work, s32 x, s32
|
||||
s32 red = value + redOffset;
|
||||
s32 green = value + greenOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
if ((blue | red | green) >> 8) {
|
||||
if ((red | blue | green) >> 8) {
|
||||
blue = (blue > 255) ? 255 : blue & ~(blue >> 31);
|
||||
green = (green > 255) ? 255 : green & ~(green >> 31);
|
||||
red = (red > 255) ? 255 : red & ~(red >> 31);
|
||||
@@ -178,7 +178,7 @@ static void TMCJPEGDEC_converterYUV411toRGB565(TMCCJPEGDecWork* work, s32 x, s32
|
||||
s32 red = value + redOffset;
|
||||
s32 green = value + greenOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
if ((blue | red | green) >> 8) {
|
||||
if ((red | blue | green) >> 8) {
|
||||
blue = (blue > 255) ? 255 : blue & ~(blue >> 31);
|
||||
green = (green > 255) ? 255 : green & ~(green >> 31);
|
||||
red = (red > 255) ? 255 : red & ~(red >> 31);
|
||||
@@ -191,7 +191,7 @@ static void TMCJPEGDEC_converterYUV411toRGB565(TMCCJPEGDecWork* work, s32 x, s32
|
||||
s32 red = value + redOffset;
|
||||
s32 green = value + greenOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
if ((blue | red | green) >> 8) {
|
||||
if ((red | blue | green) >> 8) {
|
||||
blue = (blue > 255) ? 255 : blue & ~(blue >> 31);
|
||||
green = (green > 255) ? 255 : green & ~(green >> 31);
|
||||
red = (red > 255) ? 255 : red & ~(red >> 31);
|
||||
@@ -209,6 +209,7 @@ static void TMCJPEGDEC_converterYUV411toRGB565(TMCCJPEGDecWork* work, s32 x, s32
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV411toRGB565edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 column;
|
||||
u8* luminance = work->convBuf + 4;
|
||||
u8* cb = work->convBuf + 260;
|
||||
u8* cr = work->convBuf + 324;
|
||||
@@ -236,7 +237,6 @@ static void TMCJPEGDEC_converterYUV411toRGB565edge(TMCCJPEGDecWork* work, s32 x,
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
if ((column & 3) == 0) {
|
||||
s32 cbValue = (s8)*cb++;
|
||||
@@ -247,8 +247,8 @@ static void TMCJPEGDEC_converterYUV411toRGB565edge(TMCCJPEGDecWork* work, s32 x,
|
||||
}
|
||||
{
|
||||
s32 value = luminance[0];
|
||||
s32 red = value + redOffset;
|
||||
s32 green = value + greenOffset;
|
||||
s32 red = value + redOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
if ((blue | red | green) >> 8) {
|
||||
blue = (blue > 255) ? 255 : blue & ~(blue >> 31);
|
||||
@@ -268,6 +268,7 @@ static void TMCJPEGDEC_converterYUV411toRGB565edge(TMCCJPEGDecWork* work, s32 x,
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV422toRGB565(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 column;
|
||||
u8* luminance = work->convBuf + 4;
|
||||
u8* cb = work->convBuf + 132;
|
||||
u8* cr = work->convBuf + 196;
|
||||
@@ -286,7 +287,6 @@ static void TMCJPEGDEC_converterYUV422toRGB565(TMCCJPEGDecWork* work, s32 x, s32
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 2) {
|
||||
s32 redOffset, greenOffset, blueOffset;
|
||||
{
|
||||
@@ -332,9 +332,10 @@ static void TMCJPEGDEC_converterYUV422toRGB565(TMCCJPEGDecWork* work, s32 x, s32
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV422toRGB565edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 column;
|
||||
u8* luminance = work->convBuf + 4;
|
||||
u8* cb = work->convBuf + 132;
|
||||
u8* cr = work->convBuf + 196;
|
||||
s8* cb = (s8*) work->convBuf + 132;
|
||||
s8* cr = (s8*) work->convBuf + 196;
|
||||
TMCCJPEGDecState* state = work->pState;
|
||||
u32 tileWidth = state->convWidth >> 2;
|
||||
u8* texture = state->pTexBuffer;
|
||||
@@ -359,7 +360,6 @@ static void TMCJPEGDEC_converterYUV422toRGB565edge(TMCCJPEGDecWork* work, s32 x,
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
if ((column & 1) == 0) {
|
||||
s32 cbValue = (s8)*cb++;
|
||||
@@ -461,8 +461,8 @@ static void TMCJPEGDEC_converterYUV420toRGB565(TMCCJPEGDecWork* work, s32 x, s32
|
||||
|
||||
static void TMCJPEGDEC_converterYUV420toRGB565edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u8* luminance = work->convBuf + 4;
|
||||
u8* cb = work->convBuf + 260;
|
||||
u8* cr = work->convBuf + 324;
|
||||
s8* cb = (s8*) work->convBuf + 260;
|
||||
s8* cr = (s8*) work->convBuf + 324;
|
||||
TMCCJPEGDecState* state = work->pState;
|
||||
u32 tileWidth = state->convWidth >> 2;
|
||||
u8* texture = state->pTexBuffer;
|
||||
@@ -497,7 +497,7 @@ static void TMCJPEGDEC_converterYUV420toRGB565edge(TMCCJPEGDecWork* work, s32 x,
|
||||
blueOffset = (cbValue * 454) >> 8;
|
||||
}
|
||||
{
|
||||
s32 value = luminance[0];
|
||||
s32 value = *luminance++;
|
||||
s32 red = value + redOffset;
|
||||
s32 green = value + greenOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
@@ -509,7 +509,7 @@ static void TMCJPEGDEC_converterYUV420toRGB565edge(TMCCJPEGDecWork* work, s32 x,
|
||||
output[(column & 3) + ((((column) >> 2) + tileRow) << 4)] =
|
||||
((blue & 0xF8) >> 3) + ((red & 0xF8) << 8) + ((green & 0xFC) << 3);
|
||||
}
|
||||
luminance += 1;
|
||||
|
||||
}
|
||||
luminance += lumaSkip;
|
||||
if (y & 1) {
|
||||
@@ -524,6 +524,7 @@ static void TMCJPEGDEC_converterYUV420toRGB565edge(TMCCJPEGDecWork* work, s32 x,
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV211toRGB565(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 column;
|
||||
u8* luminance = work->convBuf + 4;
|
||||
u8* cb = work->convBuf + 132;
|
||||
u8* cr = work->convBuf + 196;
|
||||
@@ -542,7 +543,6 @@ static void TMCJPEGDEC_converterYUV211toRGB565(TMCCJPEGDecWork* work, s32 x, s32
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
s32 redOffset, greenOffset, blueOffset;
|
||||
{
|
||||
@@ -554,8 +554,8 @@ static void TMCJPEGDEC_converterYUV211toRGB565(TMCCJPEGDecWork* work, s32 x, s32
|
||||
}
|
||||
{
|
||||
s32 value = luminance[0];
|
||||
s32 red = value + redOffset;
|
||||
s32 green = value + greenOffset;
|
||||
s32 red = value + redOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
if ((blue | red | green) >> 8) {
|
||||
blue = (blue > 255) ? 255 : blue & ~(blue >> 31);
|
||||
@@ -580,6 +580,7 @@ static void TMCJPEGDEC_converterYUV211toRGB565(TMCCJPEGDecWork* work, s32 x, s32
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV211toRGB565edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 column;
|
||||
u8* luminance = work->convBuf + 4;
|
||||
u8* cb = work->convBuf + 132;
|
||||
u8* cr = work->convBuf + 196;
|
||||
@@ -606,7 +607,6 @@ static void TMCJPEGDEC_converterYUV211toRGB565edge(TMCCJPEGDecWork* work, s32 x,
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
s32 redOffset, greenOffset, blueOffset;
|
||||
{
|
||||
@@ -618,8 +618,8 @@ static void TMCJPEGDEC_converterYUV211toRGB565edge(TMCCJPEGDecWork* work, s32 x,
|
||||
}
|
||||
{
|
||||
s32 value = luminance[0];
|
||||
s32 red = value + redOffset;
|
||||
s32 green = value + greenOffset;
|
||||
s32 red = value + redOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
if ((blue | red | green) >> 8) {
|
||||
blue = (blue > 255) ? 255 : blue & ~(blue >> 31);
|
||||
@@ -644,65 +644,99 @@ static void TMCJPEGDEC_converterYUV211toRGB565edge(TMCCJPEGDecWork* work, s32 x,
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV444toRGB565(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u8* luminance = work->convBuf + 4;
|
||||
u8* cb = work->convBuf + 68;
|
||||
u8* cr = work->convBuf + 132;
|
||||
TMCCJPEGDecState* state = work->pState;
|
||||
u32 tileWidth = state->convWidth >> 2;
|
||||
u8* texture = state->pTexBuffer;
|
||||
s32 crValue;
|
||||
TMCCJPEGDecState* state;
|
||||
s32 value;
|
||||
u16* output;
|
||||
s32 rowSkip;
|
||||
u32 tileWidth;
|
||||
s32 tileRow;
|
||||
u8* luminance;
|
||||
u8* cb;
|
||||
u8* texture;
|
||||
s32 column;
|
||||
s32 xEnd;
|
||||
s32 cbValue;
|
||||
s32 blue;
|
||||
s32 width;
|
||||
s32 yEnd;
|
||||
s32 height;
|
||||
s32 green;
|
||||
s32 red;
|
||||
u8* cr;
|
||||
|
||||
luminance = work->convBuf + 4;
|
||||
cb = work->convBuf + 68;
|
||||
cr = work->convBuf + 132;
|
||||
state = work->pState;
|
||||
tileWidth = state->convWidth >> 2;
|
||||
texture = state->pTexBuffer;
|
||||
width = 8 / state->scaleFactor;
|
||||
height = 8 / state->scaleFactor;
|
||||
{
|
||||
s32 xEnd = x + width;
|
||||
s32 yEnd = y + height;
|
||||
s32 lumaSkip = 8 - width;
|
||||
s32 chromaSkip = lumaSkip >> 0;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
s32 redOffset, greenOffset, blueOffset;
|
||||
{
|
||||
s32 cbValue = (s8)*cb++;
|
||||
s32 crValue = (s8)*cr++;
|
||||
redOffset = (crValue * 359) >> 8;
|
||||
greenOffset = -(cbValue * 88 + crValue * 183) >> 8;
|
||||
blueOffset = (cbValue * 454) >> 8;
|
||||
xEnd = x + width;
|
||||
yEnd = y + height;
|
||||
rowSkip = 8 - width;
|
||||
for (; y < yEnd; y++) {
|
||||
output = (u16*)(texture + ((y & 3) << 3));
|
||||
tileRow = (y >> 2) * tileWidth;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
cbValue = (s8)*cb++;
|
||||
crValue = (s8)*cr++;
|
||||
value = *luminance++;
|
||||
green = value + (-(cbValue * 88 + crValue * 183) >> 8);
|
||||
red = value + ((crValue * 359) >> 8);
|
||||
blue = value + ((cbValue * 454) >> 8);
|
||||
if ((blue | red | green) >> 8) {
|
||||
blue &= ~(blue >> 31);
|
||||
if (blue > 255) {
|
||||
blue = 255;
|
||||
}
|
||||
{
|
||||
s32 value = luminance[0];
|
||||
s32 red = value + redOffset;
|
||||
s32 green = value + greenOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
if ((blue | red | green) >> 8) {
|
||||
blue = (blue > 255) ? 255 : blue & ~(blue >> 31);
|
||||
green = (green > 255) ? 255 : green & ~(green >> 31);
|
||||
red = (red > 255) ? 255 : red & ~(red >> 31);
|
||||
}
|
||||
output[(column & 3) + ((((column) >> 2) + tileRow) << 4)] =
|
||||
((blue & 0xF8) >> 3) + ((red & 0xF8) << 8) + ((green & 0xFC) << 3);
|
||||
green &= ~(green >> 31);
|
||||
if (green > 255) {
|
||||
green = 255;
|
||||
}
|
||||
red &= ~(red >> 31);
|
||||
if (red > 255) {
|
||||
red = 255;
|
||||
}
|
||||
luminance += 1;
|
||||
}
|
||||
luminance += lumaSkip;
|
||||
cb += chromaSkip;
|
||||
cr += chromaSkip;
|
||||
output[(column & 3) + (((column >> 2) + tileRow) << 4)] =
|
||||
((blue & 0xF8) >> 3) + ((red & 0xF8) << 8) + ((green & 0xFC) << 3);
|
||||
}
|
||||
luminance += rowSkip;
|
||||
cb += rowSkip;
|
||||
cr += rowSkip;
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV444toRGB565edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u8* luminance = work->convBuf + 4;
|
||||
u8* cb = work->convBuf + 68;
|
||||
u8* cr = work->convBuf + 132;
|
||||
TMCCJPEGDecState* state = work->pState;
|
||||
u32 tileWidth = state->convWidth >> 2;
|
||||
u8* texture = state->pTexBuffer;
|
||||
s32 column;
|
||||
s32 tileRow;
|
||||
u16* output;
|
||||
u8* luminance;
|
||||
u8* cb;
|
||||
u8* cr;
|
||||
TMCCJPEGDecState* state;
|
||||
u32 tileWidth;
|
||||
u8* texture;
|
||||
s32 width;
|
||||
s32 height;
|
||||
s32 xEnd;
|
||||
s32 yEnd;
|
||||
s32 rowSkip;
|
||||
s32 cbValue;
|
||||
s32 crValue;
|
||||
s32 value;
|
||||
s32 green;
|
||||
s32 red;
|
||||
s32 blue;
|
||||
|
||||
luminance = work->convBuf + 4;
|
||||
cb = work->convBuf + 68;
|
||||
cr = work->convBuf + 132;
|
||||
state = work->pState;
|
||||
tileWidth = state->convWidth >> 2;
|
||||
texture = state->pTexBuffer;
|
||||
if (state->dataSizeX == (u32)x) {
|
||||
width = state->stepXExt;
|
||||
} else {
|
||||
@@ -713,88 +747,110 @@ static void TMCJPEGDEC_converterYUV444toRGB565edge(TMCCJPEGDecWork* work, s32 x,
|
||||
} else {
|
||||
height = 8 / state->scaleFactor;
|
||||
}
|
||||
{
|
||||
s32 xEnd = x + width;
|
||||
s32 yEnd = y + height;
|
||||
s32 lumaSkip = 8 - width;
|
||||
s32 chromaSkip = lumaSkip >> 0;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
s32 redOffset, greenOffset, blueOffset;
|
||||
{
|
||||
s32 cbValue = (s8)*cb++;
|
||||
s32 crValue = (s8)*cr++;
|
||||
redOffset = (crValue * 359) >> 8;
|
||||
greenOffset = -(cbValue * 88 + crValue * 183) >> 8;
|
||||
blueOffset = (cbValue * 454) >> 8;
|
||||
xEnd = x + width;
|
||||
yEnd = y + height;
|
||||
rowSkip = 8 - width;
|
||||
for (; y < yEnd; y++) {
|
||||
output = (u16*)(texture + ((y & 3) << 3));
|
||||
tileRow = (y >> 2) * tileWidth;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
cbValue = (s8)*cb++;
|
||||
crValue = (s8)*cr++;
|
||||
value = *luminance++;
|
||||
green = value + (-(cbValue * 88 + crValue * 183) >> 8);
|
||||
red = value + ((crValue * 359) >> 8);
|
||||
blue = value + ((cbValue * 454) >> 8);
|
||||
if ((blue | red | green) >> 8) {
|
||||
blue &= ~(blue >> 31);
|
||||
if (blue > 255) {
|
||||
blue = 255;
|
||||
}
|
||||
{
|
||||
s32 value = luminance[0];
|
||||
s32 red = value + redOffset;
|
||||
s32 green = value + greenOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
if ((blue | red | green) >> 8) {
|
||||
blue = (blue > 255) ? 255 : blue & ~(blue >> 31);
|
||||
green = (green > 255) ? 255 : green & ~(green >> 31);
|
||||
red = (red > 255) ? 255 : red & ~(red >> 31);
|
||||
}
|
||||
output[(column & 3) + ((((column) >> 2) + tileRow) << 4)] =
|
||||
((blue & 0xF8) >> 3) + ((red & 0xF8) << 8) + ((green & 0xFC) << 3);
|
||||
green &= ~(green >> 31);
|
||||
if (green > 255) {
|
||||
green = 255;
|
||||
}
|
||||
red &= ~(red >> 31);
|
||||
if (red > 255) {
|
||||
red = 255;
|
||||
}
|
||||
luminance += 1;
|
||||
}
|
||||
luminance += lumaSkip;
|
||||
cb += chromaSkip;
|
||||
cr += chromaSkip;
|
||||
output[(column & 3) + (((column >> 2) + tileRow) << 4)] =
|
||||
((blue & 0xF8) >> 3) + ((red & 0xF8) << 8) + ((green & 0xFC) << 3);
|
||||
}
|
||||
luminance += rowSkip;
|
||||
cb += rowSkip;
|
||||
cr += rowSkip;
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV400toRGB565(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u8* luminance = work->convBuf + 4;
|
||||
TMCCJPEGDecState* state = work->pState;
|
||||
u32 tileWidth = state->convWidth >> 2;
|
||||
u8* texture = state->pTexBuffer;
|
||||
s32 width;
|
||||
s32 value;
|
||||
u16* output;
|
||||
s32 tileRow;
|
||||
u8* texture;
|
||||
u8* luminance;
|
||||
s32 column;
|
||||
s32 xEnd;
|
||||
s32 green;
|
||||
s32 blue;
|
||||
TMCCJPEGDecState* state;
|
||||
s32 row;
|
||||
s32 yEnd;
|
||||
s32 height;
|
||||
s32 width;
|
||||
u32 tileWidth;
|
||||
|
||||
state = work->pState;
|
||||
texture = state->pTexBuffer;
|
||||
luminance = work->convBuf + 4;
|
||||
tileWidth = state->convWidth >> 2;
|
||||
width = 8 / state->scaleFactor;
|
||||
height = 8 / state->scaleFactor;
|
||||
{
|
||||
s32 xEnd = x + width;
|
||||
s32 yEnd = y + height;
|
||||
s32 lumaSkip = 8 - width;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
xEnd = x + width;
|
||||
yEnd = y + height;
|
||||
width = 8 - width;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
output = (u16*)(texture + ((row & 3) << 3));
|
||||
tileRow = (row >> 2) * tileWidth;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
s32 value = *luminance++;
|
||||
s32 red, green, blue;
|
||||
value = *luminance++;
|
||||
if (value >> 8) {
|
||||
blue = (value > 255) ? 255 : value & ~(value >> 31);
|
||||
green = (value > 255) ? 255 : value & ~(value >> 31);
|
||||
red = (value > 255) ? 255 : value & ~(value >> 31);
|
||||
blue = value > 255 ? 255 : value < 0 ? 0 : value;
|
||||
green = value > 255 ? 255 : value < 0 ? 0 : value;
|
||||
value = value > 255 ? 255 : value < 0 ? 0 : value;
|
||||
} else {
|
||||
red = green = blue = value;
|
||||
green = blue = value;
|
||||
}
|
||||
output[(column & 3) + (((column >> 2) + tileRow) << 4)] =
|
||||
((blue & 0xF8) >> 3) + ((red & 0xF8) << 8) + ((green & 0xFC) << 3);
|
||||
((blue & 0xF8) >> 3) + (((value & 0xF8) << 8) + ((green & 0xFC) << 3));
|
||||
}
|
||||
luminance += lumaSkip;
|
||||
luminance += width;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV400toRGB565edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u8* luminance = work->convBuf + 4;
|
||||
TMCCJPEGDecState* state = work->pState;
|
||||
u32 tileWidth = state->convWidth >> 2;
|
||||
u8* texture = state->pTexBuffer;
|
||||
s32 width;
|
||||
s32 value;
|
||||
u16* output;
|
||||
s32 tileRow;
|
||||
u8* texture;
|
||||
u8* luminance;
|
||||
s32 column;
|
||||
s32 xEnd;
|
||||
s32 green;
|
||||
s32 blue;
|
||||
TMCCJPEGDecState* state;
|
||||
s32 row;
|
||||
s32 yEnd;
|
||||
s32 height;
|
||||
s32 width;
|
||||
u32 tileWidth;
|
||||
|
||||
state = work->pState;
|
||||
texture = state->pTexBuffer;
|
||||
luminance = work->convBuf + 4;
|
||||
tileWidth = state->convWidth >> 2;
|
||||
if (state->dataSizeX == (u32)x) {
|
||||
width = state->stepXExt;
|
||||
} else {
|
||||
@@ -806,27 +862,25 @@ static void TMCJPEGDEC_converterYUV400toRGB565edge(TMCCJPEGDecWork* work, s32 x,
|
||||
height = 8 / state->scaleFactor;
|
||||
}
|
||||
{
|
||||
s32 xEnd = x + width;
|
||||
s32 yEnd = y + height;
|
||||
s32 lumaSkip = 8 - width;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
xEnd = x + width;
|
||||
yEnd = y + height;
|
||||
width = 8 - width;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
output = (u16*)(texture + ((row & 3) << 3));
|
||||
tileRow = (row >> 2) * tileWidth;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
s32 value = *luminance++;
|
||||
s32 red, green, blue;
|
||||
value = *luminance++;
|
||||
if (value >> 8) {
|
||||
blue = (value > 255) ? 255 : value & ~(value >> 31);
|
||||
green = (value > 255) ? 255 : value & ~(value >> 31);
|
||||
red = (value > 255) ? 255 : value & ~(value >> 31);
|
||||
blue = value > 255 ? 255 : value < 0 ? 0 : value;
|
||||
green = value > 255 ? 255 : value < 0 ? 0 : value;
|
||||
value = value > 255 ? 255 : value < 0 ? 0 : value;
|
||||
} else {
|
||||
red = green = blue = value;
|
||||
green = blue = value;
|
||||
}
|
||||
output[(column & 3) + (((column >> 2) + tileRow) << 4)] =
|
||||
((blue & 0xF8) >> 3) + ((red & 0xF8) << 8) + ((green & 0xFC) << 3);
|
||||
((blue & 0xF8) >> 3) + (((value & 0xF8) << 8) + ((green & 0xFC) << 3));
|
||||
}
|
||||
luminance += lumaSkip;
|
||||
luminance += width;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,14 +30,14 @@ s32 TMCJPEGDEC_set_converterRGBA8(TMCCJPEGDecWork* work) {
|
||||
u8* p2 = p1 + mode;
|
||||
u8* p3 = p2 + mode;
|
||||
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV411toRGBA8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV411toRGBA8edge;
|
||||
work->pConvRowPtrs[0] = (void*)ptr;
|
||||
work->pConvRowPtrs[1] = (void*)p1;
|
||||
work->pConvRowPtrs[2] = (void*)p2;
|
||||
work->pConvRowPtrs[3] = (void*)p3;
|
||||
work->pConvRowPtrs[5] = (void*)(ob + 0x104);
|
||||
work->pConvRowPtrs[6] = (void*)(ob + 0x144);
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV411toRGBA8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV411toRGBA8edge;
|
||||
work->pitch = 0x20;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
@@ -45,12 +45,12 @@ s32 TMCJPEGDEC_set_converterRGBA8(TMCCJPEGDecWork* work) {
|
||||
case 1: {
|
||||
u8 mode = work->idctMode;
|
||||
u8* ptr = ob + 4;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV422toRGBA8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV422toRGBA8edge;
|
||||
work->pConvRowPtrs[0] = (void*)ptr;
|
||||
work->pConvRowPtrs[1] = (void*)(ptr + mode);
|
||||
work->pConvRowPtrs[5] = (void*)(ob + 0x84);
|
||||
work->pConvRowPtrs[6] = (void*)(ob + 0xC4);
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV422toRGBA8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV422toRGBA8edge;
|
||||
work->pitch = 0x10;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
@@ -61,14 +61,14 @@ s32 TMCJPEGDEC_set_converterRGBA8(TMCCJPEGDecWork* work) {
|
||||
u8* p1 = ptr + mode;
|
||||
u8* p2 = ptr + mode * 16;
|
||||
u8* p3 = p2 + mode;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV420toRGBA8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV420toRGBA8edge;
|
||||
work->pConvRowPtrs[0] = (void*)ptr;
|
||||
work->pConvRowPtrs[1] = (void*)p1;
|
||||
work->pConvRowPtrs[2] = (void*)p2;
|
||||
work->pConvRowPtrs[3] = (void*)p3;
|
||||
work->pConvRowPtrs[5] = (void*)(ob + 0x104);
|
||||
work->pConvRowPtrs[6] = (void*)(ob + 0x144);
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV420toRGBA8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV420toRGBA8edge;
|
||||
work->pitch = 0x10;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
@@ -76,30 +76,30 @@ s32 TMCJPEGDEC_set_converterRGBA8(TMCCJPEGDecWork* work) {
|
||||
case 3: {
|
||||
u8 mode = work->idctMode;
|
||||
u8* ptr = ob + 4;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV211toRGBA8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV211toRGBA8edge;
|
||||
work->pConvRowPtrs[0] = (void*)ptr;
|
||||
work->pConvRowPtrs[1] = (void*)(ptr + mode * 8);
|
||||
work->pConvRowPtrs[5] = (void*)(ob + 0x84);
|
||||
work->pConvRowPtrs[6] = (void*)(ob + 0xC4);
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV211toRGBA8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV211toRGBA8edge;
|
||||
work->pitch = 0x08;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 4: {
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV444toRGBA8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV444toRGBA8edge;
|
||||
work->pConvRowPtrs[0] = (void*)(ob + 4);
|
||||
work->pConvRowPtrs[5] = (void*)(ob + 0x44);
|
||||
work->pConvRowPtrs[6] = (void*)(ob + 0x84);
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV444toRGBA8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV444toRGBA8edge;
|
||||
work->pitch = 0x08;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 5: {
|
||||
work->pConvRowPtrs[0] = (void*)(ob + 4);
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV400toRGBA8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV400toRGBA8edge;
|
||||
work->pConvRowPtrs[0] = (void*)(ob + 4);
|
||||
work->pitch = 0x08;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
@@ -119,6 +119,7 @@ s32 TMCJPEGDEC_set_converterRGBA8(TMCCJPEGDecWork* work) {
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 row;
|
||||
u8* luminance = work->convBuf + 4;
|
||||
u8* cb = work->convBuf + 260;
|
||||
u8* cr = work->convBuf + 324;
|
||||
@@ -134,9 +135,9 @@ static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
|
||||
s32 xEnd = x + width;
|
||||
s32 lumaSkip = 32 - width;
|
||||
s32 chromaSkip = lumaSkip >> 2;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
for (row = y; row < yEnd; row++) {
|
||||
u16* output = (u16*)(texture + ((row & 3) << 3));
|
||||
s32 tileRow = (row >> 2) * tileWidth;
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 4) {
|
||||
s32 redOffset, greenOffset, blueOffset;
|
||||
@@ -148,7 +149,7 @@ static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
|
||||
blueOffset = (cbValue * 454) >> 8;
|
||||
}
|
||||
{
|
||||
s32 value = luminance[0];
|
||||
s32 value = *luminance++;
|
||||
s32 green = value + greenOffset;
|
||||
s32 red = value + redOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
@@ -163,7 +164,7 @@ static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
|
||||
((green & 255) << 8) + (blue & 255);
|
||||
}
|
||||
{
|
||||
s32 value = luminance[1];
|
||||
s32 value = *luminance++;
|
||||
s32 green = value + greenOffset;
|
||||
s32 red = value + redOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
@@ -178,7 +179,7 @@ static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
|
||||
((green & 255) << 8) + (blue & 255);
|
||||
}
|
||||
{
|
||||
s32 value = luminance[2];
|
||||
s32 value = *luminance++;
|
||||
s32 green = value + greenOffset;
|
||||
s32 red = value + redOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
@@ -193,7 +194,7 @@ static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
|
||||
((green & 255) << 8) + (blue & 255);
|
||||
}
|
||||
{
|
||||
s32 value = luminance[3];
|
||||
s32 value = *luminance++;
|
||||
s32 green = value + greenOffset;
|
||||
s32 red = value + redOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
@@ -207,7 +208,7 @@ static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
|
||||
output[(column + 3 & 3) + (((((column + 3) >> 2) << 1) + tileRow + 1) << 4)] =
|
||||
((green & 255) << 8) + (blue & 255);
|
||||
}
|
||||
luminance += 4;
|
||||
|
||||
}
|
||||
luminance += lumaSkip;
|
||||
cb += chromaSkip;
|
||||
@@ -217,6 +218,7 @@ static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV411toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 column;
|
||||
u8* luminance = work->convBuf + 4;
|
||||
u8* cb = work->convBuf + 260;
|
||||
u8* cr = work->convBuf + 324;
|
||||
@@ -244,7 +246,6 @@ static void TMCJPEGDEC_converterYUV411toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
if ((column & 3) == 0) {
|
||||
s32 cbValue = (s8)*cb++;
|
||||
@@ -278,39 +279,59 @@ static void TMCJPEGDEC_converterYUV411toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV422toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u8* luminance = work->convBuf + 4;
|
||||
u8* cb = work->convBuf + 132;
|
||||
u8* cr = work->convBuf + 196;
|
||||
TMCCJPEGDecState* state = work->pState;
|
||||
s32 tileWidth = (state->convWidth >> 2) << 1;
|
||||
u8* texture = state->pTexBuffer;
|
||||
u8* luminance;
|
||||
u8* cb;
|
||||
u8* cr;
|
||||
TMCCJPEGDecState* state;
|
||||
s32 tileWidth;
|
||||
u8* texture;
|
||||
s32 width;
|
||||
s32 height;
|
||||
s32 xEnd;
|
||||
s32 yEnd;
|
||||
s32 lumaSkip;
|
||||
s32 chromaSkip;
|
||||
s32 tileRow;
|
||||
u16* output;
|
||||
s32 column;
|
||||
s32 cbValue;
|
||||
s32 crValue;
|
||||
s32 value;
|
||||
s32 green;
|
||||
s32 red;
|
||||
s32 blue;
|
||||
luminance = work->convBuf + 4;
|
||||
cb = work->convBuf + 132;
|
||||
cr = work->convBuf + 196;
|
||||
state = work->pState;
|
||||
tileWidth = (state->convWidth >> 2) << 1;
|
||||
texture = state->pTexBuffer;
|
||||
|
||||
width = 16 / state->scaleFactor;
|
||||
height = 8 / state->scaleFactor;
|
||||
{
|
||||
s32 yEnd = y + height;
|
||||
s32 xEnd = x + width;
|
||||
s32 lumaSkip = 16 - width;
|
||||
s32 chromaSkip = lumaSkip >> 1;
|
||||
xEnd = x + width;
|
||||
yEnd = y + height;
|
||||
lumaSkip = 16 - width;
|
||||
chromaSkip = lumaSkip >> 1;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
tileRow = (y >> 2) * tileWidth;
|
||||
output = (u16*)(texture + ((y & 3) << 3));
|
||||
|
||||
for (column = x; column < xEnd; column += 2) {
|
||||
s32 redOffset, greenOffset, blueOffset;
|
||||
{
|
||||
s32 cbValue = (s8)*cb++;
|
||||
s32 crValue = (s8)*cr++;
|
||||
cbValue = (s8)*cb++;
|
||||
crValue = (s8)*cr++;
|
||||
greenOffset = -(cbValue * 88 + crValue * 183) >> 8;
|
||||
redOffset = (crValue * 359) >> 8;
|
||||
blueOffset = (cbValue * 454) >> 8;
|
||||
}
|
||||
{
|
||||
s32 value = luminance[0];
|
||||
s32 green = value + greenOffset;
|
||||
s32 red = value + redOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
value = luminance[0];
|
||||
green = value + greenOffset;
|
||||
red = value + redOffset;
|
||||
blue = value + blueOffset;
|
||||
if ((blue | green | red) >> 8) {
|
||||
blue = (blue > 255) ? 255 : blue & ~(blue >> 31);
|
||||
green = (green > 255) ? 255 : green & ~(green >> 31);
|
||||
@@ -346,6 +367,7 @@ static void TMCJPEGDEC_converterYUV422toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV422toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 column;
|
||||
u8* luminance = work->convBuf + 4;
|
||||
u8* cb = work->convBuf + 132;
|
||||
u8* cr = work->convBuf + 196;
|
||||
@@ -373,7 +395,6 @@ static void TMCJPEGDEC_converterYUV422toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
if ((column & 1) == 0) {
|
||||
s32 cbValue = (s8)*cb++;
|
||||
@@ -408,8 +429,8 @@ static void TMCJPEGDEC_converterYUV422toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
|
||||
|
||||
static void TMCJPEGDEC_converterYUV420toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u8* luminance = work->convBuf + 4;
|
||||
u8* cb = work->convBuf + 260;
|
||||
u8* cr = work->convBuf + 324;
|
||||
s8* cb = (s8*) work->convBuf + 260;
|
||||
s8* cr = (s8*) work->convBuf + 324;
|
||||
TMCCJPEGDecState* state = work->pState;
|
||||
s32 tileWidth = (state->convWidth >> 2) << 1;
|
||||
u8* texture = state->pTexBuffer;
|
||||
@@ -436,7 +457,7 @@ static void TMCJPEGDEC_converterYUV420toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
|
||||
blueOffset = (cbValue * 454) >> 8;
|
||||
}
|
||||
{
|
||||
s32 value = luminance[0];
|
||||
s32 value = *luminance++;
|
||||
s32 green = value + greenOffset;
|
||||
s32 red = value + redOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
@@ -451,7 +472,7 @@ static void TMCJPEGDEC_converterYUV420toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
|
||||
((green & 255) << 8) + (blue & 255);
|
||||
}
|
||||
{
|
||||
s32 value = luminance[1];
|
||||
s32 value = *luminance++;
|
||||
s32 green = value + greenOffset;
|
||||
s32 red = value + redOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
@@ -465,7 +486,7 @@ static void TMCJPEGDEC_converterYUV420toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
|
||||
output[(column + 1 & 3) + (((((column + 1) >> 2) << 1) + tileRow + 1) << 4)] =
|
||||
((green & 255) << 8) + (blue & 255);
|
||||
}
|
||||
luminance += 2;
|
||||
|
||||
}
|
||||
luminance += lumaSkip;
|
||||
if (y & 1) {
|
||||
@@ -505,8 +526,8 @@ static void TMCJPEGDEC_converterYUV420toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
|
||||
s32 chromaSkip = lumaSkip >> 1;
|
||||
s32 redOffset = 0, greenOffset = 0, blueOffset = 0;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
if ((column & 1) == 0) {
|
||||
@@ -517,7 +538,7 @@ static void TMCJPEGDEC_converterYUV420toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
|
||||
blueOffset = (cbValue * 454) >> 8;
|
||||
}
|
||||
{
|
||||
s32 value = luminance[0];
|
||||
s32 value = *luminance++;
|
||||
s32 green = value + greenOffset;
|
||||
s32 red = value + redOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
@@ -531,7 +552,7 @@ static void TMCJPEGDEC_converterYUV420toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
|
||||
output[(column & 3) + (((((column) >> 2) << 1) + tileRow + 1) << 4)] =
|
||||
((green & 255) << 8) + (blue & 255);
|
||||
}
|
||||
luminance += 1;
|
||||
|
||||
}
|
||||
luminance += lumaSkip;
|
||||
if (y & 1) {
|
||||
@@ -575,7 +596,7 @@ static void TMCJPEGDEC_converterYUV211toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
|
||||
blueOffset = (cbValue * 454) >> 8;
|
||||
}
|
||||
{
|
||||
s32 value = luminance[0];
|
||||
s32 value = *luminance++;
|
||||
s32 green = value + greenOffset;
|
||||
s32 red = value + redOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
@@ -589,7 +610,7 @@ static void TMCJPEGDEC_converterYUV211toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
|
||||
output[(column & 3) + (((((column) >> 2) << 1) + tileRow + 1) << 4)] =
|
||||
((green & 255) << 8) + (blue & 255);
|
||||
}
|
||||
luminance += 1;
|
||||
|
||||
}
|
||||
luminance += lumaSkip;
|
||||
if (y & 1) {
|
||||
@@ -604,6 +625,7 @@ static void TMCJPEGDEC_converterYUV211toRGBA8(TMCCJPEGDecWork* work, s32 x, s32
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV211toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 column;
|
||||
u8* luminance = work->convBuf + 4;
|
||||
u8* cb = work->convBuf + 132;
|
||||
u8* cr = work->convBuf + 196;
|
||||
@@ -630,7 +652,6 @@ static void TMCJPEGDEC_converterYUV211toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
s32 redOffset, greenOffset, blueOffset;
|
||||
{
|
||||
@@ -670,67 +691,100 @@ static void TMCJPEGDEC_converterYUV211toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV444toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u8* luminance = work->convBuf + 4;
|
||||
u8* cb = work->convBuf + 68;
|
||||
u8* cr = work->convBuf + 132;
|
||||
TMCCJPEGDecState* state = work->pState;
|
||||
s32 tileWidth = (state->convWidth >> 2) << 1;
|
||||
u8* texture = state->pTexBuffer;
|
||||
s32 row;
|
||||
s32 column;
|
||||
s32 tileRow;
|
||||
u16* output;
|
||||
u8* luminance;
|
||||
u8* cb;
|
||||
u8* cr;
|
||||
TMCCJPEGDecState* state;
|
||||
s32 tileWidth;
|
||||
u8* texture;
|
||||
s32 width;
|
||||
s32 height;
|
||||
s32 xEnd;
|
||||
s32 yEnd;
|
||||
s32 rowSkip;
|
||||
s32 cbValue;
|
||||
s32 crValue;
|
||||
s32 value;
|
||||
s32 green;
|
||||
s32 red;
|
||||
|
||||
luminance = work->convBuf + 4;
|
||||
cb = work->convBuf + 68;
|
||||
cr = work->convBuf + 132;
|
||||
state = work->pState;
|
||||
tileWidth = (state->convWidth >> 2) << 1;
|
||||
texture = state->pTexBuffer;
|
||||
width = 8 / state->scaleFactor;
|
||||
height = 8 / state->scaleFactor;
|
||||
{
|
||||
s32 yEnd = y + height;
|
||||
s32 xEnd = x + width;
|
||||
s32 lumaSkip = 8 - width;
|
||||
s32 chromaSkip = lumaSkip >> 0;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
s32 redOffset, greenOffset, blueOffset;
|
||||
{
|
||||
s32 cbValue = (s8)*cb++;
|
||||
s32 crValue = (s8)*cr++;
|
||||
greenOffset = -(cbValue * 88 + crValue * 183) >> 8;
|
||||
redOffset = (crValue * 359) >> 8;
|
||||
blueOffset = (cbValue * 454) >> 8;
|
||||
xEnd = x + width;
|
||||
yEnd = y + height;
|
||||
rowSkip = 8 - width;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
output = (u16*)(texture + ((row & 3) << 3));
|
||||
tileRow = (row >> 2) * tileWidth;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
cbValue = (s8)*cb++;
|
||||
crValue = (s8)*cr++;
|
||||
value = *luminance++;
|
||||
green = value + (-(cbValue * 88 + crValue * 183) >> 8);
|
||||
red = value + ((crValue * 359) >> 8);
|
||||
value += (cbValue * 454) >> 8;
|
||||
if ((value | green | red) >> 8) {
|
||||
value &= ~(value >> 31);
|
||||
if (value > 255) {
|
||||
value = 255;
|
||||
}
|
||||
{
|
||||
s32 value = luminance[0];
|
||||
s32 green = value + greenOffset;
|
||||
s32 red = value + redOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
if ((blue | green | red) >> 8) {
|
||||
blue = (blue > 255) ? 255 : blue & ~(blue >> 31);
|
||||
green = (green > 255) ? 255 : green & ~(green >> 31);
|
||||
red = (red > 255) ? 255 : red & ~(red >> 31);
|
||||
}
|
||||
output[(column & 3) + (((((column) >> 2) << 1) + tileRow) << 4)] =
|
||||
(u8)red + 0x10000 - 0x100;
|
||||
output[(column & 3) + (((((column) >> 2) << 1) + tileRow + 1) << 4)] =
|
||||
((green & 255) << 8) + (blue & 255);
|
||||
green &= ~(green >> 31);
|
||||
if (green > 255) {
|
||||
green = 255;
|
||||
}
|
||||
red &= ~(red >> 31);
|
||||
if (red > 255) {
|
||||
red = 255;
|
||||
}
|
||||
luminance += 1;
|
||||
}
|
||||
luminance += lumaSkip;
|
||||
cb += chromaSkip;
|
||||
cr += chromaSkip;
|
||||
output[(column & 3) + ((((column >> 2) << 1) + tileRow) << 4)] =
|
||||
(u8)red + 0x10000 - 0x100;
|
||||
output[(column & 3) + ((((column >> 2) << 1) + tileRow + 1) << 4)] =
|
||||
((green & 255) << 8) + (value & 255);
|
||||
}
|
||||
luminance += rowSkip;
|
||||
cb += rowSkip;
|
||||
cr += rowSkip;
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV444toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u8* luminance = work->convBuf + 4;
|
||||
u8* cb = work->convBuf + 68;
|
||||
u8* cr = work->convBuf + 132;
|
||||
TMCCJPEGDecState* state = work->pState;
|
||||
s32 tileWidth = (state->convWidth >> 2) << 1;
|
||||
u8* texture = state->pTexBuffer;
|
||||
s32 column;
|
||||
s32 tileRow;
|
||||
u16* output;
|
||||
u8* luminance;
|
||||
u8* cb;
|
||||
u8* cr;
|
||||
TMCCJPEGDecState* state;
|
||||
s32 tileWidth;
|
||||
u8* texture;
|
||||
s32 width;
|
||||
s32 height;
|
||||
s32 xEnd;
|
||||
s32 yEnd;
|
||||
s32 rowSkip;
|
||||
s32 cbValue;
|
||||
s32 crValue;
|
||||
s32 value;
|
||||
s32 green;
|
||||
s32 red;
|
||||
|
||||
luminance = work->convBuf + 4;
|
||||
cb = work->convBuf + 68;
|
||||
cr = work->convBuf + 132;
|
||||
state = work->pState;
|
||||
tileWidth = (state->convWidth >> 2) << 1;
|
||||
texture = state->pTexBuffer;
|
||||
if (state->dataSizeX == (u32)x) {
|
||||
width = state->stepXExt;
|
||||
} else {
|
||||
@@ -741,92 +795,114 @@ static void TMCJPEGDEC_converterYUV444toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
|
||||
} else {
|
||||
height = 8 / state->scaleFactor;
|
||||
}
|
||||
{
|
||||
s32 yEnd = y + height;
|
||||
s32 xEnd = x + width;
|
||||
s32 lumaSkip = 8 - width;
|
||||
s32 chromaSkip = lumaSkip >> 0;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
s32 redOffset, greenOffset, blueOffset;
|
||||
{
|
||||
s32 cbValue = (s8)*cb++;
|
||||
s32 crValue = (s8)*cr++;
|
||||
greenOffset = -(cbValue * 88 + crValue * 183) >> 8;
|
||||
redOffset = (crValue * 359) >> 8;
|
||||
blueOffset = (cbValue * 454) >> 8;
|
||||
xEnd = x + width;
|
||||
yEnd = y + height;
|
||||
rowSkip = 8 - width;
|
||||
for (; y < yEnd; y++) {
|
||||
output = (u16*)(texture + ((y & 3) << 3));
|
||||
tileRow = (y >> 2) * tileWidth;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
cbValue = (s8)*cb++;
|
||||
crValue = (s8)*cr++;
|
||||
value = *luminance++;
|
||||
green = value + (-(cbValue * 88 + crValue * 183) >> 8);
|
||||
red = value + ((crValue * 359) >> 8);
|
||||
value += (cbValue * 454) >> 8;
|
||||
if ((value | green | red) >> 8) {
|
||||
value &= ~(value >> 31);
|
||||
if (value > 255) {
|
||||
value = 255;
|
||||
}
|
||||
{
|
||||
s32 value = luminance[0];
|
||||
s32 green = value + greenOffset;
|
||||
s32 red = value + redOffset;
|
||||
s32 blue = value + blueOffset;
|
||||
if ((blue | green | red) >> 8) {
|
||||
blue = (blue > 255) ? 255 : blue & ~(blue >> 31);
|
||||
green = (green > 255) ? 255 : green & ~(green >> 31);
|
||||
red = (red > 255) ? 255 : red & ~(red >> 31);
|
||||
}
|
||||
output[(column & 3) + (((((column) >> 2) << 1) + tileRow) << 4)] =
|
||||
(u8)red + 0x10000 - 0x100;
|
||||
output[(column & 3) + (((((column) >> 2) << 1) + tileRow + 1) << 4)] =
|
||||
((green & 255) << 8) + (blue & 255);
|
||||
green &= ~(green >> 31);
|
||||
if (green > 255) {
|
||||
green = 255;
|
||||
}
|
||||
red &= ~(red >> 31);
|
||||
if (red > 255) {
|
||||
red = 255;
|
||||
}
|
||||
luminance += 1;
|
||||
}
|
||||
luminance += lumaSkip;
|
||||
cb += chromaSkip;
|
||||
cr += chromaSkip;
|
||||
output[(column & 3) + ((((column >> 2) << 1) + tileRow) << 4)] =
|
||||
(u8)red + 0x10000 - 0x100;
|
||||
output[(column & 3) + ((((column >> 2) << 1) + tileRow + 1) << 4)] =
|
||||
((green & 255) << 8) + (value & 255);
|
||||
}
|
||||
luminance += rowSkip;
|
||||
cb += rowSkip;
|
||||
cr += rowSkip;
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV400toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u8* luminance = work->convBuf + 4;
|
||||
TMCCJPEGDecState* state = work->pState;
|
||||
s32 tileWidth = (state->convWidth >> 2) << 1;
|
||||
u8* texture = state->pTexBuffer;
|
||||
s32 width;
|
||||
s32 value;
|
||||
u16* output;
|
||||
s32 tileRow;
|
||||
u8* texture;
|
||||
u8* luminance;
|
||||
s32 column;
|
||||
s32 xEnd;
|
||||
s32 green;
|
||||
s32 yEnd;
|
||||
TMCCJPEGDecState* state;
|
||||
s32 row;
|
||||
s32 tileWidth;
|
||||
s32 height;
|
||||
s32 width;
|
||||
s32 blue;
|
||||
|
||||
state = work->pState;
|
||||
texture = state->pTexBuffer;
|
||||
luminance = work->convBuf + 4;
|
||||
tileWidth = (state->convWidth >> 2) << 1;
|
||||
width = 8 / state->scaleFactor;
|
||||
height = 8 / state->scaleFactor;
|
||||
{
|
||||
s32 yEnd = y + height;
|
||||
s32 xEnd = x + width;
|
||||
s32 lumaSkip = 8 - width;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
xEnd = x + width;
|
||||
yEnd = y + height;
|
||||
width = 8 - width;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
output = (u16*)(texture + ((row & 3) << 3));
|
||||
tileRow = (row >> 2) * tileWidth;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
s32 value = *luminance++;
|
||||
s32 red = value, green = value, blue = value;
|
||||
value = *luminance++;
|
||||
if (value >> 8) {
|
||||
blue = (blue > 255) ? 255 : blue & ~(blue >> 31);
|
||||
green = (green > 255) ? 255 : green & ~(green >> 31);
|
||||
red = (red > 255) ? 255 : red & ~(red >> 31);
|
||||
blue = value > 255 ? 255 : value < 0 ? 0 : value;
|
||||
green = value > 255 ? 255 : value < 0 ? 0 : value;
|
||||
value = value > 255 ? 255 : value < 0 ? 0 : value;
|
||||
} else {
|
||||
red = green = blue = value;
|
||||
green = blue = value;
|
||||
}
|
||||
output[(column & 3) + (((((column) >> 2) << 1) + tileRow) << 4)] =
|
||||
(u8)red + 0x10000 - 0x100;
|
||||
output[(column & 3) + (((((column) >> 2) << 1) + tileRow + 1) << 4)] =
|
||||
((green & 255) << 8) + (blue & 255);
|
||||
output[(column & 3) + ((((column >> 2) << 1) + tileRow) << 4)] =
|
||||
(u8)value + 0x10000 - 0x100;
|
||||
output[(column & 3) + ((((column >> 2) << 1) + tileRow + 1) << 4)] =
|
||||
((green & 255) << 8) + (blue & 255);
|
||||
}
|
||||
luminance += lumaSkip;
|
||||
luminance += width;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEGDEC_converterYUV400toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u8* luminance = work->convBuf + 4;
|
||||
TMCCJPEGDecState* state = work->pState;
|
||||
s32 tileWidth = (state->convWidth >> 2) << 1;
|
||||
u8* texture = state->pTexBuffer;
|
||||
s32 width;
|
||||
s32 value;
|
||||
u16* output;
|
||||
s32 tileRow;
|
||||
u8* texture;
|
||||
u8* luminance;
|
||||
s32 column;
|
||||
s32 xEnd;
|
||||
s32 green;
|
||||
s32 yEnd;
|
||||
TMCCJPEGDecState* state;
|
||||
s32 row;
|
||||
s32 tileWidth;
|
||||
s32 height;
|
||||
s32 width;
|
||||
s32 blue;
|
||||
|
||||
state = work->pState;
|
||||
texture = state->pTexBuffer;
|
||||
luminance = work->convBuf + 4;
|
||||
tileWidth = (state->convWidth >> 2) << 1;
|
||||
if (state->dataSizeX == (u32)x) {
|
||||
width = state->stepXExt;
|
||||
} else {
|
||||
@@ -838,29 +914,27 @@ static void TMCJPEGDEC_converterYUV400toRGBA8edge(TMCCJPEGDecWork* work, s32 x,
|
||||
height = 8 / state->scaleFactor;
|
||||
}
|
||||
{
|
||||
s32 yEnd = y + height;
|
||||
s32 xEnd = x + width;
|
||||
s32 lumaSkip = 8 - width;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u16* output = (u16*)(texture + ((y & 3) << 3));
|
||||
s32 column;
|
||||
xEnd = x + width;
|
||||
yEnd = y + height;
|
||||
width = 8 - width;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
output = (u16*)(texture + ((row & 3) << 3));
|
||||
tileRow = (row >> 2) * tileWidth;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
s32 value = *luminance++;
|
||||
s32 red = value, green = value, blue = value;
|
||||
value = *luminance++;
|
||||
if (value >> 8) {
|
||||
blue = (blue > 255) ? 255 : blue & ~(blue >> 31);
|
||||
green = (green > 255) ? 255 : green & ~(green >> 31);
|
||||
red = (red > 255) ? 255 : red & ~(red >> 31);
|
||||
blue = value > 255 ? 255 : value < 0 ? 0 : value;
|
||||
green = value > 255 ? 255 : value < 0 ? 0 : value;
|
||||
value = value > 255 ? 255 : value < 0 ? 0 : value;
|
||||
} else {
|
||||
red = green = blue = value;
|
||||
green = blue = value;
|
||||
}
|
||||
output[(column & 3) + (((((column) >> 2) << 1) + tileRow) << 4)] =
|
||||
(u8)red + 0x10000 - 0x100;
|
||||
output[(column & 3) + (((((column) >> 2) << 1) + tileRow + 1) << 4)] =
|
||||
((green & 255) << 8) + (blue & 255);
|
||||
output[(column & 3) + ((((column >> 2) << 1) + tileRow) << 4)] =
|
||||
(u8)value + 0x10000 - 0x100;
|
||||
output[(column & 3) + ((((column >> 2) << 1) + tileRow + 1) << 4)] =
|
||||
((green & 255) << 8) + (blue & 255);
|
||||
}
|
||||
luminance += lumaSkip;
|
||||
luminance += width;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,82 +25,106 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
|
||||
|
||||
switch (cc) {
|
||||
case 0: {
|
||||
TMCConverterFunc* converter;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
u8 mode = work->idctMode;
|
||||
u8* ptr = ob + 4;
|
||||
u8* p1 = ptr + mode;
|
||||
u8* p2 = p1 + mode;
|
||||
u8* p3 = p2 + mode;
|
||||
|
||||
work->pConverterFunc = TMCJPEG_814EFEAC;
|
||||
work->pConverterFuncEdge = TMCJPEG_814F043C;
|
||||
converter = TMCJPEG_814EFEAC;
|
||||
edgeConverter = TMCJPEG_814F043C;
|
||||
work->pConvRowPtrs[0] = (void*)ptr;
|
||||
work->pConvRowPtrs[1] = (void*)p1;
|
||||
work->pConvRowPtrs[2] = (void*)p2;
|
||||
work->pConvRowPtrs[3] = (void*)p3;
|
||||
work->pConvRowPtrs[5] = (void*)(ob + 0x104);
|
||||
work->pConvRowPtrs[6] = (void*)(ob + 0x144);
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pitch = 0x20;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
TMCConverterFunc* converter;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
u8 mode = work->idctMode;
|
||||
u8* ptr = ob + 4;
|
||||
work->pConverterFunc = TMCJPEG_814F0A58;
|
||||
work->pConverterFuncEdge = TMCJPEG_814F11C4;
|
||||
converter = TMCJPEG_814F0A58;
|
||||
edgeConverter = TMCJPEG_814F11C4;
|
||||
work->pConvRowPtrs[0] = (void*)ptr;
|
||||
work->pConvRowPtrs[1] = (void*)(ptr + mode);
|
||||
work->pConvRowPtrs[5] = (void*)(ob + 0x84);
|
||||
work->pConvRowPtrs[6] = (void*)(ob + 0xC4);
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pitch = 0x10;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
TMCConverterFunc* converter;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
u8 mode = work->idctMode;
|
||||
u8* ptr = ob + 4;
|
||||
u8* p1 = ptr + mode;
|
||||
u8* p2 = ptr + mode * 16;
|
||||
u8* p3 = p2 + mode;
|
||||
work->pConverterFunc = TMCJPEG_814F17E0;
|
||||
work->pConverterFuncEdge = TMCJPEG_814F1F48;
|
||||
converter = TMCJPEG_814F17E0;
|
||||
edgeConverter = TMCJPEG_814F1F48;
|
||||
work->pConvRowPtrs[0] = (void*)ptr;
|
||||
work->pConvRowPtrs[1] = (void*)p1;
|
||||
work->pConvRowPtrs[2] = (void*)p2;
|
||||
work->pConvRowPtrs[3] = (void*)p3;
|
||||
work->pConvRowPtrs[5] = (void*)(ob + 0x104);
|
||||
work->pConvRowPtrs[6] = (void*)(ob + 0x144);
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pitch = 0x10;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
TMCConverterFunc* converter;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
u8 mode = work->idctMode;
|
||||
u8* ptr = ob + 4;
|
||||
work->pConverterFunc = TMCJPEG_814F2570;
|
||||
work->pConverterFuncEdge = TMCJPEG_814F2B50;
|
||||
converter = TMCJPEG_814F2570;
|
||||
edgeConverter = TMCJPEG_814F2B50;
|
||||
work->pConvRowPtrs[0] = (void*)ptr;
|
||||
work->pConvRowPtrs[1] = (void*)(ptr + mode * 8);
|
||||
work->pConvRowPtrs[5] = (void*)(ob + 0x84);
|
||||
work->pConvRowPtrs[6] = (void*)(ob + 0xC4);
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pitch = 0x08;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 4: {
|
||||
work->pConverterFunc = TMCJPEG_814F3158;
|
||||
work->pConverterFuncEdge = TMCJPEG_814F32E4;
|
||||
TMCConverterFunc* converter;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
converter = TMCJPEG_814F3158;
|
||||
edgeConverter = TMCJPEG_814F32E4;
|
||||
work->pConvRowPtrs[0] = (void*)(ob + 4);
|
||||
work->pConvRowPtrs[5] = (void*)(ob + 0x44);
|
||||
work->pConvRowPtrs[6] = (void*)(ob + 0x84);
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pitch = 0x08;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 5: {
|
||||
work->pConverterFunc = TMCJPEG_814F34A4;
|
||||
work->pConverterFuncEdge = TMCJPEG_814F372C;
|
||||
TMCConverterFunc* converter;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
converter = TMCJPEG_814F34A4;
|
||||
edgeConverter = TMCJPEG_814F372C;
|
||||
work->pConvRowPtrs[0] = (void*)(ob + 4);
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pitch = 0x08;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
@@ -124,6 +148,7 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
|
||||
}
|
||||
|
||||
static void TMCJPEG_814EFEAC(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 column;
|
||||
u8* luminance = work->convBuf + 4;
|
||||
s8* cb = (s8*)&work->convBuf[260];
|
||||
s8* cr = (s8*)&work->convBuf[324];
|
||||
@@ -140,9 +165,8 @@ static void TMCJPEG_814EFEAC(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 yEnd = y + height;
|
||||
s32 row;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
s32 tileRow = (row >> 2) * tileWidth;
|
||||
u32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 4) {
|
||||
output[((column) & 7) + ((((column) >> 3) + tileRow) << 5)] = luminance[0];
|
||||
output[((column + 1) & 7) + ((((column + 1) >> 3) + tileRow) << 5)] = luminance[1];
|
||||
@@ -159,11 +183,10 @@ static void TMCJPEG_814EFEAC(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
yEnd = y + height;
|
||||
tileWidth = state->chromaWidth >> 3;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u8* cbOutput = cbTexture + ((y & 3) << 3);
|
||||
u8* crOutput = crTexture + ((y & 3) << 3);
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
u32 tileRow = (y >> 2) * tileWidth;
|
||||
u8* cbOutput = cbTexture + ((y & 3) << 3);
|
||||
u8* crOutput = crTexture + ((y & 3) << 3);
|
||||
cbOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cb++ + 128;
|
||||
crOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cr++ + 128;
|
||||
}
|
||||
@@ -174,6 +197,7 @@ static void TMCJPEG_814EFEAC(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F043C(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 column;
|
||||
u8* luminance = work->convBuf + 4;
|
||||
s8* cb = (s8*)&work->convBuf[260];
|
||||
s8* cr = (s8*)&work->convBuf[324];
|
||||
@@ -198,10 +222,9 @@ static void TMCJPEG_814F043C(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 yEnd = y + height;
|
||||
s32 row;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
s32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
u32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
output[((column) & 7) + ((((column) >> 3) + tileRow) << 5)] = luminance[0];
|
||||
luminance += 1;
|
||||
}
|
||||
@@ -213,11 +236,10 @@ static void TMCJPEG_814F043C(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
yEnd = y + height;
|
||||
tileWidth = state->chromaWidth >> 3;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
u32 tileRow = (y >> 2) * tileWidth;
|
||||
u8* cbOutput = cbTexture + ((y & 3) << 3);
|
||||
u8* crOutput = crTexture + ((y & 3) << 3);
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
cbOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cb++ + 128;
|
||||
crOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cr++ + 128;
|
||||
}
|
||||
@@ -228,6 +250,7 @@ static void TMCJPEG_814F043C(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F0A58(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 column;
|
||||
u8* luminance = work->convBuf + 4;
|
||||
s8* cb = (s8*)&work->convBuf[132];
|
||||
s8* cr = (s8*)&work->convBuf[196];
|
||||
@@ -244,9 +267,8 @@ static void TMCJPEG_814F0A58(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 yEnd = y + height;
|
||||
s32 row;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
s32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
s32 column;
|
||||
u32 tileRow = (row >> 2) * tileWidth;
|
||||
for (column = x; column < xEnd; column += 2) {
|
||||
output[((column) & 7) + ((((column) >> 3) + tileRow) << 5)] = luminance[0];
|
||||
output[((column + 1) & 7) + ((((column + 1) >> 3) + tileRow) << 5)] = luminance[1];
|
||||
@@ -261,10 +283,9 @@ static void TMCJPEG_814F0A58(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
yEnd = y + height;
|
||||
tileWidth = state->chromaWidth >> 3;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u8* cbOutput = cbTexture + ((y & 3) << 3);
|
||||
u8* crOutput = crTexture + ((y & 3) << 3);
|
||||
s32 column;
|
||||
u32 tileRow = (y >> 2) * tileWidth;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
cbOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cb++ + 128;
|
||||
crOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cr++ + 128;
|
||||
@@ -276,6 +297,7 @@ static void TMCJPEG_814F0A58(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F11C4(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 column;
|
||||
u8* luminance = work->convBuf + 4;
|
||||
s8* cb = (s8*)&work->convBuf[132];
|
||||
s8* cr = (s8*)&work->convBuf[196];
|
||||
@@ -300,10 +322,9 @@ static void TMCJPEG_814F11C4(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 yEnd = y + height;
|
||||
s32 row;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
s32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
u32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
output[((column) & 7) + ((((column) >> 3) + tileRow) << 5)] = luminance[0];
|
||||
luminance += 1;
|
||||
}
|
||||
@@ -315,11 +336,10 @@ static void TMCJPEG_814F11C4(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
yEnd = y + height;
|
||||
tileWidth = state->chromaWidth >> 3;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
u32 tileRow = (y >> 2) * tileWidth;
|
||||
u8* cbOutput = cbTexture + ((y & 3) << 3);
|
||||
u8* crOutput = crTexture + ((y & 3) << 3);
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
cbOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cb++ + 128;
|
||||
crOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cr++ + 128;
|
||||
}
|
||||
@@ -346,8 +366,8 @@ static void TMCJPEG_814F17E0(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 yEnd = y + height;
|
||||
s32 row;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
s32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
u32 tileRow = (row >> 2) * tileWidth;
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 2) {
|
||||
output[((column) & 7) + ((((column) >> 3) + tileRow) << 5)] = luminance[0];
|
||||
@@ -364,9 +384,9 @@ static void TMCJPEG_814F17E0(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
yEnd = y + height;
|
||||
tileWidth = state->chromaWidth >> 3;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
u8* cbOutput = cbTexture + ((y & 3) << 3);
|
||||
u8* crOutput = crTexture + ((y & 3) << 3);
|
||||
u32 tileRow = (y >> 2) * tileWidth;
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
cbOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cb++ + 128;
|
||||
@@ -379,6 +399,7 @@ static void TMCJPEG_814F17E0(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F1F48(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 column;
|
||||
u8* luminance = work->convBuf + 4;
|
||||
s8* cb = (s8*)&work->convBuf[260];
|
||||
s8* cr = (s8*)&work->convBuf[324];
|
||||
@@ -403,10 +424,9 @@ static void TMCJPEG_814F1F48(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 yEnd = y + height;
|
||||
s32 row;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
s32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
u32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
output[((column) & 7) + ((((column) >> 3) + tileRow) << 5)] = luminance[0];
|
||||
luminance += 1;
|
||||
}
|
||||
@@ -420,11 +440,10 @@ static void TMCJPEG_814F1F48(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
yEnd = y + height;
|
||||
tileWidth = state->chromaWidth >> 3;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
u32 tileRow = (y >> 2) * tileWidth;
|
||||
u8* cbOutput = cbTexture + ((y & 3) << 3);
|
||||
u8* crOutput = crTexture + ((y & 3) << 3);
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
cbOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cb++ + 128;
|
||||
crOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cr++ + 128;
|
||||
}
|
||||
@@ -435,6 +454,7 @@ static void TMCJPEG_814F1F48(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F2570(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 column;
|
||||
u8* luminance = work->convBuf + 4;
|
||||
s8* cb = (s8*)&work->convBuf[132];
|
||||
s8* cr = (s8*)&work->convBuf[196];
|
||||
@@ -451,10 +471,9 @@ static void TMCJPEG_814F2570(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 yEnd = y + height;
|
||||
s32 row;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
s32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
u32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
output[((column) & 7) + ((((column) >> 3) + tileRow) << 5)] = luminance[0];
|
||||
luminance += 1;
|
||||
}
|
||||
@@ -467,11 +486,10 @@ static void TMCJPEG_814F2570(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
yEnd = y + height;
|
||||
tileWidth = state->chromaWidth >> 3;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
u32 tileRow = (y >> 2) * tileWidth;
|
||||
u8* cbOutput = cbTexture + ((y & 3) << 3);
|
||||
u8* crOutput = crTexture + ((y & 3) << 3);
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
cbOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cb++ + 128;
|
||||
crOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cr++ + 128;
|
||||
}
|
||||
@@ -482,6 +500,7 @@ static void TMCJPEG_814F2570(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F2B50(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 column;
|
||||
u8* luminance = work->convBuf + 4;
|
||||
s8* cb = (s8*)&work->convBuf[132];
|
||||
s8* cr = (s8*)&work->convBuf[196];
|
||||
@@ -506,10 +525,9 @@ static void TMCJPEG_814F2B50(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 yEnd = y + height;
|
||||
s32 row;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
s32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
u32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
output[((column) & 7) + ((((column) >> 3) + tileRow) << 5)] = luminance[0];
|
||||
luminance += 1;
|
||||
}
|
||||
@@ -521,11 +539,10 @@ static void TMCJPEG_814F2B50(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
yEnd = y + height;
|
||||
tileWidth = state->chromaWidth >> 3;
|
||||
for (; y < yEnd; y++) {
|
||||
s32 tileRow = (y >> 2) * tileWidth;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
u32 tileRow = (y >> 2) * tileWidth;
|
||||
u8* cbOutput = cbTexture + ((y & 3) << 3);
|
||||
u8* crOutput = crTexture + ((y & 3) << 3);
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column++) {
|
||||
cbOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cb++ + 128;
|
||||
crOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cr++ + 128;
|
||||
}
|
||||
@@ -536,50 +553,91 @@ static void TMCJPEG_814F2B50(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F3158(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u8* luminance = work->convBuf + 4;
|
||||
s8* cb = (s8*)&work->convBuf[68];
|
||||
s8* cr = (s8*)&work->convBuf[132];
|
||||
TMCCJPEGDecState* state = work->pState;
|
||||
u32 tileWidth = state->convWidth >> 3;
|
||||
u8* lumaTexture = state->pLumaBuffer;
|
||||
u8* cbTexture = state->pCbBuffer;
|
||||
u8* crTexture = state->pCrBuffer;
|
||||
s32 width, height;
|
||||
s32 rowSkip;
|
||||
u8* output;
|
||||
s32 height;
|
||||
s32 tileRow;
|
||||
u8* cbOutput;
|
||||
TMCCJPEGDecState* state;
|
||||
u8* crOutput;
|
||||
s32 pixelOffset;
|
||||
s32 tileOffset;
|
||||
u8* lumaTexture;
|
||||
s32 width;
|
||||
u32 rowOffset;
|
||||
u8* cbTexture;
|
||||
u8* crTexture;
|
||||
u8* luminance;
|
||||
u8* cb;
|
||||
u8* cr;
|
||||
s32 column;
|
||||
s32 xEnd;
|
||||
s32 yEnd;
|
||||
u32 tileWidth;
|
||||
|
||||
luminance = work->convBuf + 4;
|
||||
cb = &work->convBuf[68];
|
||||
cr = &work->convBuf[132];
|
||||
state = work->pState;
|
||||
tileWidth = state->convWidth >> 3;
|
||||
lumaTexture = state->pLumaBuffer;
|
||||
cbTexture = state->pCbBuffer;
|
||||
crTexture = state->pCrBuffer;
|
||||
width = 8 / state->scaleFactor;
|
||||
height = 8 / state->scaleFactor;
|
||||
{
|
||||
s32 xEnd = x + width;
|
||||
s32 yEnd = y + height;
|
||||
s32 row;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
s32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
s32 column;
|
||||
u8* cbOutput = cbTexture + ((row & 3) << 3);
|
||||
u8* crOutput = crTexture + ((row & 3) << 3);
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
output[((column) & 7) + ((((column) >> 3) + tileRow) << 5)] = luminance[0];
|
||||
cbOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cb++ + 128;
|
||||
crOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cr++ + 128;
|
||||
luminance += 1;
|
||||
}
|
||||
luminance += 8 - width;
|
||||
cb += 8 - width;
|
||||
cr += 8 - width;
|
||||
xEnd = x + width;
|
||||
yEnd = y + height;
|
||||
rowSkip = 8 - width;
|
||||
for (; y < yEnd; y++) {
|
||||
tileRow = (y >> 2) * tileWidth;
|
||||
rowOffset = (y & 3) << 3;
|
||||
output = lumaTexture + rowOffset;
|
||||
cbOutput = cbTexture + rowOffset;
|
||||
crOutput = crTexture + rowOffset;
|
||||
for (column = x; column < xEnd;) {
|
||||
tileOffset = ((column >> 3) + tileRow) << 5;
|
||||
pixelOffset = column++ & 7;
|
||||
(output + pixelOffset)[tileOffset] = *luminance++;
|
||||
(cbOutput + pixelOffset)[tileOffset] = *cb++ + 128;
|
||||
(crOutput + pixelOffset)[tileOffset] = *cr++ + 128;
|
||||
}
|
||||
luminance += rowSkip;
|
||||
cb += rowSkip;
|
||||
cr += rowSkip;
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F32E4(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u8* luminance = work->convBuf + 4;
|
||||
s8* cb = (s8*)&work->convBuf[68];
|
||||
s8* cr = (s8*)&work->convBuf[132];
|
||||
TMCCJPEGDecState* state = work->pState;
|
||||
u32 tileWidth = state->convWidth >> 3;
|
||||
u8* lumaTexture = state->pLumaBuffer;
|
||||
u8* cbTexture = state->pCbBuffer;
|
||||
u8* crTexture = state->pCrBuffer;
|
||||
s32 width, height;
|
||||
s32 rowSkip;
|
||||
u8* output;
|
||||
s32 height;
|
||||
s32 tileRow;
|
||||
u8* cbOutput;
|
||||
TMCCJPEGDecState* state;
|
||||
u8* crOutput;
|
||||
s32 pixelOffset;
|
||||
s32 tileOffset;
|
||||
u8* lumaTexture;
|
||||
s32 width;
|
||||
u32 rowOffset;
|
||||
u8* cbTexture;
|
||||
u8* crTexture;
|
||||
u8* luminance;
|
||||
u8* cb;
|
||||
u8* cr;
|
||||
s32 column;
|
||||
s32 xEnd;
|
||||
s32 yEnd;
|
||||
u32 tileWidth;
|
||||
|
||||
luminance = work->convBuf + 4;
|
||||
cb = &work->convBuf[68];
|
||||
cr = &work->convBuf[132];
|
||||
state = work->pState;
|
||||
tileWidth = state->convWidth >> 3;
|
||||
lumaTexture = state->pLumaBuffer;
|
||||
cbTexture = state->pCbBuffer;
|
||||
crTexture = state->pCrBuffer;
|
||||
if (state->dataSizeX == (u32)x) {
|
||||
width = state->stepXExt;
|
||||
} else {
|
||||
@@ -590,48 +648,58 @@ static void TMCJPEG_814F32E4(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
} else {
|
||||
height = 8 / state->scaleFactor;
|
||||
}
|
||||
{
|
||||
s32 xEnd = x + width;
|
||||
s32 yEnd = y + height;
|
||||
s32 row;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
s32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
s32 column;
|
||||
u8* cbOutput = cbTexture + ((row & 3) << 3);
|
||||
u8* crOutput = crTexture + ((row & 3) << 3);
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
output[((column) & 7) + ((((column) >> 3) + tileRow) << 5)] = luminance[0];
|
||||
cbOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cb++ + 128;
|
||||
crOutput[(column & 7) + (((column >> 3) + tileRow) << 5)] = *cr++ + 128;
|
||||
luminance += 1;
|
||||
}
|
||||
luminance += 8 - width;
|
||||
cb += 8 - width;
|
||||
cr += 8 - width;
|
||||
xEnd = x + width;
|
||||
yEnd = y + height;
|
||||
rowSkip = 8 - width;
|
||||
for (; y < yEnd; y++) {
|
||||
tileRow = (y >> 2) * tileWidth;
|
||||
rowOffset = (y & 3) << 3;
|
||||
output = lumaTexture + rowOffset;
|
||||
cbOutput = cbTexture + rowOffset;
|
||||
crOutput = crTexture + rowOffset;
|
||||
for (column = x; column < xEnd;) {
|
||||
tileOffset = ((column >> 3) + tileRow) << 5;
|
||||
pixelOffset = column++ & 7;
|
||||
(output + pixelOffset)[tileOffset] = *luminance++;
|
||||
(cbOutput + pixelOffset)[tileOffset] = *cb++ + 128;
|
||||
(crOutput + pixelOffset)[tileOffset] = *cr++ + 128;
|
||||
}
|
||||
luminance += rowSkip;
|
||||
cb += rowSkip;
|
||||
cr += rowSkip;
|
||||
}
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F34A4(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u8* luminance = work->convBuf + 4;
|
||||
TMCCJPEGDecState* state = work->pState;
|
||||
u32 tileWidth = state->convWidth >> 3;
|
||||
u8* lumaTexture = state->pLumaBuffer;
|
||||
s32 width, height;
|
||||
s32 height;
|
||||
u8* lumaTexture;
|
||||
u8* luminance;
|
||||
s32 column;
|
||||
s32 xEnd;
|
||||
s32 yEnd;
|
||||
u8* output;
|
||||
s32 width;
|
||||
TMCCJPEGDecState* state;
|
||||
u32 tileRow;
|
||||
u32 tileWidth;
|
||||
s32 tileOffset;
|
||||
s32 row;
|
||||
|
||||
luminance = work->convBuf + 4;
|
||||
state = work->pState;
|
||||
tileWidth = state->convWidth >> 3;
|
||||
lumaTexture = state->pLumaBuffer;
|
||||
width = 8 / state->scaleFactor;
|
||||
height = 8 / state->scaleFactor;
|
||||
{
|
||||
s32 xEnd = x + width;
|
||||
s32 yEnd = y + height;
|
||||
s32 row;
|
||||
xEnd = x + width;
|
||||
yEnd = y + height;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
s32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
output[((column) & 7) + ((((column) >> 3) + tileRow) << 5)] = luminance[0];
|
||||
luminance += 1;
|
||||
tileRow = (row >> 2) * tileWidth;
|
||||
tileOffset = ((column >> 3) + tileRow) << 5;
|
||||
output = lumaTexture + ((row & 3) << 3) + (column & 7);
|
||||
output[tileOffset] = *luminance++;
|
||||
}
|
||||
luminance += 8 - width;
|
||||
}
|
||||
@@ -639,11 +707,24 @@ static void TMCJPEG_814F34A4(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
}
|
||||
|
||||
static void TMCJPEG_814F372C(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
u8* luminance = work->convBuf + 4;
|
||||
TMCCJPEGDecState* state = work->pState;
|
||||
u32 tileWidth = state->convWidth >> 3;
|
||||
u8* lumaTexture = state->pLumaBuffer;
|
||||
s32 width, height;
|
||||
s32 height;
|
||||
u8* lumaTexture;
|
||||
u8* luminance;
|
||||
s32 column;
|
||||
s32 xEnd;
|
||||
s32 yEnd;
|
||||
u8* output;
|
||||
s32 width;
|
||||
TMCCJPEGDecState* state;
|
||||
u32 tileRow;
|
||||
u32 tileWidth;
|
||||
s32 tileOffset;
|
||||
s32 row;
|
||||
|
||||
luminance = work->convBuf + 4;
|
||||
state = work->pState;
|
||||
tileWidth = state->convWidth >> 3;
|
||||
lumaTexture = state->pLumaBuffer;
|
||||
if (state->dataSizeX == (u32)x) {
|
||||
width = state->stepXExt;
|
||||
} else {
|
||||
@@ -655,16 +736,14 @@ static void TMCJPEG_814F372C(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
height = 8 / state->scaleFactor;
|
||||
}
|
||||
{
|
||||
s32 xEnd = x + width;
|
||||
s32 yEnd = y + height;
|
||||
s32 row;
|
||||
xEnd = x + width;
|
||||
yEnd = y + height;
|
||||
for (row = y; row < yEnd; row++) {
|
||||
s32 tileRow = (row >> 2) * tileWidth;
|
||||
u8* output = lumaTexture + ((row & 3) << 3);
|
||||
s32 column;
|
||||
for (column = x; column < xEnd; column += 1) {
|
||||
output[((column) & 7) + ((((column) >> 3) + tileRow) << 5)] = luminance[0];
|
||||
luminance += 1;
|
||||
tileRow = (row >> 2) * tileWidth;
|
||||
tileOffset = ((column >> 3) + tileRow) << 5;
|
||||
output = lumaTexture + ((row & 3) << 3) + (column & 7);
|
||||
output[tileOffset] = *luminance++;
|
||||
}
|
||||
luminance += 8 - width;
|
||||
}
|
||||
|
||||
177
libs/RVLMiddleware/eZiText/src/clib/zconvert.c
Normal file
177
libs/RVLMiddleware/eZiText/src/clib/zconvert.c
Normal file
@@ -0,0 +1,177 @@
|
||||
#include <zi8clib/zconvert.h>
|
||||
#include <zi8clib/zierror.h>
|
||||
|
||||
typedef struct ziConversionRange {
|
||||
ziU16 first, last;
|
||||
union { ziPtr table; ziU32 character; } result;
|
||||
} ziConversionRange;
|
||||
typedef struct ziConversionRangeTable {
|
||||
ziU16 count, flags;
|
||||
ziConversionRange* entries;
|
||||
} ziConversionRangeTable;
|
||||
typedef struct ziConversionTables {
|
||||
ziU16 first, last;
|
||||
ziWChar* unicode;
|
||||
ziConversionRangeTable reverse, keys, cases;
|
||||
} ziConversionTables;
|
||||
typedef struct ziConversionEntry {
|
||||
ziU8 first[2], last[2], flags[2], value[2];
|
||||
} ziConversionEntry;
|
||||
typedef struct ziConversionTable {
|
||||
ziU8 count[2], flags[2], minimum[2], maximum[2];
|
||||
ziConversionEntry entries[1];
|
||||
} ziConversionTable;
|
||||
const ziConversionTables Zi8CvrtTables = {0};
|
||||
ziU16 Zi8GetTableCount(ziU8, ziU8 ZI_NEED_WORK);
|
||||
ziPtr Zi8GetTableAddress(ziU8, ziU8 ZI_NEED_WORK);
|
||||
ziWChar Zi8ConvertUC2UserKey(ziChar, ziU8 ZI_NEED_WORK);
|
||||
|
||||
ziWChar Zi8ConvertUC2WC(ziChar character, ziU8 language ZI_NEED_WORK) {
|
||||
ziU8* table;
|
||||
ziWChar* mapped;
|
||||
ziU8* cursor;
|
||||
ziU16 first, last;
|
||||
const ziConversionTables* defaults;
|
||||
if (character == 0) {
|
||||
Zi8LogError(0x133, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
if (Zi8GetTableCount(language, 6, __zi8_work_data) != 0) {
|
||||
table = Zi8GetTableAddress(language, 6, __zi8_work_data);
|
||||
if (table == 0) {
|
||||
Zi8LogError(0x6A4, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
cursor = table;
|
||||
first = (ziU16)cursor[0] << 8 | cursor[1];
|
||||
last = (ziU16)cursor[2] << 8 | cursor[3];
|
||||
if (character < first || character > last) {
|
||||
Zi8LogError(0x132, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
cursor += (character - first) * 2 + 8;
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
return (ziU16)cursor[0] << 8 | cursor[1];
|
||||
}
|
||||
defaults = &Zi8CvrtTables;
|
||||
if (defaults == 0) {
|
||||
Zi8LogError(0x6A4, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
if (character < defaults->first || character > defaults->last) {
|
||||
Zi8LogError(0x132, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
mapped = defaults->unicode;
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
return mapped[character - defaults->first];
|
||||
}
|
||||
ziChar Zi8ConvertWC2UC(ziWChar character, ziU8 language ZI_NEED_WORK) {
|
||||
ziU16 index, count, first, last, value;
|
||||
ziConversionTable* table;
|
||||
const ziConversionRangeTable* defaults;
|
||||
ziConversionRange* ranges;
|
||||
ziConversionEntry* entry;
|
||||
ziU8* cursor;
|
||||
if (character == 0) {
|
||||
Zi8LogError(0x133, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
if (Zi8GetTableCount(language, 7, __zi8_work_data) != 0) {
|
||||
table = Zi8GetTableAddress(language, 7, __zi8_work_data);
|
||||
if (table == 0) {
|
||||
Zi8LogError(0x6AE, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
entry = table->entries;
|
||||
count = (ziU16)table->count[0] << 8 | table->count[1];
|
||||
for (index = 0; index < count; index++) {
|
||||
first = ((ziU16)entry->first[0] << 8 | entry->first[1]);
|
||||
last = (ziU16)entry->last[0] << 8 | entry->last[1];
|
||||
if (first <= character && character <= last) {
|
||||
value = ((ziU16)entry->value[0] << 8 | entry->value[1]);
|
||||
if (first == last) {
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
return value & 0xFF;
|
||||
}
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
return ((ziU8*)table->entries)[character + value - first];
|
||||
}
|
||||
entry++;
|
||||
}
|
||||
} else {
|
||||
defaults = &Zi8CvrtTables.reverse;
|
||||
if (defaults == 0) {
|
||||
Zi8LogError(0x6AE, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
ranges = defaults->entries;
|
||||
for (index = 0; index < defaults->count; index++) {
|
||||
if (ranges[index].first <= character && character <= ranges[index].last) {
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
if (ranges[index].first == ranges[index].last) return ranges[index].result.character & 0xFF;
|
||||
return ((ziU8*)ranges[index].result.table)[character - ranges[index].first];
|
||||
}
|
||||
}
|
||||
}
|
||||
Zi8LogError(0x6C2, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
ziWChar Zi8ConvertUC2Key(ziChar character, ziU8 language ZI_NEED_WORK) {
|
||||
ziU16 count, index, first, last;
|
||||
ziU32 key = 0;
|
||||
ziConversionTable* table;
|
||||
const ziConversionRangeTable* defaults;
|
||||
ziConversionRange* ranges;
|
||||
ziConversionEntry* entry;
|
||||
ziU8* cursor;
|
||||
if (character == 0) {
|
||||
Zi8LogError(0x133, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
if (ZI_WORK->userKeys[language] != 0) return Zi8ConvertUC2UserKey(character, language, __zi8_work_data);
|
||||
if (Zi8GetTableCount(language, 8, __zi8_work_data) != 0) {
|
||||
table = Zi8GetTableAddress(language, 8, __zi8_work_data);
|
||||
if (table == 0) {
|
||||
Zi8LogError(0x6B8, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
entry = table->entries;
|
||||
count = (ziU16)table->count[0] << 8 | table->count[1];
|
||||
for (index = 0; index < count; index++) {
|
||||
first = ((ziU16)entry->first[0] << 8 | entry->first[1]);
|
||||
last = (ziU16)entry->last[0] << 8 | entry->last[1];
|
||||
if (first <= character && character <= last) {
|
||||
key = ((ziU16)entry->value[0] << 8 | entry->value[1]);
|
||||
if (first != last) {
|
||||
cursor = (ziU8*)table->entries + key + (character - first) * 2;
|
||||
key = (ziU16)cursor[0] << 8 | cursor[1];
|
||||
}
|
||||
break;
|
||||
}
|
||||
entry++;
|
||||
}
|
||||
} else {
|
||||
defaults = &Zi8CvrtTables.keys;
|
||||
if (defaults == 0) {
|
||||
Zi8LogError(0x6B8, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
ranges = defaults->entries;
|
||||
for (index = 0; index < defaults->count; index++) {
|
||||
if (ranges[index].first <= character && character <= ranges[index].last) {
|
||||
if (ranges[index].first == ranges[index].last) key = ranges[index].result.character & 0xFF;
|
||||
else key = ((ziWChar*)ranges[index].result.table)[character - ranges[index].first];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (key == 0) {
|
||||
Zi8LogError(0x6C2, __zi8_work_data);
|
||||
key = 0xEFF1;
|
||||
} else Zi8LogError(100, __zi8_work_data);
|
||||
return key;
|
||||
}
|
||||
ziWChar Zi8ConvertWC2Key(ziWChar character, ziU8 language ZI_NEED_WORK) {
|
||||
return Zi8ConvertUC2Key(Zi8ConvertWC2UC(character, language, __zi8_work_data), language, __zi8_work_data);
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
2982
libs/RVLMiddleware/eZiText/src/clib/zi8cgetc.c
Normal file
2982
libs/RVLMiddleware/eZiText/src/clib/zi8cgetc.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -12,153 +12,140 @@ ziU8 ZiDAWGgetEOWattribute(ziU8* graph);
|
||||
ziU8* ZiDAWGGetChild(ziU8* graph);
|
||||
ziU8* ZiDAWGGetSibling(ziU8* graph);
|
||||
|
||||
ziU32 Zi8MatchROMdata0(ziWChar* elements, ziU32 count, ziU8 language,
|
||||
ziU32 Zi8MatchROMdata0(ziWChar* elements, ziU8 count, ziU8 language,
|
||||
ziWChar* output, ziU16 capacity, ziU8 mode, ziU8 status,
|
||||
ziU8 graphTable, ziU8 keyTable, ziU8 acceptPrefix,
|
||||
ziU8* prefixLength, zi8DawgCtx* context, ziU8* search,
|
||||
ziPtr __zi8_work_data) {
|
||||
ziBool searching;
|
||||
ziS32 tableSize;
|
||||
ziU8* graph;
|
||||
ziU16 key;
|
||||
ziU8 endOfWord;
|
||||
zi8DawgRec* current;
|
||||
ziU16 index;
|
||||
ziU16 depth;
|
||||
zi8DawgRec* records = context->recs;
|
||||
ziU8 result = 0;
|
||||
ziU32 keyCount;
|
||||
ziU8* table;
|
||||
ziU8* graphData;
|
||||
ziU8* keyData;
|
||||
ziS32 keyCount;
|
||||
ziS32 convertedKey;
|
||||
ziU16 searching;
|
||||
ziU16 key;
|
||||
ziU16 keys[3];
|
||||
ziU16 index;
|
||||
zi8DawgRec* current;
|
||||
zi8DawgRec* records = context->recs;
|
||||
|
||||
if (language != context->lang || graphTable != context->key) {
|
||||
records[0].key = 0;
|
||||
}
|
||||
if ((ziU8)count != 1 || mode == 0 || graphTable != 0xe) {
|
||||
if (status != 0) {
|
||||
if (records[context->cnt - 1].node == (ziU8*)context->unk_0x338) goto finish_graph;
|
||||
for (index = 0; (ziU16)index < (ziU8)count; index++) {
|
||||
if (records[(ziU16)index].key != elements[(ziU16)index] &&
|
||||
(records[(ziU16)index].attr & 0xffff) != elements[(ziU16)index]) goto finish_graph;
|
||||
}
|
||||
if (mode == 1) acceptPrefix = 0;
|
||||
if (language != context->lang || graphTable != context->key) records[0].key = 0;
|
||||
if (count == 1 && mode != 0 && graphTable == 0xe) goto finish_graph;
|
||||
if (status != 0) {
|
||||
if (records[context->cnt - 1].node == (ziU8*)context->unk_0x338) goto finish_graph;
|
||||
for (index = 0; index < count; index++) {
|
||||
if (records[index].key != elements[index] &&
|
||||
(ziU16)records[index].attr != elements[index]) goto finish_graph;
|
||||
}
|
||||
if (mode == 1) acceptPrefix = 0;
|
||||
} else {
|
||||
if (ZI_WORK->unk_0x141E != 0 && graphTable == 0xc &&
|
||||
Zi8GetTableSize(language, ZI_WORK->unk_0x141E, ZI_WORK) != 0) {
|
||||
graphData = (ziU8*)Zi8GetTableAddress(language, ZI_WORK->unk_0x141E, ZI_WORK);
|
||||
keyTable = ZI_WORK->unk_0x141E + 1;
|
||||
} else {
|
||||
if (ZI_WORK->unk_0x141E == 0 || graphTable != 0xc ||
|
||||
(tableSize = Zi8GetTableSize(language, ZI_WORK->unk_0x141E, ZI_WORK)) == 0) {
|
||||
tableSize = Zi8GetTableSize(language, graphTable, ZI_WORK);
|
||||
if (tableSize == 0) {
|
||||
Zi8LogError(0x961, ZI_WORK);
|
||||
goto finish_graph;
|
||||
}
|
||||
table = (ziU8*)Zi8GetTableAddress(language, graphTable, ZI_WORK);
|
||||
} else {
|
||||
table = (ziU8*)Zi8GetTableAddress(language, ZI_WORK->unk_0x141E, ZI_WORK);
|
||||
keyTable = ZI_WORK->unk_0x141E + 1;
|
||||
}
|
||||
context->table = table;
|
||||
context->cap = (((ziU16)context->table[2] << 8) + (ziU16)context->table[3]) / 3;
|
||||
context->p08 = context->table + 4;
|
||||
context->p0C = context->table + context->cap * 2 + 4;
|
||||
context->lang = language;
|
||||
context->key = graphTable;
|
||||
index = 0;
|
||||
while ((ziU16)index < (ziU8)count && records[(ziU16)index].key == elements[(ziU16)index]) {
|
||||
index++;
|
||||
}
|
||||
if ((ziU16)index < 2) {
|
||||
key = Zi8GetTableSize(language, keyTable, ZI_WORK);
|
||||
if (key == 0 || ZI_WORK->userKeys[language] != 0) {
|
||||
graph = ZiDAWGGetGraph(context);
|
||||
records[0].node = graph;
|
||||
context->unk_0x338 = 0;
|
||||
context->p14 = 0;
|
||||
} else {
|
||||
index = 0;
|
||||
while (1) {
|
||||
if ((ziU8)count < 2) keyCount = (ziU8)count;
|
||||
else keyCount = 2;
|
||||
if (keyCount <= (ziU16)index) break;
|
||||
key = Zi8ConvertWC2Key(elements[(ziU16)index], language, ZI_WORK);
|
||||
keys[(ziU16)index] = key;
|
||||
if (keys[(ziU16)index] == 0) keys[(ziU16)index] = elements[(ziU16)index];
|
||||
index++;
|
||||
}
|
||||
keys[(ziU16)index] = 0;
|
||||
table = (ziU8*)Zi8GetTableAddress(language, keyTable, ZI_WORK);
|
||||
context->p14 = table + 2;
|
||||
records[0].node = ZiDAWGGetGraphInfo(context, table + context->cap * 2 + 2, (ziS16*)keys);
|
||||
}
|
||||
records[0].key = 0;
|
||||
if (records[0].node == 0) goto finish_graph;
|
||||
} else {
|
||||
records[0].node = records[(ziU16)index - 1].back;
|
||||
}
|
||||
context->cnt = 1;
|
||||
search[1] = count;
|
||||
search[0] = 0;
|
||||
if (mode == 1) {
|
||||
search[0] = 1;
|
||||
acceptPrefix = 0;
|
||||
} else if (mode == 0 && acceptPrefix == 0) {
|
||||
search[1]++;
|
||||
if (Zi8GetTableSize(language, graphTable, ZI_WORK) == 0) {
|
||||
Zi8LogError(0x961, ZI_WORK);
|
||||
goto finish_graph;
|
||||
}
|
||||
graphData = (ziU8*)Zi8GetTableAddress(language, graphTable, ZI_WORK);
|
||||
}
|
||||
searching = 1;
|
||||
depth = context->cnt;
|
||||
while ((current = &records[depth - 1], searching) && context->cnt != 0 &&
|
||||
current->node != (ziU8*)context->unk_0x338 && context->cnt <= capacity) {
|
||||
current->attr = ZiDAWGgetCHARattribute(context, current->node, ZI_WORK);
|
||||
if ((ziU8)count < context->cnt) {
|
||||
check_word:
|
||||
if (context->cnt < search[1]) goto descend;
|
||||
if (search[0] == 0 || context->cnt <= search[1]) {
|
||||
if (acceptPrefix != 0 || (endOfWord = ZiDAWGgetEOWattribute(current->node)) != 0) {
|
||||
for (depth = 0; depth < context->cnt; depth++) {
|
||||
output[depth] = records[depth].attr;
|
||||
}
|
||||
result = context->cnt;
|
||||
searching = 0;
|
||||
if (acceptPrefix != 0) goto next_sibling;
|
||||
}
|
||||
if (search[0] == 0 || context->cnt < search[1]) goto descend;
|
||||
}
|
||||
next_sibling:
|
||||
while (context->cnt != 0) {
|
||||
graph = ZiDAWGGetSibling(records[context->cnt - 1].node);
|
||||
records[context->cnt - 1].node = graph;
|
||||
if (records[context->cnt - 1].node != 0) break;
|
||||
context->cnt--;
|
||||
context->table = graphData;
|
||||
context->cap = (((ziU16)context->table[2] << 8) + context->table[3]) / 3;
|
||||
context->p08 = context->table + 4;
|
||||
context->p0C = context->table + context->cap * 2 + 4;
|
||||
context->lang = language;
|
||||
context->key = graphTable;
|
||||
index = 0;
|
||||
while (index < count && records[index].key == elements[index]) index++;
|
||||
if (index >= 2) {
|
||||
records[0].node = records[index - 1].back;
|
||||
} else {
|
||||
key = Zi8GetTableSize(language, keyTable, ZI_WORK);
|
||||
if (key != 0 && ZI_WORK->userKeys[language] == 0) {
|
||||
index = 0;
|
||||
goto check_keys;
|
||||
next_key:
|
||||
{
|
||||
keys[index] = Zi8ConvertWC2Key(elements[index], language, ZI_WORK);
|
||||
if (keys[index] == 0) keys[index] = elements[index];
|
||||
index++;
|
||||
}
|
||||
check_keys:
|
||||
if (count < 2) keyCount = count;
|
||||
else keyCount = 2;
|
||||
if (index < keyCount) goto next_key;
|
||||
keys[index] = 0;
|
||||
keyData = (ziU8*)Zi8GetTableAddress(language, keyTable, ZI_WORK);
|
||||
context->p14 = keyData + 2;
|
||||
keyData += context->cap * 2 + 2;
|
||||
records[0].node = ZiDAWGGetGraphInfo(context, keyData, (ziS16*)keys);
|
||||
} else {
|
||||
if (context->p14 == 0) {
|
||||
key = Zi8ConvertWC2Key(current->attr & 0xffff, language, ZI_WORK);
|
||||
} else {
|
||||
key = (ziU16)context->p14[(current->attr >> 24) * 2] * 0x100 +
|
||||
(ziU16)context->p14[(current->attr >> 24) * 2 + 1];
|
||||
}
|
||||
if (key != elements[context->cnt - 1] &&
|
||||
(current->attr & 0xffff) != elements[context->cnt - 1]) goto next_sibling;
|
||||
if (current->key != elements[context->cnt - 1]) {
|
||||
current->key = elements[context->cnt - 1];
|
||||
current->back = records[0].node;
|
||||
depth = context->cnt;
|
||||
records[depth].key = 0;
|
||||
}
|
||||
if (prefixLength != 0 && *prefixLength < context->cnt &&
|
||||
(endOfWord = ZiDAWGgetEOWattribute(current->node)) != 0) {
|
||||
*prefixLength = context->cnt;
|
||||
for (depth = 0; depth < context->cnt; depth++) output[depth] = records[depth].attr;
|
||||
}
|
||||
if ((ziU8)count <= context->cnt) goto check_word;
|
||||
records[0].node = ZiDAWGGetGraph(context);
|
||||
context->unk_0x338 = 0;
|
||||
context->p14 = 0;
|
||||
}
|
||||
records[0].key = 0;
|
||||
if (records[0].node == (ziU8*)0) goto finish_graph;
|
||||
}
|
||||
context->cnt = 1;
|
||||
search[1] = count;
|
||||
search[0] = 0;
|
||||
if (mode == 1) {
|
||||
search[0] = 1;
|
||||
acceptPrefix = 0;
|
||||
} else if (mode == 0 && acceptPrefix == 0) search[1]++;
|
||||
}
|
||||
searching = 1;
|
||||
current = &records[context->cnt - 1];
|
||||
while (searching && context->cnt != 0 && current->node != (ziU8*)context->unk_0x338) {
|
||||
if (capacity < context->cnt) goto finish_graph;
|
||||
current->attr = ZiDAWGgetCHARattribute(context, current->node, ZI_WORK);
|
||||
if (context->cnt <= count) {
|
||||
if (context->p14 == 0) {
|
||||
convertedKey = Zi8ConvertWC2Key((ziU16)current->attr, language, ZI_WORK);
|
||||
} else {
|
||||
convertedKey = ((ziU16)context->p14[(current->attr >> 24) * 2] << 8) +
|
||||
(context->p14 + (current->attr >> 24) * 2)[1];
|
||||
}
|
||||
key = convertedKey;
|
||||
if (key != elements[context->cnt - 1] &&
|
||||
(ziU16)current->attr != elements[context->cnt - 1]) goto next_sibling;
|
||||
if (current->key != elements[context->cnt - 1]) {
|
||||
current->key = elements[context->cnt - 1];
|
||||
current->back = records[0].node;
|
||||
records[context->cnt].key = 0;
|
||||
}
|
||||
if (prefixLength != 0 && *prefixLength < context->cnt &&
|
||||
ZiDAWGgetEOWattribute(current->node) != 0) {
|
||||
*prefixLength = context->cnt;
|
||||
for (index = 0; index < context->cnt; index++) output[index] = (ziU16)records[index].attr;
|
||||
}
|
||||
if (context->cnt < count) goto descend;
|
||||
}
|
||||
if (context->cnt < search[1]) goto descend;
|
||||
if (search[0] != 0 && context->cnt > search[1]) goto next_sibling;
|
||||
if (acceptPrefix != 0 || ZiDAWGgetEOWattribute(current->node) != 0) {
|
||||
for (index = 0; index < context->cnt; index++) output[index] = (ziU16)records[index].attr;
|
||||
result = context->cnt;
|
||||
searching = 0;
|
||||
if (acceptPrefix != 0) goto next_sibling;
|
||||
}
|
||||
if (search[0] != 0 && context->cnt >= search[1]) goto next_sibling;
|
||||
descend:
|
||||
graph = ZiDAWGGetChild(records[context->cnt - 1].node);
|
||||
records[context->cnt].node = graph;
|
||||
if (records[context->cnt].node == 0) goto next_sibling;
|
||||
context->cnt++;
|
||||
if (ZI_WORK->unk_0x141F < context->cnt) ZI_WORK->unk_0x141F = context->cnt;
|
||||
}
|
||||
depth = context->cnt;
|
||||
records[context->cnt].node = ZiDAWGGetChild(records[context->cnt - 1].node);
|
||||
if (records[context->cnt].node == (ziU8*)0) goto next_sibling;
|
||||
context->cnt++;
|
||||
if (ZI_WORK->unk_0x141F < context->cnt) ZI_WORK->unk_0x141F = context->cnt;
|
||||
goto update_current;
|
||||
next_sibling:
|
||||
while (context->cnt != 0) {
|
||||
records[context->cnt - 1].node = ZiDAWGGetSibling(records[context->cnt - 1].node);
|
||||
if (records[context->cnt - 1].node != (ziU8*)0) break;
|
||||
context->cnt--;
|
||||
}
|
||||
update_current:
|
||||
current = &records[context->cnt - 1];
|
||||
}
|
||||
finish_graph:
|
||||
return result;
|
||||
@@ -190,13 +177,13 @@ ziU8* NextDawgGroup(ziU8* group, ziU8 language, ziPtr __zi8_work_data)
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned int Zi8MatchROMdata1(ziWChar *elements, ziU8 count, ziU8 language, ziWChar *output, ziU16 capacity, ziU8 mode, unsigned int status, ziU32 groupIndex, char *group, ziU8 acceptPrefix, ziPtr __zi8_work_data)
|
||||
unsigned int Zi8MatchROMdata1(ziWChar *elements, ziU8 count, ziU8 language, ziWChar *output, ziU16 capacity, ziU8 mode, ziU8 status, ziU32 groupIndex, char *group, ziU8 acceptPrefix, ziPtr __zi8_work_data)
|
||||
{
|
||||
unsigned int result;
|
||||
ziU32 tableAddress;
|
||||
|
||||
result = 0;
|
||||
if ((status & 0xff) == 0) {
|
||||
if (status == 0) {
|
||||
ZI_WORK->unk_0x1764 = (ziU8*)group;
|
||||
if (ZI_WORK->unk_0x1764 == 0) {
|
||||
if (Zi8GetTableSize(language & 0xff,0xb,ZI_WORK) != 0) {
|
||||
@@ -234,163 +221,139 @@ unsigned int Zi8MatchROMdata1(ziWChar *elements, ziU8 count, ziU8 language, ziWC
|
||||
return result;
|
||||
}
|
||||
|
||||
unsigned int Zi8MatchROMdata2(ziWChar *elements, unsigned int count, unsigned int language, ziWChar *output, unsigned int capacity, unsigned int mode, unsigned int status, ziU8 reservedMode, ziU8 *group, ziU8 acceptPrefix, ziPtr __zi8_work_data)
|
||||
{
|
||||
ziU16 character;
|
||||
unsigned int result;
|
||||
ziU8 prefixCount;
|
||||
unsigned int index;
|
||||
unsigned int remaining;
|
||||
unsigned int Zi8MatchROMdata2(ziWChar* elements, ziU8 count, ziU8 language,
|
||||
ziWChar* output, ziU16 capacity, ziU8 mode,
|
||||
ziU8 status, ziU8 reservedMode, ziU8* group,
|
||||
ziU8 acceptPrefix, ziPtr __zi8_work_data) {
|
||||
unsigned int result = 0;
|
||||
ziU8 index;
|
||||
|
||||
result = 0;
|
||||
if (reservedMode != 0) return 0;
|
||||
if ((status & 0xff) == 0) {
|
||||
ZI_WORK->unk_0x1768 = 0;
|
||||
ZI_WORK->unk_0x17EA = 0;
|
||||
if ((((group == 0) || (*group != '\f')) || ((language & 0xff) != 10)) ||
|
||||
(ZI_WORK->unk_0x141C == '\0')) {
|
||||
ZI_WORK->unk_0x141E = 0;
|
||||
}
|
||||
else {
|
||||
ZI_WORK->unk_0x141E = 0x10;
|
||||
}
|
||||
if (reservedMode != 0) return 0;
|
||||
if (status == 0) {
|
||||
ZI_WORK->unk_0x1768 = 0;
|
||||
ZI_WORK->unk_0x17EA = 0;
|
||||
if (group != 0 && *group == 0xc && language == 10 && ZI_WORK->unk_0x141C != 0) {
|
||||
ZI_WORK->unk_0x141E = 0x10;
|
||||
} else {
|
||||
ZI_WORK->unk_0x141E = 0;
|
||||
}
|
||||
}
|
||||
search_segment:
|
||||
ZI_WORK->unk_0x141F = 1;
|
||||
result = Zi8MatchROMdata1(elements + (unsigned int)ZI_WORK->unk_0x17EA,
|
||||
count - ZI_WORK->unk_0x17EA & 0xff,language & 0xff,
|
||||
&ZI_WORK->unk_0x17F4[ZI_WORK->unk_0x17EA],
|
||||
capacity & 0xffff,mode & 0xff,status & 0xff,
|
||||
ZI_WORK->unk_0x1768,(char *)group,acceptPrefix,ZI_WORK);
|
||||
if ((result & 0xff) == 0) {
|
||||
if ((((status & 0xff) != 0) || ((count & 0xff) == 1)) ||
|
||||
(((mode & 0xff) == 1 &&
|
||||
((ZI_WORK->unk_0x1768 == 0 &&
|
||||
(prefixCount = Zi8MatchROMdata1(elements + (unsigned int)ZI_WORK->unk_0x17EA,
|
||||
count - ZI_WORK->unk_0x17EA & 0xff,language & 0xff,
|
||||
&ZI_WORK->unk_0x17F4[ZI_WORK->unk_0x17EA],
|
||||
capacity & 0xffff,0,status & 0xff,
|
||||
ZI_WORK->unk_0x1768,(char *)group,acceptPrefix,ZI_WORK),
|
||||
prefixCount != '\0')))))) goto finish_segments;
|
||||
index = Zi8GetTableCount(language & 0xff,0x1f,ZI_WORK);
|
||||
if ((index & 4) == 0) {
|
||||
for (index = 0; (index & 0xff) < (count & 0xff); index = index + 1) {
|
||||
if (elements[index & 0xff] == 0xeff1) goto finish_segments;
|
||||
result = Zi8MatchROMdata1(elements + ZI_WORK->unk_0x17EA,
|
||||
count - ZI_WORK->unk_0x17EA, language,
|
||||
&ZI_WORK->unk_0x17F4[ZI_WORK->unk_0x17EA], capacity,
|
||||
mode, status, ZI_WORK->unk_0x1768, (char*)group,
|
||||
acceptPrefix, ZI_WORK);
|
||||
if ((ziU8)result != 0) {
|
||||
for (index = (ziU8)(ZI_WORK->unk_0x17EA + result); index != 0; index--) {
|
||||
output[index - 1] = ZI_WORK->unk_0x17F4[index - 1];
|
||||
}
|
||||
}
|
||||
if ((capacity & 0xffff) < (unsigned int)ZI_WORK->unk_0x141F) goto finish_segments;
|
||||
prefixCount = ZI_WORK->unk_0x141F;
|
||||
for (; prefixCount != 0; prefixCount--) {
|
||||
result = Zi8MatchROMdata1(elements + (unsigned int)ZI_WORK->unk_0x17EA,prefixCount,
|
||||
language & 0xff,
|
||||
&ZI_WORK->unk_0x17F4[ZI_WORK->unk_0x17EA],
|
||||
capacity & 0xffff,1,0,ZI_WORK->unk_0x1768,(char *)group,
|
||||
acceptPrefix,ZI_WORK);
|
||||
if ((result & 0xff) != 0) break;
|
||||
}
|
||||
if (prefixCount == 0) goto finish_segments;
|
||||
ZI_WORK->unk_0x17EA = ZI_WORK->unk_0x17EA + ((ziU16)result & 0xff);
|
||||
if ((unsigned int)ZI_WORK->unk_0x17EA == (count & 0xff)) {
|
||||
result = 0;
|
||||
goto finish_segments;
|
||||
}
|
||||
ZI_WORK->unk_0x1768 = ZI_WORK->unk_0x1768 + 1;
|
||||
status = 0;
|
||||
ZI_WORK->unk_0x141E = 0;
|
||||
if ((ZI_WORK->dawgCtx.key == 0) && ((language & 0xff) == 10)) {
|
||||
for (result = 0; (result & 0xff) < (unsigned int)ZI_WORK->unk_0x17EA; result = result + 1) {
|
||||
character = ZI_WORK->unk_0x17F4[result & 0xff];
|
||||
if (character == 0x61 || character == 0x6f || character == 0x75) {
|
||||
ZI_WORK->unk_0x141E = 0x10;
|
||||
break;
|
||||
}
|
||||
result = (ziU8)(result + ZI_WORK->unk_0x17EA);
|
||||
} else {
|
||||
if (status != 0 || count == 1) goto finish_segments;
|
||||
if (mode == 1 && ZI_WORK->unk_0x1768 == 0 &&
|
||||
(ziU8)Zi8MatchROMdata1(elements + ZI_WORK->unk_0x17EA,
|
||||
count - ZI_WORK->unk_0x17EA, language,
|
||||
&ZI_WORK->unk_0x17F4[ZI_WORK->unk_0x17EA], capacity,
|
||||
0, status, ZI_WORK->unk_0x1768, (char*)group,
|
||||
acceptPrefix, ZI_WORK) != 0) goto finish_segments;
|
||||
if ((Zi8GetTableCount(language, 0x1f, ZI_WORK) & 4) == 0) {
|
||||
for (index = 0; index < count; index++) {
|
||||
if (elements[index] == 0xeff1) goto finish_segments;
|
||||
}
|
||||
}
|
||||
if (ZI_WORK->unk_0x141F > capacity) goto finish_segments;
|
||||
for (index = ZI_WORK->unk_0x141F; index != 0; index--) {
|
||||
result = Zi8MatchROMdata1(elements + ZI_WORK->unk_0x17EA, index, language,
|
||||
&ZI_WORK->unk_0x17F4[ZI_WORK->unk_0x17EA], capacity,
|
||||
1, 0, ZI_WORK->unk_0x1768, (char*)group,
|
||||
acceptPrefix, ZI_WORK);
|
||||
if ((ziU8)result != 0) {
|
||||
ZI_WORK->unk_0x17EA += (ziU8)result;
|
||||
if (ZI_WORK->unk_0x17EA == count) return 0;
|
||||
ZI_WORK->unk_0x1768++;
|
||||
status = 0;
|
||||
ZI_WORK->unk_0x141E = 0;
|
||||
if (ZI_WORK->dawgCtx.key == 0 && language == 10) {
|
||||
for (index = 0; index < ZI_WORK->unk_0x17EA; index++) {
|
||||
switch (ZI_WORK->unk_0x17F4[index]) {
|
||||
case 0x61:
|
||||
case 0x6f:
|
||||
case 0x75:
|
||||
ZI_WORK->unk_0x141E = 0x10;
|
||||
goto search_segment;
|
||||
}
|
||||
}
|
||||
}
|
||||
goto search_segment;
|
||||
}
|
||||
}
|
||||
}
|
||||
goto search_segment;
|
||||
}
|
||||
for (remaining = ZI_WORK->unk_0x17EA + result & 0xff; (remaining & 0xff) != 0;
|
||||
remaining = remaining - 1) {
|
||||
output[(remaining & 0xff) - 1] = ZI_WORK->unk_0x17F4[(remaining & 0xff) - 1];
|
||||
}
|
||||
result = result + ZI_WORK->unk_0x17EA & 0xff;
|
||||
finish_segments:
|
||||
return result;
|
||||
return result;
|
||||
}
|
||||
|
||||
ziU8 Zi8MatchROMdata(ziWChar *elements, ziU8 count, ziU8 language, ziWChar *output, ziU16 capacity, ziU8 mode, ziU8 status, ziU8 reservedMode, ziU8 acceptPrefix, ziPtr __zi8_work_data)
|
||||
{
|
||||
ziU8* group;
|
||||
int tableSize;
|
||||
ziU8 found;
|
||||
unsigned int elementCount;
|
||||
unsigned int result;
|
||||
ziU32 Zi8MatchROMdata(ziWChar* elements, ziU8 count, ziU8 language,
|
||||
ziWChar* output, ziU16 capacity, ziU8 mode, ziU8 status,
|
||||
ziU8 reservedMode, ziU8 acceptPrefix, ziPtr __zi8_work_data) {
|
||||
ziU32 result = 0;
|
||||
ziS32 tableSize = 0;
|
||||
|
||||
elementCount = (unsigned int)count;
|
||||
result = 0;
|
||||
if ((capacity & 0xffff) < (elementCount & 0xff)) {
|
||||
Zi8LogError(0x321,ZI_WORK);
|
||||
}
|
||||
else if ((status & 0xff) == 2) {
|
||||
Zi8LogError(100,ZI_WORK);
|
||||
}
|
||||
else {
|
||||
if ((status & 0xff) == 0) {
|
||||
ZI_WORK->unk_0x17EC = 0;
|
||||
group = NextDawgGroup(0,language & 0xff,ZI_WORK);
|
||||
ZI_WORK->unk_0x17F0 = group;
|
||||
}
|
||||
else if (ZI_WORK->unk_0x17EC != '\0') {
|
||||
Zi8LogError(100,ZI_WORK);
|
||||
goto finish_match;
|
||||
}
|
||||
tableSize = Zi8GetTableSize(language & 0xff,0x1c,ZI_WORK);
|
||||
if (tableSize == 0) {
|
||||
result = Zi8MatchROMdata2(elements,elementCount & 0xff,language & 0xff,output,capacity & 0xffff,
|
||||
mode & 0xff,status & 0xff,reservedMode & 0xff,0,acceptPrefix,ZI_WORK);
|
||||
}
|
||||
else {
|
||||
while (((ZI_WORK->unk_0x17F0 != 0 &&
|
||||
(result = Zi8MatchROMdata2(elements,elementCount & 0xff,language & 0xff,output,capacity & 0xffff,
|
||||
mode & 0xff,status & 0xff,reservedMode & 0xff,
|
||||
(ziU8 *)ZI_WORK->unk_0x17F0,acceptPrefix,ZI_WORK),
|
||||
(result & 0xff) == 0)) &&
|
||||
((status = 0, 1 < (elementCount & 0xff) || ((language & 0xff) != 0x36))))) {
|
||||
group = NextDawgGroup(ZI_WORK->unk_0x17F0,language & 0xff,ZI_WORK);
|
||||
ZI_WORK->unk_0x17F0 = group;
|
||||
}
|
||||
}
|
||||
if (((((result & 0xff) == 0) && ((status & 0xff) == 0)) && ((mode & 0xff) == 1)) &&
|
||||
(((elementCount & 0xff) == 1 && ((capacity & 0xffff) != 0)))) {
|
||||
ZI_WORK->unk_0x17EC = 1;
|
||||
if (tableSize == 0) {
|
||||
found = Zi8MatchROMdata2(elements,elementCount & 0xff,language & 0xff,output,capacity & 0xffff,0,
|
||||
status & 0xff,reservedMode & 0xff,0,acceptPrefix,ZI_WORK);
|
||||
if (found != '\0') {
|
||||
*output = *elements;
|
||||
result = 1;
|
||||
if (capacity < count) {
|
||||
Zi8LogError(0x321, ZI_WORK);
|
||||
} else if (status == 2) {
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
} else {
|
||||
if (status == 0) {
|
||||
ZI_WORK->unk_0x17EC = 0;
|
||||
ZI_WORK->unk_0x17F0 = NextDawgGroup(0, language, ZI_WORK);
|
||||
} else if (ZI_WORK->unk_0x17EC != 0) {
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
goto finish_match;
|
||||
}
|
||||
}
|
||||
else {
|
||||
group = NextDawgGroup(0,language & 0xff,ZI_WORK);
|
||||
ZI_WORK->unk_0x17F0 = group;
|
||||
while (ZI_WORK->unk_0x17F0 != 0) {
|
||||
found = Zi8MatchROMdata2(elements,elementCount & 0xff,language & 0xff,output,capacity & 0xffff,0,
|
||||
status & 0xff,reservedMode & 0xff,(ziU8 *)ZI_WORK->unk_0x17F0,
|
||||
acceptPrefix,ZI_WORK);
|
||||
if (found != '\0') {
|
||||
*output = *elements;
|
||||
result = 1;
|
||||
break;
|
||||
}
|
||||
group = NextDawgGroup(ZI_WORK->unk_0x17F0,language & 0xff,ZI_WORK);
|
||||
ZI_WORK->unk_0x17F0 = group;
|
||||
tableSize = Zi8GetTableSize(language, 0x1c, ZI_WORK);
|
||||
if (tableSize == 0) {
|
||||
result = Zi8MatchROMdata2(elements, count, language, output, capacity,
|
||||
mode, status, reservedMode, 0, acceptPrefix, ZI_WORK);
|
||||
} else {
|
||||
while (ZI_WORK->unk_0x17F0 != 0) {
|
||||
result = Zi8MatchROMdata2(elements, count, language, output, capacity,
|
||||
mode, status, reservedMode, ZI_WORK->unk_0x17F0,
|
||||
acceptPrefix, ZI_WORK);
|
||||
if ((ziU8)result != 0) break;
|
||||
status = 0;
|
||||
if (count <= 1 && language == 0x36) break;
|
||||
ZI_WORK->unk_0x17F0 = NextDawgGroup(ZI_WORK->unk_0x17F0, language, ZI_WORK);
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((ziU8)result == 0 && status == 0 && mode == 1 && count == 1 && capacity >= 1) {
|
||||
mode = 0;
|
||||
ZI_WORK->unk_0x17EC = 1;
|
||||
if (tableSize != 0) {
|
||||
ZI_WORK->unk_0x17F0 = NextDawgGroup(0, language, ZI_WORK);
|
||||
while (ZI_WORK->unk_0x17F0 != 0) {
|
||||
if ((ziU8)Zi8MatchROMdata2(elements, count, language, output, capacity,
|
||||
mode, status, reservedMode, ZI_WORK->unk_0x17F0,
|
||||
acceptPrefix, ZI_WORK) != 0) {
|
||||
*output = *elements;
|
||||
result = 1;
|
||||
break;
|
||||
}
|
||||
ZI_WORK->unk_0x17F0 = NextDawgGroup(ZI_WORK->unk_0x17F0, language, ZI_WORK);
|
||||
}
|
||||
} else {
|
||||
if ((ziU8)Zi8MatchROMdata2(elements, count, language, output, capacity,
|
||||
mode, status, reservedMode, 0, acceptPrefix, ZI_WORK) != 0) {
|
||||
*output = *elements;
|
||||
result = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
}
|
||||
Zi8LogError(100,ZI_WORK);
|
||||
}
|
||||
finish_match:
|
||||
return (ziU8)result;
|
||||
return result;
|
||||
}
|
||||
|
||||
void Zi8SyllablesROMdata(ziWChar *elements, ziU8 count, ziU8 language, ziWChar *output, ziU16 capacity, ziU8 status, ziU8* prefixLength, ziU8 reverseOrder, ziPtr __zi8_work_data)
|
||||
|
||||
@@ -114,173 +114,167 @@ static ziU16 Zi8GetEngineSignature(ziU8* destination, ziPtr work) {
|
||||
|
||||
static ziBool Zi8AlphaSignature(ziGetParam* parameters, ziBool countOnly ZI_NEED_WORK) {
|
||||
ziU16 secondLength;
|
||||
ziU16 firstLength;
|
||||
ziU8* second;
|
||||
ziU8* first;
|
||||
ziU8 engine[32];
|
||||
struct { ziU16 length; ziU8* second; ziU8* first; } signatures;
|
||||
ziU8 dictionary[32];
|
||||
ziU8 engine[32];
|
||||
ziU16 length;
|
||||
ziU16 candidateCount;
|
||||
ziU8* current;
|
||||
ziWChar* output = parameters->candidates;
|
||||
second = 0;
|
||||
firstLength = 0;
|
||||
|
||||
signatures.first = 0;
|
||||
signatures.second = 0;
|
||||
signatures.length = 0;
|
||||
secondLength = 0;
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
parameters->letters = 0;
|
||||
length = Zi8GetDataSignature(dictionary, 0x20, parameters->language, ZI_WORK);
|
||||
if (length == 0 || length < parameters->elementCount) {
|
||||
first = engine;
|
||||
if (length != 0 && parameters->elementCount <= length) {
|
||||
signatures.first = dictionary;
|
||||
signatures.second = engine;
|
||||
signatures.length = length;
|
||||
} else {
|
||||
first = dictionary;
|
||||
second = engine;
|
||||
firstLength = length;
|
||||
signatures.first = engine;
|
||||
}
|
||||
length = Zi8GetEngineSignature(engine, ZI_WORK);
|
||||
if (length < parameters->elementCount) {
|
||||
if (firstLength == 0) {
|
||||
if (signatures.length != 0) {
|
||||
signatures.second = 0;
|
||||
length = 1;
|
||||
} else {
|
||||
Zi8ReplaceLastError(500, ZI_WORK);
|
||||
return 0;
|
||||
}
|
||||
second = 0;
|
||||
candidateCount = 1;
|
||||
} else if (firstLength == 0) {
|
||||
candidateCount = 1;
|
||||
firstLength = length;
|
||||
} else {
|
||||
candidateCount = 2;
|
||||
} else if (signatures.length != 0) {
|
||||
secondLength = length;
|
||||
length = 2;
|
||||
} else {
|
||||
signatures.length = length;
|
||||
length = 1;
|
||||
}
|
||||
if (parameters->firstCandidate < candidateCount) {
|
||||
candidateCount -= parameters->firstCandidate;
|
||||
if (!countOnly) {
|
||||
if (parameters->maxCandidates < candidateCount) {
|
||||
candidateCount = parameters->maxCandidates;
|
||||
}
|
||||
parameters->letters = candidateCount;
|
||||
if (!(parameters->getOptions & 0x80)) {
|
||||
ZI_WORK->unk_0x538 = parameters->language;
|
||||
parameters->candidates[0] = 0xfff0;
|
||||
output = (ziWChar*)&ZI_WORK->unk_0x338;
|
||||
}
|
||||
if (parameters->firstCandidate != 0) {
|
||||
first = second;
|
||||
firstLength = secondLength;
|
||||
}
|
||||
if (ZI_WORK->unk_0x0A < firstLength) {
|
||||
firstLength = ZI_WORK->unk_0x0A;
|
||||
}
|
||||
if ((parameters->elementCount < ZI_WORK->unk_0x140C[0] ||
|
||||
(parameters->getOptions & 0x7e) == 2) &&
|
||||
parameters->elementCount < firstLength) {
|
||||
firstLength = parameters->elementCount;
|
||||
}
|
||||
while (firstLength-- != 0) {
|
||||
*output++ = *first++;
|
||||
}
|
||||
*output++ = 0;
|
||||
if (parameters->letters == 2) {
|
||||
if (ZI_WORK->unk_0x0A < secondLength) {
|
||||
secondLength = ZI_WORK->unk_0x0A;
|
||||
}
|
||||
if ((parameters->elementCount < ZI_WORK->unk_0x140C[0] ||
|
||||
(parameters->getOptions & 0x7e) == 2) &&
|
||||
parameters->elementCount < secondLength) {
|
||||
secondLength = parameters->elementCount;
|
||||
}
|
||||
while (secondLength-- != 0) {
|
||||
*output++ = *second++;
|
||||
}
|
||||
*output++ = 0;
|
||||
}
|
||||
*output = 0;
|
||||
ZI_WORK->unk_0x0A = 0xff;
|
||||
return 1;
|
||||
}
|
||||
parameters->letters = candidateCount;
|
||||
if (parameters->firstCandidate >= length) {
|
||||
Zi8ReplaceLastError(501, ZI_WORK);
|
||||
return 0;
|
||||
}
|
||||
length = length - parameters->firstCandidate;
|
||||
if (countOnly != 0) {
|
||||
parameters->letters = length;
|
||||
ZI_WORK->unk_0x0A = 0xff;
|
||||
return 1;
|
||||
}
|
||||
Zi8ReplaceLastError(501, ZI_WORK);
|
||||
return 0;
|
||||
if (parameters->maxCandidates < length) length = parameters->maxCandidates;
|
||||
parameters->letters = length;
|
||||
if ((parameters->getOptions & 0x80) == 0) {
|
||||
ZI_WORK->unk_0x538 = parameters->language;
|
||||
parameters->candidates[0] = 0xfff0;
|
||||
output = (ziWChar*)&ZI_WORK->unk_0x338;
|
||||
}
|
||||
if (parameters->firstCandidate != 0) {
|
||||
current = signatures.second;
|
||||
length = secondLength;
|
||||
} else {
|
||||
current = signatures.first;
|
||||
length = signatures.length;
|
||||
}
|
||||
if (length > ZI_WORK->unk_0x0A) length = ZI_WORK->unk_0x0A;
|
||||
if ((parameters->elementCount < ZI_WORK->unk_0x140C[0] ||
|
||||
(parameters->getOptions & 0x7e) == 2) && length > parameters->elementCount) {
|
||||
length = parameters->elementCount;
|
||||
}
|
||||
while (length-- != 0) *output++ = (ziU8)*current++;
|
||||
*output++ = 0;
|
||||
if (parameters->letters == 2) {
|
||||
current = signatures.second;
|
||||
length = secondLength;
|
||||
if (length > ZI_WORK->unk_0x0A) length = ZI_WORK->unk_0x0A;
|
||||
if ((parameters->elementCount < ZI_WORK->unk_0x140C[0] ||
|
||||
(parameters->getOptions & 0x7e) == 2) && length > parameters->elementCount) {
|
||||
length = parameters->elementCount;
|
||||
}
|
||||
while (length-- != 0) *output++ = (ziU8)*current++;
|
||||
*output++ = 0;
|
||||
}
|
||||
*output++ = 0;
|
||||
ZI_WORK->unk_0x0A = 0xff;
|
||||
return 1;
|
||||
}
|
||||
|
||||
static ziBool Zi8ZhSignature(ziGetParam* parameters, ziBool countOnly ZI_NEED_WORK) {
|
||||
ziWChar* output = parameters->candidates;
|
||||
ziU8* current = 0;
|
||||
ziU16 copied;
|
||||
ziU8 engine[32];
|
||||
ziU8 dictionary[32];
|
||||
ziU8 engine[32];
|
||||
ziU16 dataLength;
|
||||
ziU32 engineLength;
|
||||
ziU32 candidateCount;
|
||||
ziU8 available;
|
||||
ziU16 engineLength;
|
||||
ziU16 length;
|
||||
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
parameters->letters = 0;
|
||||
dataLength = Zi8GetDataSignature(dictionary, 0x20, parameters->language, ZI_WORK);
|
||||
engineLength = Zi8GetEngineSignature(engine, ZI_WORK);
|
||||
if (!(parameters->context & 0x10)) {
|
||||
candidateCount = dataLength + engineLength;
|
||||
if ((parameters->context & 0x10) != 0) {
|
||||
length = 0;
|
||||
if (dataLength != 0) length++;
|
||||
if (engineLength != 0) length++;
|
||||
} else {
|
||||
candidateCount = dataLength != 0;
|
||||
if (engineLength != 0) candidateCount++;
|
||||
length = dataLength + engineLength;
|
||||
}
|
||||
if (parameters->firstCandidate < candidateCount) {
|
||||
available = candidateCount - parameters->firstCandidate;
|
||||
if (!countOnly) {
|
||||
if (parameters->maxCandidates < (ziU16)(candidateCount - parameters->firstCandidate)) {
|
||||
available = parameters->maxCandidates;
|
||||
}
|
||||
parameters->letters = available;
|
||||
if (!(parameters->context & 0x10)) {
|
||||
copied = 0;
|
||||
if (dataLength != 0) {
|
||||
if (parameters->firstCandidate < dataLength) {
|
||||
candidateCount = dataLength - parameters->firstCandidate;
|
||||
current = dictionary + parameters->firstCandidate;
|
||||
} else {
|
||||
candidateCount = 0;
|
||||
}
|
||||
if (parameters->letters < candidateCount) candidateCount = parameters->letters;
|
||||
copied = candidateCount;
|
||||
while (candidateCount-- != 0) *output++ = *current++;
|
||||
}
|
||||
current = engine;
|
||||
if (dataLength <= parameters->firstCandidate) {
|
||||
dataLength += engineLength - parameters->firstCandidate;
|
||||
current += engineLength - dataLength;
|
||||
engineLength = dataLength;
|
||||
}
|
||||
if ((int)(parameters->letters - copied) < (int)engineLength) {
|
||||
engineLength = parameters->letters - copied;
|
||||
}
|
||||
while (engineLength-- != 0) *output++ = *current++;
|
||||
} else {
|
||||
if (parameters->firstCandidate == 0 && dataLength != 0) {
|
||||
current = dictionary;
|
||||
} else {
|
||||
if (parameters->firstCandidate != 0 && dataLength == 0) {
|
||||
Zi8ReplaceLastError(500, ZI_WORK);
|
||||
return 0;
|
||||
}
|
||||
current = engine;
|
||||
dataLength = engineLength;
|
||||
}
|
||||
while (dataLength-- != 0) *output++ = *current++;
|
||||
*output = 0x20;
|
||||
if (parameters->letters == 2) {
|
||||
current = engine;
|
||||
while (++output, engineLength-- != 0) *output = *current++;
|
||||
*output = 0x20;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
parameters->letters = available;
|
||||
if (parameters->firstCandidate >= length) {
|
||||
Zi8ReplaceLastError(502, ZI_WORK);
|
||||
return 0;
|
||||
}
|
||||
length = length - parameters->firstCandidate;
|
||||
if (countOnly != 0) {
|
||||
parameters->letters = length;
|
||||
ZI_WORK->unk_0x0A = 0xff;
|
||||
return 1;
|
||||
}
|
||||
Zi8ReplaceLastError(502, ZI_WORK);
|
||||
return 0;
|
||||
if (parameters->maxCandidates < length) length = parameters->maxCandidates;
|
||||
parameters->letters = length;
|
||||
if ((parameters->context & 0x10) != 0) {
|
||||
if (parameters->firstCandidate != 0 || dataLength == 0) {
|
||||
if (parameters->firstCandidate != 0 && dataLength == 0) {
|
||||
Zi8ReplaceLastError(500, ZI_WORK);
|
||||
return 0;
|
||||
}
|
||||
current = engine;
|
||||
length = engineLength;
|
||||
} else {
|
||||
current = dictionary;
|
||||
length = dataLength;
|
||||
}
|
||||
while (length-- != 0) *output++ = (ziU8)*current++;
|
||||
*output++ = 0x20;
|
||||
if (parameters->letters == 2) {
|
||||
current = engine;
|
||||
length = engineLength;
|
||||
while (length-- != 0) *output++ = (ziU8)*current++;
|
||||
*output++ = 0x20;
|
||||
}
|
||||
} else {
|
||||
copied = 0;
|
||||
if (dataLength != 0) {
|
||||
if (parameters->firstCandidate >= dataLength) {
|
||||
length = 0;
|
||||
} else {
|
||||
length = dataLength - parameters->firstCandidate;
|
||||
current = dictionary + parameters->firstCandidate;
|
||||
}
|
||||
if (parameters->letters < length) length = parameters->letters;
|
||||
copied = length;
|
||||
while (length-- != 0) *output++ = (ziU8)*current++;
|
||||
}
|
||||
current = engine;
|
||||
if (parameters->firstCandidate >= dataLength) {
|
||||
length = dataLength + (engineLength - parameters->firstCandidate);
|
||||
current += engineLength - length;
|
||||
} else {
|
||||
length = engineLength;
|
||||
}
|
||||
if (parameters->letters - copied < length) length = parameters->letters - copied;
|
||||
while (length-- != 0) *output++ = (ziU8)*current++;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
ziU8 _Zi8GetCandidates(ziGetParam* parameters ZI_NEED_WORK) {
|
||||
@@ -298,33 +292,37 @@ ziU8 _Zi8CheckCandidates(ziGetParam* parameters ZI_NEED_WORK) {
|
||||
ziU8 Zi8LangSupported(ziU8 language, ziPtr work);
|
||||
ziBool Zi8IsCharacter(ziWChar character, ziPtr work);
|
||||
ziU8 Zi8GetCharInfo(ziWChar character, ziWChar* output, ziU8 capacity, ziU8 type, ziPtr work);
|
||||
ziU8 Zi8GetKOcandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU8 Zi8GetKoreanCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU8 Zi8Punctuation(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU8 Zi8GetChineseCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU8 Zi8Get1KeyPressCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU8 Zi8Get1KeyPressSpelling(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU8 Zi8GetSyllablesCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU8 Zi8AlphaGetCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU32 Zi8GetKOcandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU32 Zi8GetKoreanCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU32 Zi8Punctuation(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU32 Zi8GetChineseCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU32 Zi8Get1KeyPressCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU32 Zi8Get1KeyPressSpelling(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU32 Zi8GetSyllablesCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
ziU32 Zi8AlphaGetCandidates(ziGetParam* parameters, ziPtr options, ziPtr work);
|
||||
|
||||
ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* options ZI_NEED_WORK) {
|
||||
|
||||
ziU8 savedElementCount;
|
||||
ziU16 savedCharacter;
|
||||
ziWChar* savedElements;
|
||||
ziBool restoreCandidates;
|
||||
ziU8 elementCount;
|
||||
int error;
|
||||
unsigned int candidateCount;
|
||||
ziU8 savedOptions;
|
||||
ziWChar* savedCandidates;
|
||||
ziU16 characterInfo[16];
|
||||
ziU16 lastInfoCharacter;
|
||||
struct {
|
||||
ziU8 savedGetMode;
|
||||
ziU8 savedElementCount;
|
||||
ziU8 convertedElementCount;
|
||||
ziBool restoreCandidates;
|
||||
ziU8 savedOptions;
|
||||
ziU16 savedCharacter;
|
||||
ziU16 lastInfoCharacter;
|
||||
ziWChar* savedElements;
|
||||
ziWChar* savedCandidates;
|
||||
} saved;
|
||||
ziU8 outputIndex;
|
||||
ziU16 error;
|
||||
unsigned int candidateCount;
|
||||
|
||||
error = 0;
|
||||
savedOptions = 0;
|
||||
savedCandidates = 0;
|
||||
restoreCandidates = 0;
|
||||
saved.savedOptions = 0;
|
||||
saved.savedCandidates = 0;
|
||||
saved.restoreCandidates = 0;
|
||||
if (options->lookupMode == '\0') {
|
||||
if (((ZI_WORK->unk_0x00 == '\t') && (parameters->elementCount != 0)) &&
|
||||
(((parameters->elements[parameters->elementCount - 1] == 0xEFF8 &&
|
||||
@@ -336,13 +334,11 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
parameters->letters = 0;
|
||||
}
|
||||
Zi8LogError(100,ZI_WORK);
|
||||
goto finishCandidates;
|
||||
return candidateCount;
|
||||
}
|
||||
if ((parameters->elementCount == 1) && (parameters->firstCandidate == 0)) {
|
||||
elementCount = parameters->language;
|
||||
if (elementCount == 0x11) goto latinSequence;
|
||||
if (elementCount < 0x11) {
|
||||
if (elementCount == 1) {
|
||||
switch (parameters->language) {
|
||||
case 1:
|
||||
if ((ZI_WORK->unk_0x00 == '\0') || (ZI_WORK->unk_0x01 == options->countOnly)) {
|
||||
switch(ZI_WORK->unk_0x00) {
|
||||
case '\0':
|
||||
@@ -351,22 +347,22 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
ZI_WORK->unk_0x00 = '\x01';
|
||||
}
|
||||
break;
|
||||
case '\x01':
|
||||
case '\x03':
|
||||
case '\x05':
|
||||
case '\a':
|
||||
if (parameters->elements[0] == 0xEF01) {
|
||||
ZI_WORK->unk_0x00 = ZI_WORK->unk_0x00 + '\x01';
|
||||
case '\x02':
|
||||
case '\x04':
|
||||
case '\x06':
|
||||
if (parameters->elements[0] == 0xEF04) {
|
||||
++ZI_WORK->unk_0x00;
|
||||
}
|
||||
else {
|
||||
ZI_WORK->unk_0x00 = '\0';
|
||||
}
|
||||
break;
|
||||
case '\x02':
|
||||
case '\x04':
|
||||
case '\x06':
|
||||
if (parameters->elements[0] == 0xEF04) {
|
||||
ZI_WORK->unk_0x00 = ZI_WORK->unk_0x00 + '\x01';
|
||||
case '\x01':
|
||||
case '\x03':
|
||||
case '\x05':
|
||||
case '\a':
|
||||
if (parameters->elements[0] == 0xEF01) {
|
||||
++ZI_WORK->unk_0x00;
|
||||
}
|
||||
else {
|
||||
ZI_WORK->unk_0x00 = '\0';
|
||||
@@ -382,7 +378,7 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
parameters->letters = 0;
|
||||
}
|
||||
Zi8LogError(100,ZI_WORK);
|
||||
goto finishCandidates;
|
||||
return candidateCount;
|
||||
}
|
||||
default:
|
||||
ZI_WORK->unk_0x00 = '\0';
|
||||
@@ -391,12 +387,19 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
ZI_WORK->unk_0x00 = '\x01';
|
||||
}
|
||||
}
|
||||
}
|
||||
else if ((elementCount == 0) || (elementCount < 0x10)) goto latinSequence;
|
||||
}
|
||||
else if (elementCount < 0x77) {
|
||||
if (0x12 < elementCount) {
|
||||
latinSequence:
|
||||
break;
|
||||
case 0x10:
|
||||
case 0x12:
|
||||
case 0x77:
|
||||
case 0x78:
|
||||
case 0x79:
|
||||
case 0x7A:
|
||||
case 0x7B:
|
||||
case 0x7C:
|
||||
case 0x7D:
|
||||
break;
|
||||
case 0x11:
|
||||
default:
|
||||
if ((ZI_WORK->unk_0x00 == '\0') || (ZI_WORK->unk_0x01 == options->countOnly)) {
|
||||
switch(ZI_WORK->unk_0x00) {
|
||||
case '\0':
|
||||
@@ -471,7 +474,7 @@ latinSequence:
|
||||
parameters->letters = 0;
|
||||
}
|
||||
Zi8LogError(100,ZI_WORK);
|
||||
goto finishCandidates;
|
||||
return candidateCount;
|
||||
}
|
||||
default:
|
||||
ZI_WORK->unk_0x00 = '\0';
|
||||
@@ -480,23 +483,21 @@ latinSequence:
|
||||
ZI_WORK->unk_0x00 = '\x01';
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
else if (0x7d < elementCount) goto latinSequence;
|
||||
}
|
||||
else if (1 < parameters->elementCount) {
|
||||
ZI_WORK->unk_0x00 = '\0';
|
||||
}
|
||||
}
|
||||
ZI_WORK->unk_0x18 = parameters->subLanguage;
|
||||
elementCount = Zi8GetFormatVersion(1,ZI_WORK);
|
||||
ZI_WORK->unk_0x16 = elementCount & 2;
|
||||
ZI_WORK->unk_0x16 = Zi8GetFormatVersion(1,ZI_WORK) & 2;
|
||||
options->maxCount = ZI_WORK->unk_0x10;
|
||||
options->maxWordLength = ZI_WORK->unk_0x0A;
|
||||
ZI_WORK->unk_0x0A = -1;
|
||||
if ((ziU8)Zi8LangSupported(parameters->language,ZI_WORK) == 0) {
|
||||
Zi8LogError(0x163,ZI_WORK);
|
||||
candidateCount = 0;
|
||||
return 0;
|
||||
}
|
||||
else {
|
||||
if (parameters->language == 0x10) {
|
||||
@@ -504,7 +505,7 @@ latinSequence:
|
||||
candidateCount = 0;
|
||||
}
|
||||
else if (parameters->language == 0x12) {
|
||||
if ((parameters->elementCount == 0) || (0xeff0 < parameters->elements[0])) {
|
||||
if ((parameters->elementCount == 0) || (parameters->elements[0] >= 0xeff1)) {
|
||||
candidateCount = Zi8GetKOcandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
else {
|
||||
@@ -518,29 +519,27 @@ latinSequence:
|
||||
else if ((parameters->language == 1) &&
|
||||
((((parameters->getOptions & 0xbf) == 4 && (parameters->elementCount != 0)) &&
|
||||
((ziU8)Zi8IsCharacter(parameters->elements[0],ZI_WORK) != 0)))) {
|
||||
elementCount = Zi8GetCharInfo(parameters->elements[0],characterInfo,0x10,1,ZI_WORK);
|
||||
if (elementCount == 0) {
|
||||
parameters->unk_0x20 = 0;
|
||||
parameters->count = 0;
|
||||
parameters->letters = 0;
|
||||
saved.convertedElementCount = Zi8GetCharInfo(parameters->elements[0],characterInfo,0x10,1,ZI_WORK);
|
||||
if (saved.convertedElementCount == 0) {
|
||||
parameters->letters = parameters->count = parameters->unk_0x20 = 0;
|
||||
candidateCount = 0;
|
||||
error = 900;
|
||||
}
|
||||
else {
|
||||
lastInfoCharacter = characterInfo[elementCount - 1];
|
||||
if ((0xf330 < lastInfoCharacter) && (lastInfoCharacter < 0xf336)) {
|
||||
characterInfo[elementCount - 1] = 0xf360;
|
||||
saved.lastInfoCharacter = characterInfo[saved.convertedElementCount - 1];
|
||||
if ((saved.lastInfoCharacter >= 0xf331) && (saved.lastInfoCharacter <= 0xf335)) {
|
||||
characterInfo[saved.convertedElementCount - 1] = 0xf360;
|
||||
}
|
||||
savedElements = parameters->elements;
|
||||
saved.savedElements = parameters->elements;
|
||||
parameters->elements = characterInfo;
|
||||
savedElementCount = parameters->elementCount;
|
||||
parameters->elementCount = elementCount;
|
||||
elementCount = parameters->getMode;
|
||||
saved.savedElementCount = parameters->elementCount;
|
||||
parameters->elementCount = saved.convertedElementCount;
|
||||
saved.savedGetMode = parameters->getMode;
|
||||
parameters->getMode = 1;
|
||||
candidateCount = Zi8GetChineseCandidates(parameters,options,ZI_WORK);
|
||||
parameters->elements = savedElements;
|
||||
parameters->elementCount = savedElementCount;
|
||||
parameters->getMode = elementCount;
|
||||
parameters->elements = saved.savedElements;
|
||||
parameters->elementCount = saved.savedElementCount;
|
||||
parameters->getMode = saved.savedGetMode;
|
||||
parameters->count = 1;
|
||||
}
|
||||
}
|
||||
@@ -549,27 +548,22 @@ latinSequence:
|
||||
candidateCount = 0;
|
||||
}
|
||||
else if ((parameters->language == 1) && ((parameters->getMode == 3 || (parameters->getMode == 4)))) {
|
||||
if ((parameters->getOptions & 0x80) == 0) {
|
||||
if (parameters->elementCount == 0) {
|
||||
candidateCount = Zi8GetChineseCandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
else {
|
||||
candidateCount = Zi8Get1KeyPressCandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ((parameters->getOptions & 0x80) != 0) {
|
||||
candidateCount = Zi8Get1KeyPressSpelling(parameters,options,ZI_WORK);
|
||||
} else if (parameters->elementCount == 0) {
|
||||
candidateCount = Zi8GetChineseCandidates(parameters,options,ZI_WORK);
|
||||
} else {
|
||||
candidateCount = Zi8Get1KeyPressCandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
}
|
||||
else if ((parameters->language == 1) &&
|
||||
((((parameters->getMode == 7 || (parameters->getMode == 8)) || (parameters->getMode == 10)) || (parameters->getMode == 9)))) {
|
||||
if (ZI_WORK->unk_0x16 == '\0') {
|
||||
if (ZI_WORK->unk_0x16 != '\0') {
|
||||
candidateCount = Zi8GetChineseCandidates(parameters,options,ZI_WORK);
|
||||
} else {
|
||||
error = 0x708;
|
||||
candidateCount = 0;
|
||||
}
|
||||
else {
|
||||
candidateCount = Zi8GetChineseCandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
}
|
||||
else if ((parameters->language == 1) && ((parameters->getMode == 0xb || (parameters->getMode == 0xe)))) {
|
||||
error = 0x2ee;
|
||||
@@ -581,52 +575,45 @@ latinSequence:
|
||||
&& (((parameters->elements[parameters->elementCount - 1] == 0xF37A ||
|
||||
(parameters->elements[parameters->elementCount - 1] == 0xF363)) ||
|
||||
(parameters->elements[parameters->elementCount - 1] == 0xF373)))) {
|
||||
savedCharacter = parameters->elements[parameters->elementCount];
|
||||
elementCount = parameters->elementCount;
|
||||
parameters->elements[elementCount] = 0xf368;
|
||||
parameters->elementCount = elementCount + 1;
|
||||
saved.savedCharacter = parameters->elements[parameters->elementCount];
|
||||
parameters->elements[parameters->elementCount++] = 0xf368;
|
||||
candidateCount = Zi8GetChineseCandidates(parameters,options,ZI_WORK);
|
||||
elementCount = parameters->elementCount;
|
||||
parameters->elementCount = elementCount - 1;
|
||||
parameters->elements[(ziU8)(elementCount - 1)] = savedCharacter;
|
||||
parameters->elements[--parameters->elementCount] = saved.savedCharacter;
|
||||
}
|
||||
}
|
||||
else {
|
||||
ZI_WORK->unk_0x538 = parameters->language;
|
||||
restoreCandidates = (parameters->getOptions & 0x80) == 0;
|
||||
if (restoreCandidates) {
|
||||
savedOptions = parameters->getOptions;
|
||||
savedCandidates = parameters->candidates;
|
||||
parameters->getOptions = parameters->getOptions | 0x81;
|
||||
if ((parameters->getOptions & 0x80) == 0) {
|
||||
saved.restoreCandidates = 1;
|
||||
saved.savedOptions = parameters->getOptions;
|
||||
saved.savedCandidates = parameters->candidates;
|
||||
parameters->getOptions |= 0x81;
|
||||
parameters->candidates = (ziWChar*)&ZI_WORK->unk_0x338;
|
||||
options->capacity = 0x100;
|
||||
}
|
||||
if (parameters->getMode == 2) {
|
||||
candidateCount = Zi8GetTableCount(parameters->language,0x1f,ZI_WORK);
|
||||
if ((candidateCount & 0x200) == 0) {
|
||||
if ((Zi8GetTableCount(parameters->language,0x1f,ZI_WORK) & 0x200) != 0) {
|
||||
candidateCount = Zi8GetSyllablesCandidates(parameters,options,ZI_WORK);
|
||||
} else {
|
||||
error = 0x44c;
|
||||
candidateCount = 0;
|
||||
}
|
||||
else {
|
||||
candidateCount = Zi8GetSyllablesCandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
}
|
||||
else {
|
||||
candidateCount = Zi8AlphaGetCandidates(parameters,options,ZI_WORK);
|
||||
}
|
||||
}
|
||||
if (restoreCandidates) {
|
||||
parameters->getOptions = savedOptions;
|
||||
parameters->candidates = savedCandidates;
|
||||
for (elementCount = 0; elementCount < parameters->letters; elementCount = elementCount + 1) {
|
||||
parameters->candidates[elementCount] = elementCount - 0x10;
|
||||
if (saved.restoreCandidates) {
|
||||
parameters->getOptions = saved.savedOptions;
|
||||
parameters->candidates = saved.savedCandidates;
|
||||
for (outputIndex = 0; outputIndex < parameters->letters; outputIndex++) {
|
||||
parameters->candidates[outputIndex] = 0xFFF0 + outputIndex;
|
||||
}
|
||||
}
|
||||
if (error != 0) {
|
||||
Zi8LogError(error,ZI_WORK);
|
||||
}
|
||||
}
|
||||
finishCandidates:
|
||||
return candidateCount;
|
||||
}
|
||||
|
||||
@@ -665,9 +652,8 @@ ziBool Zi8IsDupWChar(ziWChar character ZI_NEED_WORK) {
|
||||
}
|
||||
|
||||
ziBool Zi8IsDupWordW(ziWChar* word, ziU8 length ZI_NEED_WORK) {
|
||||
ziU8 slot;
|
||||
unsigned int slot;
|
||||
ziBool duplicate = 0;
|
||||
unsigned int position;
|
||||
int index;
|
||||
int character;
|
||||
if (word == 0 || length == 0) {
|
||||
@@ -681,21 +667,19 @@ ziBool Zi8IsDupWordW(ziWChar* word, ziU8 length ZI_NEED_WORK) {
|
||||
for (index = 0; index < ZI_WORK->unk_0x539; index++) {
|
||||
slot = ZI_WORK->unk_0x53A[index];
|
||||
for (character = 0; character < length; character++) {
|
||||
if (word[character] != ZI_WORK->unk_0x57A[slot * 21 + character]) break;
|
||||
if (word[character] != ((ziWChar (*)[21])ZI_WORK->unk_0x57A)[slot][character]) break;
|
||||
}
|
||||
if (character >= length && ZI_WORK->unk_0x57A[slot * 21 + character] == 0) {
|
||||
if (character >= length && ((ziWChar (*)[21])ZI_WORK->unk_0x57A)[slot][character] == 0) {
|
||||
duplicate = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!duplicate) {
|
||||
if (ZI_WORK->unk_0x539 < 64) {
|
||||
position = ZI_WORK->unk_0x539;
|
||||
ZI_WORK->unk_0x53A[ZI_WORK->unk_0x539] = ZI_WORK->unk_0x539;
|
||||
slot = ZI_WORK->unk_0x53A[ZI_WORK->unk_0x539] = ZI_WORK->unk_0x539;
|
||||
ZI_WORK->unk_0x539++;
|
||||
} else {
|
||||
slot = ZI_WORK->unk_0x53A[0];
|
||||
position = slot;
|
||||
for (index = 1; index < ZI_WORK->unk_0x539; index++) {
|
||||
ZI_WORK->unk_0x53A[index - 1] = ZI_WORK->unk_0x53A[index];
|
||||
}
|
||||
@@ -703,16 +687,15 @@ ziBool Zi8IsDupWordW(ziWChar* word, ziU8 length ZI_NEED_WORK) {
|
||||
}
|
||||
} else {
|
||||
slot = ZI_WORK->unk_0x53A[index];
|
||||
position = slot;
|
||||
for (; index < ZI_WORK->unk_0x539 - 1; index++) {
|
||||
ZI_WORK->unk_0x53A[index] = ZI_WORK->unk_0x53A[index + 1];
|
||||
}
|
||||
ZI_WORK->unk_0x53A[index] = slot;
|
||||
}
|
||||
for (index = 0; index < length; index++) {
|
||||
ZI_WORK->unk_0x57A[position * 21 + index] = word[index];
|
||||
for (character = 0; character < length; character++) {
|
||||
((ziWChar (*)[21])ZI_WORK->unk_0x57A)[slot][character] = word[character];
|
||||
}
|
||||
ZI_WORK->unk_0x57A[position * 21 + index] = 0;
|
||||
((ziWChar (*)[21])ZI_WORK->unk_0x57A)[slot][character] = 0;
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
return duplicate;
|
||||
}
|
||||
|
||||
@@ -290,138 +290,139 @@ extern ziU16 Zi8MatchAltSound(ziPtr soundTable, ziU16 soundCode, ziPtr pCodeTabl
|
||||
ziU16 Zi8GetPCode(ziU8* table, ziU8* node);
|
||||
|
||||
ziBool Zi8MatchPhonetic(ziPtr pCodeTable, ziPtr dictionary, ziPtr soundTable, ziU16 soundCode, ziU32 tableAddress, ziU8* node, ziU16* masks, ziU16* values, ziU16* count, ziU8** resultNode, ziU8** stringOffset, ziS8 partialMode, ziU8 strictMode, ziU8 numParts, ziU16 partMask, ziU16 partValue, ziU8 flag, ziU8 altMode, ziU16 initialCode, ziU16* resultCode, ziU8 lastMode ZI_NEED_WORK) {
|
||||
ziBool hasString;
|
||||
ziU32 matchedParts;
|
||||
ziU32 altModeActive;
|
||||
ziU8 partCode;
|
||||
ziU8 partCount;
|
||||
ziU8 partIndex;
|
||||
ziU16 soundIndex;
|
||||
ziU16 remaining;
|
||||
ziU16 code;
|
||||
ziU16 dictionaryIndex;
|
||||
ziU8 nextCode;
|
||||
struct {
|
||||
ziBool hasString;
|
||||
ziU8 partIndex;
|
||||
ziU8 partCount;
|
||||
ziU8 nextCode;
|
||||
ziU8 matchedParts;
|
||||
ziU16 dictionaryIndex;
|
||||
ziU16 soundIndex;
|
||||
ziU16 remaining;
|
||||
ziU16 code;
|
||||
} traversal;
|
||||
ziU8* sound;
|
||||
ziU8* nextPart;
|
||||
|
||||
if (*stringOffset != 0) {
|
||||
hasString = 1;
|
||||
traversal.hasString = 1;
|
||||
} else {
|
||||
hasString = 0;
|
||||
traversal.hasString = 0;
|
||||
}
|
||||
if (*count == 0) {
|
||||
remaining = 1;
|
||||
if (*count != 0) {
|
||||
traversal.remaining = *count;
|
||||
} else {
|
||||
remaining = *count;
|
||||
traversal.remaining = 1;
|
||||
}
|
||||
matchedParts = 0;
|
||||
altModeActive = altMode;
|
||||
traversal.matchedParts = 0;
|
||||
if ((lastMode != 0) && (numParts > 1)) {
|
||||
altModeActive = 1;
|
||||
altMode = 1;
|
||||
}
|
||||
while (remaining-- != 0) {
|
||||
if ((node[0] & flag) != 0) {
|
||||
code = Zi8GetPCode((ziU8*)pCodeTable, node);
|
||||
if ((*values != (code & *masks)) && (altModeActive == 0) && ((node[0] & 0x80) != 0)) {
|
||||
if (*count != 0) {
|
||||
soundIndex = (initialCode - remaining) - 1;
|
||||
} else {
|
||||
soundIndex = initialCode;
|
||||
}
|
||||
code = Zi8MatchAltSound(soundTable, soundCode, pCodeTable, soundIndex, *masks, *values, flag, ZI_WORK);
|
||||
}
|
||||
if ((*values == (code & *masks)) && (partValue != (code & partMask))) {
|
||||
matchedParts = 1;
|
||||
sound = (ziU8*)((tableAddress + ((node[9] & 0xF) * 0x10000)) + node[0xB] + node[0xA] * 0x100);
|
||||
if (ZI_WORK->unk_0x16 != 0) {
|
||||
switch (sound[0] & 7) {
|
||||
case 2:
|
||||
sound += 2;
|
||||
break;
|
||||
case 3:
|
||||
case 4:
|
||||
sound += 3;
|
||||
break;
|
||||
case 5:
|
||||
sound += 4;
|
||||
break;
|
||||
default:
|
||||
sound++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ((sound[0] & 0x80) != 0) {
|
||||
sound += ((sound[0] & 0x7F) >> 4) + 1;
|
||||
} else if (numParts > 1) {
|
||||
goto next_node;
|
||||
}
|
||||
if (((ziU8)matchedParts == numParts) || (numParts == 0)) {
|
||||
*resultNode = node;
|
||||
*resultCode = ((ziU16)node[6] << 8) + node[7];
|
||||
*count = remaining;
|
||||
return 1;
|
||||
}
|
||||
do {
|
||||
nextCode = *sound++;
|
||||
partCount = nextCode & 0xF;
|
||||
if ((nextCode & flag) == 0) {
|
||||
for (; partCount != 0; partCount--) {
|
||||
for (sound++; (*sound & 0x80) == 0; sound += 2) {
|
||||
}
|
||||
sound++;
|
||||
}
|
||||
}
|
||||
for (; partCount != 0; partCount--) {
|
||||
partIndex = 1;
|
||||
if (hasString && (*stringOffset < sound)) {
|
||||
hasString = 0;
|
||||
}
|
||||
nextPart = sound;
|
||||
if (!hasString) {
|
||||
*stringOffset = sound;
|
||||
}
|
||||
do {
|
||||
partCode = nextPart[1];
|
||||
dictionaryIndex = ((ziU16)partCode << 8) | nextPart[0];
|
||||
sound = nextPart + 2;
|
||||
if (hasString) {
|
||||
goto phonetic_skip;
|
||||
}
|
||||
code = Zi8GetPCode((ziU8*)pCodeTable, (ziU8*)dictionary + (dictionaryIndex & 0x7FFF) * 0xC);
|
||||
if (((code & masks[partIndex]) != values[partIndex]) && (altModeActive == 0) && (((ziU8*)dictionary)[(dictionaryIndex & 0x7FFF) * 0xC] & 0x80) != 0) {
|
||||
code = Zi8MatchAltSound(soundTable, soundCode, pCodeTable, dictionaryIndex & 0x7FFF, masks[partIndex], values[partIndex], flag, ZI_WORK);
|
||||
}
|
||||
if ((code & masks[partIndex]) != values[partIndex]) {
|
||||
goto phonetic_skip;
|
||||
}
|
||||
partIndex++;
|
||||
if (partIndex == numParts) {
|
||||
if ((partialMode != 0) && ((strictMode == 0 && (partCode & 0x80) != 0) || (strictMode != 0 && (partCode & 0x80) == 0))) {
|
||||
goto phonetic_skip;
|
||||
}
|
||||
*resultNode = node;
|
||||
code = ((ziU16)node[6] << 8) + node[7];
|
||||
*resultCode = code;
|
||||
*count = remaining;
|
||||
return 1;
|
||||
}
|
||||
nextPart = sound;
|
||||
} while ((partCode & 0x80) == 0);
|
||||
continue;
|
||||
phonetic_skip:
|
||||
if ((partCode & 0x80) == 0) {
|
||||
nextPart += 3;
|
||||
while ((*nextPart & 0x80) == 0) {
|
||||
nextPart += 2;
|
||||
}
|
||||
sound = nextPart + 1;
|
||||
}
|
||||
}
|
||||
} while ((nextCode & 0x80) == 0);
|
||||
}
|
||||
}
|
||||
while (traversal.remaining-- != 0) {
|
||||
if ((node[0] & flag) != 0) goto decode_node;
|
||||
next_node:
|
||||
node += 0xC;
|
||||
continue;
|
||||
decode_node:
|
||||
traversal.code = Zi8GetPCode((ziU8*)pCodeTable, node);
|
||||
if ((*values != (traversal.code & *masks)) && (altMode == 0) && ((node[0] & 0x80) != 0)) {
|
||||
if (*count != 0) {
|
||||
traversal.soundIndex = (initialCode - traversal.remaining) - 1;
|
||||
} else {
|
||||
traversal.soundIndex = initialCode;
|
||||
}
|
||||
traversal.code = Zi8MatchAltSound(soundTable, soundCode, pCodeTable, traversal.soundIndex, *masks, *values, flag, ZI_WORK);
|
||||
}
|
||||
goto check_code;
|
||||
match_code:
|
||||
if (partValue == (traversal.code & partMask)) goto next_node;
|
||||
traversal.matchedParts = 1;
|
||||
sound = (ziU8*)(((node[9] & 0xF) * 0x10000 + node[0xB]) + (tableAddress + node[0xA] * 0x100));
|
||||
if (ZI_WORK->unk_0x16 != 0) {
|
||||
switch (sound[0] & 7) {
|
||||
case 2:
|
||||
sound += 2;
|
||||
break;
|
||||
case 3:
|
||||
case 4:
|
||||
sound += 3;
|
||||
break;
|
||||
case 5:
|
||||
sound += 4;
|
||||
break;
|
||||
default:
|
||||
sound++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ((sound[0] & 0x80) != 0) {
|
||||
sound += ((sound[0] & 0x7F) >> 4) + 1;
|
||||
} else if (numParts > 1) {
|
||||
goto next_node;
|
||||
}
|
||||
if (((ziU8)traversal.matchedParts == numParts) || (numParts == 0)) {
|
||||
*resultNode = node;
|
||||
*resultCode = ((ziU16)node[6] << 8) + node[7];
|
||||
*count = traversal.remaining;
|
||||
return 1;
|
||||
}
|
||||
do {
|
||||
traversal.nextCode = *sound++;
|
||||
traversal.partCount = traversal.nextCode & 0xF;
|
||||
if ((traversal.nextCode & flag) == 0) {
|
||||
for (; traversal.partCount != 0; traversal.partCount--) {
|
||||
for (sound++; (*sound & 0x80) == 0; sound += 2) {
|
||||
}
|
||||
sound++;
|
||||
}
|
||||
}
|
||||
for (; traversal.partCount != 0; traversal.partCount--) {
|
||||
traversal.partIndex = 1;
|
||||
if (traversal.hasString && (*stringOffset < sound)) {
|
||||
traversal.hasString = 0;
|
||||
}
|
||||
if (!traversal.hasString) {
|
||||
*stringOffset = sound;
|
||||
}
|
||||
do {
|
||||
traversal.dictionaryIndex = sound[0] | ((ziU16)sound[1] << 8);
|
||||
sound += 2;
|
||||
if (traversal.hasString) {
|
||||
goto phonetic_skip;
|
||||
}
|
||||
traversal.code = Zi8GetPCode((ziU8*)pCodeTable, (ziU8*)dictionary + (traversal.dictionaryIndex & 0x7FFF) * 0xC);
|
||||
if (((traversal.code & masks[traversal.partIndex]) != values[traversal.partIndex]) && (altMode == 0) && (((ziU8*)dictionary)[(traversal.dictionaryIndex & 0x7FFF) * 0xC] & 0x80) != 0) {
|
||||
traversal.code = Zi8MatchAltSound(soundTable, soundCode, pCodeTable, traversal.dictionaryIndex & 0x7FFF, masks[traversal.partIndex], values[traversal.partIndex], flag, ZI_WORK);
|
||||
}
|
||||
if ((traversal.code & masks[traversal.partIndex]) != values[traversal.partIndex]) {
|
||||
goto phonetic_skip;
|
||||
}
|
||||
traversal.partIndex++;
|
||||
if (traversal.partIndex == numParts) {
|
||||
if ((partialMode != 0) && ((strictMode == 0 && (traversal.dictionaryIndex & 0x8000) != 0) || (strictMode != 0 && (traversal.dictionaryIndex & 0x8000) == 0))) {
|
||||
goto phonetic_skip;
|
||||
}
|
||||
*resultNode = node;
|
||||
*resultCode = ((ziU16)node[6] << 8) + node[7];
|
||||
*count = traversal.remaining;
|
||||
return 1;
|
||||
}
|
||||
} while ((traversal.dictionaryIndex & 0x8000) == 0);
|
||||
continue;
|
||||
phonetic_skip:
|
||||
if ((traversal.dictionaryIndex & 0x8000) == 0) {
|
||||
sound++;
|
||||
while ((*sound & 0x80) == 0) {
|
||||
sound += 2;
|
||||
}
|
||||
sound++;
|
||||
}
|
||||
}
|
||||
} while ((traversal.nextCode & 0x80) == 0);
|
||||
|
||||
goto next_node;
|
||||
check_code:
|
||||
if (*values == (traversal.code & *masks)) goto match_code;
|
||||
goto next_node;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -436,7 +437,6 @@ ziU8 Zi8GetPyPhonetic(ziWChar* text, ziU8 count, ziU16* initial, ziU16* final, z
|
||||
ziBool partial;
|
||||
ziU8 result;
|
||||
ziU8 outputIndex;
|
||||
ziU8 partCount;
|
||||
ziU16 value;
|
||||
ziU8 index;
|
||||
ziWChar converted[256];
|
||||
@@ -445,13 +445,15 @@ ziU8 Zi8GetPyPhonetic(ziWChar* text, ziU8 count, ziU16* initial, ziU16* final, z
|
||||
|
||||
current = converted;
|
||||
result = 0;
|
||||
partial = 0;
|
||||
*resultCount = 0;
|
||||
if (count == 0) {
|
||||
Zi8LogError(0x135, ZI_WORK);
|
||||
return 0;
|
||||
}
|
||||
convertedCount = 0;
|
||||
for (index = 0; index < count; index++) {
|
||||
index = 0;
|
||||
convertedCount = index;
|
||||
for (; index < count; index++) {
|
||||
if (((text[index] >= 0xF341) && (text[index] <= 0xF35A)) || ((text[index] >= 0x41) && (text[index] <= 0x5A))) {
|
||||
if ((convertedCount != 0) && (current[convertedCount - 1] != 0xF360) && (current[convertedCount - 1] != 0x27)) {
|
||||
current[convertedCount] = 0x27;
|
||||
|
||||
180
libs/RVLMiddleware/eZiText/src/clib/zi8pud2.c
Normal file
180
libs/RVLMiddleware/eZiText/src/clib/zi8pud2.c
Normal file
@@ -0,0 +1,180 @@
|
||||
#include <stddef.h>
|
||||
#include <zi8clib/zitypes.h>
|
||||
#include <zi8clib/zierror.h>
|
||||
#include <zi8clib/zconvert.h>
|
||||
#include <zi8clib/zmtkey.h>
|
||||
|
||||
typedef struct ziPudSection {
|
||||
ziU8 flags;
|
||||
ziU8 language;
|
||||
ziU8 offset[2];
|
||||
ziU8 count[2];
|
||||
ziU8 reserved[2];
|
||||
} ziPudSection;
|
||||
typedef struct ziPudHeader {
|
||||
ziU8 format[3];
|
||||
ziU8 languageCount;
|
||||
ziU8 options[4];
|
||||
ziPudSection sections[1];
|
||||
} ziPudHeader;
|
||||
ziU32 Zi8_8147FD7C(ziWChar*, ziU8, ziU8, ziWChar*, ziU16, ziU8, ziU8 ZI_NEED_WORK);
|
||||
|
||||
ziU32 ZiIsPhoneticChar(ziWChar character) {
|
||||
if ((character < 0xF305 || character > 0xF329) && (character < 0xF361 || character > 0xF37A)) return 0;
|
||||
return 1;
|
||||
}
|
||||
int ZiGetZHWordSize(ziWChar* word, int size) {
|
||||
int bytes;
|
||||
ziWChar* cursor;
|
||||
bytes = 0;
|
||||
for (bytes = 0; bytes < size;) {
|
||||
cursor = word;
|
||||
if (ZiIsPhoneticChar(*cursor)) return bytes;
|
||||
bytes += 2;
|
||||
word++;
|
||||
}
|
||||
return bytes;
|
||||
}
|
||||
void Zi8CopyZHSpelling(ziU8* source, ziWChar* output, ziU16 capacity, int size, int start) {
|
||||
int offset;
|
||||
ziU8* cursor;
|
||||
if (output != 0 && capacity != 0) {
|
||||
*output = 0;
|
||||
if (size > start) {
|
||||
for (offset = 0; offset < size - start && offset < (int)((ziU32)capacity << 1); offset += 2) {
|
||||
cursor = source + start + offset;
|
||||
*output++ = *(ziWChar*)cursor;
|
||||
}
|
||||
*output = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
ziU8 ZADP_Zi8SetPDremoveOpt(ziU8 option ZI_NEED_WORK) {
|
||||
ziU8 previous;
|
||||
previous = ZI_WORK->pdRemoveOpt;
|
||||
ZI_WORK->pdRemoveOpt = option;
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
return previous;
|
||||
}
|
||||
ziU32 Zi8MatchPUDdata_ZHS(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziWChar* spelling, ziU16 spellingCapacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
|
||||
ziWChar folded;
|
||||
ziU32 entrySize, wordSize, copied;
|
||||
ziU8* entry;
|
||||
ziU8* word;
|
||||
int index;
|
||||
int fallback = 0;
|
||||
ziPudHeader* table;
|
||||
ziPudSection* section;
|
||||
if (!(ZI_WORK->pudCount <= 16 && ZI_WORK->pudCount != 0 && ZI_WORK->pudTable[ZI_WORK->pudCount - 1] != 0)) {
|
||||
Zi8LogError(0x4B0, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
if (language == 1) {
|
||||
length &= 0x7F;
|
||||
length *= 2;
|
||||
}
|
||||
if (continuation == 0) {
|
||||
table = (ziPudHeader*)ZI_WORK->pudTable[ZI_WORK->pudCount - 1];
|
||||
index = 0;
|
||||
section = table->sections;
|
||||
while (index < table->languageCount && section->language != language) {
|
||||
index++;
|
||||
section++;
|
||||
}
|
||||
if (table->languageCount <= index) {
|
||||
Zi8LogError(0x4F6, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
ZI_WORK->unk_0x314 = section->count[0] * 0x100 + section->count[1];
|
||||
ZI_WORK->unk_0x310 = (ziU32)table + section->offset[0] * 0x100 + section->offset[1];
|
||||
ZI_WORK->unk_0x318 = 0;
|
||||
}
|
||||
while ((entry = (ziU8*)ZI_WORK->unk_0x310) != 0) {
|
||||
while ((ziS32)ZI_WORK->unk_0x318 < (ziS32)ZI_WORK->unk_0x314) {
|
||||
word = entry + 1;
|
||||
wordSize = *entry;
|
||||
entrySize = wordSize;
|
||||
if (language == 1) {
|
||||
if (*word < ZI_WORK->unk_0x17) goto next;
|
||||
entrySize = wordSize - 1;
|
||||
word = entry + 2;
|
||||
wordSize = ZiGetZHWordSize((ziWChar*)word, entrySize);
|
||||
} else if (ZI_WORK->unk_0x31E != 0 && complete != 0 && wordSize > length && word[length] == 0x20) goto matchText;
|
||||
if ((ziS32)length > (ziS32)wordSize || (complete != 0 && wordSize != length) || (complete == 0 && wordSize == length)) goto next;
|
||||
if (language == 1) {
|
||||
for (index = 0; index < length; index++) {
|
||||
if (word[index] != ((ziU8*)pattern)[index]) goto next;
|
||||
}
|
||||
goto matched;
|
||||
}
|
||||
matchText:
|
||||
for (index = 0; index < length; index++) {
|
||||
if (pattern[index] < 0xEFF1 || pattern[index] > 0xF37F) {
|
||||
folded = Zi8ConvertUC2WC(word[index], language, __zi8_work_data);
|
||||
if (folded != pattern[index] && (!ZI_WORK->unk_0x1F || !Zi8ChangeCharCase(0, &folded, language, __zi8_work_data) || folded != pattern[index])) goto next;
|
||||
} else if (pattern[index] != Zi8ConvertUC2Key(word[index], language, __zi8_work_data)) goto next;
|
||||
}
|
||||
matched:
|
||||
if (fallback) {
|
||||
ZI_WORK->unk_0x310 = 0;
|
||||
ZI_WORK->unk_0x318 = 0;
|
||||
ZI_WORK->unk_0x314 = 0;
|
||||
if (*pattern < 0xEFF1) *output = Zi8ConvertWC2Key(*pattern, language, __zi8_work_data);
|
||||
else *output = *pattern;
|
||||
return 1;
|
||||
}
|
||||
if (language == 1) {
|
||||
index = 0;
|
||||
for (copied = 0; index < (ziS32)wordSize && copied < capacity; copied++) {
|
||||
((ziU8*)output)[index] = word[index];
|
||||
((ziU8*)output)[index + 1] = word[index + 1];
|
||||
index += 2;
|
||||
}
|
||||
Zi8CopyZHSpelling(word, spelling, spellingCapacity, entrySize, wordSize);
|
||||
} else {
|
||||
for (copied = 0; copied < wordSize && copied < capacity; copied++) {
|
||||
output[copied] = Zi8ConvertUC2WC(word[copied], language, __zi8_work_data);
|
||||
if (ZI_WORK->unk_0x31E != 0 && copied >= length && output[copied] == 0x20) {
|
||||
if (complete != 0 || copied >= length) break;
|
||||
goto next;
|
||||
}
|
||||
}
|
||||
}
|
||||
ZI_WORK->unk_0x318++;
|
||||
ZI_WORK->unk_0x310 = (ziU32)(word + entrySize);
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
return (ziU8)copied;
|
||||
next:
|
||||
ZI_WORK->unk_0x318++;
|
||||
entry = word + entrySize;
|
||||
}
|
||||
if (length != 1 || complete == 0 || continuation != 0) {
|
||||
ZI_WORK->unk_0x310 = 0;
|
||||
ZI_WORK->unk_0x318 = 0;
|
||||
ZI_WORK->unk_0x314 = 0;
|
||||
return 0;
|
||||
}
|
||||
complete = 0;
|
||||
fallback = 1;
|
||||
ZI_WORK->unk_0x318 = 0;
|
||||
}
|
||||
Zi8LogError(0x4B3, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
ziU32 Zi8MatchPUDdata(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
|
||||
ziU32 result;
|
||||
if (continuation == 0) ZI_WORK->pudCount = 1;
|
||||
for (;;) {
|
||||
result = Zi8_8147FD7C(pattern, length, language, output, capacity, complete, continuation, __zi8_work_data);
|
||||
if ((ziU8)result != 0) break;
|
||||
if ((ZI_WORK->pudCount = ZI_WORK->pudCount + 1) > 16) {
|
||||
ZI_WORK->pudCount = 1;
|
||||
break;
|
||||
}
|
||||
continuation = 0;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
ziU32 Zi8_8147FD7C(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* output, ziU16 capacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
|
||||
return Zi8MatchPUDdata_ZHS(pattern, length, language, output, capacity, 0, 0, complete, continuation, __zi8_work_data);
|
||||
}
|
||||
207
libs/RVLMiddleware/eZiText/src/clib/zi8uwd.c
Normal file
207
libs/RVLMiddleware/eZiText/src/clib/zi8uwd.c
Normal file
@@ -0,0 +1,207 @@
|
||||
#include <zi8clib/zitypes.h>
|
||||
#include <zi8clib/zierror.h>
|
||||
#include <zi8clib/zconvert.h>
|
||||
#include <zi8clib/zmtkey.h>
|
||||
|
||||
typedef struct ziUserWord {
|
||||
ziU8 size, language, length, priority;
|
||||
ziU8 text[1];
|
||||
} ziUserWord;
|
||||
typedef struct ziUserDictionary {
|
||||
ziU16 flags, end, current, boundary;
|
||||
ziU8 entries[1];
|
||||
} ziUserDictionary;
|
||||
void Zi8Memset(ziPtr, ziU32, ziU32);
|
||||
|
||||
ziBool Zi8_81480224(ziUserWord* word ZI_NEED_WORK) {
|
||||
ziU8 length;
|
||||
ziU8 position;
|
||||
ziUwdNode* previous;
|
||||
ziUwdNode* current;
|
||||
ziUwdNode* added;
|
||||
ziUserWord* candidate;
|
||||
if (ZI_WORK->uwdCount >= 32) {
|
||||
Zi8LogError(0x19D, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
if (word == 0) {
|
||||
Zi8LogError(0x19F, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
length = word->length;
|
||||
if (length == 0) {
|
||||
Zi8LogError(0x193, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
if (length > 63) {
|
||||
Zi8LogError(0x194, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
previous = 0;
|
||||
current = ZI_WORK->uwdList;
|
||||
while (current != 0) {
|
||||
candidate = (ziUserWord*)current->word;
|
||||
if (ZI_WORK->unk_0x12E == 1 && word->priority > candidate->priority) break;
|
||||
if (candidate->length == length) {
|
||||
position = 0;
|
||||
while (position < length) {
|
||||
if ((ziU8)candidate->text[position] != (ziU8)word->text[position]) break;
|
||||
position++;
|
||||
}
|
||||
if (position == length) {
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
previous = current;
|
||||
current = current->next;
|
||||
}
|
||||
length = ZI_WORK->uwdCount;
|
||||
ZI_WORK->uwdCount = length + 1;
|
||||
added = &ZI_WORK->uwdNodes[length];
|
||||
if (previous == 0) {
|
||||
ZI_WORK->uwdList = added;
|
||||
added->next = current;
|
||||
} else {
|
||||
previous->next = added;
|
||||
added->next = current;
|
||||
}
|
||||
added->word = (ziU8*)word;
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
return 1;
|
||||
}
|
||||
ziUserWord* Zi8_814803F4(ziPtr __zi8_work_data) {
|
||||
ziUserWord* word;
|
||||
if (ZI_WORK->uwdCount != 0) {
|
||||
ZI_WORK->uwdCount--;
|
||||
word = (ziUserWord*)ZI_WORK->uwdList->word;
|
||||
ZI_WORK->uwdList = ZI_WORK->uwdList->next;
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
return word;
|
||||
}
|
||||
Zi8LogError(0x19E, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
void Zi8_8148047C(ziPtr __zi8_work_data) {
|
||||
Zi8Memset(ZI_WORK->uwdNodes, 0, sizeof(ZI_WORK->uwdNodes));
|
||||
ZI_WORK->uwdCount = 0;
|
||||
ZI_WORK->uwdList = 0;
|
||||
}
|
||||
ziU8 Zi8MatchUWDdata(ziWChar* pattern, ziU8 length, ziWChar* currentWord, ziU16 currentLength, ziU8 language, ziWChar* output, ziU16 capacity, ziU8 complete, ziU8 continuation ZI_NEED_WORK) {
|
||||
ziWChar folded;
|
||||
int fallback = 0;
|
||||
int visited = 0;
|
||||
int position, prefixLength, previousOffset;
|
||||
ziU32 size, entryLanguage, entryLength;
|
||||
ziU8* cursor;
|
||||
ziU8* begin;
|
||||
ziU8* boundary;
|
||||
ziU8* end;
|
||||
ziUserWord* candidate;
|
||||
ziUserWord* previous;
|
||||
ziUserWord* result;
|
||||
ziUserDictionary* dictionary;
|
||||
int firstSegment;
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
if (!(ZI_WORK->unk_0x138 < 3 && ZI_WORK->unk_0x138 != 0 && ZI_WORK->unk_0x130[ZI_WORK->unk_0x138 - 1] != 0)) {
|
||||
Zi8ReplaceLastError(0x19C, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
dictionary = ZI_WORK->unk_0x130[ZI_WORK->unk_0x138 - 1];
|
||||
if (continuation == 0) {
|
||||
Zi8_8148047C(__zi8_work_data);
|
||||
ZI_WORK->unk_0x13C = 0;
|
||||
if (currentWord == 0 || currentLength == 0 || currentWord[currentLength - 1] != 0x20) ZI_WORK->unk_0x140 = 0;
|
||||
else {
|
||||
prefixLength = 0;
|
||||
for (position = currentLength - 2; position >= 0 && currentWord[position] != 0x20; position--) prefixLength++;
|
||||
if (prefixLength == 0 || prefixLength > 63) ZI_WORK->unk_0x140 = 0;
|
||||
else {
|
||||
ZI_WORK->unk_0x140 = 1;
|
||||
ZI_WORK->unk_0x141[0] = prefixLength + 5;
|
||||
ZI_WORK->unk_0x141[prefixLength + 4] = prefixLength + 5;
|
||||
ZI_WORK->unk_0x141[1] = language;
|
||||
ZI_WORK->unk_0x141[2] = prefixLength;
|
||||
previousOffset = 4;
|
||||
for (; ++position, prefixLength > 0; prefixLength--) {
|
||||
folded = currentWord[position];
|
||||
ZI_WORK->unk_0x141[previousOffset] = Zi8ConvertWC2UC(folded, language, __zi8_work_data);
|
||||
ZI_WORK->unk_0x184[previousOffset] = 0;
|
||||
if (ZI_WORK->unk_0x1F != 0) {
|
||||
if (!Zi8ChangeCharCase(1, &folded, language, __zi8_work_data)) Zi8ChangeCharCase(0, &folded, language, __zi8_work_data);
|
||||
ZI_WORK->unk_0x184[previousOffset] = Zi8ConvertWC2UC(folded, language, __zi8_work_data);
|
||||
}
|
||||
if (ZI_WORK->unk_0x141[previousOffset] == 0) {
|
||||
ZI_WORK->unk_0x140 = 0;
|
||||
previousOffset++;
|
||||
break;
|
||||
}
|
||||
previousOffset++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ZI_WORK->unk_0x140 == 0 && length == 0) return 0;
|
||||
rescan:
|
||||
begin = dictionary->entries + dictionary->current;
|
||||
boundary = (ziU8*)dictionary + dictionary->boundary + 7;
|
||||
end = (ziU8*)dictionary + dictionary->end + 7;
|
||||
cursor = begin;
|
||||
firstSegment = begin < boundary;
|
||||
while (firstSegment ? cursor < boundary : cursor < end) {
|
||||
size = *cursor;
|
||||
candidate = (ziUserWord*)cursor;
|
||||
position = visited++;
|
||||
if ((ziS32)ZI_WORK->unk_0x13C <= position && (size & 0xC0) == 0) {
|
||||
previous = (ziUserWord*)(cursor + size);
|
||||
if ((ziU8*)previous > end) previous = (ziUserWord*)(cursor + ((ziU8*)dictionary - end) + 7);
|
||||
entryLanguage = candidate->language;
|
||||
entryLength = candidate->length;
|
||||
if (entryLanguage == language && length <= entryLength && entryLength < capacity && (complete == 0 || entryLength == length) && (complete != 0 || entryLength != length)) {
|
||||
for (position = 0; position < length; position++) {
|
||||
if (pattern[position] < 0xEFF1 || pattern[position] > 0xF010) {
|
||||
folded = Zi8ConvertUC2WC(candidate->text[position], language, __zi8_work_data);
|
||||
if (folded != pattern[position] && (!ZI_WORK->unk_0x1F || !Zi8ChangeCharCase(0, &folded, language, __zi8_work_data) || folded != pattern[position])) goto next;
|
||||
} else if (pattern[position] != Zi8ConvertUC2Key(candidate->text[position], language, __zi8_work_data)) goto next;
|
||||
}
|
||||
if (ZI_WORK->unk_0x140 != 0) {
|
||||
if (ZI_WORK->unk_0x141[0] != previous->size || ZI_WORK->unk_0x141[1] != previous->language || ZI_WORK->unk_0x141[2] != previous->length) goto next;
|
||||
for (position = 4; position < ZI_WORK->unk_0x141[2] + 4; position++) {
|
||||
if (ZI_WORK->unk_0x141[position] != ((ziU8*)previous)[position] && ZI_WORK->unk_0x184[position] != ((ziU8*)previous)[position]) goto next;
|
||||
}
|
||||
}
|
||||
Zi8_81480224(candidate, __zi8_work_data);
|
||||
}
|
||||
}
|
||||
next:
|
||||
cursor += size;
|
||||
if (end < cursor) {
|
||||
if (firstSegment) break;
|
||||
firstSegment = 1;
|
||||
cursor = dictionary->entries + (cursor - end - 1);
|
||||
}
|
||||
}
|
||||
if (ZI_WORK->unk_0x140 != 0 && length != 0) {
|
||||
ZI_WORK->unk_0x140 = 0;
|
||||
visited = 0;
|
||||
goto rescan;
|
||||
}
|
||||
if (complete != 0 && length == 1) {
|
||||
complete = 0;
|
||||
fallback = 1;
|
||||
visited = 0;
|
||||
goto rescan;
|
||||
}
|
||||
}
|
||||
result = Zi8_814803F4(__zi8_work_data);
|
||||
entryLength = 0;
|
||||
if (result != 0) {
|
||||
entryLanguage = result->language;
|
||||
entryLength = result->length;
|
||||
if (entryLength >= capacity) {
|
||||
Zi8_8148047C(__zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
for (position = 0; position < (ziS32)entryLength; position++) output[position] = Zi8ConvertUC2WC(result->text[position], entryLanguage, __zi8_work_data);
|
||||
}
|
||||
return entryLength;
|
||||
}
|
||||
222
libs/RVLMiddleware/eZiText/src/clib/zidawg1.c
Normal file
222
libs/RVLMiddleware/eZiText/src/clib/zidawg1.c
Normal file
@@ -0,0 +1,222 @@
|
||||
#include <zi8clib/zierror.h>
|
||||
#include <zi8clib/zitypes.h>
|
||||
|
||||
extern ziU16 nodeHeaderTable[16];
|
||||
|
||||
ziU32 ZiDAWGGetChild(ziU32 node) {
|
||||
ziU32 base;
|
||||
ziU16 header;
|
||||
ziS32 offset;
|
||||
|
||||
base = node;
|
||||
header = nodeHeaderTable[*(ziU8*)node >> 4];
|
||||
if (((ziU32)header & 1) == 0) {
|
||||
node = 0;
|
||||
} else {
|
||||
if ((*(ziU8*)node & 0xf) == 0xf) {
|
||||
offset = 2;
|
||||
} else {
|
||||
offset = 1;
|
||||
}
|
||||
|
||||
node += offset;
|
||||
if (((ziU32)header & 2) != 0) {
|
||||
if ((*(ziU8*)node & 0x80) != 0) {
|
||||
offset = *((ziU8*)node + 2) + ((*(ziU8*)node & 0x7f) * 0x10000 + ((ziU32)*((ziU8*)node + 1) & 0xffff) * 0x100 + 0x8000);
|
||||
} else {
|
||||
offset = ((ziU32)*(ziU8*)node & 0xffff) * 0x100;
|
||||
offset += (ziU32)*((ziU8*)node + 1);
|
||||
}
|
||||
} else if (((ziU32)header & 8) != 0) {
|
||||
if ((*(ziU8*)node & 0x80) != 0) {
|
||||
offset += 3;
|
||||
} else {
|
||||
offset += 2;
|
||||
}
|
||||
}
|
||||
|
||||
node = base + offset;
|
||||
}
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
ziU8* ZiDAWGGetSibling(ziU8* node) {
|
||||
ziU16 header;
|
||||
ziU8* cursor;
|
||||
ziS32 depth;
|
||||
ziS32 offset;
|
||||
|
||||
depth = 0;
|
||||
offset = 0;
|
||||
header = nodeHeaderTable[node[0] >> 4];
|
||||
if ((header & 4) == 0) {
|
||||
node = 0;
|
||||
} else {
|
||||
cursor = node;
|
||||
if ((header & 8) != 0) {
|
||||
if ((node[0] & 0xf) == 0xf) {
|
||||
cursor = node + 2;
|
||||
} else {
|
||||
cursor = node + 1;
|
||||
}
|
||||
|
||||
if ((header & 2) != 0) {
|
||||
if ((*cursor & 0x80) == 0) {
|
||||
cursor += 2;
|
||||
} else {
|
||||
cursor += 3;
|
||||
}
|
||||
}
|
||||
|
||||
if ((*cursor & 0x80) == 0) {
|
||||
node += (ziU32)cursor[1] + (ziU32)*cursor * 0x100;
|
||||
} else {
|
||||
node += (*cursor & 0x7f) * 0x10000 + (ziU32)cursor[1] * 0x100 +
|
||||
0x8000 + (ziU32)cursor[2];
|
||||
}
|
||||
} else {
|
||||
do {
|
||||
header = nodeHeaderTable[cursor[0] >> 4];
|
||||
if ((cursor[0] & 0xf) == 0xf) {
|
||||
cursor += 2;
|
||||
offset += 2;
|
||||
} else {
|
||||
cursor++;
|
||||
offset++;
|
||||
}
|
||||
|
||||
if ((header & 1) != 0) {
|
||||
if ((header & 2) == 0) {
|
||||
depth++;
|
||||
} else if ((*cursor & 0x80) == 0) {
|
||||
cursor += 2;
|
||||
offset += 2;
|
||||
} else {
|
||||
cursor += 3;
|
||||
offset += 3;
|
||||
}
|
||||
}
|
||||
|
||||
if ((header & 4) == 0) {
|
||||
depth--;
|
||||
} else if ((header & 8) != 0) {
|
||||
if ((*cursor & 0x80) == 0) {
|
||||
cursor += 2;
|
||||
offset += 2;
|
||||
} else {
|
||||
cursor += 3;
|
||||
offset += 3;
|
||||
}
|
||||
depth--;
|
||||
}
|
||||
} while (0 < depth);
|
||||
|
||||
node += offset;
|
||||
}
|
||||
}
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
ziU8 ZiDAWGgetEOWattribute(ziU32 node) {
|
||||
return (nodeHeaderTable[*(ziU8*)node >> 4] & 0x10) > 0;
|
||||
}
|
||||
|
||||
ziU32 ZiDAWGgetCHARattribute(ziPtr context, ziU32 node, ziPtr __zi8_work_data) {
|
||||
ziU8 key;
|
||||
ziU32 attribute;
|
||||
|
||||
if ((*(ziU8*)node & 0xf) == 0xf) {
|
||||
key = (ziU32)*((ziU8*)node + 1) + 0xf;
|
||||
} else {
|
||||
key = (ziU32)*(ziU8*)node & 0xf;
|
||||
}
|
||||
|
||||
if (key > ((zi8DawgCtx*)context)->cap) {
|
||||
Zi8LogError(0x138b, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
|
||||
attribute = key << 24;
|
||||
attribute |= ((ziU8*)((zi8DawgCtx*)context)->p0C)[key] << 16;
|
||||
attribute += ((ziU32)((ziU8*)((zi8DawgCtx*)context)->p08)[key * 2] & 0xFFFF) << 8;
|
||||
attribute += ((ziU8*)((zi8DawgCtx*)context)->p08)[key * 2 + 1];
|
||||
Zi8LogError(0x64, __zi8_work_data);
|
||||
return attribute;
|
||||
}
|
||||
|
||||
ziU32 ZiDAWGGetGraph(ziPtr context) {
|
||||
return (((ziU32)((zi8DawgCtx*)context)->table[2] & 0xFFFF) << 8) +
|
||||
((zi8DawgCtx*)context)->table[3] +
|
||||
((ziU32)((zi8DawgCtx*)context)->table + 4);
|
||||
}
|
||||
|
||||
ziU32 ZiDAWGGetGraphInfo(zi8DawgCtx* context, ziU8* entry, ziU16* keys) {
|
||||
ziU32 graph;
|
||||
ziS32 result;
|
||||
ziU32 end;
|
||||
ziU8 depth;
|
||||
ziU32 pair;
|
||||
|
||||
graph = ZiDAWGGetGraph(context);
|
||||
result = 0;
|
||||
pair = (((ziU16)entry[0] << 8) + entry[1]);
|
||||
if (pair != 0) {
|
||||
goto graph_invalid;
|
||||
}
|
||||
pair = (((ziU16)entry[2] << 8) + entry[3]);
|
||||
if (pair == 0) {
|
||||
goto graph_valid;
|
||||
}
|
||||
graph_invalid:
|
||||
result = 0;
|
||||
goto graph_done;
|
||||
graph_valid:
|
||||
end = (ziU32)(entry + (((ziU16)entry[4] << 8) + entry[5] + 1) * 10);
|
||||
entry += 10;
|
||||
depth = 0;
|
||||
while ((depth < 2) && (*keys != 0)) {
|
||||
if ((*keys < 0xeff1) || (0xf010 < *keys)) {
|
||||
break;
|
||||
}
|
||||
|
||||
while (1) {
|
||||
if (*keys == (ziU16)(entry[3] + ((ziU16)entry[2] << 8))) {
|
||||
break;
|
||||
}
|
||||
entry += (entry[1] + ((ziU16)entry[0] << 8)) * 10 + 10;
|
||||
if ((end <= (ziU32)entry) ||
|
||||
(*keys == (ziU16)(entry[3] + ((ziU16)entry[2] << 8)))) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (end <= (ziU32)entry) {
|
||||
result = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
result = graph + (ziU32)entry[4] * 0x10000 + ((ziU16)entry[5] << 8) +
|
||||
entry[6];
|
||||
((zi8DawgCtx*)context)->unk_0x338 =
|
||||
graph + (ziU32)entry[7] * 0x10000 + ((ziU16)entry[8] << 8) +
|
||||
entry[9];
|
||||
if (((zi8DawgCtx*)context)->unk_0x338 == graph) {
|
||||
((zi8DawgCtx*)context)->unk_0x338 = 0;
|
||||
}
|
||||
|
||||
if ((entry[1] + ((ziU16)entry[0] << 8)) == 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
end = (ziU32)(entry + (entry[1] + ((ziU16)entry[0] << 8)) * 10 + 10);
|
||||
entry += 10;
|
||||
depth++;
|
||||
keys++;
|
||||
}
|
||||
|
||||
|
||||
graph_done:
|
||||
return result;
|
||||
}
|
||||
@@ -25,13 +25,12 @@ ziU8 Zi8_814813FC(ziWChar character, ziU8* result, ziU16* index, ziPtr workData)
|
||||
|
||||
ziU8 Zi8_81481E6C(ziU16* resultIndex, ziU16* input, ziU8 type, ziU16 count, ziPtr workData);
|
||||
|
||||
ziU8 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
ziU32 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
ziPtr workData) {
|
||||
struct {
|
||||
ziU8 characterIndex;
|
||||
ziU8 matched;
|
||||
ziU8 elementIndex;
|
||||
ziU8 reserved;
|
||||
ziU16 index;
|
||||
ziU16 currentCandidate;
|
||||
ziU16 inputIndex;
|
||||
@@ -45,7 +44,7 @@ ziU8 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
ziU8* table1;
|
||||
} state;
|
||||
ziU16 buffer[100];
|
||||
unsigned int result;
|
||||
ziU32 result;
|
||||
ziU16 currentCharacter;
|
||||
ziU8* selectedTable;
|
||||
|
||||
@@ -53,9 +52,7 @@ ziU8 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
result = 0;
|
||||
state.characterIndex = 0xFF;
|
||||
state.currentCandidate = params->firstCandidate;
|
||||
params->unk_0x20 = 0;
|
||||
params->count = 0;
|
||||
params->letters = 0;
|
||||
params->letters = params->count = params->unk_0x20 = 0;
|
||||
if ((argument != 0) && (*argument != 0)) {
|
||||
Zi8LogError(0x7D0, workData);
|
||||
return 0;
|
||||
@@ -87,24 +84,23 @@ ziU8 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
for (; state.table2[state.matched * 3] != 0; state.matched++) {
|
||||
if (currentCharacter == state.table2[state.matched * 3]) break;
|
||||
}
|
||||
if (state.table2[(state.matched * 3)] == 0) {
|
||||
if (state.table2[state.matched * 3] != 0) {
|
||||
buffer[state.elementIndex] =
|
||||
((ziU16)state.table2[state.matched * 3 + 1] << 8) |
|
||||
state.table2[state.matched * 3 + 2];
|
||||
} else {
|
||||
Zi8LogError(0x161, workData);
|
||||
return 0;
|
||||
}
|
||||
buffer[state.elementIndex] =
|
||||
(state.table2[(state.matched * 3) + 1] << 8) |
|
||||
state.table2[(state.matched * 3) + 2];
|
||||
}
|
||||
}
|
||||
|
||||
result = 0;
|
||||
for (currentCharacter = 0; currentCharacter < state.elementIndex; currentCharacter++) {
|
||||
state.inputIndex = 0;
|
||||
if (Zi8_814813FC(buffer[currentCharacter], (ziU8*)&state.characterIndex,
|
||||
(ziU16*)&state.inputIndex, workData) == 0) {
|
||||
state.matched = 0;
|
||||
} else {
|
||||
state.matched = Zi8_81481E6C((ziU16*)&state.nextIndex,
|
||||
&buffer[currentCharacter + 1],
|
||||
if (Zi8_814813FC(buffer[currentCharacter], &state.characterIndex,
|
||||
&state.inputIndex, workData) != 0) {
|
||||
state.matched = Zi8_81481E6C(&state.nextIndex,
|
||||
buffer + currentCharacter + 1,
|
||||
state.characterIndex,
|
||||
(state.elementIndex - currentCharacter) - 1,
|
||||
workData);
|
||||
@@ -171,6 +167,8 @@ ziU8 Zi8GetKoreanCandidates(ziGetParam* params, ziU8* argument,
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
state.matched = 0;
|
||||
}
|
||||
if (state.matched == 0) {
|
||||
if (state.currentCandidate == 0) {
|
||||
|
||||
165
libs/RVLMiddleware/eZiText/src/clib/ziswordw.c
Normal file
165
libs/RVLMiddleware/eZiText/src/clib/ziswordw.c
Normal file
@@ -0,0 +1,165 @@
|
||||
#include <stddef.h>
|
||||
#include <zi8clib/zitypes.h>
|
||||
#include <zi8clib/zierror.h>
|
||||
|
||||
typedef struct ziSearchState {
|
||||
ziU32 flags;
|
||||
ziWChar* word;
|
||||
ziU32 length;
|
||||
ziU32 position;
|
||||
ziU32 capacity;
|
||||
ziU32 options;
|
||||
} ziSearchState;
|
||||
typedef struct ziUserKeys {
|
||||
ziWChar* upper[32];
|
||||
ziWChar* lower[32];
|
||||
} ziUserKeys;
|
||||
typedef struct ziChineseEntry {
|
||||
ziU8 data[9];
|
||||
ziU8 offsetHigh;
|
||||
ziU16 offsetLow;
|
||||
} ziChineseEntry;
|
||||
|
||||
ziU8 Zi8GetCandidatesOrCount(ziGetParam*, ziSearchState* ZI_NEED_WORK);
|
||||
ziU8 Zi8GetFormatVersion(ziU8 ZI_NEED_WORK);
|
||||
ziPtr Zi8GetTableAddress(ziU8, ziU8 ZI_NEED_WORK);
|
||||
ziU16 Zi8Uni2Ord(ziWChar ZI_NEED_WORK);
|
||||
|
||||
ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
ziU8 remaining, group;
|
||||
ziU16 value = 0;
|
||||
ziWChar* cursor;
|
||||
ziU8 formats[8] = {1, 5, 0, 0, 0, 0, 0, 0};
|
||||
ziSearchState search;
|
||||
ziGetParam request;
|
||||
ziWChar ordinals[65];
|
||||
ziU32 savedFormats = ZI_WORK->unk_0x1410;
|
||||
ziU8 savedCount = ZI_WORK->unk_0x1418;
|
||||
int length, count, offset;
|
||||
int unmatched;
|
||||
ziChineseEntry* entry;
|
||||
ziU8* data;
|
||||
search.flags = 0;
|
||||
search.word = 0;
|
||||
search.length = 0;
|
||||
search.position = 0;
|
||||
search.capacity = 0;
|
||||
search.options = 0;
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
if (word == 0 || *word == 0) {
|
||||
Zi8ReplaceLastError(300, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
if (language != 1) {
|
||||
for (length = 0; word[length] != 0; length++) {
|
||||
if (word[length] > 0xEFF0 || length == 64) return 0;
|
||||
}
|
||||
((ziU8*)&search.length)[0] = length;
|
||||
((ziU8*)&search.flags)[2] = 1;
|
||||
((ziU16*)&search.capacity)[0] = 64;
|
||||
search.word = word;
|
||||
request.language = language;
|
||||
request.getMode = 0;
|
||||
request.subLanguage = 7;
|
||||
request.context = 1;
|
||||
request.getOptions = 0x81;
|
||||
request.elements = word;
|
||||
request.elementCount = length;
|
||||
request.currentWord = 0;
|
||||
request.wordCharCount = 0;
|
||||
request.candidates = ordinals;
|
||||
request.maxCandidates = 1;
|
||||
request.firstCandidate = 0;
|
||||
ZI_WORK->unk_0x1410 = (ziU32)formats;
|
||||
if (ZI_WORK->unk_0x1C[0] == 2) {
|
||||
ZI_WORK->unk_0x1418 = 0;
|
||||
if (ZI_WORK->unk_0x09 & 1) formats[ZI_WORK->unk_0x1418++] = 1;
|
||||
if (ZI_WORK->unk_0x09 & 4) formats[ZI_WORK->unk_0x1418++] = 2;
|
||||
if (ZI_WORK->unk_0x09 & 2) formats[ZI_WORK->unk_0x1418++] = 3;
|
||||
if (ZI_WORK->unk_0x09 & 8) formats[ZI_WORK->unk_0x1418++] = 4;
|
||||
if (ZI_WORK->unk_0x09 & 1) formats[ZI_WORK->unk_0x1418++] = 5;
|
||||
if (ZI_WORK->unk_0x09 & 4) formats[ZI_WORK->unk_0x1418++] = 6;
|
||||
if (ZI_WORK->unk_0x09 & 2) formats[ZI_WORK->unk_0x1418++] = 7;
|
||||
if (ZI_WORK->unk_0x09 & 8) formats[ZI_WORK->unk_0x1418++] = 8;
|
||||
} else if (ZI_WORK->unk_0x1C[0] == 0) ZI_WORK->unk_0x1418 = 1;
|
||||
else ZI_WORK->unk_0x1418 = 2;
|
||||
count = Zi8GetCandidatesOrCount(&request, &search, __zi8_work_data);
|
||||
ZI_WORK->unk_0x1410 = savedFormats;
|
||||
ZI_WORK->unk_0x1418 = savedCount;
|
||||
if (count != 0) return 1;
|
||||
}
|
||||
if (language == 1) {
|
||||
length = 0;
|
||||
do {
|
||||
if (word[length] == 0) {
|
||||
count = length - 1;
|
||||
if (length == 1) return 1;
|
||||
ordinals[count] |= 0x8000;
|
||||
ZI_WORK->unk_0x16 = Zi8GetFormatVersion(1, __zi8_work_data) & 2;
|
||||
entry = (ziChineseEntry*)Zi8GetTableAddress(1, 0, __zi8_work_data) + ordinals[0];
|
||||
data = (ziU8*)Zi8GetTableAddress(1, 1, __zi8_work_data) + ((entry->offsetHigh & 15) << 16 | entry->offsetLow);
|
||||
if (ZI_WORK->unk_0x16 != 0) {
|
||||
group = *data & 7;
|
||||
if (group == 5) offset = 4;
|
||||
else if (group < 5) {
|
||||
if (group == 2) offset = 2;
|
||||
else if (group < 2) offset = 1;
|
||||
else offset = 3;
|
||||
} else offset = 1;
|
||||
data += offset;
|
||||
}
|
||||
if ((*data & 0x80) == 0) return 0;
|
||||
group = 0;
|
||||
data += ((*data & 0x7F) >> 4) + 1;
|
||||
while ((group & 0x80) == 0) {
|
||||
group = *data++;
|
||||
for (remaining = group & 15; remaining != 0; remaining--) {
|
||||
unmatched = count;
|
||||
cursor = ordinals;
|
||||
while (unmatched > 0) {
|
||||
value = data[0] | (data[1] << 8);
|
||||
data += 2;
|
||||
cursor++;
|
||||
if (value != *cursor) break;
|
||||
unmatched--;
|
||||
if (value & 0x8000) break;
|
||||
}
|
||||
if (unmatched == 0) return 1;
|
||||
if (!(value & 0x8000)) {
|
||||
data++;
|
||||
while (!(*data & 0x80)) data += 2;
|
||||
data++;
|
||||
}
|
||||
}
|
||||
}
|
||||
Zi8LogError(0x2BD, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
ordinals[length] = Zi8Uni2Ord(word[length], __zi8_work_data);
|
||||
if (ordinals[length] == 0xFFFF) return 0;
|
||||
length++;
|
||||
} while (length != 64);
|
||||
} else Zi8ReplaceLastError(0x26C, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
ziWChar Zi8ConvertUC2UserKey(ziChar character, ziU8 language ZI_NEED_WORK) {
|
||||
ziUserKeys* keys;
|
||||
ziU16 key;
|
||||
ziWChar* cursor;
|
||||
if (character == 0 || language > 0x82 || (keys = ZI_WORK->userKeys[language]) == 0) return 0;
|
||||
for (key = 0; key < 32; key++) {
|
||||
for (cursor = keys->lower[key]; cursor != 0 && *cursor != 0; cursor++) {
|
||||
if ((ziU16)*cursor == (ziU16)character) goto found;
|
||||
}
|
||||
for (cursor = keys->upper[key]; cursor != 0 && *cursor != 0; cursor++) {
|
||||
if ((ziU16)*cursor == (ziU16)character) goto found;
|
||||
}
|
||||
}
|
||||
found:
|
||||
if (key < 32) {
|
||||
if (key == 0) return 0xEFFA;
|
||||
if (key >= 1 && key <= 9) return key + 0xEFF0;
|
||||
if (key <= 31) return key + 0xEFF1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -3,6 +3,14 @@
|
||||
extern ziU16 Zi8GetTableCount(ziU8 lang, ziU8 tableIdx ZI_NEED_WORK);
|
||||
extern ziU32 Zi8GetTableAddress(ziU8 lang, ziU8 tableIdx ZI_NEED_WORK);
|
||||
|
||||
typedef struct {
|
||||
ziU8 keyBytes[5];
|
||||
ziU8 childHigh;
|
||||
ziU8 childLow;
|
||||
ziU8 characterHigh;
|
||||
ziU8 characterLow;
|
||||
} ZiKoreanKeyEntry;
|
||||
|
||||
ziU32 Zi8_8148302C(ziU16 key, ziU8* table ZI_NEED_WORK) {
|
||||
ziU32 value;
|
||||
ziU16 count;
|
||||
@@ -12,7 +20,7 @@ ziU32 Zi8_8148302C(ziU16 key, ziU8* table ZI_NEED_WORK) {
|
||||
for (i = 0; (ziU16)i < count; i++) {
|
||||
value = (ziU16)(((ziU16)table[((i & 0xFFFF) << 3) + (i & 0xFFFF) + 7] << 8) |
|
||||
table[((i & 0xFFFF) << 3) + (i & 0xFFFF) + 8]);
|
||||
if (key == value) {
|
||||
if (value == key) {
|
||||
Zi8LogError(0x64, ZI_WORK);
|
||||
return i;
|
||||
}
|
||||
@@ -91,7 +99,7 @@ ziU32 Zi8_81483308(ziGetParam* param, ziU16 key, ziU8* count ZI_NEED_WORK) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
ziBool Zi8_814833F0(const ziGetParam* param, ziU16 key ZI_NEED_WORK) {
|
||||
ziU32 Zi8_814833F0(const ziGetParam* param, ziU16 key ZI_NEED_WORK) {
|
||||
ziU8 i;
|
||||
|
||||
Zi8LogError(0x64, ZI_WORK);
|
||||
@@ -111,23 +119,28 @@ ziBool Zi8_814833F0(const ziGetParam* param, ziU16 key ZI_NEED_WORK) {
|
||||
|
||||
ziU32 Zi8_814834AC(ziGetParam* param, ziU16* remaining, ziU8* count,
|
||||
ziU8* inserted ZI_NEED_WORK) {
|
||||
ziBool matches;
|
||||
ziS32 entry;
|
||||
ziS32 tableA;
|
||||
ziS32 tableB;
|
||||
ziU16 tableCount;
|
||||
ziU8 matched;
|
||||
struct {
|
||||
ziBool matches;
|
||||
ziU8 candidateIndex;
|
||||
ziU16 tableCount;
|
||||
ziS32 compactIndex;
|
||||
ZiKoreanKeyEntry* entry;
|
||||
ziU8* tableB;
|
||||
ziU8* tableA;
|
||||
union {
|
||||
ziU32 firstWord;
|
||||
ziU8 bytes[5];
|
||||
} keys;
|
||||
} filter;
|
||||
ziU32 j;
|
||||
ziS32 i;
|
||||
ziU8 candidateIndex;
|
||||
union {
|
||||
ziU32 words[13];
|
||||
ziU8 bytes[52];
|
||||
} local;
|
||||
ziS32 candidate;
|
||||
ziU8 matched;
|
||||
|
||||
j = 0;
|
||||
filter.candidateIndex = 0;
|
||||
matched = 0;
|
||||
local.words[0] = 0;
|
||||
local.bytes[4] = 0;
|
||||
filter.keys.bytes[4] = filter.keys.firstWord = 0;
|
||||
Zi8LogError(0x64, ZI_WORK);
|
||||
if (param->elementCount == 0) {
|
||||
if (*remaining >= *count) {
|
||||
@@ -141,394 +154,365 @@ ziU32 Zi8_814834AC(ziGetParam* param, ziU16* remaining, ziU8* count,
|
||||
Zi8_81483308(param, param->candidates[i], inserted, ZI_WORK);
|
||||
}
|
||||
for (i = 0; i < ((ziS32)*count - (ziS32)*remaining); i++) {
|
||||
param->candidates[i] = param->candidates[(ziU32)*remaining + i];
|
||||
param->candidates[i] = param->candidates[*remaining + i];
|
||||
}
|
||||
*count = *count - (ziU8)*remaining;
|
||||
*count -= *remaining;
|
||||
*remaining = 0;
|
||||
}
|
||||
return 1;
|
||||
} else if (param->elementCount <= 9) {
|
||||
tableA = Zi8GetTableAddress(param->language, 9, ZI_WORK);
|
||||
tableB = Zi8GetTableAddress(param->language, 10, ZI_WORK);
|
||||
if (tableA == 0) {
|
||||
}
|
||||
if (param->elementCount > 9) {
|
||||
*count = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
filter.tableA = (ziU8*)Zi8GetTableAddress(param->language, 9, ZI_WORK);
|
||||
filter.tableB = (ziU8*)Zi8GetTableAddress(param->language, 10, ZI_WORK);
|
||||
if (filter.tableA == 0) {
|
||||
Zi8ReplaceLastError(0x76C, ZI_WORK);
|
||||
return 0;
|
||||
} else if (tableB == 0) {
|
||||
} else if (filter.tableB == 0) {
|
||||
Zi8ReplaceLastError(0x776, ZI_WORK);
|
||||
return 0;
|
||||
} else {
|
||||
tableCount = Zi8GetTableCount(ZI8_LANG_KO, 9, ZI_WORK);
|
||||
Zi8_81483118(param, local.bytes);
|
||||
filter.tableCount = Zi8GetTableCount(ZI8_LANG_KO, 9, ZI_WORK);
|
||||
Zi8_81483118(param, filter.keys.bytes);
|
||||
i = 0;
|
||||
while (i < tableCount && matched < *count) {
|
||||
matches = ZI8_TRUE;
|
||||
entry = (i << 3) + tableA + i;
|
||||
while (i < filter.tableCount && matched < *count) {
|
||||
filter.matches = ZI8_TRUE;
|
||||
filter.entry = (ZiKoreanKeyEntry*)&filter.tableA[(i << 3) + i];
|
||||
j = 0;
|
||||
if (param->elementCount > 1) {
|
||||
for (j = 0; (j & 0xFF) < (ziU32)(param->elementCount >> 1); j++) {
|
||||
if (local.bytes[j & 0xFF] != *((ziU8*)entry + (j & 0xFF))) {
|
||||
matches = ZI8_FALSE;
|
||||
for (j = 0; (int)(j & 0xFF) < (int)param->elementCount / 2; j++) {
|
||||
if (filter.keys.bytes[j & 0xFF] != filter.entry->keyBytes[j & 0xFF]) {
|
||||
filter.matches = ZI8_FALSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (matches && (param->elementCount & 1) != 0 &&
|
||||
((local.bytes[j & 0xFF] & 0xF0) != (*((ziU8*)entry + (j & 0xFF)) & 0xF0))) {
|
||||
matches = ZI8_FALSE;
|
||||
if (filter.matches && (param->elementCount % 2) != 0 &&
|
||||
((filter.keys.bytes[j & 0xFF] & 0xF0) != (filter.entry->keyBytes[j & 0xFF] & 0xF0))) {
|
||||
filter.matches = ZI8_FALSE;
|
||||
}
|
||||
if (matches) {
|
||||
for (candidateIndex = 0; candidateIndex < *count; candidateIndex++) {
|
||||
if (param->candidates[candidateIndex] ==
|
||||
(ziU16)((*((ziU8*)entry + 7) << 8) | *((ziU8*)entry + 8))) {
|
||||
if (filter.matches) {
|
||||
for (filter.candidateIndex = 0; filter.candidateIndex < *count; filter.candidateIndex++) {
|
||||
if (param->candidates[filter.candidateIndex] ==
|
||||
(((ziU16)((ZiKoreanKeyEntry*)filter.tableA)[i].characterHigh << 8) | (ziU16)((ZiKoreanKeyEntry*)filter.tableA)[i].characterLow)) {
|
||||
matched++;
|
||||
param->candidates[candidateIndex] =
|
||||
param->candidates[candidateIndex] & 0x7FFF;
|
||||
param->candidates[filter.candidateIndex] &= 0x7FFF;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
if ((ziU16)matched >= *remaining) {
|
||||
if (matched >= *remaining) {
|
||||
matched = *count;
|
||||
*count = 0;
|
||||
for (i = 0; i < matched; i++) {
|
||||
if ((param->candidates[i] & 0x8000) == 0) {
|
||||
param->candidates[i] = param->candidates[i] | 0x8000;
|
||||
if (*remaining == 0) {
|
||||
if (*count != i) {
|
||||
param->candidates[*count] = param->candidates[i];
|
||||
}
|
||||
*count = *count + 1;
|
||||
for (candidate = 0; candidate < matched; candidate++) {
|
||||
if ((param->candidates[candidate] & 0x8000) == 0) {
|
||||
param->candidates[candidate] |= 0x8000;
|
||||
if (*remaining != 0) {
|
||||
--*remaining;
|
||||
Zi8_81483308(param, param->candidates[candidate], inserted, ZI_WORK);
|
||||
} else {
|
||||
*remaining = *remaining - 1;
|
||||
Zi8_81483308(param, param->candidates[i], inserted, ZI_WORK);
|
||||
if (*count != candidate) {
|
||||
param->candidates[*count] = param->candidates[candidate];
|
||||
}
|
||||
++*count;
|
||||
}
|
||||
}
|
||||
}
|
||||
*remaining = 0;
|
||||
} else {
|
||||
for (i = 0; i < *count; i++) {
|
||||
if ((param->candidates[i] & 0x8000) == 0) {
|
||||
param->candidates[i] = param->candidates[i] | 0x8000;
|
||||
Zi8_81483308(param, param->candidates[i], inserted, ZI_WORK);
|
||||
for (filter.compactIndex = 0; filter.compactIndex < *count; filter.compactIndex++) {
|
||||
if ((param->candidates[filter.compactIndex] & 0x8000) == 0) {
|
||||
param->candidates[filter.compactIndex] |= 0x8000;
|
||||
Zi8_81483308(param, param->candidates[filter.compactIndex], inserted, ZI_WORK);
|
||||
}
|
||||
}
|
||||
*remaining = *remaining - (ziU16)matched;
|
||||
*remaining -= (ziU8)matched;
|
||||
*count = 0;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
*count = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
ziU32 Zi8GetKOcandidates(ziGetParam* param, ziU8* options ZI_NEED_WORK) {
|
||||
ziBool bVar1;
|
||||
ziU8 bVar2;
|
||||
ziS32 iVar4;
|
||||
ziU32 uVar6;
|
||||
ziU8* pbVar7;
|
||||
union {
|
||||
ziU32 words[10];
|
||||
ziU8 bytes[40];
|
||||
} local_28;
|
||||
ziU8 local_57;
|
||||
ziU8 local_56;
|
||||
ziU8 local_55;
|
||||
ziU8 local_54;
|
||||
ziU8 local_53;
|
||||
ziS8 local_52;
|
||||
ziU16 local_50;
|
||||
ziU16 local_4E;
|
||||
ziU16 local_4C;
|
||||
ziU16 local_4A;
|
||||
ziU16 local_48;
|
||||
ziS32 local_44;
|
||||
ziS32 local_2C;
|
||||
ziS32 local_30;
|
||||
ziU32 local_34;
|
||||
ziU32 local_38;
|
||||
ziU32 local_3C;
|
||||
ziU32 local_40;
|
||||
typedef struct {
|
||||
ziU8 countOnly;
|
||||
ziU8 maxWordLength;
|
||||
ziU8 lookupMode;
|
||||
ziU8 suffixOnly;
|
||||
ziU8 controls[8];
|
||||
ziU32 maxCount;
|
||||
ziU16 capacity;
|
||||
ziU8 minWordLength;
|
||||
ziU8 flags;
|
||||
ziU16 candidateCapacity;
|
||||
ziU8 checkOnly;
|
||||
ziU8 reserved;
|
||||
} ZiKoreanCandidateOptions;
|
||||
|
||||
local_4E = 0xFFFF;
|
||||
local_34 = 0;
|
||||
local_28.words[0] = 0;
|
||||
local_28.bytes[4] = 0;
|
||||
local_52 = 0;
|
||||
local_53 = 0;
|
||||
local_54 = 0;
|
||||
local_55 = 0;
|
||||
local_50 = param->firstCandidate;
|
||||
local_3C = 0;
|
||||
local_40 = 0;
|
||||
local_57 = 0;
|
||||
ziU32 Zi8GetKOcandidates(ziGetParam* param, ZiKoreanCandidateOptions* options ZI_NEED_WORK) {
|
||||
struct {
|
||||
ziBool matches;
|
||||
ziU8 inserted;
|
||||
ziU8 matchPass;
|
||||
ziU8 keyByte;
|
||||
ziU8 candidateCount;
|
||||
ziU8 wordIndex;
|
||||
ziU8 remainingLetters;
|
||||
ziU16 remainingCandidates;
|
||||
ziU16 previousIndex;
|
||||
ziU16 character;
|
||||
ziU16 tableCount;
|
||||
ziU16 keyIndex;
|
||||
ZiKoreanKeyEntry* entry;
|
||||
ziS32 candidateIndex;
|
||||
ziS32 prefixCount;
|
||||
ziU32 wordOffset;
|
||||
ziS32 resultCount;
|
||||
ziS32 tableIndex;
|
||||
ziU8* wordTable;
|
||||
union {
|
||||
ziU32 firstWord;
|
||||
ziU8 bytes[5];
|
||||
} packedKeys;
|
||||
} search;
|
||||
ziU8* keyTable;
|
||||
ziU8* wordNode;
|
||||
|
||||
search.previousIndex = 0xFFFF;
|
||||
search.resultCount = 0;
|
||||
search.packedKeys.bytes[4] = 0;
|
||||
search.packedKeys.firstWord = 0;
|
||||
search.remainingLetters = 0;
|
||||
search.wordIndex = 0;
|
||||
search.candidateCount = 0;
|
||||
search.keyByte = 0;
|
||||
search.remainingCandidates = param->firstCandidate;
|
||||
search.prefixCount = 0;
|
||||
search.candidateIndex = 0;
|
||||
search.inserted = 0;
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
Zi8_81483264(param, ZI_WORK);
|
||||
iVar4 = Zi8GetTableAddress(ZI8_LANG_KO, 9, ZI_WORK);
|
||||
local_2C = Zi8GetTableAddress(ZI8_LANG_KO, 10, ZI_WORK);
|
||||
if (iVar4 == 0) {
|
||||
keyTable = (ziU8*)Zi8GetTableAddress(ZI8_LANG_KO, 9, ZI_WORK);
|
||||
search.wordTable = (ziU8*)Zi8GetTableAddress(ZI8_LANG_KO, 10, ZI_WORK);
|
||||
if (keyTable == 0) {
|
||||
Zi8ReplaceLastError(0x76C, ZI_WORK);
|
||||
uVar6 = 0;
|
||||
return 0;
|
||||
} else {
|
||||
if (local_2C == 0) {
|
||||
if (search.wordTable == 0) {
|
||||
Zi8ReplaceLastError(0x776, ZI_WORK);
|
||||
uVar6 = 0;
|
||||
goto LAB_000114C4;
|
||||
return 0;
|
||||
}
|
||||
if (*options == 0) {
|
||||
if (options->countOnly == 0) {
|
||||
param->letters = 0;
|
||||
param->count = 0;
|
||||
param->unk_0x20 = 0;
|
||||
param->candidates[0] = 0;
|
||||
}
|
||||
Zi8LogError(100, ZI_WORK);
|
||||
if (param->wordCharCount != 0) {
|
||||
local_48 = Zi8_8148302C(param->currentWord[0], (ziU8*)iVar4, ZI_WORK);
|
||||
if ((local_48 != 0xFFFF) &&
|
||||
((((ziU8*)iVar4)[((ziU32)local_48 * 9) + 4] & 8) != 0)) {
|
||||
local_38 = (ziU32)((ziU8*)iVar4)[((ziU32)local_48 * 9) + 6] |
|
||||
((ziU32)((ziU8*)iVar4)[((ziU32)local_48 * 9) + 4] & 3) << 16 |
|
||||
(ziU32)((ziU8*)iVar4)[((ziU32)local_48 * 9) + 5] << 8;
|
||||
local_52 = param->wordCharCount - 1;
|
||||
local_53 = 1;
|
||||
pbVar7 = (ziU8*)(local_2C + local_38);
|
||||
LAB_00010D44:
|
||||
if (local_52 != 0) {
|
||||
local_48 = Zi8_8148302C(param->currentWord[local_53], (ziU8*)iVar4, ZI_WORK);
|
||||
if (local_48 == (ziU16)((*pbVar7 & 0x1F) << 8 | pbVar7[1])) {
|
||||
local_52 = local_52 - 1;
|
||||
local_53 = local_53 + 1;
|
||||
if ((*pbVar7 & 0x40) == 0) {
|
||||
pbVar7 = pbVar7 + 2;
|
||||
goto LAB_00010D44;
|
||||
if (((search.keyIndex = Zi8_8148302C(param->currentWord[0], keyTable, ZI_WORK)) != 0xFFFF) &&
|
||||
((((ZiKoreanKeyEntry*)(((search.keyIndex << 3) + search.keyIndex) + keyTable))->keyBytes[4] & 8) != 0)) {
|
||||
search.wordOffset = ((ZiKoreanKeyEntry*)(((search.keyIndex << 3) + search.keyIndex) + keyTable))->childLow |
|
||||
((((ZiKoreanKeyEntry*)(((search.keyIndex << 3) + search.keyIndex) + keyTable))->keyBytes[4] & 3) << 16 |
|
||||
((ZiKoreanKeyEntry*)(((search.keyIndex << 3) + search.keyIndex) + keyTable))->childHigh << 8);
|
||||
search.remainingLetters = param->wordCharCount - 1;
|
||||
search.wordIndex = 1;
|
||||
wordNode = search.wordTable + search.wordOffset;
|
||||
match_word:
|
||||
while (search.remainingLetters != 0) {
|
||||
search.keyIndex = Zi8_8148302C(param->currentWord[search.wordIndex], (ziU8*)keyTable, ZI_WORK);
|
||||
if (search.keyIndex == (ziU16)((*wordNode & 0x1F) << 8 | wordNode[1])) {
|
||||
--search.remainingLetters;
|
||||
++search.wordIndex;
|
||||
if ((*wordNode & 0x40) != 0) {
|
||||
search.remainingLetters = param->wordCharCount - 1;
|
||||
search.wordIndex = 1;
|
||||
break;
|
||||
}
|
||||
local_52 = param->wordCharCount - 1;
|
||||
local_53 = 1;
|
||||
wordNode += 2;
|
||||
} else {
|
||||
local_53 = 1;
|
||||
local_52 = param->wordCharCount - 1;
|
||||
search.wordIndex = 1;
|
||||
search.remainingLetters = param->wordCharCount - 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (local_52 == 0) {
|
||||
local_48 = (*pbVar7 & 0x1F) << 8 | pbVar7[1];
|
||||
local_4C = (ziU16)(((ziU8*)((ziU32)local_48 * 9 + (ziU32)local_48 + (ziU32)iVar4))[7] << 8 |
|
||||
((ziU8*)((ziU32)local_48 * 9 + (ziU32)local_48 + (ziU32)iVar4))[8]);
|
||||
if (search.remainingLetters == 0) {
|
||||
search.keyIndex = (*wordNode & 0x1F) << 8 | wordNode[1];
|
||||
search.character = (ziU16)(((ZiKoreanKeyEntry*)(((search.keyIndex << 3) + search.keyIndex) + keyTable))->characterHigh << 8 |
|
||||
((ZiKoreanKeyEntry*)(((search.keyIndex << 3) + search.keyIndex) + keyTable))->characterLow);
|
||||
if (param->wordCharCount == 1) {
|
||||
if (local_48 == local_4E) {
|
||||
for (; (*pbVar7 & 0x40) == 0; pbVar7 = pbVar7 + 2) {
|
||||
if (search.keyIndex == search.previousIndex) {
|
||||
for (; (*wordNode & 0x40) == 0; wordNode = wordNode + 2) {
|
||||
}
|
||||
local_52 = param->wordCharCount;
|
||||
goto LAB_00011114;
|
||||
wordNode += 2;
|
||||
search.remainingLetters = param->wordCharCount - 1;
|
||||
search.wordIndex = 1;
|
||||
goto next_word;
|
||||
}
|
||||
local_4E = local_48;
|
||||
search.previousIndex = search.keyIndex;
|
||||
if (param->elementCount == 0) {
|
||||
if (local_50 == 0) {
|
||||
if (*options != 0) {
|
||||
local_3C = local_3C + 1;
|
||||
if ((ziS32)local_3C < *(ziS32*)(options + 0xC)) {
|
||||
goto LAB_000110E8;
|
||||
if (search.remainingCandidates == 0) {
|
||||
if (options->countOnly != 0) {
|
||||
++search.prefixCount;
|
||||
if ((ziS32)search.prefixCount < (ziS32)options->maxCount) {
|
||||
goto skip_word;
|
||||
}
|
||||
uVar6 = *(ziU32*)(options + 0xC);
|
||||
goto LAB_000114C4;
|
||||
return options->maxCount;
|
||||
}
|
||||
param->candidates[local_54] = local_4C;
|
||||
local_54 = local_54 + 1;
|
||||
param->count = param->count + 1;
|
||||
bVar2 = param->letters + 1;
|
||||
param->letters = bVar2;
|
||||
if (param->maxCandidates <= bVar2) {
|
||||
uVar6 = param->letters;
|
||||
goto LAB_000114C4;
|
||||
param->candidates[search.candidateCount] = search.character;
|
||||
++search.candidateCount;
|
||||
++param->unk_0x20;
|
||||
if (++param->letters >= param->maxCandidates) {
|
||||
return param->letters;
|
||||
}
|
||||
} else {
|
||||
local_50 = local_50 + -1;
|
||||
--search.remainingCandidates;
|
||||
}
|
||||
} else {
|
||||
param->candidates[local_54] = local_4C;
|
||||
local_54 = local_54 + 1;
|
||||
param->count = param->count + 1;
|
||||
bVar2 = param->letters + 1;
|
||||
param->letters = bVar2;
|
||||
if (param->maxCandidates <= bVar2) {
|
||||
Zi8_814834AC(param, &local_50, &local_54, &local_57, ZI_WORK);
|
||||
param->count = local_54;
|
||||
param->letters = local_54;
|
||||
if (param->maxCandidates <= local_54) {
|
||||
if (*options == 0) {
|
||||
uVar6 = local_54;
|
||||
goto LAB_000114C4;
|
||||
param->candidates[search.candidateCount] = search.character;
|
||||
++search.candidateCount;
|
||||
++param->unk_0x20;
|
||||
if (++param->letters >= param->maxCandidates) {
|
||||
Zi8_814834AC(param, &search.remainingCandidates, &search.candidateCount, &search.inserted, ZI_WORK);
|
||||
param->unk_0x20 = search.candidateCount;
|
||||
param->letters = search.candidateCount;
|
||||
if (param->maxCandidates <= search.candidateCount) {
|
||||
if (options->countOnly == 0) {
|
||||
return search.candidateCount;
|
||||
}
|
||||
local_3C = local_3C + local_54;
|
||||
if (*(ziS32*)(options + 0xC) <= (ziS32)local_3C) {
|
||||
uVar6 = *(ziU32*)(options + 0xC);
|
||||
goto LAB_000114C4;
|
||||
search.prefixCount += search.candidateCount;
|
||||
if ((ziS32)options->maxCount <= (ziS32)search.prefixCount) {
|
||||
return options->maxCount;
|
||||
}
|
||||
param->count = 0;
|
||||
param->unk_0x20 = 0;
|
||||
param->letters = 0;
|
||||
local_54 = 0;
|
||||
search.candidateCount = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (local_40 = 0;
|
||||
(local_40 < local_54 &&
|
||||
(local_4C != param->candidates[local_40]));
|
||||
local_40 = local_40 + 1) {
|
||||
for (search.candidateIndex = 0;
|
||||
(search.candidateIndex < search.candidateCount &&
|
||||
(search.character != param->candidates[search.candidateIndex]));
|
||||
search.candidateIndex = search.candidateIndex + 1) {
|
||||
}
|
||||
if ((local_40 == local_54) &&
|
||||
(Zi8_814833F0(param, local_4C, ZI_WORK) == 0)) {
|
||||
param->candidates[local_54] = local_4C;
|
||||
local_54 = local_54 + 1;
|
||||
param->count = param->count + 1;
|
||||
bVar2 = param->letters + 1;
|
||||
param->letters = bVar2;
|
||||
if (bVar2 < param->maxCandidates) {
|
||||
goto LAB_000110E8;
|
||||
if ((search.candidateIndex == search.candidateCount) &&
|
||||
(Zi8_814833F0(param, search.character, ZI_WORK) == 0)) {
|
||||
param->candidates[search.candidateCount] = search.character;
|
||||
++search.candidateCount;
|
||||
++param->unk_0x20;
|
||||
if (++param->letters < param->maxCandidates) {
|
||||
goto skip_word;
|
||||
}
|
||||
Zi8_814834AC(param, &local_50, &local_54, &local_57, ZI_WORK);
|
||||
param->count = local_54;
|
||||
param->letters = local_54;
|
||||
if (param->maxCandidates <= local_54) {
|
||||
if (*options == 0) {
|
||||
uVar6 = local_54;
|
||||
goto LAB_000114C4;
|
||||
Zi8_814834AC(param, &search.remainingCandidates, &search.candidateCount, &search.inserted, ZI_WORK);
|
||||
param->unk_0x20 = search.candidateCount;
|
||||
param->letters = search.candidateCount;
|
||||
if (param->maxCandidates <= search.candidateCount) {
|
||||
if (options->countOnly == 0) {
|
||||
return search.candidateCount;
|
||||
}
|
||||
local_3C = local_3C + local_54;
|
||||
if (*(ziS32*)(options + 0xC) <= (ziS32)local_3C) {
|
||||
uVar6 = *(ziU32*)(options + 0xC);
|
||||
goto LAB_000114C4;
|
||||
search.prefixCount += search.candidateCount;
|
||||
if ((ziS32)options->maxCount <= (ziS32)search.prefixCount) {
|
||||
return options->maxCount;
|
||||
}
|
||||
param->count = 0;
|
||||
param->unk_0x20 = 0;
|
||||
param->letters = 0;
|
||||
local_54 = 0;
|
||||
search.candidateCount = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LAB_000110E8:
|
||||
for (; (*pbVar7 & 0x40) == 0; pbVar7 = pbVar7 + 2) {
|
||||
skip_word:
|
||||
for (; (*wordNode & 0x40) == 0; wordNode = wordNode + 2) {
|
||||
}
|
||||
local_52 = param->wordCharCount;
|
||||
LAB_00011114:
|
||||
local_52 = local_52 + -1;
|
||||
local_53 = 1;
|
||||
pbVar7 = pbVar7 + 2;
|
||||
if ((*pbVar7 & 0x80) != 0) {
|
||||
goto LAB_00011124;
|
||||
wordNode += 2;
|
||||
search.remainingLetters = param->wordCharCount - 1;
|
||||
search.wordIndex = 1;
|
||||
next_word:
|
||||
if ((*wordNode & 0x80) != 0) {
|
||||
goto search_table;
|
||||
}
|
||||
goto LAB_00010D44;
|
||||
goto match_word;
|
||||
}
|
||||
}
|
||||
LAB_00011124:
|
||||
local_34 = local_3C;
|
||||
if (local_54 != 0) {
|
||||
Zi8_814834AC(param, &local_50, &local_54, &local_57, ZI_WORK);
|
||||
uVar6 = local_34;
|
||||
if ((*options != 0) &&
|
||||
(local_3C = local_3C + local_54, uVar6 = local_3C,
|
||||
*(ziS32*)(options + 0xC) <= (ziS32)local_3C)) {
|
||||
uVar6 = *(ziU32*)(options + 0xC);
|
||||
goto LAB_000114C4;
|
||||
search_table:
|
||||
search.resultCount = search.prefixCount;
|
||||
if (search.candidateCount != 0) {
|
||||
Zi8_814834AC(param, &search.remainingCandidates, &search.candidateCount, &search.inserted, ZI_WORK);
|
||||
if (options->countOnly != 0) {
|
||||
search.prefixCount += search.candidateCount;
|
||||
if (search.prefixCount >= (ziS32)options->maxCount) return options->maxCount;
|
||||
search.resultCount = search.prefixCount;
|
||||
}
|
||||
local_34 = uVar6;
|
||||
param->count = local_54;
|
||||
param->letters = local_54;
|
||||
param->unk_0x20 = search.candidateCount;
|
||||
param->letters = search.candidateCount;
|
||||
}
|
||||
if (param->elementCount < 10) {
|
||||
if ((param->elementCount == 0) || (*options != 0)) {
|
||||
local_56 = 1;
|
||||
if ((param->elementCount == 0) || (options->countOnly != 0)) {
|
||||
search.matchPass = 1;
|
||||
} else {
|
||||
local_56 = 0;
|
||||
search.matchPass = 0;
|
||||
}
|
||||
local_4A = Zi8GetTableCount(ZI8_LANG_KO, 9, ZI_WORK);
|
||||
Zi8_81483118(param, local_28.bytes);
|
||||
search.tableCount = Zi8GetTableCount(ZI8_LANG_KO, 9, ZI_WORK);
|
||||
Zi8_81483118(param, search.packedKeys.bytes);
|
||||
do {
|
||||
for (local_30 = 0; local_30 < (ziS32)(ziU32)local_4A; local_30 = local_30 + 1) {
|
||||
bVar1 = ZI8_TRUE;
|
||||
local_44 = iVar4 + local_30 * 9;
|
||||
local_55 = 0;
|
||||
for (search.tableIndex = 0; search.tableIndex < search.tableCount; search.tableIndex = search.tableIndex + 1) {
|
||||
search.matches = ZI8_TRUE;
|
||||
search.entry = (ZiKoreanKeyEntry*)(((search.tableIndex << 3) + search.tableIndex) + keyTable);
|
||||
search.keyByte = 0;
|
||||
if (1 < param->elementCount) {
|
||||
for (local_55 = 0;
|
||||
(ziU32)local_55 < (ziU32)((ziS32)(ziU32)param->elementCount >> 1);
|
||||
local_55 = local_55 + 1) {
|
||||
if (local_28.bytes[local_55] != *(ziU8*)(local_44 + local_55)) {
|
||||
bVar1 = ZI8_FALSE;
|
||||
for (search.keyByte = 0;
|
||||
(ziU32)search.keyByte < (int)param->elementCount / 2;
|
||||
search.keyByte = search.keyByte + 1) {
|
||||
if (search.packedKeys.bytes[search.keyByte] != search.entry->keyBytes[search.keyByte]) {
|
||||
search.matches = ZI8_FALSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((bVar1 && ((param->elementCount & 1) != 0)) &&
|
||||
((local_28.bytes[local_55] & 0xF0) !=
|
||||
(*(ziU8*)(local_44 + local_55) & 0xF0))) {
|
||||
bVar1 = ZI8_FALSE;
|
||||
if ((search.matches && ((param->elementCount % 2) != 0)) &&
|
||||
((search.packedKeys.bytes[search.keyByte] & 0xF0) !=
|
||||
(search.entry->keyBytes[search.keyByte] & 0xF0))) {
|
||||
search.matches = ZI8_FALSE;
|
||||
}
|
||||
if (bVar1) {
|
||||
bVar2 = local_56;
|
||||
if ((param->elementCount & 1) == 0) {
|
||||
if ((*(ziU8*)(local_44 + local_55) & 0xF0) == 0) {
|
||||
if (local_56 == 0) {
|
||||
goto LAB_000113B0;
|
||||
}
|
||||
bVar2 = *options;
|
||||
}
|
||||
if (bVar2 == 0) {
|
||||
goto LAB_00011478;
|
||||
if (search.matches) {
|
||||
if (param->elementCount % 2 != 0) {
|
||||
if ((search.entry->keyBytes[search.keyByte] & 0xF) != 0) {
|
||||
if (search.matchPass == 0) goto next_entry;
|
||||
} else if (search.matchPass != 0 && options->countOnly == 0) {
|
||||
goto next_entry;
|
||||
}
|
||||
} else {
|
||||
if ((*(ziU8*)(local_44 + local_55) & 0xF) != 0) {
|
||||
goto LAB_000113AC;
|
||||
}
|
||||
if (local_56 != 0) {
|
||||
bVar2 = *options;
|
||||
goto LAB_000113AC;
|
||||
if ((search.entry->keyBytes[search.keyByte] & 0xF0) != 0) {
|
||||
if (search.matchPass == 0) goto next_entry;
|
||||
} else if (search.matchPass != 0 && options->countOnly == 0) {
|
||||
goto next_entry;
|
||||
}
|
||||
}
|
||||
LAB_000113AC:
|
||||
if (bVar2 == 0) {
|
||||
goto LAB_00011478;
|
||||
}
|
||||
LAB_000113B0:
|
||||
if (local_50 == 0) {
|
||||
if (*options == 0) {
|
||||
param->candidates[local_54] =
|
||||
(ziU16)((*(ziU8*)(local_30 * 9 + iVar4 + 7) << 8) |
|
||||
*(ziU8*)(local_30 * 9 + iVar4 + 8));
|
||||
local_54 = local_54 + 1;
|
||||
bVar2 = param->letters + 1;
|
||||
param->letters = bVar2;
|
||||
if (param->maxCandidates <= bVar2) {
|
||||
uVar6 = param->letters;
|
||||
goto LAB_000114C4;
|
||||
}
|
||||
} else {
|
||||
local_34 = local_34 + 1;
|
||||
if (*(ziS32*)(options + 0xC) <= (ziS32)local_34) {
|
||||
uVar6 = *(ziU32*)(options + 0xC);
|
||||
goto LAB_000114C4;
|
||||
}
|
||||
}
|
||||
if (search.remainingCandidates != 0) {
|
||||
--search.remainingCandidates;
|
||||
} else if (options->countOnly != 0) {
|
||||
if (++search.resultCount >= (ziS32)options->maxCount) return options->maxCount;
|
||||
} else {
|
||||
local_50 = local_50 + -1;
|
||||
param->candidates[search.candidateCount++] =
|
||||
(ziU16)((ziU16)((ZiKoreanKeyEntry*)(((search.tableIndex << 3) + search.tableIndex) + keyTable))->characterHigh << 8 |
|
||||
((ZiKoreanKeyEntry*)(((search.tableIndex << 3) + search.tableIndex) + keyTable))->characterLow);
|
||||
if (++param->letters >= param->maxCandidates) return param->letters;
|
||||
}
|
||||
}
|
||||
LAB_00011478:
|
||||
next_entry:
|
||||
;
|
||||
}
|
||||
local_56 = local_56 + 1;
|
||||
} while (local_56 < 2);
|
||||
uVar6 = local_34;
|
||||
if (*options == 0) {
|
||||
uVar6 = param->letters;
|
||||
}
|
||||
} while (++search.matchPass < 2);
|
||||
} else {
|
||||
param->letters = 0;
|
||||
uVar6 = 0;
|
||||
}
|
||||
if (options->countOnly != 0) return search.resultCount;
|
||||
return param->letters;
|
||||
}
|
||||
LAB_000114C4:
|
||||
return uVar6;
|
||||
return 0;
|
||||
}
|
||||
|
||||
215
libs/RVLMiddleware/eZiText/src/clib/zmtkey.c
Normal file
215
libs/RVLMiddleware/eZiText/src/clib/zmtkey.c
Normal file
@@ -0,0 +1,215 @@
|
||||
#include <zi8clib/zconvert.h>
|
||||
#include <zi8clib/zierror.h>
|
||||
#include <zi8clib/zmtkey.h>
|
||||
|
||||
typedef struct ziUserKeyMap { ziWChar* upper[32]; ziWChar* lower[32]; } ziUserKeyMap;
|
||||
|
||||
ziU16 Zi8GetTableCount(ziU8 language, ziU8 tableIndex, ziPtr __zi8_work_data);
|
||||
ziU32 Zi8GetTableAddress(ziU8 language, ziU8 tableIndex, ziPtr __zi8_work_data);
|
||||
ziU8 Zi8getKeyLayout(ziU8 language, ziWChar key, ziWChar* chars, ziU8 mode, ziPtr __zi8_work_data);
|
||||
|
||||
ziBool Zi8_81484484(ziWChar character, ziWChar* output, ziPtr __zi8_work_data) {
|
||||
if (character == 0xeffa) {
|
||||
*output = 0;
|
||||
} else if ((character >= 0xeff1) && (character <= 0xeff9)) {
|
||||
*output = character - 0xeff0;
|
||||
} else if ((character >= 0xeffb) && (character <= 0xf010)) {
|
||||
*output = character - 0xeff1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
static ziU8 ziNumKeysWithChars(ziU8 language, ziPtr __zi8_work_data) {
|
||||
ziU16 tableCount;
|
||||
ziU8* table;
|
||||
ziU32 totalCharacters;
|
||||
ziU32 keyIndex;
|
||||
|
||||
tableCount = Zi8GetTableCount(language, 0x1e, __zi8_work_data);
|
||||
table = (ziU8*)Zi8GetTableAddress(language, 0x1e, __zi8_work_data);
|
||||
if (tableCount == 0) {
|
||||
return 0x0c;
|
||||
}
|
||||
|
||||
keyIndex = totalCharacters = 0;
|
||||
for (; (ziU16)keyIndex < 0x20; keyIndex++) {
|
||||
totalCharacters += table[(ziU16)keyIndex];
|
||||
}
|
||||
if ((ziS32)tableCount >= (((ziS32)(totalCharacters & 0xffff) * 4) + 0x20)) {
|
||||
return 0x20;
|
||||
}
|
||||
return 0x0c;
|
||||
}
|
||||
|
||||
ziBool Zi8getKeyLayout(ziU8 language, ziWChar key, ziWChar* chars, ziU8 mode, ziPtr __zi8_work_data) {
|
||||
ziU8 numKeys;
|
||||
ziU16 tableCount;
|
||||
ziU8* dataAddress;
|
||||
ziUserKeyMap* customTable;
|
||||
ziU32 totalCharacters;
|
||||
ziU16 charCount;
|
||||
ziU32 keyIndex;
|
||||
ziWChar* keyChars;
|
||||
|
||||
dataAddress = 0;
|
||||
numKeys = ziNumKeysWithChars(language, __zi8_work_data);
|
||||
Zi8LogError(0x64, __zi8_work_data);
|
||||
*chars = 0;
|
||||
if (ZI_WORK->userKeys[language] != 0) {
|
||||
customTable = ZI_WORK->userKeys[language];
|
||||
if (!Zi8_81484484(key, &key, __zi8_work_data)) {
|
||||
return 0;
|
||||
}
|
||||
keyChars = customTable->lower[key];
|
||||
for (keyIndex = 0; keyChars[(ziU16)keyIndex] != 0; keyIndex++) {
|
||||
chars[(ziU16)keyIndex] = keyChars[(ziU16)keyIndex];
|
||||
}
|
||||
chars[(ziU16)keyIndex] = 0;
|
||||
return 1;
|
||||
} else {
|
||||
if (mode == 1) {
|
||||
goto table_1e;
|
||||
}
|
||||
if ((tableCount = Zi8GetTableCount(language, 0x1d, __zi8_work_data)) == 0) {
|
||||
goto table_1e;
|
||||
}
|
||||
{
|
||||
dataAddress = (ziU8*)Zi8GetTableAddress(language, 0x1d, __zi8_work_data);
|
||||
goto tables_ready;
|
||||
}
|
||||
table_1e:
|
||||
if ((tableCount = Zi8GetTableCount(language, 0x1e, __zi8_work_data)) != 0) {
|
||||
dataAddress = (ziU8*)Zi8GetTableAddress(language, 0x1e, __zi8_work_data);
|
||||
}
|
||||
tables_ready:
|
||||
if (dataAddress == 0) {
|
||||
Zi8ReplaceLastError(0x962, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
if (!Zi8_81484484(key, &key, __zi8_work_data) || (key >= numKeys)) {
|
||||
Zi8ReplaceLastError(300, __zi8_work_data);
|
||||
return 0;
|
||||
}
|
||||
|
||||
totalCharacters = 0;
|
||||
keyIndex = totalCharacters;
|
||||
for (; (ziU16)keyIndex < key; keyIndex++) {
|
||||
totalCharacters += dataAddress[(ziU16)keyIndex];
|
||||
}
|
||||
if ((charCount = (ziU8)dataAddress[key]) == 0) {
|
||||
return 0;
|
||||
}
|
||||
dataAddress = dataAddress + numKeys + ((totalCharacters & 0xffff) * 2);
|
||||
keyIndex = 0;
|
||||
for (; (ziU16)keyIndex < charCount; keyIndex++) {
|
||||
chars[(ziU16)keyIndex] = (ziU16)dataAddress[(ziU16)keyIndex * 2] |
|
||||
((ziU16)dataAddress[((ziU16)keyIndex * 2) + 1] << 8);
|
||||
}
|
||||
chars[(ziU16)keyIndex] = 0;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
ziBool Zi8ChangeCharCase(ziBool upper, ziWChar* character, ziU8 language ZI_NEED_WORK) {
|
||||
ziU8 changed;
|
||||
ziU16 total;
|
||||
ziU16 tableCount;
|
||||
ziU8* dataAddress;
|
||||
ziUserKeyMap* customTables;
|
||||
ziU8 numKeys;
|
||||
ziS16 direction;
|
||||
ziU16 result;
|
||||
ziS32 keyIndex;
|
||||
ziPtr from;
|
||||
ziPtr to;
|
||||
ziS32 characterIndex;
|
||||
|
||||
customTables = 0;
|
||||
dataAddress = 0;
|
||||
changed = 0;
|
||||
numKeys = 0x20;
|
||||
Zi8LogError(0x64, ZI_WORK);
|
||||
if (ZI_WORK->userKeys[language] != 0) {
|
||||
customTables = (ziUserKeyMap*)ZI_WORK->userKeys[language];
|
||||
} else if (ZI_WORK->unk_0x11FC != 0) {
|
||||
customTables = (ziUserKeyMap*)ZI_WORK->unk_0x11FC;
|
||||
} else {
|
||||
tableCount = Zi8GetTableCount(language, 0x1e, ZI_WORK);
|
||||
if (tableCount != 0) {
|
||||
dataAddress = (ziU8*)Zi8GetTableAddress(language, 0x1e, ZI_WORK);
|
||||
numKeys = ziNumKeysWithChars(language, ZI_WORK);
|
||||
} else {
|
||||
Zi8ReplaceLastError(0x138d, ZI_WORK);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if (customTables != 0) {
|
||||
for (keyIndex = 0; (changed == 0) && (keyIndex < (ziS32)(ziU32)numKeys); keyIndex++) {
|
||||
if (upper != 0) {
|
||||
from = (ziPtr)customTables->lower[keyIndex];
|
||||
to = (ziPtr)customTables->upper[keyIndex];
|
||||
} else {
|
||||
from = (ziPtr)customTables->upper[keyIndex];
|
||||
to = (ziPtr)customTables->lower[keyIndex];
|
||||
}
|
||||
if ((from != 0) && (to != 0)) {
|
||||
for (characterIndex = 0; ((ziU16)((ziS16*)from)[characterIndex]) != 0; characterIndex++) {
|
||||
if ((ziU16)((ziS16*)from)[characterIndex] == *character) {
|
||||
*character = (ziU16)((ziWChar*)to)[characterIndex];
|
||||
changed = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (dataAddress != 0) {
|
||||
total = 0;
|
||||
for (keyIndex = 0; keyIndex < (ziS32)(ziU32)numKeys; keyIndex++) {
|
||||
total += dataAddress[keyIndex];
|
||||
}
|
||||
dataAddress = dataAddress + numKeys;
|
||||
direction = 1;
|
||||
if (upper == 0) {
|
||||
dataAddress = dataAddress + ((ziU32)total * 2);
|
||||
direction = -1;
|
||||
}
|
||||
for (keyIndex = 0; keyIndex < (ziS32)(ziU32)total; keyIndex++) {
|
||||
tableCount = (ziU16)(dataAddress[(keyIndex * 2)] |
|
||||
((ziU16)dataAddress[(keyIndex * 2) + 1] << 8));
|
||||
if (tableCount == *character) {
|
||||
dataAddress = dataAddress + ((ziS32)direction * ((ziU32)total * 2));
|
||||
*character = (ziU16)(dataAddress[(keyIndex * 2)] |
|
||||
((ziU16)dataAddress[(keyIndex * 2) + 1] << 8));
|
||||
changed = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (changed == 0) {
|
||||
result = 0;
|
||||
if (upper != 0) {
|
||||
if (((*character >= 0x61) && (*character <= 0x7a)) || ((*character >= 0xf1) && (*character <= 0xf6)) ||
|
||||
((*character >= 0xf8) && (*character <= 0xfe)) || ((*character >= 0xe0) && (*character <= 0xef))) {
|
||||
result = *character - 0x20;
|
||||
} else if (*character == 0xff) {
|
||||
result = 0x178;
|
||||
}
|
||||
} else {
|
||||
if (((*character >= 0x41) && (*character <= 0x5a)) || ((*character >= 0xd1) && (*character <= 0xd6)) ||
|
||||
((*character >= 0xd8) && (*character <= 0xde)) || ((*character >= 0xc0) && (*character <= 0xcf))) {
|
||||
result = *character + 0x20;
|
||||
} else if (*character == 0x178) {
|
||||
result = 0xff;
|
||||
}
|
||||
}
|
||||
|
||||
if ((result != 0) && Zi8ConvertWC2UC(result, language, ZI_WORK)) {
|
||||
*character = result;
|
||||
changed = 1;
|
||||
}
|
||||
}
|
||||
return changed;
|
||||
}
|
||||
70
libs/RVLMiddleware/eZiText/src/clib/zoemdata.c
Normal file
70
libs/RVLMiddleware/eZiText/src/clib/zoemdata.c
Normal file
@@ -0,0 +1,70 @@
|
||||
#include <stddef.h>
|
||||
#include <zi8clib/zitypes.h>
|
||||
#include <zi8clib/zierror.h>
|
||||
#include <zi8clib/zconvert.h>
|
||||
#include <zi8clib/zmtkey.h>
|
||||
|
||||
ziU8 Zi8AttachOEMdata(ziU8 (*match)(ziU16, ziWChar*, ziU8, ziPtr), ziU16 count, ziPtr data ZI_NEED_WORK) {
|
||||
ZI_WORK->oemMatch = match;
|
||||
ZI_WORK->oemLen = count;
|
||||
ZI_WORK->oemData = data;
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
return 1;
|
||||
}
|
||||
ziU8 Zi8DetachOEMdata(ziU8 id ZI_NEED_WORK) {
|
||||
Zi8LogError(100, __zi8_work_data);
|
||||
if (id != 1 || ZI_WORK->oemMatch == 0) return 0;
|
||||
{
|
||||
ZI_WORK->oemMatch = 0;
|
||||
ZI_WORK->oemLen = 0;
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
ziU8 Zi8MatchOEMdata(ziWChar* pattern, ziU8 length, ziU8 language, ziWChar* word, ziU16 capacity, ziBool complete, ziBool continuation ZI_NEED_WORK) {
|
||||
ziWChar folded;
|
||||
ziU8 fallback = 0;
|
||||
ziU32 index;
|
||||
ziU32 position;
|
||||
if (!continuation) ZI_WORK->oemIdx = 0;
|
||||
index = ZI_WORK->oemIdx;
|
||||
if ((ziS32)index >= ZI_WORK->oemLen || ZI_WORK->oemMatch == 0) goto noMatch;
|
||||
capacity--;
|
||||
if (length >= capacity) goto noMatch;
|
||||
word[capacity] = 0;
|
||||
word[length] = complete ? 1 : 0;
|
||||
for (;;) {
|
||||
if ((ziS32)index >= ZI_WORK->oemLen || !ZI_WORK->oemMatch(index, word, capacity, ZI_WORK->oemData)) {
|
||||
if (length != 1 || !complete || continuation) goto noMatch;
|
||||
complete = 0;
|
||||
fallback = 1;
|
||||
index = 0;
|
||||
continue;
|
||||
}
|
||||
position = 0;
|
||||
if ((complete && word[length] == 0) || (!complete && word[length] != 0)) {
|
||||
for (; (ziS32)position < length; position++) {
|
||||
if (pattern[position] < 0xEFF1 || pattern[position] > 0xF37F) {
|
||||
if (word[position] != pattern[position]) {
|
||||
if (!ZI_WORK->unk_0x1F || language == 1) break;
|
||||
folded = pattern[position];
|
||||
if (!Zi8ChangeCharCase(1, &folded, language, __zi8_work_data) || folded != word[position]) break;
|
||||
}
|
||||
} else if (pattern[position] != Zi8ConvertWC2Key(word[position], language, __zi8_work_data)) break;
|
||||
}
|
||||
}
|
||||
if ((ziS32)position >= length) {
|
||||
if (fallback) {
|
||||
*word = *pattern;
|
||||
return 1;
|
||||
}
|
||||
ZI_WORK->oemIdx = index + 1;
|
||||
while (word[position] != 0) position++;
|
||||
return position;
|
||||
}
|
||||
word[length] = complete ? 1 : 0;
|
||||
index++;
|
||||
}
|
||||
noMatch:
|
||||
return 0;
|
||||
}
|
||||
337
libs/RVLMiddleware/eZiText/src/clib/zprepare.c
Normal file
337
libs/RVLMiddleware/eZiText/src/clib/zprepare.c
Normal file
@@ -0,0 +1,337 @@
|
||||
#include <zi8clib/zitypes.h>
|
||||
|
||||
void Zi8Memset(ziPtr, ziU32, ziU32);
|
||||
void Zi8Memcpy(ziPtr, ziPtr, ziU32);
|
||||
ziBool Zi8IsComponent(ziWChar ZI_NEED_WORK);
|
||||
ziU32 Zi8GetTableAddress(ziU8, ziU8 ZI_NEED_WORK);
|
||||
ziU16 Zi8GetTableCount(ziU8, ziU8 ZI_NEED_WORK);
|
||||
ziU8 Zi8GetPyPhonetic(ziWChar*, ziU8, ziWChar*, ziWChar*, ziU8*, ziWChar*, ziWChar* ZI_NEED_WORK);
|
||||
ziU8 Zi8GetBpmfPhonetic(ziWChar*, ziU8, ziWChar*, ziWChar*, ziWChar*, ziWChar* ZI_NEED_WORK);
|
||||
|
||||
ziBool Zi8PrepareMatch(ziGetParam* request, ziMatchParam* match, ziU8 skipMode ZI_NEED_WORK) {
|
||||
ziU16 element;
|
||||
ziU16 phoneticCount;
|
||||
ziU16 phoneticInitial;
|
||||
ziU16 phoneticMask;
|
||||
ziU16 phoneticCode;
|
||||
ziU16 phoneticLength;
|
||||
ziWChar initial;
|
||||
ziWChar final;
|
||||
ziWChar bestInitial;
|
||||
ziWChar bestFinal;
|
||||
ziWChar previousInitial;
|
||||
ziWChar previousFinal;
|
||||
ziU8 elementCount;
|
||||
ziU8 elementIndex;
|
||||
ziU8 stroke;
|
||||
ziU8 contextMask;
|
||||
ziU8 mode;
|
||||
ziU8 savedNibbles;
|
||||
struct {
|
||||
ziWChar* phoneticInput;
|
||||
ziU8* phoneticTable;
|
||||
ziU8 strokePrefix[4];
|
||||
ziU8 maskPrefix[4];
|
||||
ziU8* componentIndex;
|
||||
ziU8* component;
|
||||
ziU8 strokes[12];
|
||||
ziU8 masks[12];
|
||||
} buffers;
|
||||
ziU8 nibbles;
|
||||
ziU8 index;
|
||||
|
||||
stroke = 0;
|
||||
contextMask = 0x20;
|
||||
Zi8Memset(match,0,0x1ee);
|
||||
nibbles = 0;
|
||||
elementIndex = 0;
|
||||
elementCount = request->elementCount;
|
||||
while (elementCount != 0) {
|
||||
if (request->elements[elementCount - 1] != 0xEF09) break;
|
||||
elementCount--;
|
||||
}
|
||||
match->count = elementCount;
|
||||
for (index = 0; index < elementCount; index++) {
|
||||
if (request->elements[index] != 0xEF00) {
|
||||
match->count = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (elementCount != 0) {
|
||||
match->comp = element = request->elements[0];
|
||||
if (Zi8IsComponent(element,__zi8_work_data) != 0) {
|
||||
elementIndex++;
|
||||
buffers.component = (ziU8*)Zi8GetTableAddress(1,2,__zi8_work_data);
|
||||
buffers.componentIndex = (ziU8*)Zi8GetTableAddress(1,6,__zi8_work_data);
|
||||
buffers.componentIndex += (element - 0xef10) * 2;
|
||||
match->field22 = (((ziU16)buffers.componentIndex[1] & 0x3f) << 8) + *buffers.componentIndex;
|
||||
buffers.component += (ziU32)match->field22 * 8;
|
||||
switch(*buffers.component & 0xf) {
|
||||
case 0:
|
||||
case 9:
|
||||
case 10:
|
||||
default:
|
||||
break;
|
||||
case 1:
|
||||
match->comp = 0xEF00 + 4;
|
||||
break;
|
||||
case 2:
|
||||
match->comp = 0xEF00 + 1;
|
||||
break;
|
||||
case 3:
|
||||
case 0xb:
|
||||
match->comp = 0xEF00 + 7;
|
||||
break;
|
||||
case 4:
|
||||
match->comp = 0xEF00 + 6;
|
||||
break;
|
||||
case 5:
|
||||
match->comp = 0xEF00 + 3;
|
||||
break;
|
||||
case 6:
|
||||
match->comp = 0xEF00 + 5;
|
||||
break;
|
||||
case 7:
|
||||
match->comp = 0xEF00 + 8;
|
||||
break;
|
||||
case 8:
|
||||
match->comp = 0xEF00 + 2;
|
||||
}
|
||||
for (index = 0; index < (buffers.component[5] >> 1) + 1; index++) {
|
||||
if (index < 4) {
|
||||
match->arrD[index] = buffers.component[index];
|
||||
match->arr1[index] = 0xff;
|
||||
}
|
||||
}
|
||||
if ((index != 0) && ((buffers.component[5] & 1) == 0)) {
|
||||
index--;
|
||||
match->arrD[index] &= 0xf0;
|
||||
match->arr1[index] = match->arr1[index] & 0xf0;
|
||||
}
|
||||
nibbles = (ziU8)(buffers.component[5] + 1);
|
||||
if (8 < nibbles) {
|
||||
nibbles++;
|
||||
}
|
||||
}
|
||||
}
|
||||
match->arr1[0] &= 0xf;
|
||||
match->arrD[0] &= 0xf;
|
||||
if (skipMode == '\0') {
|
||||
mode = 0;
|
||||
if ((request->subLanguage & 0x80) != 0 || (request->subLanguage & 0x40) != 0) {
|
||||
mode = 1;
|
||||
} else if ((request->subLanguage & 8) != 0) {
|
||||
mode = 4;
|
||||
} else if ((request->subLanguage & 0x20) != 0 || (request->subLanguage & 0x10) != 0) {
|
||||
mode = 2;
|
||||
}
|
||||
if (mode == 0) {
|
||||
mode = request->subLanguage;
|
||||
}
|
||||
switch (mode) {
|
||||
case 1:
|
||||
case 2:
|
||||
case 4:
|
||||
match->arr1[0] |= (ziU8)(mode << 4);
|
||||
match->arrD[0] |= (ziU8)(mode << 4);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (nibbles == 0) {
|
||||
nibbles = 1;
|
||||
}
|
||||
if (((request->getMode == '\0') || (request->getMode == '\x10')) ||
|
||||
(request->getMode == '\x05')) {
|
||||
Zi8Memcpy(buffers.masks,match->arr1,0xc);
|
||||
Zi8Memcpy(buffers.strokes,match->arrD,0xc);
|
||||
do {
|
||||
while (elementIndex < elementCount) {
|
||||
element = request->elements[elementIndex++];
|
||||
switch (element) {
|
||||
case 0xef02: stroke = 0; break;
|
||||
case 0xef04: stroke = 1; break;
|
||||
case 0xef01: stroke = 2; break;
|
||||
case 0xef07: stroke = 3; break;
|
||||
case 0xef06: stroke = 4; break;
|
||||
case 0xef03: stroke = 5; break;
|
||||
case 0xef05: stroke = 6; break;
|
||||
case 0xef08: stroke = 7; break;
|
||||
case 0xef0b: stroke = 8; break;
|
||||
case 0xef0a: stroke = 4; break;
|
||||
case 0xf360: stroke = 0xff; break;
|
||||
default: stroke = 0; break;
|
||||
}
|
||||
if (stroke == 0xff) break;
|
||||
if (0x17 < nibbles) {
|
||||
match->length = 0x18;
|
||||
return 0;
|
||||
}
|
||||
if (nibbles == 8) {
|
||||
nibbles++;
|
||||
}
|
||||
if ((nibbles & 1) != 0) {
|
||||
buffers.strokes[nibbles >> 1] = buffers.strokes[nibbles >> 1] | stroke;
|
||||
if (element == 0xef0b) {
|
||||
buffers.masks[nibbles >> 1] = buffers.masks[nibbles >> 1] | 8;
|
||||
}
|
||||
else if (element == 0xef0a) {
|
||||
buffers.masks[nibbles >> 1] = buffers.masks[nibbles >> 1] | 4;
|
||||
}
|
||||
else if (element != 0xef00) {
|
||||
buffers.masks[nibbles >> 1] = buffers.masks[nibbles >> 1] | 7;
|
||||
}
|
||||
} else {
|
||||
buffers.strokes[nibbles >> 1] = buffers.strokes[nibbles >> 1] | (ziU8)(stroke << 4);
|
||||
if (element == 0xef0b) {
|
||||
buffers.masks[nibbles >> 1] = buffers.masks[nibbles >> 1] | 0x80;
|
||||
}
|
||||
else if (element == 0xef0a) {
|
||||
buffers.masks[nibbles >> 1] = buffers.masks[nibbles >> 1] | 0x40;
|
||||
}
|
||||
else if (element != 0xef00) {
|
||||
buffers.masks[nibbles >> 1] = buffers.masks[nibbles >> 1] | 0x70;
|
||||
}
|
||||
}
|
||||
nibbles++;
|
||||
}
|
||||
savedNibbles = nibbles;
|
||||
for (index = 0; index < 4; index++) {
|
||||
buffers.maskPrefix[index] = buffers.masks[index];
|
||||
buffers.strokePrefix[index] = buffers.strokes[index];
|
||||
}
|
||||
if ((1 < nibbles) && (nibbles < 8)) {
|
||||
index = nibbles >> 1;
|
||||
if ((nibbles & 1) != 0) {
|
||||
buffers.maskPrefix[index] = buffers.maskPrefix[index] | 0xf;
|
||||
buffers.strokePrefix[index] = buffers.strokePrefix[index] | 0xf;
|
||||
} else {
|
||||
buffers.maskPrefix[index] = buffers.maskPrefix[index] | 0xf0;
|
||||
buffers.strokePrefix[index] = buffers.strokePrefix[index] | 0xf0;
|
||||
}
|
||||
}
|
||||
if (match->nSeg == 0) {
|
||||
Zi8Memcpy(match->arr1,buffers.masks,0xc);
|
||||
Zi8Memcpy(match->arrD,buffers.strokes,0xc);
|
||||
Zi8Memcpy(match->arr19,buffers.maskPrefix,4);
|
||||
Zi8Memcpy(match->arr1D,buffers.strokePrefix,4);
|
||||
match->length = savedNibbles;
|
||||
}
|
||||
Zi8Memcpy((ziU8 (*)[12])match->segs1 + match->nSeg,buffers.masks,0xc);
|
||||
Zi8Memcpy((ziU8 (*)[12])match->segsD + match->nSeg,buffers.strokes,0xc);
|
||||
match->nSeg++;
|
||||
if (((stroke != 0xff) || (elementCount <= elementIndex)) || (0xf < match->nSeg)) goto complete;
|
||||
Zi8Memset(buffers.masks,0,0xc);
|
||||
Zi8Memset(buffers.strokes,0,0xc);
|
||||
buffers.masks[0] = match->arr1[0] & 0xf0;
|
||||
buffers.strokes[0] = match->arrD[0] & 0xf0;
|
||||
nibbles = 1;
|
||||
} while (1);
|
||||
}
|
||||
match->length = nibbles;
|
||||
if (elementCount != 0) {
|
||||
if ((request->getMode == '\x01') || (request->getMode == '\f')) {
|
||||
buffers.phoneticTable = (ziU8*)Zi8GetTableAddress(1,3,__zi8_work_data);
|
||||
phoneticCount = Zi8GetTableCount(1,3,__zi8_work_data);
|
||||
}
|
||||
else {
|
||||
buffers.phoneticTable = (ziU8*)Zi8GetTableAddress(1,4,__zi8_work_data);
|
||||
phoneticCount = Zi8GetTableCount(1,4,__zi8_work_data);
|
||||
}
|
||||
if ((request->getMode == '\x01') || (request->getMode == '\f')) {
|
||||
match->nCand = Zi8GetPyPhonetic(request->elements,elementCount,match->phon,match->phon2,
|
||||
&request->count,&match->first,&match->first2,__zi8_work_data);
|
||||
}
|
||||
else {
|
||||
initial = 0;
|
||||
final = 0;
|
||||
bestInitial = 0;
|
||||
bestFinal = 0;
|
||||
previousInitial = 0;
|
||||
previousFinal = 0;
|
||||
buffers.phoneticInput = request->elements;
|
||||
match->nCand = 0;
|
||||
request->count = request->elementCount;
|
||||
phoneticLength = 1;
|
||||
for (index = 0; index < elementCount; index++) {
|
||||
if (Zi8GetBpmfPhonetic(buffers.phoneticInput,phoneticLength,&initial,&final,&bestInitial,&bestFinal,
|
||||
__zi8_work_data) == 0) {
|
||||
if ((index == 0) ||
|
||||
((((1 < phoneticLength && (buffers.phoneticInput[phoneticLength - 2] == 0xF360)) &&
|
||||
(buffers.phoneticInput[phoneticLength - 1] == 0xF360)) ||
|
||||
(++match->nCand == 0x10)))) {
|
||||
initial = 0xffff;
|
||||
final = 0xffff;
|
||||
bestInitial = 0xffff;
|
||||
bestFinal = 0xffff;
|
||||
match->nCand = 0;
|
||||
break;
|
||||
}
|
||||
if (buffers.phoneticInput[phoneticLength - 1] == 0xF360) {
|
||||
match->nCand--;
|
||||
bestInitial = previousInitial;
|
||||
bestFinal = previousFinal;
|
||||
final = bestFinal;
|
||||
initial = bestInitial;
|
||||
goto savePhonetic;
|
||||
}
|
||||
if (match->nCand == 1) {
|
||||
request->count = phoneticLength - 1;
|
||||
}
|
||||
buffers.phoneticInput += phoneticLength - 1;
|
||||
phoneticLength = 0;
|
||||
index--;
|
||||
}
|
||||
else {
|
||||
savePhonetic:
|
||||
match->phon[match->nCand] = initial;
|
||||
match->phon2[match->nCand] = final;
|
||||
previousFinal = bestFinal;
|
||||
previousInitial = bestInitial;
|
||||
if (match->nCand == 0) {
|
||||
match->first = bestInitial;
|
||||
match->first2 = bestFinal;
|
||||
}
|
||||
}
|
||||
phoneticLength++;
|
||||
}
|
||||
if (elementCount != 0) {
|
||||
match->phon[match->nCand] = initial;
|
||||
match->phon2[match->nCand] = final;
|
||||
if (match->nCand == 0) {
|
||||
match->first = bestInitial;
|
||||
match->first2 = bestFinal;
|
||||
}
|
||||
match->nCand++;
|
||||
}
|
||||
}
|
||||
if (((request->context & contextMask) != 0) &&
|
||||
((1 < match->nCand || (request->count != elementCount)))) {
|
||||
match->phon[0] = 0xFFFF;
|
||||
match->phon2[0] = 0xFFFF;
|
||||
match->nCand = 0;
|
||||
}
|
||||
if (((request->getOptions & 0x20) == 0) &&
|
||||
((match->phon[0] != 0xFFFF || (match->phon2[0] != 0xFFFF)))) {
|
||||
if (match->nCand < 2) {
|
||||
phoneticInitial = match->phon[0];
|
||||
phoneticMask = match->phon2[0];
|
||||
}
|
||||
else {
|
||||
phoneticInitial = match->phon[match->nCand - 1];
|
||||
phoneticMask = match->phon2[match->nCand - 1];
|
||||
}
|
||||
phoneticInitial = phoneticInitial & 0xfff8;
|
||||
phoneticMask = phoneticMask & 0xfff8;
|
||||
for (phoneticLength = 0; phoneticLength < phoneticCount; phoneticLength++) {
|
||||
phoneticCode = (buffers.phoneticTable[phoneticLength * 2 + 1] << 8) | buffers.phoneticTable[phoneticLength * 2];
|
||||
if (phoneticMask == (phoneticCode & phoneticInitial)) break;
|
||||
}
|
||||
if (phoneticLength == phoneticCount) {
|
||||
match->phon[0] = 0xFFFF;
|
||||
match->phon2[0] = 0xFFFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
complete:
|
||||
return 1;
|
||||
}
|
||||
220
libs/RVL_SDK/src/axfx/AXFXChorusExp.c
Normal file
220
libs/RVL_SDK/src/axfx/AXFXChorusExp.c
Normal file
@@ -0,0 +1,220 @@
|
||||
#include <private/axfx.h>
|
||||
#include <revolution/axfx.h>
|
||||
#include <revolution/os.h>
|
||||
#include <string.h>
|
||||
|
||||
static BOOL __InitParams(AXFX_CHORUS_EXP* fx);
|
||||
static void __CalcLFO(s32* output, AXFX_CHORUS_EXP_LFO* lfo);
|
||||
|
||||
static BOOL __AllocDelayLine(AXFX_CHORUS_EXP* fx) {
|
||||
u32 channel;
|
||||
for (channel = 0; channel < 3; channel++) {
|
||||
fx->delay.line[channel] = __AXFXAlloc(fx->delay.size * sizeof(f32));
|
||||
if (fx->delay.line[channel] == NULL) return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
static BOOL __BzeroDelayLine(AXFX_CHORUS_EXP* fx) {
|
||||
u32 channel;
|
||||
for (channel = 0; channel < 3; channel++) {
|
||||
if (fx->delay.line[channel] == NULL) return FALSE;
|
||||
memset(fx->delay.line[channel], 0, fx->delay.size * sizeof(f32));
|
||||
}
|
||||
fx->delay.inPos = 0;
|
||||
fx->delay.outPos = (fx->delay.size - (u32)(32.0f * fx->delayTime)) << 16;
|
||||
fx->delay.lastPos = fx->delay.outPos;
|
||||
fx->delay.sizeFP = fx->delay.size << 16;
|
||||
return TRUE;
|
||||
}
|
||||
u32 AXFXChorusExpGetMemSize(const AXFX_CHORUS_EXP* fx) {
|
||||
return 0x9600;
|
||||
}
|
||||
BOOL AXFXChorusExpInit(AXFX_CHORUS_EXP* fx) {
|
||||
BOOL enabled = OSDisableInterrupts();
|
||||
fx->active |= 1;
|
||||
fx->delay.size = 3200;
|
||||
if (!__AllocDelayLine(fx)) {
|
||||
AXFXChorusExpShutdown(fx);
|
||||
OSRestoreInterrupts(enabled);
|
||||
return FALSE;
|
||||
}
|
||||
if (!__BzeroDelayLine(fx)) {
|
||||
AXFXChorusExpShutdown(fx);
|
||||
OSRestoreInterrupts(enabled);
|
||||
return FALSE;
|
||||
}
|
||||
if (!__InitParams(fx)) {
|
||||
AXFXChorusExpShutdown(fx);
|
||||
OSRestoreInterrupts(enabled);
|
||||
return FALSE;
|
||||
}
|
||||
fx->active &= ~1;
|
||||
OSRestoreInterrupts(enabled);
|
||||
return TRUE;
|
||||
}
|
||||
BOOL AXFXChorusExpSettings(AXFX_CHORUS_EXP* fx) {
|
||||
BOOL result;
|
||||
BOOL enabled = OSDisableInterrupts();
|
||||
fx->active |= 1;
|
||||
AXFXChorusExpShutdown(fx);
|
||||
result = AXFXChorusExpInit(fx);
|
||||
if (!result) {
|
||||
AXFXChorusExpShutdown(fx);
|
||||
OSRestoreInterrupts(enabled);
|
||||
return FALSE;
|
||||
}
|
||||
fx->active = (fx->active | 2) & ~1;
|
||||
OSRestoreInterrupts(enabled);
|
||||
return result;
|
||||
}
|
||||
void AXFXChorusExpShutdown(AXFX_CHORUS_EXP* fx) {
|
||||
BOOL enabled = OSDisableInterrupts();
|
||||
u32 channel;
|
||||
fx->active |= 1;
|
||||
for (channel = 0; channel < 3; channel++) {
|
||||
if (fx->delay.line[channel] != NULL) __AXFXFree(fx->delay.line[channel]);
|
||||
fx->delay.line[channel] = NULL;
|
||||
}
|
||||
OSRestoreInterrupts(enabled);
|
||||
}
|
||||
void AXFXChorusExpCallback(AXFX_BUFFERUPDATE* update, AXFX_CHORUS_EXP* fx) {
|
||||
s32* output[3];
|
||||
s32* input[3];
|
||||
s32* send[3];
|
||||
s32 modulation[96];
|
||||
u32 sample;
|
||||
if (fx->active != 0) {
|
||||
fx->active &= ~2;
|
||||
return;
|
||||
}
|
||||
output[0] = update->left;
|
||||
output[1] = update->right;
|
||||
output[2] = update->surround;
|
||||
if (fx->busIn != NULL) {
|
||||
input[0] = fx->busIn->left;
|
||||
input[1] = fx->busIn->right;
|
||||
input[2] = fx->busIn->surround;
|
||||
}
|
||||
if (fx->busOut != NULL) {
|
||||
send[0] = fx->busOut->left;
|
||||
send[1] = fx->busOut->right;
|
||||
send[2] = fx->busOut->surround;
|
||||
}
|
||||
__CalcLFO(modulation, &fx->lfo);
|
||||
for (sample = 0; sample < 96; sample++) {
|
||||
s32 position = fx->delay.outPos + modulation[sample];
|
||||
u32 distance;
|
||||
u32 whole, fraction, source, history, channel;
|
||||
f32* coefficients;
|
||||
if (position >= (s32)fx->delay.sizeFP) position -= fx->delay.sizeFP;
|
||||
else if (position < 0) position += fx->delay.sizeFP;
|
||||
distance = position - fx->delay.lastPos;
|
||||
if ((s32)distance < 0) distance += fx->delay.sizeFP;
|
||||
whole = (u32)distance >> 16;
|
||||
fraction = distance & 0xFFFF;
|
||||
source = fx->delay.lastPos >> 16;
|
||||
history = fx->histIndex;
|
||||
while (whole != 0) {
|
||||
fx->history[0][history] = fx->delay.line[0][source];
|
||||
fx->history[1][history] = fx->delay.line[1][source];
|
||||
fx->history[2][history] = fx->delay.line[2][source];
|
||||
history = (history + 1) & 3;
|
||||
source++;
|
||||
if (source >= fx->delay.size) source = 0;
|
||||
whole--;
|
||||
}
|
||||
fx->delay.lastPos = position & 0xFFFF0000;
|
||||
coefficients = __AXFXGetSrcCoef((fraction >> 9) & 0x7F);
|
||||
for (channel = 0; channel < 3; channel++) {
|
||||
f32 filtered = 0.0f;
|
||||
f32 dry;
|
||||
filtered += coefficients[0] * fx->history[channel][history];
|
||||
history = (history + 1) & 3;
|
||||
filtered += coefficients[1] * fx->history[channel][history];
|
||||
history = (history + 1) & 3;
|
||||
filtered += coefficients[2] * fx->history[channel][history];
|
||||
history = (history + 1) & 3;
|
||||
filtered += coefficients[3] * fx->history[channel][history];
|
||||
history = (history + 1) & 3;
|
||||
if (fx->busIn != NULL) dry = *input[channel]++ + *output[channel];
|
||||
else dry = *output[channel];
|
||||
fx->delay.line[channel][fx->delay.inPos] = dry + filtered * fx->feedback;
|
||||
*output[channel]++ = filtered * fx->outGain;
|
||||
if (fx->busOut != NULL) *send[channel]++ = filtered * fx->sendGain;
|
||||
}
|
||||
fx->histIndex = history;
|
||||
fx->delay.inPos++;
|
||||
if (fx->delay.inPos >= fx->delay.size) fx->delay.inPos = 0;
|
||||
fx->delay.outPos += 0x10000;
|
||||
if (fx->delay.outPos >= fx->delay.sizeFP) fx->delay.outPos = 0;
|
||||
}
|
||||
}
|
||||
static BOOL __InitParams(AXFX_CHORUS_EXP* fx) {
|
||||
f32 delay, depth, step;
|
||||
if (fx->delayTime < 0.1f || fx->delayTime > 50.0f) return FALSE;
|
||||
if (fx->depth < 0.0f || fx->depth > 1.0f) return FALSE;
|
||||
if (fx->rate < 0.1f || fx->rate > 2.0f) return FALSE;
|
||||
if (fx->feedback < 0.0f || fx->feedback >= 1.0f) return FALSE;
|
||||
if (fx->outGain < 0.0f || fx->outGain > 1.0f) return FALSE;
|
||||
if (fx->sendGain < 0.0f || fx->sendGain > 1.0f) return FALSE;
|
||||
fx->lfo.table = __AXFXGetLfoSinTable();
|
||||
delay = 32.0f * fx->delayTime;
|
||||
depth = delay * fx->depth;
|
||||
if (delay <= depth) {
|
||||
depth -= 1.0f;
|
||||
if (depth < 0.0f) depth = 0.0f;
|
||||
}
|
||||
fx->lfo.depthSamp = 65536.0f * depth;
|
||||
fx->lfo.phaseAdd = 65536.0f * (256.0f * fx->rate / 32000.0f);
|
||||
step = (32000.0f / fx->rate) * (1.0f / 256.0f);
|
||||
fx->lfo.stepSamp = 65536.0f * step;
|
||||
fx->lfo.gradFactor = 65536.0f * (depth / step);
|
||||
fx->lfo.lastNum = -1;
|
||||
fx->lfo.phase = 0;
|
||||
fx->lfo.sign = 0;
|
||||
fx->lfo.lastValue = 0;
|
||||
fx->lfo.grad = 0;
|
||||
fx->history[0][0] = 0.0f;
|
||||
fx->history[0][1] = 0.0f;
|
||||
fx->history[0][2] = 0.0f;
|
||||
fx->history[0][3] = 0.0f;
|
||||
fx->history[1][0] = 0.0f;
|
||||
fx->history[1][1] = 0.0f;
|
||||
fx->history[1][2] = 0.0f;
|
||||
fx->history[1][3] = 0.0f;
|
||||
fx->history[2][0] = 0.0f;
|
||||
fx->history[2][1] = 0.0f;
|
||||
fx->history[2][2] = 0.0f;
|
||||
fx->history[2][3] = 0.0f;
|
||||
fx->histIndex = 0;
|
||||
return TRUE;
|
||||
}
|
||||
static void __CalcLFO(s32* output, AXFX_CHORUS_EXP_LFO* lfo) {
|
||||
u32 remaining = 96;
|
||||
do {
|
||||
s32 value;
|
||||
u32 phase = lfo->phase & 0xFFFF0000;
|
||||
if (phase != lfo->lastNum) {
|
||||
s32 start, difference;
|
||||
s64 product;
|
||||
lfo->lastNum = phase;
|
||||
phase >>= 16;
|
||||
start = lfo->table[phase];
|
||||
difference = lfo->table[(phase + 1) & 0x7F] - start;
|
||||
product = (s64)start * lfo->depthSamp;
|
||||
value = ((u32)(product >> 32) << 8) | ((u32)product >> 24);
|
||||
product = (s64)difference * lfo->gradFactor;
|
||||
lfo->grad = ((u32)(product >> 32) << 8) | ((u32)product >> 24);
|
||||
}
|
||||
else value = lfo->lastValue + lfo->grad;
|
||||
lfo->lastValue = value;
|
||||
if (lfo->sign != 0) value = -value;
|
||||
lfo->phase += lfo->phaseAdd;
|
||||
if (lfo->phase & 0xFF800000) {
|
||||
lfo->phase &= 0x7FFFFF;
|
||||
lfo->sign ^= 1;
|
||||
}
|
||||
*output++ = value;
|
||||
remaining--;
|
||||
} while (remaining != 0);
|
||||
}
|
||||
@@ -1,9 +1,10 @@
|
||||
#include <revolution/fa.h>
|
||||
#include <revolution/os.h>
|
||||
|
||||
char* __FAVersion = "<< RVL_SDK - FA \trelease build: Apr 20 2010 11:20:14 (0x4199_60831) >>";
|
||||
s32 FAFileSysInitialized;
|
||||
char lbl_81690A00[] = "<< RVL_SDK - FA \trelease build: Apr 20 2010 11:20:14 (0x4199_60831) >>";
|
||||
char* __FAVersion[2] = {lbl_81690A00, NULL};
|
||||
s32 FAInInitializing;
|
||||
s32 FAFileSysInitialized;
|
||||
extern s32 FADiskInitialized;
|
||||
extern s32 pdm_init_diskmanager(s32 config, void* parameter);
|
||||
extern s32 pfstub_init_prfile2(s32 config, void* parameter);
|
||||
@@ -31,6 +32,6 @@ FAError FAInit(int flag) {
|
||||
}
|
||||
}
|
||||
FAInInitializing = 0;
|
||||
OSRegisterVersion(__FAVersion);
|
||||
OSRegisterVersion(__FAVersion[0]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -135,23 +135,35 @@ typedef union PFD_SDDRV_U16_BYTES {
|
||||
u8 bytes[2];
|
||||
} PFD_SDDRV_U16_BYTES;
|
||||
|
||||
static inline void pfd_sddrv_store_le16(u8* field, u16 value) {
|
||||
if (((u32)field & 1) != 0) {
|
||||
field[0] = (u8)value;
|
||||
field[1] = (u8)(value >> 8);
|
||||
} else {
|
||||
*(u16*)field = (u16)((value >> 8) | (value << 8));
|
||||
}
|
||||
}
|
||||
#define pfd_sddrv_store_le16(field, value) \
|
||||
do { \
|
||||
if (((u32)(field) & 1) != 0) { \
|
||||
(field)[0] = (u8)(value); \
|
||||
(field)[1] = (u8)((value) >> 8); \
|
||||
} else { \
|
||||
*(u16*)(field) = (((value) & 0xff) << 8) | (((value) & 0xff00) >> 8); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
static inline void pfd_sddrv_store_le32(u8* field, u32 value) {
|
||||
if (((u32)field & 3) != 0) {
|
||||
field[0] = (u8)value;
|
||||
field[1] = (u8)(value >> 8);
|
||||
field[2] = (u8)(value >> 16);
|
||||
field[3] = (u8)(value >> 24);
|
||||
} else {
|
||||
*(u32*)field = (value << 24) | ((value & 0xff00) << 8) | ((value >> 8) & 0xff00) | (value >> 24);
|
||||
#define pfd_sddrv_store_le32(field, value) \
|
||||
do { \
|
||||
if (((u32)(field) & 3) != 0) { \
|
||||
(field)[0] = (u8)(value); \
|
||||
(field)[1] = (u8)((value) >> 8); \
|
||||
(field)[2] = (u8)((value) >> 16); \
|
||||
(field)[3] = (u8)((value) >> 24); \
|
||||
} else { \
|
||||
*(u32*)(field) = (((value) & 0xff) << 24 | ((value) & 0xff00) << 8) | \
|
||||
(((value) & 0xff000000) >> 24 | ((value) & 0xff0000) >> 8); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
static inline void pfd_sddrv_copy_bytes(u8* destination, const u8* source, u32 size) {
|
||||
u32 index;
|
||||
if (destination != 0 && source != 0) {
|
||||
for (index = 0; index < size; index++) {
|
||||
destination[index] = source[index];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -316,11 +328,11 @@ s32 pfd_sddrv_init(FADisk* disk) {
|
||||
OSReport("ERR Failed to get sd card status. [ret = 0x%x]\n", sd_result);
|
||||
return 21;
|
||||
}
|
||||
if ((status & 1) != 0) {
|
||||
if ((status & 1) == 1) {
|
||||
g_pfd_sddrv_info.media_inserted = 1;
|
||||
}
|
||||
g_pfd_sddrv_info.device = device;
|
||||
if (g_pfd_sddrv_info.media_inserted != 0) {
|
||||
if (g_pfd_sddrv_info.media_inserted == 1) {
|
||||
g_event = 2;
|
||||
sd_result = ISD_RegisterDeviceIntrHandler(device, (SDDevIntrCallback)pfd_st_removal_callback, &g_event);
|
||||
if (sd_result != 0) {
|
||||
@@ -456,7 +468,7 @@ s32 pfd_sddrv_finalize(FADisk* disk) {
|
||||
if (disk == 0) {
|
||||
return -30;
|
||||
}
|
||||
if ((g_pfd_sddrv_info.flags & 2) != 0) {
|
||||
if ((g_pfd_sddrv_info.flags & 2) == 2) {
|
||||
clear_mount_flag();
|
||||
}
|
||||
if ((g_pfd_sddrv_info.flags & 1) != 0) {
|
||||
@@ -471,8 +483,7 @@ s32 pfd_sddrv_finalize(FADisk* disk) {
|
||||
g_pfd_sddrv_info.device = 0;
|
||||
}
|
||||
g_pfd_sddrv_info.flags = g_pfd_sddrv_info.flags & 0xfffffffe;
|
||||
g_pfd_sddrv_info.media_inserted = 0;
|
||||
g_pfd_sddrv_info.media_ejected = 0;
|
||||
g_pfd_sddrv_info.media_inserted = g_pfd_sddrv_info.media_ejected = 0;
|
||||
g_pfd_sddrv_info.disk = 0;
|
||||
g_pfd_sddrv_info.drive = 0;
|
||||
return 0;
|
||||
@@ -718,14 +729,8 @@ s32 pfd_sddrv_get_total_sectors(u32* sectors, u16* bytes_per_sector) {
|
||||
c_size = (((csd[2] & 3) << 10 | csd[1] >> 22) + 1);
|
||||
cluster_blocks = c_size * read_block_size;
|
||||
multiplier = (csd[2] >> 8) & 0xf;
|
||||
minimum_multiplier = 9;
|
||||
if (multiplier >= 9) {
|
||||
minimum_multiplier = multiplier;
|
||||
}
|
||||
max_multiplier = 11;
|
||||
if (minimum_multiplier <= 11) {
|
||||
max_multiplier = minimum_multiplier;
|
||||
}
|
||||
minimum_multiplier = multiplier >= 9 ? multiplier : 9;
|
||||
max_multiplier = minimum_multiplier <= 11 ? minimum_multiplier : 11;
|
||||
multiplier_factor = 1 << (u16)(max_multiplier - 9);
|
||||
*sectors = cluster_blocks * multiplier_factor;
|
||||
} else {
|
||||
@@ -739,112 +744,113 @@ s32 pfd_sddrv_calc_mbr_bpb(PFD_SDDRV_FORMAT_DATA* format_data) {
|
||||
const PFD_SDDRV_SIZE_DEPEND* size_entry;
|
||||
PFD_SDDRV_SIZE_SETTINGS settings;
|
||||
u32 entry_index;
|
||||
u32 requested_sectors;
|
||||
u32 fat_entry_bits;
|
||||
u32 fat_sectors;
|
||||
u32 next_fat_sectors;
|
||||
u64 total_sectors;
|
||||
u64 reserved_sectors;
|
||||
u64 fixed_sectors;
|
||||
u64 start_sector;
|
||||
u64 current_start;
|
||||
u64 clusters;
|
||||
u64 cluster_count_plus_one;
|
||||
u64 candidate_fat_sectors;
|
||||
u32 total_sectors;
|
||||
u8 sectors_per_cluster;
|
||||
u32 reserved_sectors;
|
||||
u32 fixed_sectors;
|
||||
u32 start_sector;
|
||||
u32 current_start;
|
||||
u32 clusters;
|
||||
u32 candidate_fat_sectors;
|
||||
u32 reserve_count;
|
||||
int moved_start;
|
||||
int moved_start = 0;
|
||||
s32 result;
|
||||
OSCalendarTime current_time;
|
||||
|
||||
if (format_data == 0) {
|
||||
return -30;
|
||||
}
|
||||
pf_memset(&settings, 0, 0x10);
|
||||
pf_memset(&settings, 0, sizeof(settings));
|
||||
requested_sectors = format_data->total_sectors;
|
||||
size_entry = sddrv_size_depend_tbl;
|
||||
for (entry_index = 0; entry_index < 14; entry_index++, size_entry++) {
|
||||
if (size_entry->min_sectors < format_data->total_sectors && format_data->total_sectors <= size_entry->max_sectors) {
|
||||
settings.reserved_sectors = size_entry->reserved_sectors;
|
||||
settings.fat_copies = size_entry->fat_copies;
|
||||
settings.root_entries = size_entry->root_entries;
|
||||
settings.sectors_per_cluster = size_entry->sectors_per_cluster;
|
||||
for (entry_index = 0; entry_index < 14; size_entry++, entry_index++) {
|
||||
if (size_entry->min_sectors < requested_sectors && size_entry->max_sectors >= requested_sectors) {
|
||||
settings.reserved_sectors = sddrv_size_depend_tbl[entry_index].reserved_sectors;
|
||||
settings.fat_copies = sddrv_size_depend_tbl[entry_index].fat_copies;
|
||||
settings.root_entries = sddrv_size_depend_tbl[entry_index].root_entries;
|
||||
settings.sectors_per_cluster = sddrv_size_depend_tbl[entry_index].sectors_per_cluster;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (entry_index == 14) {
|
||||
result = entry_index == 14 ? -30 : 0;
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to get values with total sectors. pfd_sddrv_get_value_with_total_sectors()\n");
|
||||
return -30;
|
||||
return result;
|
||||
}
|
||||
format_data->sectors_per_cluster = settings.sectors_per_cluster;
|
||||
sectors_per_cluster = settings.sectors_per_cluster;
|
||||
format_data->sectors_per_cluster = sectors_per_cluster;
|
||||
total_sectors = format_data->total_sectors;
|
||||
clusters = total_sectors / settings.sectors_per_cluster;
|
||||
if (total_sectors % settings.sectors_per_cluster != 0) {
|
||||
clusters++;
|
||||
}
|
||||
clusters = total_sectors / sectors_per_cluster;
|
||||
if (clusters < 0x1005) {
|
||||
fat_entry_bits = 12;
|
||||
} else {
|
||||
if (clusters > 0xfff4) {
|
||||
return -31;
|
||||
}
|
||||
} else if (clusters < 0xfff5) {
|
||||
fat_entry_bits = 16;
|
||||
} else {
|
||||
return -31;
|
||||
}
|
||||
if (total_sectors % sectors_per_cluster != 0) {
|
||||
clusters++;
|
||||
}
|
||||
candidate_fat_sectors = clusters * fat_entry_bits;
|
||||
fat_sectors = (u32)(candidate_fat_sectors >> 12);
|
||||
fat_sectors = candidate_fat_sectors >> 12;
|
||||
if ((candidate_fat_sectors & 0xfff) != 0) {
|
||||
fat_sectors++;
|
||||
}
|
||||
reserved_sectors = settings.reserved_sectors;
|
||||
for (;;) {
|
||||
u64 previous_fat_sectors = fat_sectors;
|
||||
fixed_sectors = previous_fat_sectors * 2 + 0x21;
|
||||
fixed_sectors = fat_sectors * 2 + 0x21;
|
||||
reserve_count = 1;
|
||||
current_start = reserved_sectors;
|
||||
do {
|
||||
for (;;) {
|
||||
start_sector = current_start - fixed_sectors;
|
||||
if ((s64)start_sector >= 1) {
|
||||
if ((s32)start_sector > 0) {
|
||||
break;
|
||||
}
|
||||
reserve_count++;
|
||||
current_start += reserved_sectors;
|
||||
} while (1);
|
||||
current_start = (u64)reserve_count * reserved_sectors;
|
||||
start_sector = current_start - fixed_sectors;
|
||||
moved_start = 0;
|
||||
reserve_count++;
|
||||
}
|
||||
current_start = reserve_count * reserved_sectors;
|
||||
for (;;) {
|
||||
for (;;) {
|
||||
if (!moved_start && reserved_sectors != (u32)start_sector) {
|
||||
start_sector += reserved_sectors;
|
||||
}
|
||||
moved_start = 0;
|
||||
clusters = ((total_sectors - start_sector) - fixed_sectors) / settings.sectors_per_cluster;
|
||||
cluster_count_plus_one = clusters + 1;
|
||||
if (cluster_count_plus_one >= 0xfe5 && cluster_count_plus_one <= 0x1004) {
|
||||
break;
|
||||
}
|
||||
if (moved_start == 0 && reserved_sectors != start_sector) {
|
||||
start_sector += reserved_sectors;
|
||||
}
|
||||
moved_start = 0;
|
||||
clusters = (total_sectors - start_sector - fixed_sectors) / sectors_per_cluster + 1;
|
||||
if (clusters >= 0xfe5 && clusters < 0x1005) {
|
||||
current_start += reserved_sectors;
|
||||
start_sector = current_start - fixed_sectors;
|
||||
continue;
|
||||
}
|
||||
candidate_fat_sectors = clusters * fat_entry_bits + 2;
|
||||
next_fat_sectors = (u32)(candidate_fat_sectors >> 12);
|
||||
candidate_fat_sectors = (clusters - 1) * fat_entry_bits + 2;
|
||||
next_fat_sectors = candidate_fat_sectors >> 12;
|
||||
if ((candidate_fat_sectors & 0xfff) != 0) {
|
||||
next_fat_sectors++;
|
||||
}
|
||||
if (next_fat_sectors <= previous_fat_sectors) {
|
||||
if (next_fat_sectors <= fat_sectors) {
|
||||
break;
|
||||
}
|
||||
start_sector += reserved_sectors;
|
||||
moved_start = 1;
|
||||
}
|
||||
fat_sectors = next_fat_sectors;
|
||||
if (fat_sectors == previous_fat_sectors) {
|
||||
if (next_fat_sectors == fat_sectors) {
|
||||
break;
|
||||
}
|
||||
fat_sectors = next_fat_sectors;
|
||||
}
|
||||
format_data->sectors_per_fat = fat_sectors;
|
||||
format_data->partition_start_sector = (u32)start_sector;
|
||||
format_data->partition_sector_count = format_data->total_sectors - (u32)start_sector;
|
||||
if (((format_data->partition_sector_count - (fat_sectors * 2 + 0x21)) / format_data->sectors_per_cluster + 1) < 0xff5) {
|
||||
format_data->partition_start_sector = start_sector;
|
||||
format_data->partition_sector_count = format_data->total_sectors - start_sector;
|
||||
clusters = (format_data->partition_sector_count - (fat_sectors * 2 + 0x21)) / format_data->sectors_per_cluster + 1;
|
||||
if (clusters < 0xff5) {
|
||||
format_data->fat_type = 0;
|
||||
} else {
|
||||
} else if (clusters >= 0xff5) {
|
||||
format_data->fat_type = 1;
|
||||
} else {
|
||||
return -31;
|
||||
}
|
||||
OSTicksToCalendarTime(OSGetTime(), ¤t_time);
|
||||
format_data->volume_serial_number = ((((current_time.year - 1900) & 0x7f) << 9) |
|
||||
@@ -856,48 +862,58 @@ s32 pfd_sddrv_calc_mbr_bpb(PFD_SDDRV_FORMAT_DATA* format_data) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
s32 pfd_sddrv_store_bpb_buf(PFD_SDDRV_FORMAT_DATA* format_data, u8* sector_buffer) {
|
||||
const PFD_SDDRV_SIZE_DEPEND* size_entry;
|
||||
PFD_SDDRV_SIZE_SETTINGS settings;
|
||||
PFD_SDDRV_BPB* boot_sector;
|
||||
u32 entry_index;
|
||||
u32 sectors_16;
|
||||
u32 requested_sectors;
|
||||
u16 sectors_16;
|
||||
s32 result;
|
||||
u32 sectors_32;
|
||||
|
||||
if (format_data == 0 || sector_buffer == 0) {
|
||||
if (format_data == 0) {
|
||||
return -30;
|
||||
}
|
||||
size_entry = sddrv_size_depend_tbl;
|
||||
pf_memset(&settings, 0, 0x10);
|
||||
for (entry_index = 0; entry_index < 14; entry_index++, size_entry++) {
|
||||
if (size_entry->min_sectors < format_data->total_sectors && format_data->total_sectors <= size_entry->max_sectors) {
|
||||
settings.reserved_sectors = size_entry->reserved_sectors;
|
||||
settings.fat_copies = size_entry->fat_copies;
|
||||
settings.root_entries = size_entry->root_entries;
|
||||
settings.sectors_per_cluster = size_entry->sectors_per_cluster;
|
||||
requested_sectors = format_data->total_sectors;
|
||||
size_entry = sddrv_size_depend_tbl;
|
||||
for (entry_index = 0; entry_index < 14; size_entry++, entry_index++) {
|
||||
if (size_entry->min_sectors < requested_sectors && size_entry->max_sectors >= requested_sectors) {
|
||||
settings.reserved_sectors = sddrv_size_depend_tbl[entry_index].reserved_sectors;
|
||||
settings.fat_copies = sddrv_size_depend_tbl[entry_index].fat_copies;
|
||||
settings.root_entries = sddrv_size_depend_tbl[entry_index].root_entries;
|
||||
settings.sectors_per_cluster = sddrv_size_depend_tbl[entry_index].sectors_per_cluster;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (entry_index == 14) {
|
||||
result = entry_index == 14 ? -30 : 0;
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to get values with total sectors. pfd_sddrv_get_value_with_total_sectors()\n");
|
||||
return -30;
|
||||
return result;
|
||||
}
|
||||
if (format_data->partition_sector_count == 0) {
|
||||
return -30;
|
||||
}
|
||||
if (format_data->partition_sector_count <= 0xffff) {
|
||||
sectors_16 = format_data->partition_sector_count;
|
||||
sectors_32 = format_data->partition_sector_count;
|
||||
if (sectors_32 != 0 && sectors_32 < 0x10000) {
|
||||
sectors_16 = sectors_32;
|
||||
sectors_32 = 0;
|
||||
} else {
|
||||
} else if (sectors_32 >= 0x10000) {
|
||||
sectors_16 = 0;
|
||||
sectors_32 = format_data->partition_sector_count;
|
||||
} else {
|
||||
return -30;
|
||||
}
|
||||
pf_memset(sector_buffer, 0, 0x200);
|
||||
boot_sector = (PFD_SDDRV_BPB*)sector_buffer;
|
||||
pfd_sddrv_copy_bytes(boot_sector->oem_name, (const u8*)" ", 8);
|
||||
pfd_sddrv_copy_bytes(boot_sector->volume_label, (const u8*)"NO NAME ", 11);
|
||||
if (format_data->fat_type == 0) {
|
||||
pfd_sddrv_copy_bytes(boot_sector->file_system_type, (const u8*)"FAT12 ", 8);
|
||||
} else {
|
||||
pfd_sddrv_copy_bytes(boot_sector->file_system_type, (const u8*)"FAT16 ", 8);
|
||||
}
|
||||
boot_sector->jump[0] = 0xeb;
|
||||
boot_sector->jump[1] = 0;
|
||||
boot_sector->jump[2] = 0x90;
|
||||
pf_memcpy(boot_sector->oem_name, " ", 8);
|
||||
pfd_sddrv_store_le16(boot_sector->bytes_per_sector, 0x200);
|
||||
boot_sector->sectors_per_cluster = format_data->sectors_per_cluster;
|
||||
pfd_sddrv_store_le16(boot_sector->reserved_sector_count, 1);
|
||||
@@ -913,13 +929,8 @@ s32 pfd_sddrv_store_bpb_buf(PFD_SDDRV_FORMAT_DATA* format_data, u8* sector_buffe
|
||||
boot_sector->drive_number = 0x80;
|
||||
boot_sector->extended_signature = 0x29;
|
||||
pfd_sddrv_store_le32(boot_sector->volume_serial_number, format_data->volume_serial_number);
|
||||
pf_memcpy(boot_sector->volume_label, "NO NAME ", 11);
|
||||
if (format_data->fat_type == 0) {
|
||||
pf_memcpy(boot_sector->file_system_type, "FAT12 ", 8);
|
||||
} else {
|
||||
pf_memcpy(boot_sector->file_system_type, "FAT16 ", 8);
|
||||
}
|
||||
pfd_sddrv_store_le16(boot_sector->signature, 0xaa55);
|
||||
boot_sector->signature[0] = 0x55;
|
||||
boot_sector->signature[1] = 0xaa;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -929,51 +940,65 @@ s32 pfd_sddrv_store_mbr_buf(PFD_SDDRV_FORMAT_DATA* format_data, u8* sector_buffe
|
||||
PFD_SDDRV_MBR* master_boot_record;
|
||||
PFD_SDDRV_PARTITION_ENTRY* partition;
|
||||
u32 entry_index;
|
||||
u32 requested_sectors;
|
||||
s32 result;
|
||||
u8 start_head;
|
||||
u8 end_head;
|
||||
u8 partition_type;
|
||||
u32 sectors_per_cylinder;
|
||||
u32 start_cylinder;
|
||||
u32 end_cylinder;
|
||||
u32 start_sector;
|
||||
u32 end_sector;
|
||||
u16 start_cylinder;
|
||||
u16 end_cylinder;
|
||||
u16 start_sector;
|
||||
u16 end_sector;
|
||||
|
||||
if (format_data == 0 || sector_buffer == 0) {
|
||||
if (format_data == 0) {
|
||||
return -30;
|
||||
}
|
||||
size_entry = sddrv_size_depend_tbl;
|
||||
pf_memset(&settings, 0, 0x10);
|
||||
for (entry_index = 0; entry_index < 14; entry_index++, size_entry++) {
|
||||
if (size_entry->min_sectors < format_data->total_sectors && format_data->total_sectors <= size_entry->max_sectors) {
|
||||
settings.reserved_sectors = size_entry->reserved_sectors;
|
||||
settings.fat_copies = size_entry->fat_copies;
|
||||
settings.root_entries = size_entry->root_entries;
|
||||
settings.sectors_per_cluster = size_entry->sectors_per_cluster;
|
||||
requested_sectors = format_data->total_sectors;
|
||||
size_entry = sddrv_size_depend_tbl;
|
||||
for (entry_index = 0; entry_index < 14; size_entry++, entry_index++) {
|
||||
if (size_entry->min_sectors < requested_sectors && size_entry->max_sectors >= requested_sectors) {
|
||||
settings.reserved_sectors = sddrv_size_depend_tbl[entry_index].reserved_sectors;
|
||||
settings.fat_copies = sddrv_size_depend_tbl[entry_index].fat_copies;
|
||||
settings.root_entries = sddrv_size_depend_tbl[entry_index].root_entries;
|
||||
settings.sectors_per_cluster = sddrv_size_depend_tbl[entry_index].sectors_per_cluster;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (entry_index == 14 || format_data->partition_sector_count == 0) {
|
||||
return -30;
|
||||
result = entry_index == 14 ? -30 : 0;
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to get values with total sectors. pfd_sddrv_get_value_with_total_sectors()\n");
|
||||
return result;
|
||||
}
|
||||
sectors_per_cylinder = settings.fat_copies * settings.root_entries;
|
||||
start_cylinder = format_data->partition_start_sector / sectors_per_cylinder;
|
||||
end_cylinder = (format_data->total_sectors - 1) / sectors_per_cylinder;
|
||||
start_sector = format_data->partition_start_sector % settings.root_entries + 1;
|
||||
end_sector = (format_data->total_sectors - 1) % settings.root_entries + 1;
|
||||
start_head = (format_data->partition_start_sector % sectors_per_cylinder) / settings.root_entries;
|
||||
end_head = ((format_data->total_sectors - 1) % sectors_per_cylinder) / settings.root_entries;
|
||||
if (format_data->partition_sector_count == 0) {
|
||||
return -30;
|
||||
}
|
||||
if (format_data->partition_sector_count != 0 && format_data->partition_sector_count < 0x7fa8) {
|
||||
partition_type = 1;
|
||||
} else if (format_data->partition_sector_count >= 0x7fa8 && format_data->partition_sector_count < 0x10000) {
|
||||
partition_type = 4;
|
||||
} else {
|
||||
partition_type = 6;
|
||||
}
|
||||
pf_memset(sector_buffer, 0, 0x200);
|
||||
master_boot_record = (PFD_SDDRV_MBR*)sector_buffer;
|
||||
partition = &master_boot_record->partitions[0];
|
||||
partition->boot_indicator = 0;
|
||||
partition->start_head = (format_data->partition_start_sector / settings.root_entries) % settings.fat_copies;
|
||||
partition->start_sector_cylinder[0] = (u8)((start_sector & 0x3f) | ((start_cylinder >> 2) & 0xc0));
|
||||
partition->start_sector_cylinder[1] = (u8)start_cylinder;
|
||||
if (format_data->partition_sector_count < 0x7fa8) {
|
||||
partition->partition_type = 1;
|
||||
} else if (format_data->partition_sector_count > 0xffff) {
|
||||
partition->partition_type = 6;
|
||||
} else {
|
||||
partition->partition_type = 4;
|
||||
}
|
||||
partition->end_head = ((format_data->total_sectors - 1) / settings.root_entries) % settings.fat_copies;
|
||||
partition->end_sector_cylinder[0] = (u8)((end_sector & 0x3f) | ((end_cylinder >> 2) & 0xc0));
|
||||
partition->end_sector_cylinder[1] = (u8)end_cylinder;
|
||||
partition->start_head = start_head;
|
||||
pfd_sddrv_store_le16(partition->start_sector_cylinder,
|
||||
((start_cylinder & 0xff) << 8) + ((start_sector & 0x3f) | ((start_cylinder & 0x300) >> 2)));
|
||||
partition->partition_type = partition_type;
|
||||
partition->end_head = end_head;
|
||||
pfd_sddrv_store_le16(partition->end_sector_cylinder,
|
||||
((end_cylinder & 0xff) << 8) + ((end_sector & 0x3f) | ((end_cylinder & 0x300) >> 2)));
|
||||
pfd_sddrv_store_le32(partition->first_sector, format_data->partition_start_sector);
|
||||
pfd_sddrv_store_le32(partition->sector_count, format_data->partition_sector_count);
|
||||
master_boot_record->signature[0] = 0x55;
|
||||
@@ -1035,6 +1060,7 @@ s32 pfd_sddrv_calc_fat32_mbr_bpb(PFD_SDDRV_FORMAT_DATA* format_data) {
|
||||
u32 fat_sectors;
|
||||
u32 cluster_count;
|
||||
u32 entry_index;
|
||||
u32 requested_sectors;
|
||||
const PFD_SDDRV_SIZE_DEPEND* size_entry;
|
||||
PFD_SDDRV_SIZE_SETTINGS settings;
|
||||
u32 reserved_sectors = 0;
|
||||
@@ -1053,13 +1079,14 @@ s32 pfd_sddrv_calc_fat32_mbr_bpb(PFD_SDDRV_FORMAT_DATA* format_data) {
|
||||
return -30;
|
||||
}
|
||||
pf_memset(&settings, 0, 0x10);
|
||||
requested_sectors = format_data->total_sectors;
|
||||
total_sectors = format_data->total_sectors;
|
||||
size_entry = sddrv_size_depend_tbl;
|
||||
for (entry_index = 0; entry_index < 14; entry_index++, size_entry++) {
|
||||
if (size_entry->min_sectors >= total_sectors) {
|
||||
for (entry_index = 0; entry_index < 14; size_entry++, entry_index++) {
|
||||
if (size_entry->min_sectors >= requested_sectors) {
|
||||
continue;
|
||||
}
|
||||
if (size_entry->max_sectors < total_sectors) {
|
||||
if (size_entry->max_sectors < requested_sectors) {
|
||||
continue;
|
||||
}
|
||||
settings.reserved_sectors = sddrv_size_depend_tbl[entry_index].reserved_sectors;
|
||||
@@ -1075,9 +1102,10 @@ s32 pfd_sddrv_calc_fat32_mbr_bpb(PFD_SDDRV_FORMAT_DATA* format_data) {
|
||||
}
|
||||
sectors_per_cluster = settings.sectors_per_cluster;
|
||||
format_data->sectors_per_cluster = sectors_per_cluster;
|
||||
total_sectors = format_data->total_sectors;
|
||||
cluster_count = total_sectors / sectors_per_cluster;
|
||||
fat_sectors = (cluster_count >> 7) & 0xfffff;
|
||||
if ((cluster_count & 0x7f) != 0) {
|
||||
if ((cluster_count * 32 & 0xfe0) != 0) {
|
||||
fat_sectors++;
|
||||
}
|
||||
fat_sector_count = fat_sectors * 2;
|
||||
@@ -1099,7 +1127,7 @@ s32 pfd_sddrv_calc_fat32_mbr_bpb(PFD_SDDRV_FORMAT_DATA* format_data) {
|
||||
for (;;) {
|
||||
cluster_count = (available_sectors - data_start_sector) / sectors_per_cluster + 2;
|
||||
calculated_fat_sectors = (cluster_count >> 7) & 0xfffff;
|
||||
if ((cluster_count & 0x7f) != 0) {
|
||||
if ((cluster_count * 32 & 0xfe0) != 0) {
|
||||
calculated_fat_sectors++;
|
||||
}
|
||||
if (calculated_fat_sectors <= fat_sectors) {
|
||||
@@ -1138,23 +1166,26 @@ s32 pfd_sddrv_store_fat32_mbr_buf(PFD_SDDRV_FORMAT_DATA* format_data, u8* sector
|
||||
PFD_SDDRV_MBR* master_boot_record;
|
||||
PFD_SDDRV_PARTITION_ENTRY* partition;
|
||||
u32 entry_index;
|
||||
u32 requested_sectors;
|
||||
s32 result;
|
||||
u32 cylinder_size;
|
||||
u32 start_cylinder;
|
||||
u32 start_head;
|
||||
u32 start_sector;
|
||||
u32 end_cylinder;
|
||||
u32 end_head;
|
||||
u32 end_sector;
|
||||
u16 start_cylinder;
|
||||
u8 start_head;
|
||||
u16 start_sector;
|
||||
u16 end_cylinder;
|
||||
u8 end_head;
|
||||
u16 end_sector;
|
||||
u32 partition_end;
|
||||
u8 partition_type;
|
||||
|
||||
if (format_data == 0 || sector_buffer == 0) {
|
||||
if (format_data == 0) {
|
||||
return -30;
|
||||
}
|
||||
pf_memset(&settings, 0, 0x10);
|
||||
requested_sectors = format_data->total_sectors;
|
||||
size_entry = sddrv_size_depend_tbl;
|
||||
for (entry_index = 0; entry_index < 14; size_entry++, entry_index++) {
|
||||
if (size_entry->min_sectors < format_data->total_sectors && format_data->total_sectors <= size_entry->max_sectors) {
|
||||
if (size_entry->min_sectors < requested_sectors && size_entry->max_sectors >= requested_sectors) {
|
||||
settings.reserved_sectors = sddrv_size_depend_tbl[entry_index].reserved_sectors;
|
||||
settings.fat_copies = sddrv_size_depend_tbl[entry_index].fat_copies;
|
||||
settings.root_entries = sddrv_size_depend_tbl[entry_index].root_entries;
|
||||
@@ -1162,9 +1193,10 @@ s32 pfd_sddrv_store_fat32_mbr_buf(PFD_SDDRV_FORMAT_DATA* format_data, u8* sector
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (entry_index == 14) {
|
||||
result = entry_index == 14 ? -30 : 0;
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to get values with total sectors. pfd_sddrv_get_value_with_total_sectors()\n");
|
||||
return -30;
|
||||
return result;
|
||||
}
|
||||
cylinder_size = settings.fat_copies * settings.root_entries;
|
||||
partition_end = format_data->total_sectors - 1;
|
||||
@@ -1194,11 +1226,11 @@ s32 pfd_sddrv_store_fat32_mbr_buf(PFD_SDDRV_FORMAT_DATA* format_data, u8* sector
|
||||
partition->boot_indicator = 0;
|
||||
partition->start_head = (u8)start_head;
|
||||
pfd_sddrv_store_le16(partition->start_sector_cylinder,
|
||||
(u16)((start_cylinder << 8) | ((start_sector & 0x3f) | ((start_cylinder >> 2) & 0xc0))));
|
||||
((start_cylinder & 0xff) << 8) + ((start_sector & 0x3f) | ((start_cylinder & 0x300) >> 2)));
|
||||
partition->partition_type = partition_type;
|
||||
partition->end_head = (u8)end_head;
|
||||
pfd_sddrv_store_le16(partition->end_sector_cylinder,
|
||||
(u16)((end_cylinder << 8) | ((end_sector & 0x3f) | ((end_cylinder >> 2) & 0xc0))));
|
||||
((end_cylinder & 0xff) << 8) + ((end_sector & 0x3f) | ((end_cylinder & 0x300) >> 2)));
|
||||
pfd_sddrv_store_le32(partition->first_sector, format_data->partition_start_sector);
|
||||
pfd_sddrv_store_le32(partition->sector_count, format_data->partition_sector_count);
|
||||
pfd_sddrv_store_le16(master_boot_record->signature, 0xaa55);
|
||||
@@ -1258,36 +1290,40 @@ s32 pfd_sddrv_store_fat32_bpb_buf(PFD_SDDRV_FORMAT_DATA* format_data, u8* sector
|
||||
const PFD_SDDRV_SIZE_DEPEND* size_entry;
|
||||
PFD_SDDRV_FAT32_BPB* boot_sector;
|
||||
u32 entry_index;
|
||||
u32 sector_value;
|
||||
u32 requested_sectors;
|
||||
s32 result;
|
||||
|
||||
if (format_data == 0 || sector_buffer == 0) {
|
||||
if (format_data == 0) {
|
||||
return -30;
|
||||
}
|
||||
pf_memset(&settings, 0, 0x10);
|
||||
requested_sectors = format_data->total_sectors;
|
||||
size_entry = sddrv_size_depend_tbl;
|
||||
for (entry_index = 0; entry_index < 14; entry_index++, size_entry++) {
|
||||
if (size_entry->min_sectors < format_data->total_sectors && format_data->total_sectors <= size_entry->max_sectors) {
|
||||
settings.reserved_sectors = size_entry->reserved_sectors;
|
||||
settings.fat_copies = size_entry->fat_copies;
|
||||
settings.root_entries = size_entry->root_entries;
|
||||
settings.sectors_per_cluster = size_entry->sectors_per_cluster;
|
||||
for (entry_index = 0; entry_index < 14; size_entry++, entry_index++) {
|
||||
if (size_entry->min_sectors < requested_sectors && size_entry->max_sectors >= requested_sectors) {
|
||||
settings.reserved_sectors = sddrv_size_depend_tbl[entry_index].reserved_sectors;
|
||||
settings.fat_copies = sddrv_size_depend_tbl[entry_index].fat_copies;
|
||||
settings.root_entries = sddrv_size_depend_tbl[entry_index].root_entries;
|
||||
settings.sectors_per_cluster = sddrv_size_depend_tbl[entry_index].sectors_per_cluster;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (entry_index == 14) {
|
||||
result = entry_index == 14 ? -30 : 0;
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to get values with total sectors. pfd_sddrv_get_value_with_total_sectors()\n");
|
||||
return -30;
|
||||
return result;
|
||||
}
|
||||
pf_memset(sector_buffer, 0, 0x200);
|
||||
boot_sector = (PFD_SDDRV_FAT32_BPB*)sector_buffer;
|
||||
pfd_sddrv_copy_bytes(boot_sector->oem_name, (const u8*)" ", 8);
|
||||
pfd_sddrv_copy_bytes(boot_sector->volume_label, (const u8*)"NO NAME ", 11);
|
||||
pfd_sddrv_copy_bytes(boot_sector->filesystem_type, (const u8*)"FAT32 ", 8);
|
||||
boot_sector->jump[0] = 0xeb;
|
||||
boot_sector->jump[1] = 0;
|
||||
boot_sector->jump[2] = 0x90;
|
||||
pf_memcpy(boot_sector->oem_name, " ", 8);
|
||||
pfd_sddrv_store_le16(boot_sector->bytes_per_sector, 0x200);
|
||||
boot_sector->sectors_per_cluster = format_data->sectors_per_cluster;
|
||||
sector_value = format_data->reserved_sectors;
|
||||
pfd_sddrv_store_le16(boot_sector->reserved_sector_count, (u16)sector_value);
|
||||
pfd_sddrv_store_le16(boot_sector->reserved_sector_count, format_data->reserved_sectors);
|
||||
boot_sector->fat_count = 2;
|
||||
pfd_sddrv_store_le16(boot_sector->root_entry_count, 0);
|
||||
pfd_sddrv_store_le16(boot_sector->total_sectors_16, 0);
|
||||
@@ -1306,8 +1342,6 @@ s32 pfd_sddrv_store_fat32_bpb_buf(PFD_SDDRV_FORMAT_DATA* format_data, u8* sector
|
||||
boot_sector->drive_number = 0x80;
|
||||
boot_sector->extended_signature = 0x29;
|
||||
pfd_sddrv_store_le32(boot_sector->volume_serial_number, format_data->volume_serial_number);
|
||||
pf_memcpy(boot_sector->volume_label, "NO NAME ", 11);
|
||||
pf_memcpy(boot_sector->filesystem_type, "FAT32 ", 8);
|
||||
if (((u32)boot_sector->signature & 1) != 0) {
|
||||
boot_sector->signature[0] = 0x55;
|
||||
boot_sector->signature[1] = 0xaa;
|
||||
@@ -1325,11 +1359,11 @@ static s32 pfd_sddrv_store_fat32_reserved_buf(u8* sector_buffer) {
|
||||
}
|
||||
pf_memset(sector_buffer, 0, 0x200);
|
||||
reserved_boot_sector = (PFD_SDDRV_RESERVED_BOOT_SECTOR*)sector_buffer;
|
||||
if (((u32)reserved_boot_sector->signature.bytes & 1) == 0) {
|
||||
reserved_boot_sector->signature.value = 0x55aa;
|
||||
} else {
|
||||
if (((u32)reserved_boot_sector->signature.bytes & 1) != 0) {
|
||||
reserved_boot_sector->signature.bytes[0] = 0x55;
|
||||
reserved_boot_sector->signature.bytes[1] = 0xaa;
|
||||
} else {
|
||||
reserved_boot_sector->signature.value = 0x55aa;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1337,7 +1371,6 @@ static s32 pfd_sddrv_store_fat32_reserved_buf(u8* sector_buffer) {
|
||||
s32 pfd_sddrv_build_fat32_mbr_bpb(u32 total_sectors) {
|
||||
PFD_SDDRV_FORMAT_DATA format_data;
|
||||
s32 result;
|
||||
u32 partition_start_sector;
|
||||
pf_memset(&format_data, 0, 0x20);
|
||||
format_data.total_sectors = total_sectors;
|
||||
result = pfd_sddrv_calc_fat32_mbr_bpb(&format_data);
|
||||
@@ -1350,19 +1383,18 @@ s32 pfd_sddrv_build_fat32_mbr_bpb(u32 total_sectors) {
|
||||
OSReport("ERR Failed to store BPB values to buf. pfd_sddrv_store_fat32_bpb_buf()\n");
|
||||
return result;
|
||||
}
|
||||
partition_start_sector = format_data.partition_start_sector;
|
||||
if (g_pfd_sddrv_info.media_inserted == 0) {
|
||||
return -33;
|
||||
}
|
||||
if (g_pfd_sddrv_info.media_ejected != 0) {
|
||||
return -33;
|
||||
}
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, partition_start_sector, g_pfd_sddrv_buf, 1);
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, format_data.partition_start_sector, g_pfd_sddrv_buf, 1);
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to write BPB fields. ISD_WriteBlock()\n");
|
||||
return -36;
|
||||
}
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, partition_start_sector + 6, g_pfd_sddrv_buf, 1);
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, format_data.partition_start_sector + 6, g_pfd_sddrv_buf, 1);
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to write BPB fields. ISD_WriteBlock()\n");
|
||||
return -36;
|
||||
@@ -1378,12 +1410,12 @@ s32 pfd_sddrv_build_fat32_mbr_bpb(u32 total_sectors) {
|
||||
if (g_pfd_sddrv_info.media_ejected != 0) {
|
||||
return -33;
|
||||
}
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, partition_start_sector + 1, g_pfd_sddrv_buf, 1);
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, format_data.partition_start_sector + 1, g_pfd_sddrv_buf, 1);
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to write BPB fields. ISD_WriteBlock()\n");
|
||||
return -36;
|
||||
}
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, partition_start_sector + 7, g_pfd_sddrv_buf, 1);
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, format_data.partition_start_sector + 7, g_pfd_sddrv_buf, 1);
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to write BPB fields. ISD_WriteBlock()\n");
|
||||
return -36;
|
||||
@@ -1400,12 +1432,12 @@ s32 pfd_sddrv_build_fat32_mbr_bpb(u32 total_sectors) {
|
||||
if (g_pfd_sddrv_info.media_ejected != 0) {
|
||||
return -33;
|
||||
}
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, partition_start_sector + 2, g_pfd_sddrv_buf, 1);
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, format_data.partition_start_sector + 2, g_pfd_sddrv_buf, 1);
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to write BPB fields. ISD_WriteBlock()\n");
|
||||
return -36;
|
||||
}
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, partition_start_sector + 8, g_pfd_sddrv_buf, 1);
|
||||
result = ISD_WriteBlock(g_pfd_sddrv_info.device, format_data.partition_start_sector + 8, g_pfd_sddrv_buf, 1);
|
||||
if (result != 0) {
|
||||
OSReport("ERR Failed to write BPB fields. ISD_WriteBlock()\n");
|
||||
return -36;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -244,8 +244,8 @@ u8 KPRLookAhead(KPRQueue* queue, u16* destination, u32 capacity) {
|
||||
|
||||
BOOL KPRProcessAltKeypad(KPRQueue* queue, u16 character) {
|
||||
if (queue->altVal != 0) {
|
||||
u32 leadingZero = queue->altVal & 0x80000000;
|
||||
u32 accumulator = queue->altVal;
|
||||
u32 leadingZero = accumulator & 0x80000000;
|
||||
u32 value;
|
||||
accumulator &= 0x7FFFFFFF;
|
||||
queue->altVal = accumulator;
|
||||
@@ -273,8 +273,9 @@ BOOL KPRProcessAltKeypad(KPRQueue* queue, u16 character) {
|
||||
value = converted;
|
||||
}
|
||||
{
|
||||
u16* destination;
|
||||
int index = queue->oCount + queue->iCount;
|
||||
u16* destination = &queue->text[index];
|
||||
destination = &queue->text[index];
|
||||
for (; index > queue->oCount; --index, --destination) {
|
||||
*destination = destination[-1];
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -41,8 +41,7 @@ int __nupRegisterAllocator(MEMAllocator* allocator) {
|
||||
} else {
|
||||
if (((MEMHeapHandle)allocator->heap)->magic != 0x45585048) {
|
||||
result = -5011;
|
||||
}
|
||||
if (((MEMHeapHandle)allocator->heap)->magic == 0x45585048) {
|
||||
} else {
|
||||
__mem = allocator;
|
||||
}
|
||||
}
|
||||
|
||||
256
libs/RVL_SDK/src/nup/nup_nhttp.cpp
Normal file
256
libs/RVL_SDK/src/nup/nup_nhttp.cpp
Normal file
@@ -0,0 +1,256 @@
|
||||
#include <revolution/os.h>
|
||||
#include <revolution/ncd.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
namespace nup {
|
||||
void* __nupMalloc(unsigned long size);
|
||||
void __nupFree(void* block);
|
||||
}
|
||||
|
||||
enum NHTTPReqMethod { NHTTP_GET, NHTTP_POST };
|
||||
typedef void (*ProgressCallback)(void*, unsigned long);
|
||||
typedef long (*FlushCallback)(u8*, unsigned long, unsigned long, void*);
|
||||
struct HttpState {
|
||||
int error;
|
||||
unsigned long limit;
|
||||
unsigned long received;
|
||||
ProgressCallback progress;
|
||||
void* progressContext;
|
||||
FlushCallback flush;
|
||||
void* flushContext;
|
||||
void* response;
|
||||
int done;
|
||||
int result;
|
||||
OSTime lastActivity;
|
||||
};
|
||||
struct HttpString {
|
||||
u8* buffer;
|
||||
unsigned long capacity;
|
||||
unsigned long length;
|
||||
unsigned long growth;
|
||||
unsigned long maximumGrowth;
|
||||
};
|
||||
extern "C" {
|
||||
void* NHTTPCreateRequestEx(char*, NHTTPReqMethod, void*, u32, void (*)(int, void*, HttpState*), HttpState*, u8* (*)(u8**, unsigned long*, unsigned long, void*, void*, HttpState*), void (*)(void*));
|
||||
int NHTTPGetError();
|
||||
int NHTTPSetSocketBufferSize(void*, u32);
|
||||
int NHTTPAddHeaderField(void*, const char*, const char*);
|
||||
int NHTTPSetClientCertDefault(void*);
|
||||
int NHTTPSetRootCADefault(void*);
|
||||
int NHTTPSetVerifyOption(void*, u32);
|
||||
int NHTTPSetProxyDefault(void*);
|
||||
int NHTTPAddPostDataRaw(void*, u8*, unsigned long);
|
||||
int NHTTPSendRequestAsync(void*);
|
||||
void NHTTPDeleteRequest(void*);
|
||||
int NHTTPGetProgress(unsigned long*, unsigned long*);
|
||||
int NHTTPGetBodyAll(void*, u8**);
|
||||
int NHTTPGetHeaderAll(void*, char**);
|
||||
void NHTTPCancelRequestAsync(int);
|
||||
void NHTTPDestroyResponse(void*);
|
||||
|
||||
static u8* __nupNhttpBufFull(u8** buffer, unsigned long* length, unsigned long requested, void*, void*, HttpState* state) {
|
||||
u8* next = NULL;
|
||||
if (state->progress != NULL && *length != 0) {
|
||||
state->progress(state->progressContext, *length);
|
||||
}
|
||||
if ((state->received + *length) < state->received) {
|
||||
if (state->error == 0) state->error = -5012;
|
||||
}
|
||||
state->received += *length;
|
||||
if (state->error == 0) {
|
||||
if (state->limit != 0 && state->received > state->limit) {
|
||||
state->error = -5012;
|
||||
goto done;
|
||||
} else {
|
||||
if (*buffer != NULL && state->flush != NULL) {
|
||||
state->error = state->flush(*buffer, *length, requested, state->flushContext);
|
||||
if (state->error != 0) goto done;
|
||||
}
|
||||
next = *buffer;
|
||||
if (next == NULL) {
|
||||
if (requested != 0 && requested < 0x8000) {} else requested = 0x8000;
|
||||
next = (u8*)nup::__nupMalloc(requested);
|
||||
if (next == NULL) {
|
||||
state->error = -5000;
|
||||
goto done;
|
||||
}
|
||||
*length = requested;
|
||||
}
|
||||
if (*length != 0) state->lastActivity = OSGetTime();
|
||||
}
|
||||
}
|
||||
done:
|
||||
if (state->error != 0) {
|
||||
next = NULL;
|
||||
*length = 0;
|
||||
}
|
||||
return next;
|
||||
}
|
||||
static void __nupNhttpBufFree(void* block) {
|
||||
if (block != NULL) nup::__nupFree(block);
|
||||
}
|
||||
static void __nupNhttpReqDone(int result, void* response, HttpState* state) {
|
||||
if (state != NULL) {
|
||||
state->response = response;
|
||||
state->done = 1;
|
||||
state->result = result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static int __nupNhttpOp(char* url, NHTTPReqMethod method, char* headers, u8* body, unsigned long bodyLength, unsigned long limit, ProgressCallback progress, void* progressContext, FlushCallback flush, void* flushContext) {
|
||||
unsigned long transferred, expected;
|
||||
int length;
|
||||
char* responseHeaders = NULL;
|
||||
u8* responseBody = NULL;
|
||||
HttpState state;
|
||||
int status;
|
||||
state.error = 0;
|
||||
state.limit = limit;
|
||||
state.received = 0;
|
||||
state.progress = progress;
|
||||
state.progressContext = progressContext;
|
||||
state.flush = flush;
|
||||
state.flushContext = flushContext;
|
||||
state.response = NULL;
|
||||
state.done = 0;
|
||||
state.result = 0;
|
||||
state.lastActivity = 0;
|
||||
int result = 0;
|
||||
int requestId = 0;
|
||||
char* headerCopy = NULL;
|
||||
void* request = NHTTPCreateRequestEx(url, method, NULL, 0, __nupNhttpReqDone, &state, __nupNhttpBufFull, __nupNhttpBufFree);
|
||||
if (request == NULL) { result = -7000 - NHTTPGetError(); goto cleanup; }
|
||||
if (NHTTPSetSocketBufferSize(request, 0x8000) != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
|
||||
if (headers != NULL) {
|
||||
unsigned long size = strlen(headers) + 1;
|
||||
headerCopy = (char*)nup::__nupMalloc(size);
|
||||
if (headerCopy == NULL) { result = -5000; goto cleanup; }
|
||||
memcpy(headerCopy, headers, size);
|
||||
char* field = headerCopy;
|
||||
while (*field != 0) {
|
||||
char* colon = strchr(field, ':');
|
||||
if (colon == NULL) break;
|
||||
char* end = strstr(colon, "\r\n");
|
||||
if (end == NULL) break;
|
||||
*colon = 0;
|
||||
*end = 0;
|
||||
while (*field && isspace(*field)) field++;
|
||||
do { colon++; } while (*colon && isspace(*colon));
|
||||
if (NHTTPAddHeaderField(request, field, colon) != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
|
||||
field = end + 2;
|
||||
}
|
||||
}
|
||||
if (NHTTPAddHeaderField(request, "Accept", "text/html, image/gif, image/jpeg, */*") != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
|
||||
if (NHTTPAddHeaderField(request, "Content-type", "text/xml; charset=utf-8") != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
|
||||
if (NHTTPAddHeaderField(request, "Connection", "Keep-Alive") != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
|
||||
if (NHTTPSetClientCertDefault(request) != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
|
||||
if (NHTTPSetRootCADefault(request) != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
|
||||
if (NHTTPSetVerifyOption(request, 11) != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
|
||||
NHTTPSetProxyDefault(request);
|
||||
if (method == NHTTP_POST && body != NULL && bodyLength != 0 && NHTTPAddPostDataRaw(request, body, bodyLength) != 0) { result = -7000 - NHTTPGetError(); goto cleanup; }
|
||||
requestId = NHTTPSendRequestAsync(request);
|
||||
if (requestId < 0) {
|
||||
int error = NHTTPGetError();
|
||||
NHTTPDeleteRequest(request);
|
||||
result = -7000 - error;
|
||||
goto cleanup;
|
||||
}
|
||||
state.lastActivity = OSGetTime();
|
||||
for (;;) {
|
||||
if (NHTTPGetProgress(&expected, &transferred) != 0 && state.done != 0) {
|
||||
if (state.result != 0) { result = -7000 - state.result; goto cleanup; }
|
||||
if (state.response != NULL) {
|
||||
length = NHTTPGetBodyAll(state.response, &responseBody);
|
||||
if (length < 0) { result = -5007; goto cleanup; }
|
||||
__nupNhttpBufFull(&responseBody, (unsigned long*)&length, 0, NULL, NULL, &state);
|
||||
}
|
||||
result = state.error;
|
||||
if (result != 0 || state.response == NULL) goto cleanup;
|
||||
length = NHTTPGetHeaderAll(state.response, &responseHeaders);
|
||||
if (length < 0) { result = -5007; goto cleanup; }
|
||||
char* protocol = strstr(responseHeaders, "HTTP/");
|
||||
if (protocol != NULL && sscanf(protocol, "HTTP/%*d.%*d %d", &status) == 1) {
|
||||
if (status != 200 && status != 202) result = -5000 - status;
|
||||
goto cleanup;
|
||||
}
|
||||
result = -5007;
|
||||
goto cleanup;
|
||||
}
|
||||
if (OSGetTime() - state.lastActivity >= OSMillisecondsToTicks(90000)) break;
|
||||
NCDSleep(OSMillisecondsToTicks(100));
|
||||
}
|
||||
if (requestId >= 0) {
|
||||
NHTTPCancelRequestAsync(requestId);
|
||||
NCDSleep(OSMillisecondsToTicks(100));
|
||||
}
|
||||
result = -5009;
|
||||
cleanup:
|
||||
if (state.response != NULL || result == -5009) NHTTPDestroyResponse(state.response);
|
||||
if (headerCopy != NULL) nup::__nupFree(headerCopy);
|
||||
return result;
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
static long __nupHttpStringFlush(u8* data, unsigned long length, unsigned long requested, void* context) {
|
||||
HttpString* text = (HttpString*)context;
|
||||
unsigned long total;
|
||||
total = length + text->length;
|
||||
long result = 0;
|
||||
if (total > text->capacity) {
|
||||
if (requested >= total) {} else {
|
||||
requested = text->growth + total;
|
||||
text->growth <<= 1;
|
||||
if (text->growth < text->maximumGrowth) {} else text->growth = text->maximumGrowth;
|
||||
}
|
||||
u8* next = (u8*)nup::__nupMalloc(requested);
|
||||
if (next == NULL) { result = -5000; goto done; }
|
||||
if (text->buffer != NULL) {
|
||||
memcpy(next, text->buffer, text->length);
|
||||
nup::__nupFree(text->buffer);
|
||||
}
|
||||
text->buffer = next;
|
||||
}
|
||||
memcpy(text->buffer + text->length, data, length);
|
||||
text->length += length;
|
||||
done:
|
||||
return result;
|
||||
}
|
||||
}
|
||||
static int __nupNhttpOpString(u8** output, unsigned long* outputLength, char* url, NHTTPReqMethod method, char* headers, u8* body, unsigned long bodyLength, unsigned long limit, ProgressCallback progress, void* context) NO_INLINE;
|
||||
static int __nupNhttpOpString(u8** output, unsigned long* outputLength, char* url, NHTTPReqMethod method, char* headers, u8* body, unsigned long bodyLength, unsigned long limit, ProgressCallback progress, void* context) {
|
||||
HttpString text;
|
||||
text.buffer = *output;
|
||||
text.capacity = *outputLength;
|
||||
text.growth = 0x400;
|
||||
text.maximumGrowth = 0x10000;
|
||||
text.length = 0;
|
||||
int result = __nupNhttpOp(url, method, headers, body, bodyLength, limit, progress, context, __nupHttpStringFlush, &text);
|
||||
if (result == 0) {
|
||||
*output = text.buffer;
|
||||
*outputLength = text.length;
|
||||
}
|
||||
if (result != 0) {
|
||||
if (text.buffer != NULL) nup::__nupFree(text.buffer);
|
||||
*output = NULL;
|
||||
*outputLength = 0;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
int __nupHttpGetFull(char* url, u8** output, unsigned long* length, unsigned long limit, ProgressCallback progress, void* context) {
|
||||
return __nupNhttpOpString(output, length, url, NHTTP_GET, NULL, NULL, 0, limit, progress, context);
|
||||
}
|
||||
int __nupHttpPostFull(char* url, char* headers, char* body, u8** output, unsigned long* length, unsigned long limit, ProgressCallback progress, void* context) {
|
||||
int result = __nupNhttpOpString(output, length, url, NHTTP_POST, headers, (u8*)body, strlen(body), limit, progress, context);
|
||||
if (result != 0) {
|
||||
if (*output != NULL) nup::__nupFree(*output);
|
||||
*output = NULL;
|
||||
*length = 0;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
int __nupHttpGetIncr(char* url, unsigned long limit, ProgressCallback progress, void* progressContext, FlushCallback flush, void* context) {
|
||||
return __nupNhttpOp(url, NHTTP_GET, NULL, NULL, 0, limit, progress, progressContext, flush, context);
|
||||
}
|
||||
116
libs/RVL_SDK/src/vi/i2c.c
Normal file
116
libs/RVL_SDK/src/vi/i2c.c
Normal file
@@ -0,0 +1,116 @@
|
||||
#include <revolution/os.h>
|
||||
#include <private/os/OSTime.h>
|
||||
#include <private/bus.h>
|
||||
|
||||
static int __i2c_ident_flag = 1;
|
||||
static u32 __i2c_ident_first;
|
||||
|
||||
#define I2C_OUT 0xCD8000C0
|
||||
#define I2C_DIR 0xCD8000C4
|
||||
#define I2C_IN 0xCD8000C8
|
||||
|
||||
static inline void delay(void) {
|
||||
OSTime start = __OSGetSystemTime();
|
||||
while (OSTicksToMicroseconds(__OSGetSystemTime() - start) < 2) {}
|
||||
}
|
||||
|
||||
static inline void setData(int high) {
|
||||
if (high) {
|
||||
if (__i2c_ident_flag == 0) {
|
||||
BUSWrite32(I2C_OUT, BUSRead32(I2C_OUT) & ~0x8000);
|
||||
} else {
|
||||
BUSWrite32(I2C_OUT, (BUSRead32(I2C_OUT) & ~0x8000) | 0x8000);
|
||||
}
|
||||
} else {
|
||||
if (__i2c_ident_flag == 0) {
|
||||
BUSWrite32(I2C_OUT, (BUSRead32(I2C_OUT) & ~0x8000) | 0x8000);
|
||||
} else {
|
||||
BUSWrite32(I2C_OUT, BUSRead32(I2C_OUT) & ~0x8000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static int sendSlaveAddr(u8 address) {
|
||||
int bit;
|
||||
if (__i2c_ident_flag == 0) {
|
||||
BUSWrite32(I2C_OUT, (BUSRead32(I2C_OUT) & ~0x8000) | 0x8000);
|
||||
} else {
|
||||
BUSWrite32(I2C_OUT, BUSRead32(I2C_OUT) & ~0x8000);
|
||||
}
|
||||
delay();
|
||||
BUSWrite32(I2C_OUT, BUSRead32(I2C_OUT) & ~0x4000);
|
||||
for (bit = 0; bit < 8; bit++) {
|
||||
setData(address & 0x80);
|
||||
delay();
|
||||
BUSWrite32(I2C_OUT, (BUSRead32(I2C_OUT) & ~0x4000) | 0x4000);
|
||||
delay();
|
||||
BUSWrite32(I2C_OUT, BUSRead32(I2C_OUT) & ~0x4000);
|
||||
address = (address & 0x7F) << 1;
|
||||
}
|
||||
BUSWrite32(I2C_DIR, (BUSRead32(I2C_DIR) & ~0x8000) | 0x4000);
|
||||
delay();
|
||||
BUSWrite32(I2C_OUT, (BUSRead32(I2C_OUT) & ~0x4000) | 0x4000);
|
||||
delay();
|
||||
if ((u32)__i2c_ident_flag == 1) {
|
||||
if ((BUSRead32(I2C_IN) >> 15) & 1) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
setData(0);
|
||||
BUSWrite32(I2C_DIR, (BUSRead32(I2C_DIR) & ~0x8000) | 0xC000);
|
||||
BUSWrite32(I2C_OUT, BUSRead32(I2C_OUT) & ~0x4000);
|
||||
return 1;
|
||||
}
|
||||
|
||||
int __VISendI2CData(u8 address, u8* data, int length) {
|
||||
int enabled;
|
||||
if (__i2c_ident_first == 0) {
|
||||
__i2c_ident_flag = 1;
|
||||
__i2c_ident_first = 1;
|
||||
}
|
||||
enabled = OSDisableInterrupts();
|
||||
BUSWrite32(I2C_DIR, (BUSRead32(I2C_DIR) & ~0x8000) | 0xC000);
|
||||
BUSWrite32(I2C_OUT, (BUSRead32(I2C_OUT) & ~0x4000) | 0x4000);
|
||||
setData(1);
|
||||
delay();
|
||||
delay();
|
||||
if (!sendSlaveAddr(address)) {
|
||||
OSRestoreInterrupts(enabled);
|
||||
return 0;
|
||||
}
|
||||
BUSWrite32(I2C_DIR, (BUSRead32(I2C_DIR) & ~0x8000) | 0xC000);
|
||||
while (length != 0) {
|
||||
int bit;
|
||||
u8 value = *data++;
|
||||
for (bit = 0; bit < 8; bit++) {
|
||||
setData(value & 0x80);
|
||||
delay();
|
||||
BUSWrite32(I2C_OUT, (BUSRead32(I2C_OUT) & ~0x4000) | 0x4000);
|
||||
delay();
|
||||
BUSWrite32(I2C_OUT, BUSRead32(I2C_OUT) & ~0x4000);
|
||||
value = (value & 0x7F) << 1;
|
||||
}
|
||||
BUSWrite32(I2C_DIR, (BUSRead32(I2C_DIR) & ~0x8000) | 0x4000);
|
||||
delay();
|
||||
BUSWrite32(I2C_OUT, (BUSRead32(I2C_OUT) & ~0x4000) | 0x4000);
|
||||
delay();
|
||||
if ((u32)__i2c_ident_flag == 1) {
|
||||
if ((BUSRead32(I2C_IN) >> 15) & 1) {
|
||||
OSRestoreInterrupts(enabled);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
setData(0);
|
||||
BUSWrite32(I2C_DIR, (BUSRead32(I2C_DIR) & ~0x8000) | 0xC000);
|
||||
BUSWrite32(I2C_OUT, BUSRead32(I2C_OUT) & ~0x4000);
|
||||
length--;
|
||||
}
|
||||
BUSWrite32(I2C_DIR, (BUSRead32(I2C_DIR) & ~0x8000) | 0xC000);
|
||||
setData(0);
|
||||
delay();
|
||||
BUSWrite32(I2C_OUT, (BUSRead32(I2C_OUT) & ~0x4000) | 0x4000);
|
||||
delay();
|
||||
setData(1);
|
||||
OSRestoreInterrupts(enabled);
|
||||
return 1;
|
||||
}
|
||||
@@ -36,24 +36,56 @@ static u32 IsInitialized;
|
||||
static u32 vsync_timing_err_cnt;
|
||||
static u32 vsync_timing_test_flag;
|
||||
|
||||
static VITiming timing[11] = {
|
||||
{ 6, 240, 24, 25, 3, 2, 12, 13, 12, 13, 520, 519, 520, 519, 525, 429, 64, 71, 105, 162, 373, 122, 412 },
|
||||
{ 6, 240, 24, 24, 4, 4, 12, 12, 12, 12, 520, 520, 520, 520, 526, 429, 64, 71, 105, 162, 373, 122, 412 },
|
||||
{ 5, 287, 35, 36, 1, 0, 13, 12, 11, 10, 619, 618, 617, 620, 625, 432, 64, 75, 106, 172, 380, 133, 420 },
|
||||
{ 5, 287, 33, 33, 2, 2, 13, 11, 13, 11, 619, 621, 619, 621, 624, 432, 64, 75, 106, 172, 380, 133, 420 },
|
||||
{ 6, 240, 24, 25, 3, 2, 16, 15, 14, 13, 518, 517, 516, 519, 525, 429, 64, 78, 112, 162, 373, 122, 412 },
|
||||
{ 6, 240, 24, 24, 4, 4, 16, 14, 16, 14, 518, 520, 518, 520, 526, 429, 64, 78, 112, 162, 373, 122, 412 },
|
||||
{ 12, 480, 48, 48, 6, 6, 24, 24, 24, 24, 1038, 1038, 1038, 1038, 1050, 429, 64, 71, 105, 162, 373, 122, 412 },
|
||||
{ 12, 480, 44, 44, 10, 10, 24, 24, 24, 24, 1038, 1038, 1038, 1038, 1050, 429, 64, 71, 105, 168, 379, 122, 412 },
|
||||
{ 6, 241, 24, 25, 1, 0, 12, 13, 12, 13, 520, 519, 520, 519, 525, 429, 64, 71, 105, 159, 370, 122, 412 },
|
||||
{ 12, 480, 48, 48, 6, 6, 24, 24, 24, 24, 1038, 1038, 1038, 1038, 1050, 429, 64, 71, 105, 180, 391, 122, 412 },
|
||||
{ 10, 576, 62, 62, 6, 6, 20, 20, 20, 20, 1240, 1240, 1240, 1240, 1250, 432, 64, 75, 106, 172, 380, 122, 412 },
|
||||
};
|
||||
typedef struct VIFilterModes {
|
||||
u16 filterTaps[25];
|
||||
GXRenderModeObj palProgressive[3];
|
||||
} VIFilterModes;
|
||||
|
||||
static u16 taps[25] = {
|
||||
0x01F0, 0x01DC, 0x01AE, 0x0174, 0x0129, 0x00DB, 0x008E, 0x0046, 0x000C,
|
||||
0x00E2, 0x00CB, 0x00C0, 0x00C4, 0x00CF, 0x00DE, 0x00EC, 0x00FC, 0x0008,
|
||||
0x000F, 0x0013, 0x0013, 0x000F, 0x000C, 0x0008, 0x0001,
|
||||
typedef struct VIHardwareConfig {
|
||||
VITiming timings[11];
|
||||
VIFilterModes filters;
|
||||
} VIHardwareConfig;
|
||||
|
||||
static VIHardwareConfig hardwareConfig = {
|
||||
{
|
||||
{ 6, 240, 24, 25, 3, 2, 12, 13, 12, 13, 520, 519, 520, 519, 525, 429, 64, 71, 105, 162, 373, 122, 412 },
|
||||
{ 6, 240, 24, 24, 4, 4, 12, 12, 12, 12, 520, 520, 520, 520, 526, 429, 64, 71, 105, 162, 373, 122, 412 },
|
||||
{ 5, 287, 35, 36, 1, 0, 13, 12, 11, 10, 619, 618, 617, 620, 625, 432, 64, 75, 106, 172, 380, 133, 420 },
|
||||
{ 5, 287, 33, 33, 2, 2, 13, 11, 13, 11, 619, 621, 619, 621, 624, 432, 64, 75, 106, 172, 380, 133, 420 },
|
||||
{ 6, 240, 24, 25, 3, 2, 16, 15, 14, 13, 518, 517, 516, 519, 525, 429, 64, 78, 112, 162, 373, 122, 412 },
|
||||
{ 6, 240, 24, 24, 4, 4, 16, 14, 16, 14, 518, 520, 518, 520, 526, 429, 64, 78, 112, 162, 373, 122, 412 },
|
||||
{ 12, 480, 48, 48, 6, 6, 24, 24, 24, 24, 1038, 1038, 1038, 1038, 1050, 429, 64, 71, 105, 162, 373, 122, 412 },
|
||||
{ 12, 480, 44, 44, 10, 10, 24, 24, 24, 24, 1038, 1038, 1038, 1038, 1050, 429, 64, 71, 105, 168, 379, 122, 412 },
|
||||
{ 6, 241, 24, 25, 1, 0, 12, 13, 12, 13, 520, 519, 520, 519, 525, 429, 64, 71, 105, 159, 370, 122, 412 },
|
||||
{ 12, 480, 48, 48, 6, 6, 24, 24, 24, 24, 1038, 1038, 1038, 1038, 1050, 429, 64, 71, 105, 180, 391, 122, 412 },
|
||||
{ 10, 576, 62, 62, 6, 6, 20, 20, 20, 20, 1240, 1240, 1240, 1240, 1250, 432, 64, 75, 106, 172, 380, 122, 412 },
|
||||
},
|
||||
{
|
||||
{
|
||||
0x01F0, 0x01DC, 0x01AE, 0x0174, 0x0129,
|
||||
0x00DB, 0x008E, 0x0046, 0x000C, 0x00E2,
|
||||
0x00CB, 0x00C0, 0x00C4, 0x00CF, 0x00DE,
|
||||
0x00EC, 0x00FC, 0x0008, 0x000F, 0x0013,
|
||||
0x0013, 0x000F, 0x000C, 0x0008, 0x0001,
|
||||
},
|
||||
{
|
||||
{
|
||||
6, 640, 528, 528, 40, 23, 640, 528, 0, 0, 0,
|
||||
{{6, 6}, {6, 6}, {6, 6}, {6, 6}, {6, 6}, {6, 6}, {6, 6}, {6, 6}, {6, 6}, {6, 6}, {6, 6}, {6, 6}},
|
||||
{0, 0, 21, 22, 21, 0, 0},
|
||||
},
|
||||
{
|
||||
6, 640, 528, 528, 40, 23, 640, 528, 0, 0, 0,
|
||||
{{6, 6}, {6, 6}, {6, 6}, {6, 6}, {6, 6}, {6, 6}, {6, 6}, {6, 6}, {6, 6}, {6, 6}, {6, 6}, {6, 6}},
|
||||
{8, 8, 10, 12, 10, 8, 8},
|
||||
},
|
||||
{
|
||||
6, 640, 264, 524, 40, 23, 640, 524, 0, 0, 1,
|
||||
{{3, 2}, {9, 6}, {3, 10}, {3, 2}, {9, 6}, {3, 10}, {9, 2}, {3, 6}, {9, 10}, {9, 2}, {3, 6}, {9, 10}},
|
||||
{4, 8, 12, 16, 12, 8, 4},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
static VIRetraceCallback PreCB;
|
||||
@@ -105,6 +137,7 @@ static BOOL OnShutdown(BOOL final, u32 event)
|
||||
static u32 previousRetraceCount;
|
||||
BOOL enabled;
|
||||
s32 registerIndex;
|
||||
u64 registerMask;
|
||||
|
||||
if (final) {
|
||||
goto returnTrue;
|
||||
@@ -116,11 +149,12 @@ static BOOL OnShutdown(BOOL final, u32 event)
|
||||
if ((s32)event >= 0) {
|
||||
goto beginShutdown;
|
||||
}
|
||||
goto returnTrue;
|
||||
return final;
|
||||
}
|
||||
if ((s32)event >= 7) {
|
||||
goto returnTrue;
|
||||
return final;
|
||||
}
|
||||
goto returnTrue;
|
||||
beginShutdown:
|
||||
if (first) {
|
||||
VISetRGBModeImm();
|
||||
@@ -131,14 +165,15 @@ beginShutdown:
|
||||
while (changed != 0) {
|
||||
registerIndex = cntlzd(changed);
|
||||
shdwRegs[registerIndex] = regs[registerIndex];
|
||||
changed &= ~__shl2i((u64)1, 63 - registerIndex);
|
||||
registerMask = __shl2i((u64)1, 63 - registerIndex);
|
||||
changed &= ~registerMask;
|
||||
}
|
||||
flushFlag = 1;
|
||||
flushFlag3in1 = 1;
|
||||
NextBufAddr = HorVer.bufAddr;
|
||||
OSRestoreInterrupts(enabled);
|
||||
first = FALSE;
|
||||
previousRetraceCount = retraceCount;
|
||||
first = FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
if (previousRetraceCount == retraceCount) {
|
||||
@@ -228,8 +263,9 @@ position_interrupt:
|
||||
OSClearContext(&exceptionContext);
|
||||
OSSetCurrentContext(&exceptionContext);
|
||||
if (PositionCallback != 0) {
|
||||
previousVertical = __VIRegs[22] & 0x7FF;
|
||||
vertical = __VIRegs[22] & 0x7FF;
|
||||
do {
|
||||
previousVertical = vertical;
|
||||
horizontal = __VIRegs[23] & 0x7FF;
|
||||
vertical = __VIRegs[22] & 0x7FF;
|
||||
} while (previousVertical != vertical);
|
||||
@@ -253,14 +289,14 @@ position_interrupt:
|
||||
u32 vertical;
|
||||
u32 currentLine;
|
||||
|
||||
previousVertical = __VIRegs[22] & 0x7FF;
|
||||
vertical = __VIRegs[22] & 0x7FF;
|
||||
do {
|
||||
previousVertical = vertical;
|
||||
horizontal = __VIRegs[23] & 0x7FF;
|
||||
vertical = __VIRegs[22] & 0x7FF;
|
||||
} while (previousVertical != vertical);
|
||||
currentLine = ((vertical - 1) << 1) +
|
||||
(horizontal - 1) / CurrTiming->hlw;
|
||||
if (CurrTiming->nhlines > currentLine) {
|
||||
currentLine = (CurrTiming->nhlines / 2) + 1;
|
||||
if (vertical != 1 && vertical != currentLine) {
|
||||
vsync_timing_err_cnt++;
|
||||
}
|
||||
}
|
||||
@@ -476,38 +512,38 @@ static VITiming* getTiming(VITVMode mode)
|
||||
{
|
||||
switch (mode) {
|
||||
case 0:
|
||||
return &timing[0];
|
||||
return &hardwareConfig.timings[0];
|
||||
case 1:
|
||||
return &timing[1];
|
||||
return &hardwareConfig.timings[1];
|
||||
case 4:
|
||||
return &timing[2];
|
||||
return &hardwareConfig.timings[2];
|
||||
case 5:
|
||||
return &timing[3];
|
||||
return &hardwareConfig.timings[3];
|
||||
case 20:
|
||||
return &timing[0];
|
||||
return &hardwareConfig.timings[0];
|
||||
case 21:
|
||||
return &timing[1];
|
||||
return &hardwareConfig.timings[1];
|
||||
case 8:
|
||||
return &timing[4];
|
||||
return &hardwareConfig.timings[4];
|
||||
case 9:
|
||||
return &timing[5];
|
||||
return &hardwareConfig.timings[5];
|
||||
case 2:
|
||||
case 10:
|
||||
case 22:
|
||||
return &timing[6];
|
||||
return &hardwareConfig.timings[6];
|
||||
case 3:
|
||||
case 11:
|
||||
return &timing[7];
|
||||
return &hardwareConfig.timings[7];
|
||||
case 16:
|
||||
return &timing[2];
|
||||
return &hardwareConfig.timings[2];
|
||||
case 17:
|
||||
return &timing[3];
|
||||
return &hardwareConfig.timings[3];
|
||||
case 24:
|
||||
return &timing[8];
|
||||
return &hardwareConfig.timings[8];
|
||||
case 26:
|
||||
return &timing[9];
|
||||
return &hardwareConfig.timings[9];
|
||||
case 6:
|
||||
return &timing[10];
|
||||
return &hardwareConfig.timings[10];
|
||||
case 28:
|
||||
case 29:
|
||||
case 30:
|
||||
@@ -560,10 +596,16 @@ void __VIInit(VITVMode mode)
|
||||
vct = (currentTiming->nhlines / 2) + 1;
|
||||
__VIRegs[25] = hct;
|
||||
__VIRegs[24] = vct | 0x1000;
|
||||
if (tv >= 4) {
|
||||
switch (tv) {
|
||||
case VI_PAL:
|
||||
case VI_MPAL:
|
||||
case VI_DEBUG:
|
||||
break;
|
||||
default:
|
||||
tv = 0;
|
||||
break;
|
||||
}
|
||||
if ((nonInter & 2) == 0) {
|
||||
if (nonInter <= 1) {
|
||||
__VIRegs[1] = (nonInter << 2) | 1 | (tv << 8);
|
||||
__VIRegs[54] = 0;
|
||||
} else {
|
||||
@@ -582,6 +624,8 @@ void VIInit(void)
|
||||
u32 value;
|
||||
u32 tv;
|
||||
u32 bootromTv;
|
||||
u32 scanMode;
|
||||
u32 field;
|
||||
|
||||
if (IsInitialized != 0) {
|
||||
return;
|
||||
@@ -598,32 +642,34 @@ void VIInit(void)
|
||||
shdwChangeMode = 0;
|
||||
flushFlag = 0;
|
||||
flushFlag3in1 = 0;
|
||||
__VIRegs[39] = taps[0] | ((taps[1] & 0x3F) << 10);
|
||||
__VIRegs[38] = (taps[1] >> 6) | (taps[2] << 4);
|
||||
__VIRegs[41] = taps[3] | ((taps[4] & 0x3F) << 10);
|
||||
__VIRegs[40] = (taps[4] >> 6) | (taps[5] << 4);
|
||||
__VIRegs[43] = taps[6] | ((taps[7] & 0x3F) << 10);
|
||||
__VIRegs[42] = (taps[7] >> 6) | (taps[8] << 4);
|
||||
__VIRegs[45] = taps[9] | (taps[10] << 8);
|
||||
__VIRegs[44] = taps[11] | (taps[12] << 8);
|
||||
__VIRegs[47] = taps[13] | (taps[14] << 8);
|
||||
__VIRegs[46] = taps[15] | (taps[16] << 8);
|
||||
__VIRegs[49] = taps[17] | (taps[18] << 8);
|
||||
__VIRegs[48] = taps[19] | (taps[20] << 8);
|
||||
__VIRegs[51] = taps[21] | (taps[22] << 8);
|
||||
__VIRegs[50] = taps[23] | (taps[24] << 8);
|
||||
__VIRegs[39] = hardwareConfig.filters.filterTaps[0] | ((hardwareConfig.filters.filterTaps[1] & 0x3F) << 10);
|
||||
__VIRegs[38] = (hardwareConfig.filters.filterTaps[1] >> 6) | (hardwareConfig.filters.filterTaps[2] << 4);
|
||||
__VIRegs[41] = hardwareConfig.filters.filterTaps[3] | ((hardwareConfig.filters.filterTaps[4] & 0x3F) << 10);
|
||||
__VIRegs[40] = (hardwareConfig.filters.filterTaps[4] >> 6) | (hardwareConfig.filters.filterTaps[5] << 4);
|
||||
__VIRegs[43] = hardwareConfig.filters.filterTaps[6] | ((hardwareConfig.filters.filterTaps[7] & 0x3F) << 10);
|
||||
__VIRegs[42] = (hardwareConfig.filters.filterTaps[7] >> 6) | (hardwareConfig.filters.filterTaps[8] << 4);
|
||||
__VIRegs[45] = hardwareConfig.filters.filterTaps[9] | (hardwareConfig.filters.filterTaps[10] << 8);
|
||||
__VIRegs[44] = hardwareConfig.filters.filterTaps[11] | (hardwareConfig.filters.filterTaps[12] << 8);
|
||||
__VIRegs[47] = hardwareConfig.filters.filterTaps[13] | (hardwareConfig.filters.filterTaps[14] << 8);
|
||||
__VIRegs[46] = hardwareConfig.filters.filterTaps[15] | (hardwareConfig.filters.filterTaps[16] << 8);
|
||||
__VIRegs[49] = hardwareConfig.filters.filterTaps[17] | (hardwareConfig.filters.filterTaps[18] << 8);
|
||||
__VIRegs[48] = hardwareConfig.filters.filterTaps[19] | (hardwareConfig.filters.filterTaps[20] << 8);
|
||||
__VIRegs[51] = hardwareConfig.filters.filterTaps[21] | (hardwareConfig.filters.filterTaps[22] << 8);
|
||||
__VIRegs[50] = hardwareConfig.filters.filterTaps[23] | (hardwareConfig.filters.filterTaps[24] << 8);
|
||||
__VIRegs[56] = 0x280;
|
||||
displayOffsetH = SCGetDisplayOffsetH();
|
||||
displayOffsetV = 0;
|
||||
bootromTv = *(u32*)0x800000CC;
|
||||
displayConfig = __VIRegs[1];
|
||||
enabled = OSDisableInterrupts();
|
||||
if ((__VIRegs[54] & 1) != 0) {
|
||||
HorVer.nonInter = 2;
|
||||
if ((u32)(__VIRegs[54] & 1) == 1U) {
|
||||
scanMode = 2;
|
||||
} else {
|
||||
HorVer.nonInter = (__VIRegs[1] & 4) != 0;
|
||||
field = (__VIRegs[1] >> 2) & 1;
|
||||
scanMode = ((0U - field) | field) >> 31;
|
||||
}
|
||||
OSRestoreInterrupts(enabled);
|
||||
HorVer.nonInter = scanMode;
|
||||
tv = (displayConfig >> 8) & 3;
|
||||
HorVer.tv = tv;
|
||||
if (bootromTv == 5 || (bootromTv == 1 && tv == 0)) {
|
||||
@@ -791,11 +837,14 @@ static void setHorizontalRegs(VITiming* currentTiming, u16 displayPosX,
|
||||
u32 hbs;
|
||||
u32 hbeLow;
|
||||
u32 hbeHigh;
|
||||
u64 pending = changed;
|
||||
|
||||
regs[3] = currentTiming->hlw;
|
||||
MARK_CHANGED(3);
|
||||
pending |= 1ULL << 60;
|
||||
changed = pending;
|
||||
regs[2] = currentTiming->hce | (currentTiming->hcs << 8);
|
||||
MARK_CHANGED(2);
|
||||
pending |= 1ULL << 61;
|
||||
changed = pending;
|
||||
if (HorVer.tv == 8) {
|
||||
hbe = currentTiming->hbe640 + 0xAC;
|
||||
hbs = currentTiming->hbs640;
|
||||
@@ -807,15 +856,17 @@ static void setHorizontalRegs(VITiming* currentTiming, u16 displayPosX,
|
||||
hbeLow = hbe & 0x1FF;
|
||||
hbeHigh = hbe >> 9;
|
||||
regs[5] = currentTiming->hsy | (hbeLow << 7);
|
||||
MARK_CHANGED(5);
|
||||
pending |= 1ULL << 58;
|
||||
changed = pending;
|
||||
regs[4] = hbeHigh | (hbs * 2);
|
||||
MARK_CHANGED(4);
|
||||
pending |= 1ULL << 59;
|
||||
changed = pending;
|
||||
}
|
||||
|
||||
#pragma dont_inline reset
|
||||
|
||||
#pragma dont_inline on
|
||||
static void setVerticalRegs(u16 displayPosY, u16 displaySizeY, u8 equ,
|
||||
static void setVerticalRegs(s32 displayPosY, s32 displaySizeY, u8 equ,
|
||||
u16 acv, u16 prbOdd, u16 prbEven, u16 psbOdd,
|
||||
u16 psbEven, int black)
|
||||
{
|
||||
@@ -824,10 +875,10 @@ static void setVerticalRegs(u16 displayPosY, u16 displaySizeY, u8 equ,
|
||||
u16 actualPsbOdd;
|
||||
u16 actualPsbEven;
|
||||
u16 actualAcv;
|
||||
u16 d;
|
||||
u16 c;
|
||||
s32 d;
|
||||
s32 c;
|
||||
|
||||
if (equ >= 10) {
|
||||
if (HorVer.nonInter == 2 || HorVer.nonInter == 3) {
|
||||
c = 1;
|
||||
d = 2;
|
||||
} else {
|
||||
@@ -853,10 +904,10 @@ static void setVerticalRegs(u16 displayPosY, u16 displaySizeY, u8 equ,
|
||||
actualPsbEven += 2;
|
||||
actualAcv = 0;
|
||||
}
|
||||
regs[0] = equ | (actualAcv << 4);
|
||||
MARK_CHANGED(0);
|
||||
regs[7] = (u16)(u32)actualPrbOdd;
|
||||
regs[7] = actualPrbOdd;
|
||||
MARK_CHANGED(7);
|
||||
regs[0] = equ | (actualAcv << 4);
|
||||
regs[6] = (u16)(u32)actualPsbOdd;
|
||||
MARK_CHANGED(6);
|
||||
regs[9] = (u16)(u32)actualPrbEven;
|
||||
@@ -1012,10 +1063,10 @@ void VIConfigure(const GXRenderModeObj* renderMode)
|
||||
OSReport("mode in real games!!! \n");
|
||||
OSReport("***************************************\n");
|
||||
}
|
||||
if (((tvInBootrom == 1 || tvInBootrom == 5) &&
|
||||
tvInGame != 1 && tvInGame != 5) ||
|
||||
((tvInBootrom != 1 && tvInBootrom != 5) &&
|
||||
(tvInGame == 1 || tvInGame == 5))) {
|
||||
if (((tvInBootrom != 1 && tvInBootrom != 5) &&
|
||||
(tvInGame == 1 || tvInGame == 5)) ||
|
||||
((tvInBootrom == 1 || tvInBootrom == 5) &&
|
||||
tvInGame != 1 && tvInGame != 5)) {
|
||||
OSPanic("vi.c", 0xA57,
|
||||
"VIConfigure(): Tried to change mode from (%d) to (%d), which is forbidden\n",
|
||||
tvInBootrom, tvInGame);
|
||||
@@ -1058,7 +1109,7 @@ void VIConfigure(const GXRenderModeObj* renderMode)
|
||||
register1 = (register1 & ~(1 << 2)) | ((HorVer.nonInter & 1) << 2);
|
||||
}
|
||||
register1 = (register1 & ~(1 << 3)) | (HorVer.threeD << 3);
|
||||
if (HorVer.tv == VI_TVMODE_PAL_INT || HorVer.tv == VI_TVMODE_PAL_DS) {
|
||||
if (HorVer.tv == VI_DEBUG_PAL || HorVer.tv == VI_EURGB60) {
|
||||
register1 &= ~(3 << 8);
|
||||
} else {
|
||||
register1 = (register1 & ~(3 << 8)) | (HorVer.tv << 8);
|
||||
@@ -1066,8 +1117,7 @@ void VIConfigure(const GXRenderModeObj* renderMode)
|
||||
regs[1] = register1;
|
||||
MARK_CHANGED(1);
|
||||
register54 = regs[54];
|
||||
if ((s32)renderMode->viTVmode == VI_TVMODE_NTSC_PROG ||
|
||||
(s32)renderMode->viTVmode == 3) {
|
||||
if (HorVer.nonInter == 2 || HorVer.nonInter == 3) {
|
||||
register54 |= 1;
|
||||
} else {
|
||||
register54 &= ~1;
|
||||
@@ -1129,6 +1179,7 @@ void VIFlush(void)
|
||||
{
|
||||
BOOL enabled;
|
||||
s32 registerIndex;
|
||||
u64 registerMask;
|
||||
|
||||
enabled = OSDisableInterrupts();
|
||||
shdwChangeMode = shdwChangeMode | changeMode;
|
||||
@@ -1137,7 +1188,8 @@ void VIFlush(void)
|
||||
while (changed != 0) {
|
||||
registerIndex = cntlzd(changed);
|
||||
shdwRegs[registerIndex] = regs[registerIndex];
|
||||
changed &= ~__shl2i((u64)1, 63 - registerIndex);
|
||||
registerMask = __shl2i((u64)1, 63 - registerIndex);
|
||||
changed &= ~registerMask;
|
||||
}
|
||||
flushFlag = 1;
|
||||
flushFlag3in1 = 1;
|
||||
@@ -1319,51 +1371,61 @@ void __VIDisplayPositionToXY(u32 horizontalCount, u32 verticalCount,
|
||||
((horizontalCount - 1) / currentTiming->hlw);
|
||||
if (HorVer.nonInter == 0) {
|
||||
if (halfLine < currentTiming->nhlines) {
|
||||
fieldStart = currentTiming->prbOdd + currentTiming->equ * 3;
|
||||
fieldStart = ((u32)currentTiming->equ << 2) - currentTiming->equ;
|
||||
fieldEnd = currentTiming->nhlines - currentTiming->psbOdd;
|
||||
if (halfLine < fieldStart || halfLine >= fieldEnd) {
|
||||
if (halfLine < fieldStart + currentTiming->prbOdd) {
|
||||
*pixelY = -1;
|
||||
} else if (halfLine >= fieldEnd) {
|
||||
*pixelY = -1;
|
||||
} else {
|
||||
*pixelY = (halfLine - fieldStart) / 2;
|
||||
*pixelY = (halfLine - fieldStart - currentTiming->prbOdd) & ~1U;
|
||||
}
|
||||
} else {
|
||||
fieldLine = halfLine - currentTiming->nhlines;
|
||||
fieldStart = currentTiming->prbEven + currentTiming->equ * 3;
|
||||
fieldStart = ((u32)currentTiming->equ << 2) - currentTiming->equ;
|
||||
fieldEnd = currentTiming->nhlines - currentTiming->psbEven;
|
||||
if (fieldLine < fieldStart || fieldLine >= fieldEnd) {
|
||||
if (fieldLine < fieldStart + currentTiming->prbEven) {
|
||||
*pixelY = -1;
|
||||
} else if (fieldLine >= fieldEnd) {
|
||||
*pixelY = -1;
|
||||
} else {
|
||||
*pixelY = ((fieldLine - fieldStart) / 2) + 1;
|
||||
*pixelY = ((fieldLine - fieldStart - currentTiming->prbEven) & ~1U) + 1;
|
||||
}
|
||||
}
|
||||
} else if (HorVer.nonInter == 1) {
|
||||
if (halfLine >= currentTiming->nhlines) {
|
||||
halfLine -= currentTiming->nhlines;
|
||||
}
|
||||
fieldStart = currentTiming->prbOdd + currentTiming->equ * 3;
|
||||
fieldStart = ((u32)currentTiming->equ << 2) - currentTiming->equ;
|
||||
fieldEnd = currentTiming->nhlines - currentTiming->psbOdd;
|
||||
if (halfLine < fieldStart || halfLine >= fieldEnd) {
|
||||
if (halfLine < fieldStart + currentTiming->prbOdd) {
|
||||
*pixelY = -1;
|
||||
} else if (halfLine >= fieldEnd) {
|
||||
*pixelY = -1;
|
||||
} else {
|
||||
*pixelY = (halfLine - fieldStart) / 2;
|
||||
*pixelY = (halfLine - fieldStart - currentTiming->prbOdd) & ~1U;
|
||||
}
|
||||
} else if (HorVer.nonInter == 2) {
|
||||
if (halfLine < currentTiming->nhlines) {
|
||||
fieldStart = currentTiming->prbOdd + currentTiming->equ * 3;
|
||||
fieldStart = ((u32)currentTiming->equ << 2) - currentTiming->equ;
|
||||
fieldEnd = currentTiming->nhlines - currentTiming->psbOdd;
|
||||
if (halfLine < fieldStart || halfLine >= fieldEnd) {
|
||||
if (halfLine < fieldStart + currentTiming->prbOdd) {
|
||||
*pixelY = -1;
|
||||
} else if (halfLine >= fieldEnd) {
|
||||
*pixelY = -1;
|
||||
} else {
|
||||
*pixelY = (halfLine - fieldStart) / 2;
|
||||
*pixelY = halfLine - fieldStart - currentTiming->prbOdd;
|
||||
}
|
||||
} else {
|
||||
fieldLine = halfLine - currentTiming->nhlines;
|
||||
fieldStart = currentTiming->prbEven + currentTiming->equ * 3;
|
||||
fieldStart = ((u32)currentTiming->equ << 2) - currentTiming->equ;
|
||||
fieldEnd = currentTiming->nhlines - currentTiming->psbEven;
|
||||
if (fieldLine < fieldStart || fieldLine >= fieldEnd) {
|
||||
if (fieldLine < fieldStart + currentTiming->prbEven) {
|
||||
*pixelY = -1;
|
||||
} else if (fieldLine >= fieldEnd) {
|
||||
*pixelY = -1;
|
||||
} else {
|
||||
*pixelY = (fieldLine - fieldStart) / 2;
|
||||
*pixelY = (fieldLine - fieldStart - currentTiming->prbEven) & ~1U;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -235,7 +235,7 @@ static NWC24Err QDecode(char* decoded, u32 decodedCapacity, u32* decodedSize, ch
|
||||
u32 encodedOffset;
|
||||
char* input;
|
||||
char* output;
|
||||
u32 value = 0;
|
||||
u8 value = 0;
|
||||
NWC24Err result = NWC24_OK;
|
||||
|
||||
if (decoded == NULL)
|
||||
@@ -264,14 +264,14 @@ static NWC24Err QDecode(char* decoded, u32 decodedCapacity, u32* decodedSize, ch
|
||||
input++;
|
||||
decodedOffset++;
|
||||
} else if (*input == '=' && encodedOffset + 2 < encodedSize) {
|
||||
BOOL validHex = TRUE;
|
||||
u32 inputAfterEqual = encodedOffset + 1;
|
||||
char* current = ++input;
|
||||
if (*current == ' ' || *current == '\t') {
|
||||
char* previous = current;
|
||||
char* next = current + 1;
|
||||
u32 scan = 1;
|
||||
while (inputAfterEqual + scan + 1 < encodedSize) {
|
||||
char* next = previous + 1;
|
||||
if (*next == '\r' && previous[2] == '\n') {
|
||||
if (*next == '\r' && next[1] == '\n') {
|
||||
inputAfterEqual += scan;
|
||||
current = next;
|
||||
break;
|
||||
@@ -279,7 +279,7 @@ static NWC24Err QDecode(char* decoded, u32 decodedCapacity, u32* decodedSize, ch
|
||||
if (*next != ' ' && *next != '\t') {
|
||||
break;
|
||||
}
|
||||
previous = next;
|
||||
next++;
|
||||
scan++;
|
||||
}
|
||||
}
|
||||
@@ -293,12 +293,14 @@ static NWC24Err QDecode(char* decoded, u32 decodedCapacity, u32* decodedSize, ch
|
||||
if (high >= 0) {
|
||||
value = (high & 0x0F) << 4;
|
||||
}
|
||||
if (high < 0) { validHex = FALSE; }
|
||||
low = Util_xtoi(current[1]);
|
||||
if (low >= 0) {
|
||||
value |= low & 0x0F;
|
||||
}
|
||||
if (low < 0) { validHex = FALSE; }
|
||||
current += 2;
|
||||
if (high >= 0 && low >= 0) {
|
||||
if (validHex) {
|
||||
*output++ = (char)value;
|
||||
decodedOffset++;
|
||||
}
|
||||
@@ -329,97 +331,90 @@ NWC24Err NWC24DecodeQuotedPrintable(char* decoded, u32 decodedCapacity, u32* dec
|
||||
|
||||
static NWC24Err ConcatEncodedText(char* encoded, u32 encodedCapacity, u32* encodedSize, char encoding, u8* decoded, u32 decodedSize,
|
||||
u32* decodedSizeOut);
|
||||
static inline NWC24Err AppendWordPrefix(char* encoded, u32 capacity) {
|
||||
if (Mail_strlen(encoded) + 2 < capacity) {
|
||||
Mail_strncat(encoded, "=?", 2);
|
||||
} else { return NWC24_ERR_OVERFLOW; }
|
||||
return NWC24_OK;
|
||||
}
|
||||
|
||||
static inline NWC24Err AppendWordSeparator(char* encoded, u32 capacity) {
|
||||
if (Mail_strlen(encoded) + 2 < capacity) {
|
||||
Mail_strncat(encoded, "?", 1);
|
||||
} else { return NWC24_ERR_OVERFLOW; }
|
||||
return NWC24_OK;
|
||||
}
|
||||
|
||||
static inline NWC24Err AppendWordSuffix(char* encoded, u32 capacity) {
|
||||
if (Mail_strlen(encoded) + 2 < capacity) {
|
||||
Mail_strncat(encoded, "?=", 2);
|
||||
} else { return NWC24_ERR_OVERFLOW; }
|
||||
return NWC24_OK;
|
||||
}
|
||||
|
||||
static inline NWC24Err AppendWordCharset(char* encoded, u32 capacity, char* charset, u32 charsetSize) {
|
||||
if (charset == NULL) { return NWC24_ERR_INVALID_VALUE; }
|
||||
if (charsetSize + Mail_strlen(encoded) < capacity) {
|
||||
u32 length = Mail_strlen(charset);
|
||||
Mail_strncat(encoded, charset, length);
|
||||
} else { return NWC24_ERR_OVERFLOW; }
|
||||
return NWC24_OK;
|
||||
}
|
||||
|
||||
static inline NWC24Err AppendWordEncoding(char* encoded, u32 capacity, char encoding) {
|
||||
char encodingText[1];
|
||||
encodingText[0] = encoding;
|
||||
if (encoding != 'B' && encoding != 'b' && encoding != 'Q' && encoding != 'q') {
|
||||
return NWC24_ERR_INVALID_VALUE;
|
||||
}
|
||||
if (Mail_strlen(encoded) + 1 < capacity) {
|
||||
Mail_strncat(encoded, encodingText, 1);
|
||||
} else { return NWC24_ERR_OVERFLOW; }
|
||||
return NWC24_OK;
|
||||
}
|
||||
static NWC24Err EncodeWord(char* encoded, u32 encodedCapacity, u32* encodedSize, char* charset, u32 charsetSize, char encoding, u8* decoded,
|
||||
u32 decodedSize, u32* decodedSizeOut) {
|
||||
NWC24Err result = NWC24_OK;
|
||||
NWC24Err result;
|
||||
BOOL encodeOverflow = FALSE;
|
||||
|
||||
if (decodedSizeOut != NULL) {
|
||||
*decodedSizeOut = 0;
|
||||
}
|
||||
if (decodedSizeOut != NULL) { *decodedSizeOut = 0; }
|
||||
if (encodedCapacity == 0) {
|
||||
if (decodedSizeOut != NULL) {
|
||||
*decodedSizeOut = 0;
|
||||
}
|
||||
if (decodedSizeOut != NULL) { *decodedSizeOut = 0; }
|
||||
return NWC24_ERR_INVALID_VALUE;
|
||||
}
|
||||
*encoded = '\0';
|
||||
if (encodedSize != NULL) {
|
||||
*encodedSize = 1;
|
||||
}
|
||||
if (Mail_strlen(encoded) + 2 < encodedCapacity) {
|
||||
Mail_strncat(encoded, "=?", 2);
|
||||
} else {
|
||||
result = NWC24_ERR_OVERFLOW;
|
||||
}
|
||||
if (result == NWC24_OK) {
|
||||
if (charset == NULL) {
|
||||
result = NWC24_ERR_INVALID_VALUE;
|
||||
} else if (charsetSize + Mail_strlen(encoded) < encodedCapacity) {
|
||||
u32 length = Mail_strlen(charset);
|
||||
Mail_strncat(encoded, charset, length);
|
||||
} else {
|
||||
result = NWC24_ERR_OVERFLOW;
|
||||
}
|
||||
}
|
||||
if (result == NWC24_OK) {
|
||||
if (Mail_strlen(encoded) + 2 < encodedCapacity) {
|
||||
Mail_strncat(encoded, "?", 1);
|
||||
} else {
|
||||
result = NWC24_ERR_OVERFLOW;
|
||||
}
|
||||
}
|
||||
if (result == NWC24_OK) {
|
||||
char value[1];
|
||||
value[0] = encoding;
|
||||
if (encoding == 'B' || encoding == 'b' || encoding == 'Q' || encoding == 'q') {
|
||||
u32 length = Mail_strlen(encoded);
|
||||
if (length + 1 < encodedCapacity) {
|
||||
Mail_strncat(encoded, value, 1);
|
||||
} else {
|
||||
result = NWC24_ERR_OVERFLOW;
|
||||
}
|
||||
} else {
|
||||
result = NWC24_ERR_INVALID_VALUE;
|
||||
}
|
||||
}
|
||||
if (result == NWC24_OK) {
|
||||
if (Mail_strlen(encoded) + 2 < encodedCapacity) {
|
||||
Mail_strncat(encoded, "?", 1);
|
||||
} else {
|
||||
result = NWC24_ERR_OVERFLOW;
|
||||
}
|
||||
}
|
||||
if (result == NWC24_OK) {
|
||||
result = ConcatEncodedText(encoded, encodedCapacity, encodedSize, encoding, decoded, decodedSize, decodedSizeOut);
|
||||
if (result == NWC24_OK || result == NWC24_ERR_OVERFLOW) {
|
||||
encodeOverflow = result == NWC24_ERR_OVERFLOW;
|
||||
if (Mail_strlen(encoded) + 2 < encodedCapacity) {
|
||||
Mail_strncat(encoded, "?=", 2);
|
||||
result = NWC24_OK;
|
||||
if (encodedSize != NULL) {
|
||||
*encodedSize = Mail_strlen(encoded) + 1;
|
||||
}
|
||||
if (encodeOverflow) {
|
||||
result = NWC24_ERR_OVERFLOW;
|
||||
}
|
||||
} else {
|
||||
*encoded = '\0';
|
||||
if (decodedSizeOut != NULL) {
|
||||
*decodedSizeOut = 1;
|
||||
}
|
||||
result = NWC24_ERR_OVERFLOW;
|
||||
}
|
||||
} else {
|
||||
*encoded = '\0';
|
||||
if (decodedSizeOut != NULL) {
|
||||
*decodedSizeOut = 1;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (encodedSize != NULL) { *encodedSize = 1; }
|
||||
|
||||
result = AppendWordPrefix(encoded, encodedCapacity);
|
||||
if (result != NWC24_OK) { *encoded = '\0'; return result; }
|
||||
|
||||
result = AppendWordCharset(encoded, encodedCapacity, charset, charsetSize);
|
||||
if (result != NWC24_OK) { *encoded = '\0'; return result; }
|
||||
|
||||
result = AppendWordSeparator(encoded, encodedCapacity);
|
||||
if (result != NWC24_OK) { *encoded = '\0'; return result; }
|
||||
|
||||
result = AppendWordEncoding(encoded, encodedCapacity, encoding);
|
||||
if (result != NWC24_OK) { *encoded = '\0'; return result; }
|
||||
|
||||
result = AppendWordSeparator(encoded, encodedCapacity);
|
||||
if (result != NWC24_OK) { *encoded = '\0'; return result; }
|
||||
|
||||
result = ConcatEncodedText(encoded, encodedCapacity, encodedSize, encoding, decoded, decodedSize, decodedSizeOut);
|
||||
if (result != NWC24_OK && result != NWC24_ERR_OVERFLOW) {
|
||||
*encoded = '\0';
|
||||
*decodedSizeOut = 1;
|
||||
return result;
|
||||
}
|
||||
if (result == NWC24_ERR_OVERFLOW) { encodeOverflow = TRUE; }
|
||||
result = AppendWordSuffix(encoded, encodedCapacity);
|
||||
if (result != NWC24_OK) {
|
||||
*encoded = '\0';
|
||||
*decodedSizeOut = 1;
|
||||
return result;
|
||||
}
|
||||
*encodedSize = Mail_strlen(encoded) + 1;
|
||||
if (result == NWC24_OK && encodeOverflow) { result = NWC24_ERR_OVERFLOW; }
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -460,6 +455,7 @@ static BOOL CopyWithoutLinearWhiteSpaces(char* output, int* outputSize, char* in
|
||||
BOOL afterNewline = FALSE;
|
||||
u32 outputOffset = 0;
|
||||
s32 capacity;
|
||||
u32 limit;
|
||||
|
||||
if (output == NULL || outputSize == NULL || *outputSize == 0) {
|
||||
return FALSE;
|
||||
@@ -470,7 +466,8 @@ static BOOL CopyWithoutLinearWhiteSpaces(char* output, int* outputSize, char* in
|
||||
*outputSize = 1;
|
||||
return TRUE;
|
||||
}
|
||||
while (outputOffset < capacity - 1U && inputSize != 0 && *input != '\0') {
|
||||
limit = capacity - 1U;
|
||||
while (outputOffset < limit && inputSize != 0 && *input != '\0') {
|
||||
char value = *input;
|
||||
switch (value) {
|
||||
case '\r':
|
||||
@@ -513,92 +510,70 @@ static inline char* FindMarker(char* input, u32 size, const char* marker) {
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
static inline char* FindMarkerAfterPrefix(char* input, u32 size, u32 prefix, const char* marker) {
|
||||
u32 markerLength = Mail_strlen(marker);
|
||||
char* current = input + prefix;
|
||||
u32 offset;
|
||||
for (offset = 0; offset <= size; offset++) {
|
||||
if (Mail_strncmp(current, marker, markerLength) == 0) {
|
||||
return input + offset + prefix;
|
||||
}
|
||||
current++;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline NWC24Err ExtractWordEncoding(char* encoding, u32* encodingSize, char* encoded, u32 encodedSize) {
|
||||
char* delimiter = FindMarkerAfterPrefix(encoded, encodedSize, 0, "?");
|
||||
if (delimiter == NULL) { return NWC24_ERR_INVALID_VALUE; }
|
||||
*encoding = delimiter[1];
|
||||
*encodingSize = 2;
|
||||
return NWC24_OK;
|
||||
}
|
||||
static NWC24Err DecodeWord(char* charsetData, u32 charsetCapacity, char* decoded, u32 decodedCapacity, u32* decodedSize, char* encoded,
|
||||
u32 encodedSize, u32* encodedSizeOut) {
|
||||
int encodedWordPosition = 0;
|
||||
int encodedLength;
|
||||
char* encodedWord;
|
||||
u32 consumedSize;
|
||||
u32 decodedLength;
|
||||
NWC24Err result = NWC24_OK;
|
||||
int encodedLength;
|
||||
NWC24Err result;
|
||||
|
||||
if (encodedSizeOut != NULL) {
|
||||
*encodedSizeOut = 0;
|
||||
}
|
||||
if (encodedSizeOut != NULL) { *encodedSizeOut = 0; }
|
||||
if (decodedCapacity == 0) {
|
||||
if (encodedSizeOut != NULL)
|
||||
*encodedSizeOut = 0;
|
||||
if (encodedSizeOut != NULL) { *encodedSizeOut = 0; }
|
||||
return NWC24_ERR_INVALID_VALUE;
|
||||
}
|
||||
*decoded = '\0';
|
||||
if (decodedSize != NULL) {
|
||||
*decodedSize = 1;
|
||||
}
|
||||
if (encodedSizeOut != NULL) {
|
||||
*encodedSizeOut = 0;
|
||||
}
|
||||
{
|
||||
u32 markerLength = Mail_strlen("=?");
|
||||
u32 offset;
|
||||
for (offset = 0; offset <= encodedSize; offset++) {
|
||||
encodedWordPosition = (int)(encoded + offset);
|
||||
if (Mail_strncmp((char*)encodedWordPosition, "=?", markerLength) == 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (offset > encodedSize) {
|
||||
encodedWordPosition = 0;
|
||||
}
|
||||
}
|
||||
if (encodedWordPosition == (int)encoded) {
|
||||
result = ExtractCharset(charsetData, charsetCapacity, &consumedSize, (char*)encoded, encodedSize);
|
||||
if (result != NWC24_OK) {
|
||||
return result;
|
||||
}
|
||||
if (decodedSize != NULL) { *decodedSize = 1; }
|
||||
if (encodedSizeOut != NULL) { *encodedSizeOut = 0; }
|
||||
encodedWord = FindMarker(encoded, encodedSize, "=?");
|
||||
if (encodedWord == encoded) {
|
||||
char encoding;
|
||||
result = ExtractCharset(charsetData, charsetCapacity, &consumedSize, encodedWord, encodedSize);
|
||||
if (result != NWC24_OK) { return result; }
|
||||
encodedLength = consumedSize;
|
||||
{
|
||||
u32 markerLength = Mail_strlen("?");
|
||||
u32 offset;
|
||||
char* delimiter = NULL;
|
||||
char* current = (char*)encodedWordPosition + encodedLength;
|
||||
for (offset = 0; offset <= encodedSize - encodedLength; offset++) {
|
||||
if (Mail_strncmp((char*)current, "?", markerLength) == 0) {
|
||||
delimiter = current;
|
||||
break;
|
||||
}
|
||||
current++;
|
||||
}
|
||||
if (delimiter == 0) {
|
||||
return NWC24_ERR_INVALID_VALUE;
|
||||
}
|
||||
{
|
||||
char encoding = delimiter[1];
|
||||
consumedSize = 2;
|
||||
encodedLength += consumedSize;
|
||||
result = ExtractEncodedText(decoded, decodedCapacity, &decodedLength, encoding, encoded + encodedLength, encodedSize - encodedLength,
|
||||
&consumedSize);
|
||||
if (result != NWC24_OK) {
|
||||
return result;
|
||||
}
|
||||
encodedLength += consumedSize;
|
||||
}
|
||||
}
|
||||
result = ExtractWordEncoding(&encoding, &consumedSize, encodedWord + encodedLength, encodedSize - encodedLength);
|
||||
if (result != NWC24_OK) { return result; }
|
||||
encodedLength += consumedSize;
|
||||
result = ExtractEncodedText(decoded, decodedCapacity, &decodedLength, encoding, encodedWord + encodedLength,
|
||||
encodedSize - encodedLength, &consumedSize);
|
||||
if (result != NWC24_OK) { return result; }
|
||||
encodedLength += consumedSize;
|
||||
} else {
|
||||
u32 localSize = decodedCapacity;
|
||||
if (encodedWordPosition == 0) {
|
||||
encodedLength = STD_strnlen(encoded, encodedSize);
|
||||
u32 localSize;
|
||||
if (encodedWord != NULL) {
|
||||
encodedLength = encodedWord - encoded;
|
||||
} else {
|
||||
encodedLength = encodedWordPosition - (int)encoded;
|
||||
encodedLength = STD_strnlen(encoded, encodedSize);
|
||||
}
|
||||
localSize = decodedCapacity;
|
||||
if (!CopyWithoutLinearWhiteSpaces(decoded, (int*)&localSize, encoded, encodedLength)) {
|
||||
*decodedSize = localSize;
|
||||
if (encodedSizeOut != NULL) {
|
||||
*encodedSizeOut = encodedLength;
|
||||
}
|
||||
if (encodedSizeOut != NULL) { *encodedSizeOut = encodedLength; }
|
||||
return NWC24_ERR_OVERFLOW;
|
||||
}
|
||||
decodedLength = localSize;
|
||||
if (encodedWordPosition != 0) {
|
||||
if (encodedWord != NULL) {
|
||||
BOOL whitespaceOnly = TRUE;
|
||||
u32 offset;
|
||||
for (offset = 0; offset < localSize && decoded[offset] != '\0'; offset++) {
|
||||
@@ -613,20 +588,18 @@ static NWC24Err DecodeWord(char* charsetData, u32 charsetCapacity, char* decoded
|
||||
}
|
||||
}
|
||||
}
|
||||
if (decodedSize != NULL) {
|
||||
*decodedSize = decodedLength;
|
||||
}
|
||||
if (encodedSizeOut != NULL) {
|
||||
*encodedSizeOut = encodedLength;
|
||||
}
|
||||
return result;
|
||||
*decodedSize = decodedLength;
|
||||
if (encodedSizeOut != NULL) { *encodedSizeOut = encodedLength; }
|
||||
return NWC24_OK;
|
||||
}
|
||||
|
||||
NWC24Err NWC24DecodeMIMEHeaderFieldBody(u8* charsetData, u32 charsetDataSize, u8* decoded, u32 decodedCapacity, u32* decodedSize, u8* encoded,
|
||||
u32 encodedSize) {
|
||||
int result = 0;
|
||||
u8* output;
|
||||
u32 inputSize;
|
||||
s32 inputSize;
|
||||
char* input;
|
||||
s32 remainingCapacity;
|
||||
|
||||
if (decodedSize == NULL) {
|
||||
return NWC24_ERR_INVALID_VALUE;
|
||||
@@ -637,34 +610,34 @@ NWC24Err NWC24DecodeMIMEHeaderFieldBody(u8* charsetData, u32 charsetDataSize, u8
|
||||
if (decoded == NULL || decodedCapacity == 0) {
|
||||
return NWC24_ERR_INVALID_VALUE;
|
||||
}
|
||||
if (encoded == NULL)
|
||||
return NWC24_ERR_INVALID_VALUE;
|
||||
if (encoded == NULL)
|
||||
return NWC24_ERR_INVALID_VALUE;
|
||||
*decoded = 0;
|
||||
*charsetData = 0;
|
||||
*decodedSize = 1;
|
||||
input = (char*)encoded;
|
||||
inputSize = encodedSize;
|
||||
output = decoded;
|
||||
while ((s32)inputSize > 0 && (s32)decodedCapacity > 0 && *encoded != '\0') {
|
||||
remainingCapacity = decodedCapacity;
|
||||
while ((s32)inputSize > 0 && remainingCapacity > 0 && *input != '\0') {
|
||||
u32 copiedSize = 0;
|
||||
u32 consumedSize;
|
||||
result =
|
||||
DecodeWord((char*)charsetData, charsetDataSize, (char*)output, decodedCapacity, &copiedSize, (char*)encoded, inputSize, &consumedSize);
|
||||
DecodeWord((char*)charsetData, charsetDataSize, (char*)output, remainingCapacity, &copiedSize, (char*)input, inputSize, &consumedSize);
|
||||
if (copiedSize == 0) {
|
||||
break;
|
||||
}
|
||||
copiedSize--;
|
||||
output += copiedSize;
|
||||
decodedCapacity -= copiedSize;
|
||||
remainingCapacity -= copiedSize;
|
||||
*decodedSize += copiedSize;
|
||||
encoded += consumedSize;
|
||||
input += consumedSize;
|
||||
inputSize -= consumedSize;
|
||||
if (result != NWC24_OK) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (result == NWC24_OK && inputSize > 0 && *encoded != '\0') {
|
||||
if (result == NWC24_OK && inputSize > 0 && *input != '\0') {
|
||||
result = NWC24_ERR_OVERFLOW;
|
||||
}
|
||||
decoded[*decodedSize - 1] = '\0';
|
||||
@@ -695,6 +668,8 @@ static NWC24Err ConcatEncodedText(char* encoded, u32 encodedCapacity, u32* encod
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static NWC24Err ExtractCharset(char* charset, u32 charsetCapacity, u32* charsetSize, char* encoded, u32 encodedSize) {
|
||||
char* start;
|
||||
char* end;
|
||||
@@ -707,20 +682,29 @@ static NWC24Err ExtractCharset(char* charset, u32 charsetCapacity, u32* charsetS
|
||||
if (start == NULL) {
|
||||
return NWC24_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
start += 2;
|
||||
end = FindMarker(start, encodedSize - (u32)(start - encoded), "?");
|
||||
end = FindMarkerAfterPrefix(start, encodedSize - (u32)(start + 2 - encoded), 2, "?");
|
||||
if (end == NULL) {
|
||||
return NWC24_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
charsetLength = (u32)(end - start);
|
||||
if (charsetLength >= charsetCapacity) {
|
||||
return NWC24_ERR_OVERFLOW;
|
||||
}
|
||||
Mail_strncpy(charset, start, charsetLength);
|
||||
charset[charsetLength] = '\0';
|
||||
charsetLength = (u32)(end - (start + 2));
|
||||
if (charsetLength < charsetCapacity) {
|
||||
Mail_strncpy(charset, start + 2, charsetLength);
|
||||
charset[charsetLength] = '\0';
|
||||
} else { return NWC24_ERR_OVERFLOW; }
|
||||
*charsetSize = charsetLength + 2;
|
||||
return NWC24_OK;
|
||||
}
|
||||
static inline char* FindMarkerOffsetPrefix(char* input, u32 size, u32 prefix, const char* marker) {
|
||||
u32 markerLength = Mail_strlen(marker);
|
||||
u32 offset;
|
||||
for (offset = 0; offset <= size; offset++) {
|
||||
if (Mail_strncmp(input + offset + prefix, marker, markerLength) == 0) {
|
||||
return input + prefix + offset;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static NWC24Err ExtractEncodedText(char* decoded, u32 decodedCapacity, u32* decodedSize, char encoding, char* encoded, u32 encodedSize,
|
||||
u32* encodedSizeOut) {
|
||||
@@ -729,7 +713,8 @@ static NWC24Err ExtractEncodedText(char* decoded, u32 decodedCapacity, u32* deco
|
||||
int length;
|
||||
NWC24Err result;
|
||||
|
||||
if (encoded == NULL || decodedSize == NULL) {
|
||||
if (encoded == NULL) { return NWC24_ERR_INVALID_VALUE; }
|
||||
if (decodedSize == NULL) {
|
||||
return NWC24_ERR_INVALID_VALUE;
|
||||
}
|
||||
*decodedSize = 0;
|
||||
@@ -741,20 +726,19 @@ static NWC24Err ExtractEncodedText(char* decoded, u32 decodedCapacity, u32* deco
|
||||
if (start == NULL) {
|
||||
return NWC24_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
start++;
|
||||
end = FindMarker(start, encodedSize - (u32)(start - encoded), "?=");
|
||||
end = FindMarkerOffsetPrefix(start, encodedSize - (u32)(start + 1 - encoded), 1, "?=");
|
||||
if (end == NULL) {
|
||||
return NWC24_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
length = end - start;
|
||||
length = end - (start + 1);
|
||||
if (encoding == 'B' || encoding == 'b') {
|
||||
result = NWC24Base64Decode((u8*)start, length, (u8*)decoded, decodedCapacity - 1, decodedSize);
|
||||
result = NWC24Base64Decode((u8*)(start + 1), length, (u8*)decoded, decodedCapacity - 1, decodedSize);
|
||||
if (result == NWC24_OK || result == NWC24_ERR_OVERFLOW) {
|
||||
decoded[*decodedSize] = '\0';
|
||||
*decodedSize += 1;
|
||||
}
|
||||
} else if (encoding == 'Q' || encoding == 'q') {
|
||||
result = QDecode(decoded, decodedCapacity - 1, decodedSize, start, length, NULL, 1);
|
||||
result = QDecode(decoded, decodedCapacity - 1, decodedSize, start + 1, length, NULL, 1);
|
||||
if (result == NWC24_OK || result == NWC24_ERR_OVERFLOW) {
|
||||
decoded[*decodedSize] = '\0';
|
||||
*decodedSize += 1;
|
||||
@@ -762,6 +746,6 @@ static NWC24Err ExtractEncodedText(char* decoded, u32 decodedCapacity, u32* deco
|
||||
} else {
|
||||
return NWC24_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
*encodedSizeOut = (u32)(end - encoded) + 2;
|
||||
if (end != NULL) { *encodedSizeOut = (u32)(end - encoded) + 2; }
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -306,7 +306,7 @@ static NWC24Err NWC24CommitMsgInternal(NWC24MsgObjPrivate* msg, NWC24MBoxType ty
|
||||
CHECK_WRITE(WriteIconNewField(msg));
|
||||
if (msg->msgBoardFlags.raw != 0) {
|
||||
CHECK_WRITE(WriteMBNoReplyField(msg));
|
||||
CHECK_WRITE(WriteMBRegDateField(msg, msg->msgBoardFlags.raw & 0xFFFF));
|
||||
{ u16 dateFlags = msg->msgBoardFlags.raw; CHECK_WRITE(WriteMBRegDateField(msg, dateFlags)); }
|
||||
CHECK_WRITE(WriteMBDelayField(msg, msg->msgBoardFlags.raw & 0xFF0000));
|
||||
}
|
||||
}
|
||||
@@ -334,9 +334,8 @@ static NWC24Err NWC24CommitMsgInternal(NWC24MsgObjPrivate* msg, NWC24MBoxType ty
|
||||
if (!(msg->type & 0x10000))
|
||||
msg->unk_0x10 = msg->length;
|
||||
text.ptr = (const void*)msg->length;
|
||||
err = WritePlainText(msg);
|
||||
if (err == NWC24_ERR_NULL)
|
||||
err = NWC24_OK;
|
||||
{ NWC24Err textResult = WritePlainText(msg);
|
||||
err = textResult == NWC24_ERR_NULL ? NWC24_OK : textResult; }
|
||||
if (err != NWC24_OK) {
|
||||
NWC24FClose(&file);
|
||||
result = err;
|
||||
|
||||
@@ -505,8 +505,12 @@ NWC24Err NWC24ReadMsgAttached(const NWC24MsgObj* msg, u32 index, u8* output, u32
|
||||
}
|
||||
decodedSize = 0;
|
||||
result = ReadBase64Data(&file, &privateMsg->attached[index], output, capacity, &decodedSize);
|
||||
if (result == NWC24_OK && decodedSize != privateMsg->attachedSize[index])
|
||||
result = NWC24_ERR_FORMAT;
|
||||
switch (result) {
|
||||
case NWC24_OK:
|
||||
if (decodedSize != privateMsg->attachedSize[index]) { result = NWC24_ERR_FORMAT; }
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
closeResult = NWC24iMBoxCloseMsg(&file);
|
||||
if (result == NWC24_OK)
|
||||
result = closeResult;
|
||||
|
||||
@@ -821,8 +821,8 @@ NWC24Err NWC24iSetMsgSubjectBase64(NWC24MsgObj* msg, const u16* subject, u32 sub
|
||||
u8* second;
|
||||
u32 subjectLength;
|
||||
u32 lineLength;
|
||||
u32 outputLength;
|
||||
u32 sourceOffset;
|
||||
u32 outputLength;
|
||||
u32 total;
|
||||
u32 charsetLength;
|
||||
NWC24Err result;
|
||||
@@ -832,42 +832,41 @@ NWC24Err NWC24iSetMsgSubjectBase64(NWC24MsgObj* msg, const u16* subject, u32 sub
|
||||
second = work + workHalf;
|
||||
charsetLength = strlen(charsetName);
|
||||
lineLength = ((0x36 - charsetLength) * 3) >> 2;
|
||||
if (workHalf < lineLength) {
|
||||
if (lineLength > workHalf) {
|
||||
result = NWC24_ERR_OVERFLOW;
|
||||
} else {
|
||||
outputLength = lineLength + 1;
|
||||
workHalf = lineLength + 1;
|
||||
subjectLength = subjectSize;
|
||||
result = NWC24iConvertFromInternalEncoding(work, &outputLength, subject, &subjectLength, charsetName, 0x40, region, alternative);
|
||||
if (((result == NWC24_OK) || (result == NWC24_ERR_OVERFLOW)) &&
|
||||
((result = NWC24EncodeWord(second, secondSize, &outputLength, charsetName, 0x40, 'B', work, outputLength - 1)) == NWC24_OK)) {
|
||||
result = NWC24iConvertFromInternalEncoding(work, &workHalf, subject, &subjectLength, charsetName, 0x40, region, alternative);
|
||||
switch (result) { case NWC24_OK: case NWC24_ERR_OVERFLOW: break; default: goto done; }
|
||||
result = NWC24EncodeWord(second, secondSize, &outputLength, charsetName, 0x40, 'B', work, workHalf - 1);
|
||||
switch (result) { case NWC24_OK: break; default: goto done; }
|
||||
{
|
||||
sourceOffset = subjectLength;
|
||||
if (sourceOffset == subjectSize) {
|
||||
result = NWC24SetMsgSubject(msg, (char*)second, outputLength - 1);
|
||||
} else {
|
||||
charsetLength = strlen(charsetName);
|
||||
lineLength = (((0x3E - charsetLength) * 3) >> 2) + 1;
|
||||
total = outputLength;
|
||||
total = outputLength - 1;
|
||||
for (; sourceOffset < subjectSize; sourceOffset += subjectLength) {
|
||||
subjectLength = subjectSize - sourceOffset;
|
||||
workHalf = lineLength;
|
||||
if (secondSize - (total - 1) < 3) {
|
||||
if (secondSize - total < 3) {
|
||||
result = NWC24_ERR_OVERFLOW;
|
||||
goto done;
|
||||
}
|
||||
second[total - 1] = '\r';
|
||||
second[total] = '\n';
|
||||
second[total + 1] = ' ';
|
||||
total += 2;
|
||||
second[total++] = '\r';
|
||||
second[total++] = '\n';
|
||||
second[total++] = ' ';
|
||||
result = NWC24iConvertFromInternalEncoding(work, &workHalf, subject + sourceOffset, &subjectLength, charsetName, 0x40, region,
|
||||
alternative);
|
||||
if (((result != NWC24_OK) && (result != NWC24_ERR_OVERFLOW)) ||
|
||||
((result = NWC24EncodeWord(second + total, secondSize - total, &outputLength, charsetName, 0x40, 'B', work, workHalf - 1)) !=
|
||||
NWC24_OK)) {
|
||||
goto done;
|
||||
}
|
||||
total += outputLength;
|
||||
switch (result) { case NWC24_OK: case NWC24_ERR_OVERFLOW: break; default: goto done; }
|
||||
result = NWC24EncodeWord(second + total, secondSize - total, &outputLength, charsetName, 0x40, 'B', work, workHalf - 1);
|
||||
switch (result) { case NWC24_OK: break; default: goto done; }
|
||||
total = total + outputLength - 1;
|
||||
}
|
||||
result = NWC24SetMsgSubject(msg, (char*)second, total - 1);
|
||||
result = NWC24SetMsgSubject(msg, (char*)second, total);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -294,11 +294,11 @@ extern vu32 __DVDLayoutFormat;
|
||||
|
||||
void Run(u32 entryPoint, void *start, u32 blockCount, u32 argument) {
|
||||
u8 *block = start;
|
||||
do {
|
||||
for (; blockCount != 0; --blockCount) {
|
||||
DCZeroRange(block, 32);
|
||||
DCFlushRange(block, 32);
|
||||
block += 32;
|
||||
} while (--blockCount != 0);
|
||||
}
|
||||
((void (*)(u32))entryPoint)(argument);
|
||||
}
|
||||
|
||||
@@ -894,7 +894,7 @@ void BS2StartGCGame() {
|
||||
counterBias = SCGetCounterBias();
|
||||
seconds = rtc + counterBias;
|
||||
timerFrequency = OS_BUS_CLOCK >> 2;
|
||||
time = (OSTime)timerFrequency * seconds;
|
||||
time = (OSTime)seconds * timerFrequency;
|
||||
__OSSetTime(time);
|
||||
|
||||
sram = __OSLockSram();
|
||||
@@ -1076,12 +1076,12 @@ void BS2NANDDivideCallback(s32 result, NANDCommandBlock *block) {
|
||||
}
|
||||
|
||||
void BS2NANDDivideReadAsync(NANDFileInfo *info, void *buffer, u32 length, NANDCallback callback, NANDCommandBlock *block) {
|
||||
NandFile = info;
|
||||
NandBuffer = (u8 *)buffer;
|
||||
NandLength = length;
|
||||
NandTransferred = 0;
|
||||
NandCompletion = callback;
|
||||
NandOperation = 2;
|
||||
NandLength = length;
|
||||
NandTransferred = 0;
|
||||
NandFile = info;
|
||||
NandBuffer = (u8 *)buffer;
|
||||
if (NandLength > 0x40000) {
|
||||
BS2Report("NANDReadAsync buf:0x%08X, length:0x%08X\n", NandBuffer, 0x40000);
|
||||
NANDReadAsync(NandFile, (void *)NandBuffer, 0x40000, BS2NANDDivideCallback, block);
|
||||
@@ -1092,12 +1092,12 @@ void BS2NANDDivideReadAsync(NANDFileInfo *info, void *buffer, u32 length, NANDCa
|
||||
}
|
||||
|
||||
void BS2NANDDivideWriteAsync(NANDFileInfo *info, const void *buffer, u32 length, NANDCallback callback, NANDCommandBlock *block) {
|
||||
NandFile = info;
|
||||
NandBuffer = (u8 *)buffer;
|
||||
NandLength = length;
|
||||
NandTransferred = 0;
|
||||
NandCompletion = callback;
|
||||
NandOperation = 1;
|
||||
NandLength = length;
|
||||
NandTransferred = 0;
|
||||
NandFile = info;
|
||||
NandBuffer = (u8 *)buffer;
|
||||
if (NandLength > 0x40000) {
|
||||
BS2Report("NANDWriteAsync buf:0x%08X, length:0x%08X\n", NandBuffer, 0x40000);
|
||||
NANDWriteAsync(NandFile, (void *)NandBuffer, 0x40000, BS2NANDDivideCallback, block);
|
||||
@@ -1195,7 +1195,8 @@ BOOL CheckBS2CommandStatus() {
|
||||
partCount = ((DVDGameTOC *)DataToc)->partitionCount;
|
||||
chunkLength = OSRoundUp32B(partCount * sizeof(DVDPartitionInfo)) + 32;
|
||||
CacheCommandComplete = 1;
|
||||
CacheLength = CacheLength + chunkLength;
|
||||
CacheLength = CacheLength + OSRoundUp32B(partCount * sizeof(DVDPartitionInfo));
|
||||
CacheLength += 32;
|
||||
if ((unsigned int)CacheLength > 0xb00000) {
|
||||
BS2NANDCallback(-1, NULL);
|
||||
return 1;
|
||||
@@ -1374,12 +1375,12 @@ BS2State BS2Tick() {
|
||||
State = BS2_STT_3;
|
||||
currentTime = __OSGetSystemTime();
|
||||
ResetTime = currentTime;
|
||||
if (BS2WaitSpinup == 0 || BS2BootFromCache != 0) {
|
||||
if (BS2WaitSpinup != 0 && BS2BootFromCache == 0) {
|
||||
currentTime = __OSGetSystemTime();
|
||||
SpinupDeadline = currentTime;
|
||||
SpinupDeadline = (u64)((OS_BUS_CLOCK >> 2) * 5) + currentTime;
|
||||
} else {
|
||||
currentTime = __OSGetSystemTime();
|
||||
SpinupDeadline = currentTime + (u64)((OS_BUS_CLOCK >> 2) * 5);
|
||||
SpinupDeadline = currentTime;
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -1398,12 +1399,12 @@ BS2State BS2Tick() {
|
||||
AudioBufferUnconfigured = 1;
|
||||
currentTime = __OSGetSystemTime();
|
||||
ResetTime = currentTime;
|
||||
if (BS2BootFromCache == 0) {
|
||||
currentTime = __OSGetSystemTime();
|
||||
SpinupDeadline = currentTime + (u64)((OS_BUS_CLOCK >> 2) * 7);
|
||||
} else {
|
||||
if (BS2BootFromCache != 0) {
|
||||
currentTime = __OSGetSystemTime();
|
||||
SpinupDeadline = currentTime;
|
||||
} else {
|
||||
currentTime = __OSGetSystemTime();
|
||||
SpinupDeadline = (u64)((OS_BUS_CLOCK >> 2) * 7) + currentTime;
|
||||
}
|
||||
__OSClearRTCFlags();
|
||||
DVDResetAsync(&Block, BS2DVDCallback);
|
||||
@@ -1481,9 +1482,9 @@ BS2State BS2Tick() {
|
||||
memcpy((void *)0x80000000, &DiskID, 0x20);
|
||||
if ((*(u32 *)0x80000018) == 0x5d1c9ea3) {
|
||||
status = strncmp((char *)0x80000000, "RAAE", 4);
|
||||
if ((((status == 0) || (status = strncmp((char *)0x80000000, "408", 3), status == 0)) ||
|
||||
(status = strncmp((char *)0x80000000, "410", 3), status == 0)) ||
|
||||
(status = strncmp((char *)0x80000000, "410", 3), status == 0))
|
||||
if (status == 0 || strncmp((char *)0x80000000, "408", 3) == 0 ||
|
||||
strncmp((char *)0x80000000, "410", 3) == 0 ||
|
||||
strncmp((char *)0x80000000, "410", 3) == 0)
|
||||
regionMatches = FALSE;
|
||||
else
|
||||
regionMatches = TRUE;
|
||||
|
||||
@@ -1,20 +1,44 @@
|
||||
#define BS2_UPDATE_SOURCE
|
||||
#include "BS2/BS2Update.h"
|
||||
#include "BS2/BS2.h"
|
||||
#include <private/os.h>
|
||||
#include <private/es.h>
|
||||
#include <private/nand.h>
|
||||
#include <revolution/sc.h>
|
||||
#include <revolution/dvd.h>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
typedef struct UpdateThreadData {
|
||||
OSThread thread;
|
||||
u8 stack[4096];
|
||||
} UpdateThreadData;
|
||||
|
||||
static u32 Flags0[BS2_UPDATE_ENTRY_COUNT];
|
||||
static u32 Flags1[BS2_UPDATE_ENTRY_COUNT];
|
||||
static UpdateThreadData Thread;
|
||||
static BS2UpdateHeader UpdateHeader0 ALIGN32;
|
||||
static BS2UpdateHeader UpdateHeader1 ALIGN32;
|
||||
|
||||
#define UPDATE_DISC_ENTRIES ((BS2UpdateEntry*)0x80480000)
|
||||
|
||||
s32 WADCheckImport(u64 titleId, u16 titleVersion);
|
||||
s32 WADImportDVDForBS(const char* path, void* buffer, u32 length);
|
||||
s32 WADImportDVDExForBS(const char* path, void* buffer, u32 length);
|
||||
|
||||
static BS2UpdateEntry* pEntries;
|
||||
static u32 EntriesCount;
|
||||
static u32* pFlags;
|
||||
static void* MemAllocator;
|
||||
int State;
|
||||
BS2UpdateEntry* CurrentEntry;
|
||||
static u32 lbl_81698B10;
|
||||
static BOOL lbl_81698B14;
|
||||
static u32 lbl_81698B18;
|
||||
static u32 lbl_81698B1C;
|
||||
static u32 RebootRequired;
|
||||
static BOOL ContainsSeatTitles;
|
||||
static u32 UpdateImportState;
|
||||
static u32 UpdateImportResult;
|
||||
u32 StartUpdate;
|
||||
u32 CancelUpdate;
|
||||
static f32 UpdateProgress;
|
||||
static u32 UpdateProgress;
|
||||
static s32 rc;
|
||||
static u64 VersionIOS;
|
||||
static u32 VersionMEM2;
|
||||
@@ -32,6 +56,446 @@ char* getSuffix(const char* path) {
|
||||
}
|
||||
#pragma force_active off
|
||||
|
||||
static void* UpdateThread(void* argument);
|
||||
|
||||
void BS2UpdateInit(void* allocator) {
|
||||
BS2Report("initialize BS2Update\n");
|
||||
ConsoleType = OSGetConsoleType();
|
||||
VersionES = __OSGetHollywoodRev();
|
||||
VersionMEM2 = OSGetPhysicalMem2Size();
|
||||
__OSGetIOSRev((OSIOSRev*)&VersionIOS);
|
||||
BS2Report("Console Type : %08X\n", ConsoleType);
|
||||
BS2Report("Hollywood Rev : %08X\n", VersionES);
|
||||
BS2Report("MEM2 Size : %08X\n", VersionMEM2);
|
||||
MemAllocator = allocator;
|
||||
State = 0;
|
||||
CurrentEntry = NULL;
|
||||
pEntries = NULL;
|
||||
EntriesCount = 0;
|
||||
memset(UPDATE_DISC_ENTRIES, 0, 0x40000);
|
||||
memset(EntriesToImport, 0, 0x40000);
|
||||
memset(Flags1, 0, sizeof(Flags1));
|
||||
BS2Report("Create update thread\n");
|
||||
OSCreateThread(&Thread.thread, UpdateThread, NULL, Thread.stack + sizeof(Thread.stack),
|
||||
sizeof(Thread.stack), 31, 1);
|
||||
OSResumeThread(&Thread.thread);
|
||||
}
|
||||
|
||||
static void* UpdateThread(void* argument) {
|
||||
BOOL missingFile;
|
||||
u32 selectedCount;
|
||||
u32 requiredBytes;
|
||||
u32 requiredInodes;
|
||||
u32 channelCount;
|
||||
u32 freeChannels;
|
||||
u32 freeBlocks;
|
||||
u32 freeInodes;
|
||||
u32 ticketCount;
|
||||
char productArea[8];
|
||||
u64 titleId;
|
||||
char updatePath[32];
|
||||
char seatPath[32];
|
||||
DVDFileInfo file;
|
||||
u32 index;
|
||||
BS2UpdateEntry* entry;
|
||||
BS2UpdateEntry* seatEntries;
|
||||
BS2UpdateEntry* selectedSeats;
|
||||
u32 selectedSeatCount;
|
||||
BOOL regionValid;
|
||||
u32 titleRegion;
|
||||
|
||||
BS2Report("Start update thread\n");
|
||||
StartUpdate = 0;
|
||||
CancelUpdate = 0;
|
||||
missingFile = FALSE;
|
||||
selectedCount = 0;
|
||||
requiredBytes = 0;
|
||||
requiredInodes = 0;
|
||||
channelCount = 0;
|
||||
freeChannels = 0;
|
||||
freeBlocks = 0;
|
||||
freeInodes = 0;
|
||||
selectedSeatCount = 0;
|
||||
State = 0;
|
||||
ContainsSeatTitles = FALSE;
|
||||
if (ES_GetTitleId(&titleId) != 0) {
|
||||
regionValid = FALSE;
|
||||
} else {
|
||||
titleRegion = (u8)titleId;
|
||||
regionValid = FALSE;
|
||||
switch (SCGetProductArea()) {
|
||||
case 0:
|
||||
case 5:
|
||||
if (titleRegion == 'J' || titleRegion == 'D') {
|
||||
regionValid = TRUE;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
if (titleRegion == 'E' || titleRegion == 'D') {
|
||||
regionValid = TRUE;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if (titleRegion == 'P' || titleRegion == 'D') {
|
||||
regionValid = TRUE;
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
if (titleRegion == 'K') {
|
||||
regionValid = TRUE;
|
||||
}
|
||||
break;
|
||||
case 11:
|
||||
if (titleRegion == 'C') {
|
||||
regionValid = TRUE;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!regionValid) {
|
||||
BS2Report("Error: failed to check product region.");
|
||||
goto no_updates;
|
||||
}
|
||||
if (!SCGetProductAreaString(productArea, sizeof(productArea))) {
|
||||
BS2Report("Error: failed to get product information.");
|
||||
goto no_updates;
|
||||
}
|
||||
strcpy(updatePath, "__update.inf");
|
||||
strcat(updatePath, "-");
|
||||
strcat(updatePath, productArea);
|
||||
if (DVDConvertPathToEntrynum(updatePath) < 0) {
|
||||
switch (SCGetProductArea()) {
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
case 6:
|
||||
case 11:
|
||||
strcpy(updatePath, "__update.inf");
|
||||
if (DVDConvertPathToEntrynum(updatePath) < 0) {
|
||||
BS2Report("Error: update information file is not found.");
|
||||
goto no_updates;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
BS2Report("Error: update information file is not found.");
|
||||
goto no_updates;
|
||||
}
|
||||
}
|
||||
BS2Report("%s is found.\n", updatePath);
|
||||
if (!DVDOpen(updatePath, &file)) {
|
||||
BS2Report("Error: failed to open update information file.");
|
||||
goto no_updates;
|
||||
}
|
||||
if (DVDReadPrio(&file, &UpdateHeader0, sizeof(UpdateHeader0), 0, 2) < 0) {
|
||||
BS2Report("Error: failed to read update information header.");
|
||||
goto no_updates;
|
||||
}
|
||||
if (UpdateHeader0.wadCount == 0) {
|
||||
BS2Report("Error: no entry.");
|
||||
goto no_updates;
|
||||
}
|
||||
if (UpdateHeader0.wadCount > 32) {
|
||||
BS2Report("Error: found too many entries.");
|
||||
goto no_updates;
|
||||
}
|
||||
UpdateHeader0.wadCount += UpdateHeader0.extraCount;
|
||||
if (UpdateHeader0.wadCount > BS2_UPDATE_ENTRY_COUNT) {
|
||||
BS2Report("Error: found too many extra entries.");
|
||||
goto no_updates;
|
||||
}
|
||||
if (DVDReadPrio(&file, UPDATE_DISC_ENTRIES, UpdateHeader0.wadCount * sizeof(BS2UpdateEntry), 32, 2) < 0) {
|
||||
BS2Report("Error: failed to read update information.");
|
||||
goto no_updates;
|
||||
}
|
||||
for (index = 0; index < UpdateHeader0.wadCount; index++) {
|
||||
entry = &UPDATE_DISC_ENTRIES[index];
|
||||
if ((entry->attr & 1) == 0) {
|
||||
continue;
|
||||
}
|
||||
switch (OSGetPhysicalMem2Size()) {
|
||||
case 0x4000000:
|
||||
if ((entry->depend & 1) == 0) {
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
case 0x8000000:
|
||||
if ((entry->depend & 2) == 0) {
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
BS2Report("Cannot get physical MEM2 size\n");
|
||||
State = 5;
|
||||
goto no_updates;
|
||||
}
|
||||
if (DVDOpen(entry->path, &file) < 0) {
|
||||
BS2Report("%s is not found\n", entry->path);
|
||||
missingFile = TRUE;
|
||||
continue;
|
||||
}
|
||||
entry->size = file.length;
|
||||
if (entry->type == 0) {
|
||||
selectedCount++;
|
||||
} else if (WADCheckImport(entry->titleId, entry->titleVersion) == 0) {
|
||||
BS2Report("%s is already installed\n", entry->path);
|
||||
Flags1[index] = 0;
|
||||
} else {
|
||||
BS2Report("%s\n", entry->path);
|
||||
memcpy(&EntriesToImport[selectedCount], entry, sizeof(*entry));
|
||||
selectedCount++;
|
||||
Flags1[index] = 1;
|
||||
}
|
||||
}
|
||||
strcpy(seatPath, "__seatholder.inf");
|
||||
strcat(seatPath, "-");
|
||||
strcat(seatPath, productArea);
|
||||
if (DVDConvertPathToEntrynum(seatPath) < 0) {
|
||||
switch (SCGetProductArea()) {
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
case 6:
|
||||
case 11:
|
||||
strcpy(seatPath, "__seatholder.inf");
|
||||
if (DVDConvertPathToEntrynum(seatPath) < 0) {
|
||||
BS2Report("Error: update seatholder information file is not found.");
|
||||
goto seats_done;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
BS2Report("Error: update seatholder information file is not found.");
|
||||
goto seats_done;
|
||||
}
|
||||
}
|
||||
BS2Report("%s is found.\n", seatPath);
|
||||
if (!DVDOpen(seatPath, &file)) {
|
||||
BS2Report("Error: failed to open update information file.");
|
||||
goto seats_done;
|
||||
}
|
||||
if (DVDReadPrio(&file, &UpdateHeader1, sizeof(UpdateHeader1), 0, 2) < 0) {
|
||||
BS2Report("Error: failed to read update information header.");
|
||||
goto seats_done;
|
||||
}
|
||||
if ((UpdateHeader1.wadCount | UpdateHeader1.extraCount) == 0) {
|
||||
BS2Report("Error: no entry.");
|
||||
goto seats_done;
|
||||
}
|
||||
UpdateHeader1.wadCount += UpdateHeader1.extraCount;
|
||||
if (UpdateHeader0.wadCount + UpdateHeader1.wadCount > BS2_UPDATE_ENTRY_COUNT) {
|
||||
BS2Report("Error: found too many extra entries.");
|
||||
goto seats_done;
|
||||
}
|
||||
seatEntries = &UPDATE_DISC_ENTRIES[UpdateHeader0.wadCount];
|
||||
selectedSeats = &EntriesToImport[selectedCount];
|
||||
if (DVDReadPrio(&file, seatEntries, UpdateHeader1.wadCount * sizeof(BS2UpdateEntry), 32, 2) < 0) {
|
||||
BS2Report("Error: failed to read update information.");
|
||||
goto seats_done;
|
||||
}
|
||||
for (index = 0; index < UpdateHeader1.wadCount; index++) {
|
||||
entry = &seatEntries[index];
|
||||
OSReport("type = %d\n", entry->type);
|
||||
OSReport("attribute = %d\n", entry->attr);
|
||||
OSReport("size = %d\n", entry->size);
|
||||
OSReport("inodes = %d\n", entry->inodes);
|
||||
OSReport("dependency = %d\n", entry->depend);
|
||||
OSReport("path = %64s\n", entry->path);
|
||||
OSReport("titleId = %llx\n", entry->titleId);
|
||||
OSReport("titleVersion = %d\n", entry->titleVersion);
|
||||
Flags0[index] = 0;
|
||||
if ((entry->attr & 1) == 0) {
|
||||
continue;
|
||||
}
|
||||
switch (OSGetPhysicalMem2Size()) {
|
||||
case 0x4000000:
|
||||
if ((entry->depend & 1) == 0) {
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
case 0x8000000:
|
||||
if ((entry->depend & 2) == 0) {
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
BS2Report("Cannot get physical MEM2 size\n");
|
||||
State = 5;
|
||||
goto seats_done;
|
||||
}
|
||||
if (DVDOpen(entry->path, &file) < 0) {
|
||||
BS2Report("%s is not found\n", entry->path);
|
||||
missingFile = TRUE;
|
||||
continue;
|
||||
}
|
||||
if (entry->type != 7) {
|
||||
continue;
|
||||
}
|
||||
if (ES_GetTicketViews(entry->titleId, NULL, &ticketCount) != 0) {
|
||||
BS2Report("Faild to get eTicket views.\n");
|
||||
continue;
|
||||
}
|
||||
if (ticketCount != 0) {
|
||||
continue;
|
||||
}
|
||||
if (SCGetWwwRestriction() && ((u32)entry->titleId & 0xFFFFFF00) == 0x48414400) {
|
||||
Flags0[index] = 0;
|
||||
OSReport("Internet CH is restricted!\n");
|
||||
continue;
|
||||
}
|
||||
if (SCGetProductGameRegion() == 2 && (SCGetSimpleAddressID() >> 24) != 110 &&
|
||||
(u32)entry->titleId == 0x48434A50) {
|
||||
Flags0[index] = 0;
|
||||
OSReport("BBCi CH is only for UK!\n");
|
||||
continue;
|
||||
}
|
||||
BS2Report("%s\n", entry->path);
|
||||
memcpy(&selectedSeats[selectedSeatCount], entry, sizeof(*entry));
|
||||
Flags0[index] = 1;
|
||||
channelCount++;
|
||||
selectedSeatCount++;
|
||||
requiredBytes += entry->size;
|
||||
requiredInodes += entry->inodes;
|
||||
}
|
||||
if (channelCount != 0) {
|
||||
if (!SCGetFreeChannelAppCount(&freeChannels)) {
|
||||
BS2Report("Error: cannot get channel count.");
|
||||
goto seats_done;
|
||||
}
|
||||
if (NANDSecretGetUserAvailableArea(&freeBlocks, &freeInodes) != 0) {
|
||||
BS2Report("Error: cannot get free user blocks.");
|
||||
goto seats_done;
|
||||
}
|
||||
if ((freeBlocks << 14) < 0x1004000 || requiredBytes > (freeBlocks << 14) - 0x1004000) {
|
||||
BS2Report("Sufficient user blocks doesn't exist.");
|
||||
goto seats_done;
|
||||
}
|
||||
if (freeInodes < requiredInodes + 36) {
|
||||
BS2Report("Sufficient user inodes doesn't exist.");
|
||||
goto seats_done;
|
||||
}
|
||||
if (channelCount > freeChannels) {
|
||||
BS2Report("No enough blank channel.");
|
||||
goto seats_done;
|
||||
}
|
||||
for (index = 0; index < UpdateHeader1.wadCount; index++) {
|
||||
Flags1[UpdateHeader0.wadCount + index] = Flags0[index];
|
||||
if (Flags0[index] == 1) {
|
||||
selectedCount++;
|
||||
}
|
||||
}
|
||||
ContainsSeatTitles = TRUE;
|
||||
UpdateHeader0.wadCount += UpdateHeader1.wadCount;
|
||||
}
|
||||
seats_done:
|
||||
if (missingFile) {
|
||||
State = 5;
|
||||
goto no_updates;
|
||||
}
|
||||
pEntries = EntriesToImport;
|
||||
pFlags = Flags1;
|
||||
for (index = 0; index < UpdateHeader0.wadCount; index++) {
|
||||
if (Flags1[index] == 1) {
|
||||
entry = &UPDATE_DISC_ENTRIES[index];
|
||||
BS2Report("File: %s\n", entry->path);
|
||||
BS2Report("Name: %s\n", entry->dataName);
|
||||
BS2Report("Info: %s\n", entry->dataMeta);
|
||||
BS2Report("Attr: %s\n", (entry->attr & 1) ? "Critical" : "Non critical");
|
||||
BS2Report(" %s\n", (entry->attr & 2) ? "Reboot" : "Not reboot");
|
||||
}
|
||||
}
|
||||
goto selection_done;
|
||||
no_updates:
|
||||
selectedCount = 0;
|
||||
selection_done:
|
||||
EntriesCount = selectedCount;
|
||||
if (EntriesCount == 0) {
|
||||
State = 5;
|
||||
StartUpdate = 0;
|
||||
CancelUpdate = 0;
|
||||
BS2Report("Return update thread\n");
|
||||
return NULL;
|
||||
}
|
||||
State = 1;
|
||||
UpdateProgress = 0;
|
||||
for (;;) {
|
||||
if (StartUpdate != 0) {
|
||||
if (UpdateProgress < UpdateHeader0.wadCount) {
|
||||
BS2Report("Progress : %d\n", UpdateProgress);
|
||||
if (Flags1[UpdateProgress] == 1) {
|
||||
BS2Report("Import : %s\n", UPDATE_DISC_ENTRIES[UpdateProgress].path);
|
||||
State = 2;
|
||||
CurrentEntry = &UPDATE_DISC_ENTRIES[UpdateProgress];
|
||||
if (UPDATE_DISC_ENTRIES[UpdateProgress].type == 0) {
|
||||
UpdateProgress++;
|
||||
continue;
|
||||
}
|
||||
if (UPDATE_DISC_ENTRIES[UpdateProgress].type == 1) {
|
||||
BS2Report("BS2WADImportDVD : ");
|
||||
index = UpdateProgress;
|
||||
if (strcmp(getSuffix(UPDATE_DISC_ENTRIES[index].path), "wad") == 0) {
|
||||
rc = WADImportDVDForBS(UPDATE_DISC_ENTRIES[index].path, (void*)BS2_UPDATE_ADDRESS, 0x80000);
|
||||
} else {
|
||||
rc = 0;
|
||||
}
|
||||
BS2Report("rc = %d\n", rc);
|
||||
if (rc != 0) {
|
||||
NANDLoggingAddMessageAsync(NULL, "BS2 error. [%d] titleID: 0x%016llx %s line: %d",
|
||||
rc, UPDATE_DISC_ENTRIES[UpdateProgress].titleId, "BS2Update.c", 0x3F5);
|
||||
State = 5;
|
||||
UpdateProgress = UpdateHeader0.wadCount + 1;
|
||||
break;
|
||||
}
|
||||
if ((UPDATE_DISC_ENTRIES[UpdateProgress].attr & 2) != 0) {
|
||||
RebootRequired = 1;
|
||||
}
|
||||
UpdateProgress++;
|
||||
} else {
|
||||
BS2Report("BS2WADImportDVDEx : ");
|
||||
index = UpdateProgress;
|
||||
if (strcmp(getSuffix(UPDATE_DISC_ENTRIES[index].path), "wad") == 0) {
|
||||
rc = WADImportDVDExForBS(UPDATE_DISC_ENTRIES[index].path, (void*)BS2_UPDATE_ADDRESS, 0x80000);
|
||||
} else {
|
||||
rc = 0;
|
||||
}
|
||||
BS2Report("rc = %d\n", rc);
|
||||
if (rc != 0) {
|
||||
NANDLoggingAddMessageAsync(NULL, "BS2 error. [%d] titleID: 0x%016llx %s line: %d",
|
||||
rc, UPDATE_DISC_ENTRIES[UpdateProgress].titleId, "BS2Update.c", 0x40F);
|
||||
State = 5;
|
||||
UpdateProgress = UpdateHeader0.wadCount + 1;
|
||||
break;
|
||||
}
|
||||
if ((UPDATE_DISC_ENTRIES[UpdateProgress].attr & 2) != 0) {
|
||||
RebootRequired = 1;
|
||||
}
|
||||
UpdateProgress++;
|
||||
}
|
||||
} else {
|
||||
BS2Report("Not import : %s\n", UPDATE_DISC_ENTRIES[UpdateProgress].path);
|
||||
UpdateProgress++;
|
||||
}
|
||||
} else if (UpdateProgress == UpdateHeader0.wadCount) {
|
||||
if (RebootRequired != 0) {
|
||||
State = 4;
|
||||
} else {
|
||||
State = 3;
|
||||
}
|
||||
UpdateProgress++;
|
||||
CurrentEntry = NULL;
|
||||
break;
|
||||
}
|
||||
} else if (CancelUpdate != 0) {
|
||||
State = 6;
|
||||
break;
|
||||
}
|
||||
}
|
||||
StartUpdate = 0;
|
||||
CancelUpdate = 0;
|
||||
UpdateImportState = 0;
|
||||
UpdateImportResult = 0;
|
||||
BS2Report("Return update thread\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int BS2UpdateState() {
|
||||
return State;
|
||||
}
|
||||
@@ -57,5 +521,5 @@ BS2UpdateEntry* BS2GetCurrentEntry() {
|
||||
}
|
||||
|
||||
BOOL BS2ContainsSeatTitles() {
|
||||
return lbl_81698B14;
|
||||
return ContainsSeatTitles;
|
||||
}
|
||||
|
||||
@@ -261,15 +261,15 @@ namespace www {
|
||||
val->data.jsStr = pString->adjMtu;
|
||||
break;
|
||||
}
|
||||
case FORM_ID_PARENTAL_JUDGE_PASS: {
|
||||
case FORM_ID_PARENTAL_SEC_ANSWER: {
|
||||
val->data.jsStr = pString->parentalSecA;
|
||||
break;
|
||||
}
|
||||
case FORM_ID_PARENTAL_SEC_ANSWER: {
|
||||
case FORM_ID_MASTER_KEY: {
|
||||
val->data.jsStr = ipl::parental::Parental::getRequestNum();
|
||||
break;
|
||||
}
|
||||
case FORM_ID_PARENTAL_RE_SEC_ANSWER: {
|
||||
case FORM_ID_VERSION: {
|
||||
val->data.jsStr = pString->version;
|
||||
break;
|
||||
}
|
||||
@@ -569,9 +569,10 @@ namespace www {
|
||||
u32 restrictionsByte = val->data.jsDouble;
|
||||
u32 newRestrictions;
|
||||
u8 oldRestrictions = sWiiData.data[bytePropIdx];
|
||||
newRestrictions = oldRestrictions | (restrictionsByte & 0x7F);
|
||||
if ((restrictionsByte & 0x80) != 0) {
|
||||
newRestrictions = oldRestrictions & ~(restrictionsByte & 0x7F);
|
||||
} else {
|
||||
newRestrictions = oldRestrictions | (restrictionsByte & 0x7F);
|
||||
}
|
||||
sWiiData.data[bytePropIdx] = newRestrictions;
|
||||
writeBackID = bytePropIdx;
|
||||
@@ -952,7 +953,7 @@ namespace www {
|
||||
switch (funcID) {
|
||||
case 0x17:
|
||||
case 0x1A:
|
||||
case 0x1B:
|
||||
case 0x1D:
|
||||
case 0x4D:
|
||||
case 0x4E:
|
||||
case 0x4F:
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1936,7 +1936,7 @@ namespace ipl {
|
||||
|
||||
BOOL FriendListCache::isDupId(const NWC24UserId& userId) {
|
||||
for (u32 i = 0; i < FRIEND_MAX; i++) {
|
||||
if (mbThere[i] && mInfos[i].attr.type == NWC24_FRIENDTYPE_WII && userId == mInfos[i].addr.wiiId) {
|
||||
if (mbThere[i] && mInfos[i].attr.type == NWC24_FRIENDTYPE_WII && userId == getInfo(i).addr.wiiId) {
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
@@ -1946,7 +1946,7 @@ namespace ipl {
|
||||
|
||||
BOOL FriendListCache::isDupMail(const char* mailAddr) {
|
||||
for (int i = 0; i < FRIEND_MAX; i++) {
|
||||
if (mbThere[i] && mInfos[i].attr.type == NWC24_FRIENDTYPE_EMAIL && strcmp(mInfos[i].addr.mailAddr, mailAddr) == 0) {
|
||||
if (mbThere[i] && getInfo(i).attr.type == NWC24_FRIENDTYPE_EMAIL && strcmp(getInfo(i).addr.mailAddr, mailAddr) == 0) {
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
@@ -1955,7 +1955,7 @@ namespace ipl {
|
||||
}
|
||||
|
||||
void FriendListCache::sendRegisterMail(u32 index) {
|
||||
const NWC24FriendInfo& info = mInfos[index];
|
||||
const NWC24FriendInfo& info = getInfo(index);
|
||||
nwc24::Manager* manager = System::getNwc24Manager();
|
||||
|
||||
NWC24MsgObj msgObj;
|
||||
|
||||
@@ -19,6 +19,10 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
static inline bool matchesInputPane(const char* paneName, const char* inputPaneName) {
|
||||
return strcmp(paneName, inputPaneName) == 0;
|
||||
}
|
||||
|
||||
typedef s32 ChkHostNameError;
|
||||
|
||||
enum {
|
||||
@@ -129,10 +133,9 @@ void ipl::scene::AddressEdit::reset_gui() {
|
||||
for (s32 i = 0; i < 5; ++i) {
|
||||
if (mPointCount[i] > 0) {
|
||||
ipl::layout::Animator* animator = mpCodeLayout->getAnim(i + 0xb);
|
||||
animator->initFrame();
|
||||
animator->restart();
|
||||
animator->play();
|
||||
mPointCount[i] = 0;
|
||||
}
|
||||
mPointCount[i] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,7 +143,11 @@ void ipl::scene::AddressEdit::reset_gui() {
|
||||
extern "C" void* __nw__FUl(u32);
|
||||
extern "C" BOOL RFLSearchOfficialData(const RFLCreateID*, u16*);
|
||||
|
||||
extern "C" NWC24FriendInfo sFriendInfo__Q23ipl5scene;
|
||||
namespace ipl {
|
||||
namespace scene {
|
||||
NWC24FriendInfo sFriendInfo;
|
||||
}
|
||||
}
|
||||
extern "C" const char* smButtonName__Q33ipl5scene6Button[];
|
||||
|
||||
|
||||
@@ -318,23 +325,7 @@ void ipl::scene::AddressEdit::String::clear() {
|
||||
mbHasWiiNo = false;
|
||||
}
|
||||
|
||||
void ipl::scene::AddressEdit::String::setEMail(const wchar_t* value) {
|
||||
mbHasWiiNo = false;
|
||||
memset(mValue, 0, sizeof(mValue));
|
||||
wcsncpy(mValue, value, 0xff);
|
||||
u32 length = wcslen(value);
|
||||
memset(mDisplayText, 0, sizeof(mDisplayText));
|
||||
if (length > 0x10) {
|
||||
wcsncpy(mDisplayText, value, 0xe);
|
||||
wcscpy(mDisplayText + 0xe, L"...");
|
||||
} else {
|
||||
wcscpy(mDisplayText, value);
|
||||
}
|
||||
u8 address[0x100];
|
||||
memset(address, 0, sizeof(address));
|
||||
ipl::utility::CharacterCode::UTF16ToANSI(address, value, sizeof(address));
|
||||
mbValidMail = !NWC24CheckPublicMailAddr_(reinterpret_cast<const char*>(address));
|
||||
}
|
||||
|
||||
|
||||
void ipl::scene::AddressEdit::String::setWiiNo(const wchar_t* value) {
|
||||
mbHasWiiNo = true;
|
||||
@@ -500,7 +491,7 @@ void ipl::scene::AddressEdit::create() {
|
||||
->getAnim(0)->initAnmFrame();
|
||||
|
||||
mString.clear();
|
||||
memset(&sFriendInfo__Q23ipl5scene, 0, sizeof(sFriendInfo__Q23ipl5scene));
|
||||
memset(&ipl::scene::sFriendInfo, 0, sizeof(ipl::scene::sFriendInfo));
|
||||
mpNigaoe = 0;
|
||||
mNigaoeState = 0;
|
||||
ipl::scene::SceneObj* addressScene = ipl::System::getScene(0x14);
|
||||
@@ -825,7 +816,7 @@ state_at_or_after_disappearing:
|
||||
goto state_visible;
|
||||
|
||||
state_disappearing: {
|
||||
bool nameWasEmpty = mString.mName[0] == 0;
|
||||
BOOL nameWasEmpty = mString.mName[0] == 0;
|
||||
if (state->pressOK) {
|
||||
mString.setName(state->wcString);
|
||||
nw4r::lyt::Pane* pane = mpNameLayout->getNW4RLyt()->GetRootPane()->FindPaneByName(
|
||||
@@ -889,14 +880,14 @@ void ipl::scene::AddressEdit::stt_add_mii_normal() {
|
||||
void ipl::scene::AddressEdit::stt_add_mii_input() {
|
||||
ipl::scene::Base* child = getChild();
|
||||
if (child != NULL) {
|
||||
ipl::scene::FaceSelect* faceSelect = static_cast<ipl::scene::FaceSelect*>(child);
|
||||
s32 faceId = faceSelect->getSelectedFaceId();
|
||||
ipl::scene::FaceSelect* faceSelect = static_cast<ipl::scene::FaceSelect*>(getChild());
|
||||
int faceId = faceSelect->getSelectedFaceId();
|
||||
if (faceId >= 0 && ipl::System::getMiiManager()->isAvalable(faceId) &&
|
||||
mNigaoeState == 0) {
|
||||
RFLAdditionalInfo additionalInfo;
|
||||
RFLGetAdditionalInfo(&additionalInfo, RFLDataSource_Official, NULL, faceId);
|
||||
if (!RFLiIsSameID(&mCreateID, &additionalInfo.createID)) {
|
||||
mCreateID = additionalInfo.createID;
|
||||
memcpy(&mCreateID, &additionalInfo.createID, sizeof(mCreateID));
|
||||
ipl::System::getMiiManager()->create(ipl::System::getMem2App(), 0x4c, 0x4c, faceId,
|
||||
ipl::scene::AddressEdit::nigaoe_create_callback_add,
|
||||
this);
|
||||
@@ -1022,7 +1013,7 @@ void ipl::scene::AddressEdit::stt_add_confirm_fadeout() {
|
||||
ipl::scene::Button* button = static_cast<ipl::scene::Button*>(ipl::System::getScene(5));
|
||||
switch (mSubState) {
|
||||
case 5: {
|
||||
ipl::layout::Animator* animator = mpNameLayout->getAnim(0);
|
||||
ipl::utility::FrameController* animator = mpNameLayout->getAnim(0);
|
||||
animator->initFrame();
|
||||
animator->restart();
|
||||
mState = 0x1c;
|
||||
@@ -1191,7 +1182,7 @@ void ipl::scene::AddressEdit::stt_select_mii() {
|
||||
if (getChild() != NULL) {
|
||||
ipl::scene::FaceSelect* faceSelect =
|
||||
static_cast<ipl::scene::FaceSelect*>(getChild());
|
||||
s32 faceId = faceSelect->getSelectedFaceId();
|
||||
int faceId = faceSelect->getSelectedFaceId();
|
||||
if (faceId >= 0 && ipl::System::getMiiManager()->isAvalable(faceId) &&
|
||||
mNigaoeState == 0) {
|
||||
RFLAdditionalInfo info;
|
||||
@@ -1800,7 +1791,7 @@ state_at_or_after_disappearing:
|
||||
goto state_hidden_after_disappear;
|
||||
|
||||
state_disappearing: {
|
||||
bool nameWasEmpty = mString.mName[0] == 0;
|
||||
BOOL nameWasEmpty = mString.mName[0] == 0;
|
||||
if (state->pressOK) {
|
||||
mString.setName(state->wcString);
|
||||
ipl::layout::Object* layout =
|
||||
@@ -1858,7 +1849,7 @@ void ipl::scene::AddressEdit::stt_add_code_input() {
|
||||
ipl::scene::Button* button = static_cast<ipl::scene::Button*>(ipl::System::getScene(5));
|
||||
switch (state->iplType) {
|
||||
case ipl::keyboard::Manager::STATE_DISAPPEARING: {
|
||||
bool codeWasEmpty = mString.mValue[0] == 0;
|
||||
BOOL codeWasEmpty = mString.mValue[0] == 0;
|
||||
if (state->pressOK) {
|
||||
if (mMode == 1) {
|
||||
mString.setWiiNo(state->wcString);
|
||||
@@ -1942,30 +1933,30 @@ void ipl::scene::AddressEdit::stt_add_code_input() {
|
||||
}
|
||||
|
||||
void ipl::scene::AddressEdit::stt_add_code_fadeout() {
|
||||
ipl::layout::Animator* pane = mpNameLayout->getAnim(5);
|
||||
ipl::utility::FrameController* pane = mpNameLayout->getAnim(5);
|
||||
if (!pane->isPlaying()) {
|
||||
pane = mpNameLayout->getAnim(6);
|
||||
if (!pane->isPlaying()) {
|
||||
nw4r::lyt::Pane* label = (mpNameLayout)->getNW4RLyt()->GetRootPane()->FindPaneByName(
|
||||
reinterpret_cast<const char*>("T_question_00"), true);
|
||||
set_textbox(label, ipl::System::getMessage(0x32));
|
||||
label = (mpNameLayout)->getNW4RLyt()->GetRootPane()->FindPaneByName(
|
||||
nw4r::lyt::Pane* messageLabel = (mpNameLayout)->getNW4RLyt()->GetRootPane()->FindPaneByName(
|
||||
reinterpret_cast<const char*>("T_msg_00"), true);
|
||||
set_textbox(label, ipl::System::getMessage(0x49));
|
||||
label = (mpNameLayout)->getNW4RLyt()->GetRootPane()->FindPaneByName(
|
||||
set_textbox(messageLabel, ipl::System::getMessage(0x49));
|
||||
nw4r::lyt::Pane* nameLabel = (mpNameLayout)->getNW4RLyt()->GetRootPane()->FindPaneByName(
|
||||
reinterpret_cast<const char*>("T_name_00"), true);
|
||||
set_textbox(label, mString.mName);
|
||||
pane = mpNameLayout->getAnim(1);
|
||||
pane->initFrame();
|
||||
pane->restart();
|
||||
set_textbox(nameLabel, mString.mName);
|
||||
ipl::utility::FrameController* fade = mpNameLayout->getAnim(1);
|
||||
fade->initFrame();
|
||||
fade->restart();
|
||||
if (mString.mName[0] != 0) {
|
||||
pane = mpNameLayout->getAnim(2);
|
||||
pane->initFrame();
|
||||
pane->restart();
|
||||
ipl::utility::FrameController* nameFade = mpNameLayout->getAnim(2);
|
||||
nameFade->initFrame();
|
||||
nameFade->restart();
|
||||
} else {
|
||||
pane = mpNameLayout->getAnim(3);
|
||||
pane->initFrame();
|
||||
pane->restart();
|
||||
ipl::utility::FrameController* nameFade = mpNameLayout->getAnim(3);
|
||||
nameFade->initFrame();
|
||||
nameFade->restart();
|
||||
}
|
||||
ipl::System::getKeyboard()->init();
|
||||
mState = 0x18;
|
||||
@@ -2392,7 +2383,7 @@ void ipl::scene::AddressEdit::start_ipt_trig_event(
|
||||
if (controller->getChannel() != channel) {
|
||||
return;
|
||||
}
|
||||
if (!strcmp(sInputPaneName, paneName)) {
|
||||
if (matchesInputPane(sInputPaneName, paneName)) {
|
||||
s32 state = mState;
|
||||
switch (state) {
|
||||
case 0xd: {
|
||||
@@ -2400,18 +2391,15 @@ void ipl::scene::AddressEdit::start_ipt_trig_event(
|
||||
|
||||
switch (ipl::System::getRegion()) {
|
||||
case 0xb: {
|
||||
void* oemDictionary;
|
||||
void* systemDictionary;
|
||||
systemDictionary = ipl::System::getKeyboard()->getZiSystemDic();
|
||||
oemDictionary = ipl::System::getKeyboard()->getZiOemDic();
|
||||
textinput::InputForm* inputForm = ipl::System::getKeyboard()->baseMgr()->getInputForm();
|
||||
inputForm->setZiDictionary(oemDictionary, systemDictionary);
|
||||
void* systemDictionary = ipl::System::getKeyboard()->getZiSystemDic();
|
||||
void* oemDictionary = ipl::System::getKeyboard()->getZiOemDic();
|
||||
ipl::System::getKeyboard()->baseMgr()->getInputForm()->setZiDictionary(oemDictionary, systemDictionary);
|
||||
setting.type = static_cast<ipl::keyboard::Manager::KeyboardType>(0xd);
|
||||
break;
|
||||
}
|
||||
case 6:
|
||||
ipl::System::getKeyboard()->baseMgr()->enableKSXFilter(true);
|
||||
setting.type = static_cast<ipl::keyboard::Manager::KeyboardType>(0xd);
|
||||
ipl::System::getKeyboard()->baseMgr()->enableKSXFilter(true);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@@ -2436,8 +2424,8 @@ void ipl::scene::AddressEdit::start_ipt_trig_event(
|
||||
} else {
|
||||
ipl::keyboard::Manager::KeyboardSetting setting(static_cast<ipl::keyboard::Manager::KeyboardType>(7), mString.mValue, 0x63, 5);
|
||||
ipl::System::getKeyboard()->start(channel, setting);
|
||||
setDefaultTitleText(mString.mValue, false);
|
||||
}
|
||||
setDefaultTitleText(mString.mValue, false);
|
||||
if (mString.mbValidMail != 0 &&
|
||||
!mString.isDupCode() &&
|
||||
!mString.isMyCode()) {
|
||||
@@ -2454,18 +2442,15 @@ void ipl::scene::AddressEdit::start_ipt_trig_event(
|
||||
|
||||
switch (ipl::System::getRegion()) {
|
||||
case 0xb: {
|
||||
void* oemDictionary;
|
||||
void* systemDictionary;
|
||||
systemDictionary = ipl::System::getKeyboard()->getZiSystemDic();
|
||||
oemDictionary = ipl::System::getKeyboard()->getZiOemDic();
|
||||
textinput::InputForm* inputForm = ipl::System::getKeyboard()->baseMgr()->getInputForm();
|
||||
inputForm->setZiDictionary(oemDictionary, systemDictionary);
|
||||
void* systemDictionary = ipl::System::getKeyboard()->getZiSystemDic();
|
||||
void* oemDictionary = ipl::System::getKeyboard()->getZiOemDic();
|
||||
ipl::System::getKeyboard()->baseMgr()->getInputForm()->setZiDictionary(oemDictionary, systemDictionary);
|
||||
setting.type = static_cast<ipl::keyboard::Manager::KeyboardType>(0xd);
|
||||
break;
|
||||
}
|
||||
case 6:
|
||||
ipl::System::getKeyboard()->baseMgr()->enableKSXFilter(true);
|
||||
setting.type = static_cast<ipl::keyboard::Manager::KeyboardType>(0xd);
|
||||
ipl::System::getKeyboard()->baseMgr()->enableKSXFilter(true);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@@ -2478,7 +2463,6 @@ void ipl::scene::AddressEdit::start_ipt_trig_event(
|
||||
} else {
|
||||
button->reserveAnm(0xc);
|
||||
}
|
||||
button->reserveText(1, 0x2e);
|
||||
ipl::snd::getSystem()->startSE("WIPL_SE_DECIDE");
|
||||
mState = 0x1a;
|
||||
break;
|
||||
@@ -2888,9 +2872,9 @@ void ipl::scene::AddressEdit::add_friendinfo() {
|
||||
}
|
||||
|
||||
void ipl::scene::AddressEdit::get_friendinfo() {
|
||||
memcpy(&sFriendInfo__Q23ipl5scene, &mpFriendCache->getInfo(mSelectedFriend),
|
||||
sizeof(sFriendInfo__Q23ipl5scene));
|
||||
mString.setName(reinterpret_cast<const wchar_t*>(sFriendInfo__Q23ipl5scene.attr.name));
|
||||
memcpy(&ipl::scene::sFriendInfo, &mpFriendCache->getInfo(mSelectedFriend),
|
||||
sizeof(ipl::scene::sFriendInfo));
|
||||
mString.setName(reinterpret_cast<const wchar_t*>(ipl::scene::sFriendInfo.attr.name));
|
||||
const wchar_t* name = mString.mName;
|
||||
nw4r::lyt::Pane* namePane =
|
||||
mpCodeLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_name_00", true);
|
||||
@@ -2898,29 +2882,47 @@ void ipl::scene::AddressEdit::get_friendinfo() {
|
||||
|
||||
wchar_t wiiNo[0x100];
|
||||
wchar_t email[0x102];
|
||||
if (sFriendInfo__Q23ipl5scene.attr.type == 1) {
|
||||
if (ipl::scene::sFriendInfo.attr.type == 1) {
|
||||
memset(wiiNo, 0, sizeof(wiiNo));
|
||||
ipl::scene::AddressEdit::wiiid_utf16(sFriendInfo__Q23ipl5scene.addr.wiiId, wiiNo);
|
||||
ipl::scene::AddressEdit::wiiid_utf16(ipl::scene::sFriendInfo.addr.wiiId, wiiNo);
|
||||
mString.setWiiNo(wiiNo);
|
||||
} else {
|
||||
memset(email, 0, sizeof(email));
|
||||
ipl::utility::CharacterCode::ANSIToUTF16(email, reinterpret_cast<const u8*>(&sFriendInfo__Q23ipl5scene.addr), 0x102);
|
||||
ipl::utility::CharacterCode::ANSIToUTF16(email, reinterpret_cast<const u8*>(&ipl::scene::sFriendInfo.addr), 0x102);
|
||||
mString.setEMail(email);
|
||||
}
|
||||
const wchar_t* displayText = mString.mDisplayText;
|
||||
nw4r::lyt::Pane* friendCodePane =
|
||||
mpCodeLayout->getNW4RLyt()->GetRootPane()->FindPaneByName("T_frnd_crd_00", true);
|
||||
set_textbox(friendCodePane, displayText);
|
||||
memcpy(&mCreateID, &sFriendInfo__Q23ipl5scene.attr.fdId, sizeof(mCreateID));
|
||||
memcpy(&mCreateID, &ipl::scene::sFriendInfo.attr.fdId, sizeof(mCreateID));
|
||||
}
|
||||
|
||||
void ipl::scene::AddressEdit::update_friendinfo() {
|
||||
memset(sFriendInfo__Q23ipl5scene.attr.name, 0, 0x18);
|
||||
wcsncpy(reinterpret_cast<wchar_t*>(sFriendInfo__Q23ipl5scene.attr.name), mString.mName, 0xa);
|
||||
memcpy(&sFriendInfo__Q23ipl5scene.attr.fdId, &mCreateID, sizeof(mCreateID));
|
||||
memset(ipl::scene::sFriendInfo.attr.name, 0, 0x18);
|
||||
wcsncpy(reinterpret_cast<wchar_t*>(ipl::scene::sFriendInfo.attr.name), mString.mName, 0xa);
|
||||
memcpy(&ipl::scene::sFriendInfo.attr.fdId, &mCreateID, sizeof(mCreateID));
|
||||
mpFriendCache->update(
|
||||
mSelectedFriend,
|
||||
reinterpret_cast<const wchar_t*>(sFriendInfo__Q23ipl5scene.attr.name),
|
||||
sFriendInfo__Q23ipl5scene.attr.fdId);
|
||||
reinterpret_cast<const wchar_t*>(ipl::scene::sFriendInfo.attr.name),
|
||||
ipl::scene::sFriendInfo.attr.fdId);
|
||||
static_cast<ipl::scene::Address*>(ipl::System::getScene(0x14))->reset_friend();
|
||||
}
|
||||
|
||||
void ipl::scene::AddressEdit::String::setEMail(const wchar_t* value) {
|
||||
mbHasWiiNo = false;
|
||||
memset(mValue, 0, sizeof(mValue));
|
||||
wcsncpy(mValue, value, 0xff);
|
||||
u32 length = wcslen(value);
|
||||
memset(mDisplayText, 0, sizeof(mDisplayText));
|
||||
if (length > 0x10) {
|
||||
wcsncpy(mDisplayText, value, 0xe);
|
||||
wcscpy(mDisplayText + 0xe, L"...");
|
||||
} else {
|
||||
wcscpy(mDisplayText, value);
|
||||
}
|
||||
u8 address[0x100];
|
||||
memset(address, 0, sizeof(address));
|
||||
ipl::utility::CharacterCode::UTF16ToANSI(address, value, sizeof(address));
|
||||
mbValidMail = !NWC24CheckPublicMailAddr_(reinterpret_cast<const char*>(address));
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#define IPL_SDMEMORY_TITLE_CACHE_ACCESS
|
||||
#define IPL_SDMEMORY_SCROLLER_INIT_OUT_OF_LINE
|
||||
#define IPL_SDMEMORY_SET_TRANSLATE_OUT_OF_LINE
|
||||
#define IPL_SDMEMORY_DIALOG_STATE_ACCESSOR
|
||||
@@ -33,43 +34,35 @@ extern "C" bool iplSDChannelSelect_813DDB74(ipl::scene::SDChannelSelect* channel
|
||||
ESTitleId* titleIds, wchar_t* titleNames, u32* titleCount,
|
||||
s32 state);
|
||||
extern "C" bool iplSDChannelSelect_813DB5EC(ipl::scene::SDChannelSelect* channelSelect,
|
||||
const ESTitleId* titleEntry, ESTitleId titleId);
|
||||
ESTitleId titleId);
|
||||
extern "C" bool iplSDChannelSelect_813DB4D4(ipl::scene::SDChannelSelect* channelSelect,
|
||||
const ESTitleId* titleEntry, ESTitleId titleId, u32 flags);
|
||||
ESTitleId titleId, u32 flags);
|
||||
extern "C" bool iplSDChannelSelect_813DB530(ipl::scene::SDChannelSelect* channelSelect,
|
||||
ESTitleId** titleNames, ESTitleId** secondaryTitles);
|
||||
extern "C" bool iplSDChannelSelect_813DB478(ipl::scene::SDChannelSelect* channelSelect,
|
||||
const ESTitleId* titleEntry, ESTitleId titleId);
|
||||
ESTitleId titleId);
|
||||
extern "C" bool iplSDChannelSelect_813DB58C(ipl::scene::SDChannelSelect* channelSelect,
|
||||
ESTitleId** titles, ESTitleId** secondaryTitles,
|
||||
ESTitleId** names);
|
||||
|
||||
namespace ipl {
|
||||
namespace utility {
|
||||
void Scroller::init() {
|
||||
mState = 0;
|
||||
mScroll = 0.0f;
|
||||
unk_0x3C = 0.0f;
|
||||
mUpLimit = 0.0f;
|
||||
mDownLimit = 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
namespace scene {
|
||||
typedef ::gui::Component GuiComponent;
|
||||
typedef ::gui::PaneComponent GuiPaneComponent;
|
||||
typedef controller::Interface ControllerInterface;
|
||||
|
||||
void writeFourFlagBytes(u8* flags, u8 first, u8 second, u8 third, u8 fourth);
|
||||
|
||||
void setTitleRowColors(nw4r::lyt::TextBox* textBox, const nw4r::ut::Color& first,
|
||||
const nw4r::ut::Color& second);
|
||||
|
||||
static const char* const sControlPaneNames[] = {
|
||||
static const char* sControlPaneNames[] = {
|
||||
"A", "B", "B_BtnA",
|
||||
};
|
||||
|
||||
static const char* const sTitlePaneNames[] = {"A", "B", "B_BtnA", "C", "D"};
|
||||
static const char* const sAdditionalTitlePaneNames[] = {"B_00", "C_00", "D_00", "B_BtnA"};
|
||||
static const char* const sDialogPaneNames[] = {"B_ArwR", "B_ArwL", "B_CalExit", "B_CalExit_00"};
|
||||
static const char* sTitlePaneNames[] = {"A", "B", "B_BtnA", "C", "D"};
|
||||
static const char* sAdditionalTitlePaneNames[] = {"B_00", "C_00", "D_00", "B_BtnA"};
|
||||
static const char* sDialogPaneNames[] = {"B_ArwR", "B_ArwL", "B_CalExit", "B_CalExit_00"};
|
||||
|
||||
SDMemory::SDMemory() : mScroller() {}
|
||||
|
||||
@@ -78,7 +71,7 @@ namespace ipl {
|
||||
void SDMemory::create(EGG::Heap* heap, nand::LayoutFile* layoutFile, SDChannelSelect* channelSelect) {
|
||||
mpSDChannelSelect = channelSelect;
|
||||
|
||||
mpMainLayout = new (heap) layout::Object(heap, layoutFile, "arc", "mn_DialogWindow_ChChange_a.brlyt");
|
||||
mpMainLayout = new layout::Object(heap, layoutFile, "arc", "mn_DialogWindow_ChChange_a.brlyt");
|
||||
mpMainLayout->bindToGroup("mn_DialogWindow_ChChange_a_DialogIn.brlan", "G_InOut", false, true);
|
||||
mpMainLayout->bindToGroup("mn_DialogWindow_ChChange_a_DialogOut.brlan", "G_InOut", false, true);
|
||||
mpMainLayout->bindToGroup("mn_DialogWindow_ChChange_a_FocusBtn_on.brlan", "G_FocusBtnA", false, true);
|
||||
@@ -105,7 +98,7 @@ namespace ipl {
|
||||
textBox = nw4r::ut::DynamicCast<nw4r::lyt::TextBox*>(mpMainLayout->FindPaneByName("T_BtnA"));
|
||||
textBox->SetString(System::getMessage(0x25));
|
||||
|
||||
mpTitleLayout = new (heap) layout::Object(heap, layoutFile, "arc", "mn_DialogWindow_ChChange_b.brlyt");
|
||||
mpTitleLayout = new layout::Object(heap, layoutFile, "arc", "mn_DialogWindow_ChChange_b.brlyt");
|
||||
mpTitleLayout->bindToGroup("mn_DialogWindow_ChChange_b_DialogIn.brlan", "G_InOut", false, true);
|
||||
mpTitleLayout->bindToGroup("mn_DialogWindow_ChChange_b_DialogOut.brlan", "G_InOut", false, true);
|
||||
mpTitleLayout->bindToGroup("mn_DialogWindow_ChChange_b_FocusBtn_on.brlan", "G_FocusBtnA", false, true);
|
||||
@@ -150,7 +143,27 @@ namespace ipl {
|
||||
textBox = nw4r::ut::DynamicCast<nw4r::lyt::TextBox*>(mpTitleLayout->FindPaneByName("TextBox_07"));
|
||||
textBox->SetString(System::getMessage(0xBA));
|
||||
|
||||
mpDialogLayout = new (heap) layout::Object(heap, layoutFile, "arc", "mn_DialogWindow_ChChange_c.brlyt");
|
||||
const ESTitleId* cachedTitles = System::getSaveData()->getTitleCache();
|
||||
s32 cachedTitleCount = 0;
|
||||
for (s32 i = 0; i < 48; ++i) {
|
||||
if (cachedTitles[i] == 0) {
|
||||
break;
|
||||
}
|
||||
++cachedTitleCount;
|
||||
}
|
||||
if (cachedTitleCount >= 5) {
|
||||
mpTitleLayout->FindPaneByName("N_Btn_3")->SetVisible(false);
|
||||
mpTitleLayout->FindPaneByName("N_Btn_4")->SetVisible(true);
|
||||
mDisplayMode = 4;
|
||||
} else {
|
||||
mpTitleLayout->FindPaneByName("N_Btn_3")->SetVisible(true);
|
||||
mpTitleLayout->FindPaneByName("N_Btn_4")->SetVisible(false);
|
||||
mDisplayMode = 3;
|
||||
}
|
||||
textBox = nw4r::ut::DynamicCast<nw4r::lyt::TextBox*>(mpTitleLayout->FindPaneByName("T_BtnA"));
|
||||
textBox->SetString(System::getMessage(0xA5));
|
||||
|
||||
mpDialogLayout = new layout::Object(heap, layoutFile, "arc", "mn_DialogWindow_ChChange_c.brlyt");
|
||||
static_cast<nw4r::lyt::TextBox*>(mpDialogLayout->FindPaneByName("T_Letter"))->AllocStringBuffer(0x840);
|
||||
mpDialogLayout->bindToGroup("mn_DialogWindow_ChChange_c_Dialog_FadeIn.brlan", "G_Fede", false, true);
|
||||
mpDialogLayout->bindToGroup("mn_DialogWindow_ChChange_c_Dialog_FadeOut.brlan", "G_Fede", false, true);
|
||||
@@ -190,7 +203,7 @@ namespace ipl {
|
||||
textBox = nw4r::ut::DynamicCast<nw4r::lyt::TextBox*>(mpDialogLayout->FindPaneByName("T_CalExit_00"));
|
||||
textBox->SetString(System::getMessage(0xC4));
|
||||
|
||||
mpProgressLayout = new (heap) layout::Object(heap, layoutFile, "arc", "mn_DialogWindow_Background.brlyt");
|
||||
mpProgressLayout = new layout::Object(heap, layoutFile, "arc", "mn_DialogWindow_Background.brlyt");
|
||||
mpProgressLayout->bindToGroup("mn_DialogWindow_Background_DialogIn.brlan", "G_InOut", false, true);
|
||||
mpProgressLayout->bindToGroup("mn_DialogWindow_Background_DialogOut.brlan", "G_InOut", false, true);
|
||||
mpProgressLayout->finishBinding();
|
||||
@@ -245,20 +258,14 @@ namespace ipl {
|
||||
|
||||
void SDMemory::setScrollLimit() {
|
||||
nw4r::lyt::Pane* headerPane = mpDialogLayout->FindPaneByName("N_Header");
|
||||
nw4r::lyt::Pane* buttonPane = mpDialogLayout->FindPaneByName("T_BtnA");
|
||||
nw4r::lyt::Pane* buttonPane = mpDialogLayout->FindPaneByName("N_Body");
|
||||
nw4r::lyt::Pane* footerPane = mpDialogLayout->FindPaneByName("N_Footer");
|
||||
|
||||
nw4r::ut::Rect projection;
|
||||
System::getProjectionRect(&projection);
|
||||
|
||||
f32 itemCount = static_cast<f32>(mButtonState);
|
||||
f32 buttonHeight = buttonPane->GetSize().height;
|
||||
f32 headerHeight = headerPane->GetSize().height;
|
||||
f32 footerHeight = footerPane->GetSize().height;
|
||||
f32 contentHeight = headerHeight + footerHeight;
|
||||
f32 itemHeight = itemCount * buttonHeight;
|
||||
f32 contentHeightWithItems = itemHeight + contentHeight;
|
||||
f32 downLimit = contentHeightWithItems - projection.GetHeight() + 1.0f;
|
||||
f32 downLimit = 160.0f + (static_cast<f32>(mButtonState) * buttonPane->GetSize().height +
|
||||
(headerPane->GetSize().height + footerPane->GetSize().height) - projection.GetHeight());
|
||||
if (downLimit < 0.0f) {
|
||||
downLimit = 0.0f;
|
||||
}
|
||||
@@ -267,38 +274,19 @@ namespace ipl {
|
||||
mScroller.setDownLimit(downLimit);
|
||||
}
|
||||
|
||||
void SDMemory::updateSideArrows() {
|
||||
controller::Interface* masterController = System::getMasterController();
|
||||
}
|
||||
|
||||
if (mScroller.getBInst().isActive() ? false : true) {
|
||||
if (masterController->down(controller::BTN_UP)) {
|
||||
showLeftArrow();
|
||||
}
|
||||
if (!masterController->down(controller::BTN_UP)) {
|
||||
hideLeftArrow();
|
||||
}
|
||||
if (masterController->down(controller::BTN_DOWN)) {
|
||||
showRightArrow();
|
||||
}
|
||||
if (!masterController->down(controller::BTN_DOWN)) {
|
||||
hideRightArrow();
|
||||
}
|
||||
} else {
|
||||
if (mScroller.getBInst().isUp()) {
|
||||
showLeftArrow();
|
||||
}
|
||||
if (!mScroller.getBInst().isUp()) {
|
||||
hideLeftArrow();
|
||||
}
|
||||
if (mScroller.getBInst().isDown()) {
|
||||
showRightArrow();
|
||||
}
|
||||
if (!mScroller.getBInst().isDown()) {
|
||||
hideRightArrow();
|
||||
}
|
||||
}
|
||||
namespace utility {
|
||||
void Scroller::init() {
|
||||
mState = 0;
|
||||
mScroll = 0.0f;
|
||||
unk_0x3C = 0.0f;
|
||||
mUpLimit = 0.0f;
|
||||
mDownLimit = 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
namespace scene {
|
||||
void SDMemory::resetScrollArrows() {
|
||||
mControllerFlags[0] = 0;
|
||||
mControllerFlags[1] = 0;
|
||||
@@ -370,6 +358,38 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
void SDMemory::updateSideArrows() {
|
||||
controller::Interface* masterController = System::getMasterController();
|
||||
|
||||
if (mScroller.getBInst().isActive() ? false : true) {
|
||||
if (masterController->down(controller::BTN_UP)) {
|
||||
showLeftArrow();
|
||||
}
|
||||
if (!masterController->down(controller::BTN_UP)) {
|
||||
hideLeftArrow();
|
||||
}
|
||||
if (masterController->down(controller::BTN_DOWN)) {
|
||||
showRightArrow();
|
||||
}
|
||||
if (!masterController->down(controller::BTN_DOWN)) {
|
||||
hideRightArrow();
|
||||
}
|
||||
} else {
|
||||
if (mScroller.getBInst().isUp()) {
|
||||
showLeftArrow();
|
||||
}
|
||||
if (!mScroller.getBInst().isUp()) {
|
||||
hideLeftArrow();
|
||||
}
|
||||
if (mScroller.getBInst().isDown()) {
|
||||
showRightArrow();
|
||||
}
|
||||
if (!mScroller.getBInst().isDown()) {
|
||||
hideRightArrow();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void SDMemory::showLeftArrow() {
|
||||
if (mControllerFlags[2] == 0) {
|
||||
layout::Animator* animation = mpDialogLayout->getAnim(19);
|
||||
@@ -410,8 +430,7 @@ namespace ipl {
|
||||
for (int i = 0; i < 4; i++) {
|
||||
if (mPanelAnimationStates[i] != 0) {
|
||||
mPanelAnimationStates[i] = 0;
|
||||
nw4r::lyt::Pane* pane = mpDialogLayout->FindPaneByName(sDialogPaneNames[i]);
|
||||
mpPaneManagers[2]->initPane(pane);
|
||||
mpPaneManagers[2]->initPane(mpDialogLayout->GetRootPane()->FindPaneByName(sDialogPaneNames[i], true));
|
||||
|
||||
layout::Animator* animation = NULL;
|
||||
switch (i) {
|
||||
@@ -544,123 +563,117 @@ namespace ipl {
|
||||
s32 SDMemory::updateState() {
|
||||
NandSDWorker::WorkSDState sdState = mpSDChannelSelect->getSDState();
|
||||
s32 result = 0;
|
||||
if (static_cast<u32>(sdState - NandSDWorker::SD_STATE_EJECTED) >
|
||||
static_cast<u32>(NandSDWorker::SD_STATE_INSERTED - NandSDWorker::SD_STATE_EJECTED)) {
|
||||
return result;
|
||||
}
|
||||
|
||||
switch (mDialogState) {
|
||||
case 1:
|
||||
case 2: {
|
||||
mpMainLayout->getAnim(1)->initAnmFrame();
|
||||
mpMainLayout->getAnim(1)->initFrame();
|
||||
mpMainLayout->getAnim(1)->restart();
|
||||
mpDialogLayout->getAnim(1)->initAnmFrame();
|
||||
mpDialogLayout->getAnim(1)->initFrame();
|
||||
mpDialogLayout->getAnim(1)->restart();
|
||||
mTransferFlags[1] = 0;
|
||||
mDialogState = 3;
|
||||
result = 1;
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
if (mTransferFlags[1] != 0) {
|
||||
mpDialogLayout->getAnim(1)->initAnmFrame();
|
||||
mpDialogLayout->getAnim(1)->initFrame();
|
||||
mpDialogLayout->getAnim(1)->restart();
|
||||
if (sdState == NandSDWorker::SD_STATE_EJECTED || sdState == NandSDWorker::SD_STATE_INSERTED) {
|
||||
switch (mDialogState) {
|
||||
case 1:
|
||||
case 2: {
|
||||
mpMainLayout->getAnim(1)->initAnmFrame();
|
||||
mpMainLayout->getAnim(1)->play();
|
||||
mpProgressLayout->getAnim(1)->initAnmFrame();
|
||||
mpProgressLayout->getAnim(1)->play();
|
||||
mTransferFlags[1] = 0;
|
||||
}
|
||||
if (!mpMainLayout->isPlaying(1) && !mpDialogLayout->isPlaying(1)) {
|
||||
result = 2;
|
||||
} else {
|
||||
mDialogState = 3;
|
||||
result = 1;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
case 6:
|
||||
mpTitleLayout->getAnim(1)->initAnmFrame();
|
||||
mpTitleLayout->getAnim(1)->initFrame();
|
||||
mpTitleLayout->getAnim(1)->restart();
|
||||
mpDialogLayout->getAnim(1)->initAnmFrame();
|
||||
mpDialogLayout->getAnim(1)->initFrame();
|
||||
mpDialogLayout->getAnim(1)->restart();
|
||||
mTransferFlags[1] = 0;
|
||||
mDialogState = 7;
|
||||
result = 1;
|
||||
break;
|
||||
case 7:
|
||||
if (mTransferFlags[1] != 0) {
|
||||
mpDialogLayout->getAnim(1)->initAnmFrame();
|
||||
mpDialogLayout->getAnim(1)->initFrame();
|
||||
mpDialogLayout->getAnim(1)->restart();
|
||||
mTransferFlags[1] = 0;
|
||||
}
|
||||
if (!mpTitleLayout->isPlaying(1) && !mpDialogLayout->isPlaying(1)) {
|
||||
result = 2;
|
||||
} else {
|
||||
result = 1;
|
||||
}
|
||||
break;
|
||||
case 10:
|
||||
case 11:
|
||||
mDialogState = 12;
|
||||
mpDialogLayout->getAnim(1)->initAnmFrame();
|
||||
mpDialogLayout->getAnim(1)->initFrame();
|
||||
mpDialogLayout->getAnim(1)->restart();
|
||||
mTransferFlags[1] = 0;
|
||||
mScroller.init();
|
||||
mScroller.resetBInst();
|
||||
if (mControllerFlags[0] != 0) {
|
||||
hideDownArrow();
|
||||
}
|
||||
if (mControllerFlags[1] != 0) {
|
||||
hideUpArrow();
|
||||
}
|
||||
result = 1;
|
||||
break;
|
||||
case 12:
|
||||
if (mTransferFlags[1] != 0) {
|
||||
mScroller.init();
|
||||
mScroller.resetBInst();
|
||||
mpDialogLayout->getAnim(1)->initAnmFrame();
|
||||
mpDialogLayout->getAnim(1)->initFrame();
|
||||
mpDialogLayout->getAnim(1)->restart();
|
||||
mTransferFlags[1] = 0;
|
||||
}
|
||||
if (!mpTitleLayout->isPlaying(1) && !mpDialogLayout->isPlaying(1)) {
|
||||
result = 2;
|
||||
} else {
|
||||
result = 1;
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
case 22: {
|
||||
DialogWindow* dialog = System::getDialog();
|
||||
s32 dialogState = dialog->getStateForSDMemory();
|
||||
if (dialogState == 2) {
|
||||
dialog->terminate();
|
||||
mpDialogLayout->getAnim(1)->initAnmFrame();
|
||||
mpDialogLayout->getAnim(1)->initFrame();
|
||||
mpDialogLayout->getAnim(1)->restart();
|
||||
mTransferFlags[1] = 0;
|
||||
} else if ((dialogState == 3 || dialogState == 4) && mTransferFlags[1] != 0) {
|
||||
mpDialogLayout->getAnim(1)->initAnmFrame();
|
||||
mpDialogLayout->getAnim(1)->initFrame();
|
||||
mpDialogLayout->getAnim(1)->restart();
|
||||
mTransferFlags[1] = 0;
|
||||
}
|
||||
|
||||
if (dialog->getLastResult() != -1) {
|
||||
if (mpDialogLayout->isPlaying(1) || dialog->getLastResult() == 1) {
|
||||
result = 1;
|
||||
} else {
|
||||
result = 2;
|
||||
case 3:
|
||||
if (mTransferFlags[1] != 0) {
|
||||
mpProgressLayout->getAnim(1)->initAnmFrame();
|
||||
mpProgressLayout->getAnim(1)->play();
|
||||
mTransferFlags[1] = 0;
|
||||
}
|
||||
if (!mpMainLayout->isPlaying(1) && !mpProgressLayout->isPlaying(1)) {
|
||||
result = 2;
|
||||
} else {
|
||||
result = 1;
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
case 6:
|
||||
mpTitleLayout->getAnim(1)->initAnmFrame();
|
||||
mpTitleLayout->getAnim(1)->play();
|
||||
mpProgressLayout->getAnim(1)->initAnmFrame();
|
||||
mpProgressLayout->getAnim(1)->play();
|
||||
mTransferFlags[1] = 0;
|
||||
mDialogState = 7;
|
||||
result = 1;
|
||||
break;
|
||||
case 7:
|
||||
if (mTransferFlags[1] != 0) {
|
||||
mpProgressLayout->getAnim(1)->initAnmFrame();
|
||||
mpProgressLayout->getAnim(1)->play();
|
||||
mTransferFlags[1] = 0;
|
||||
}
|
||||
if (!mpTitleLayout->isPlaying(1) && !mpProgressLayout->isPlaying(1)) {
|
||||
result = 2;
|
||||
} else {
|
||||
result = 1;
|
||||
}
|
||||
break;
|
||||
case 10:
|
||||
case 11:
|
||||
mDialogState = 12;
|
||||
mpDialogLayout->getAnim(1)->initAnmFrame();
|
||||
mpDialogLayout->getAnim(1)->play();
|
||||
mpProgressLayout->getAnim(1)->initAnmFrame();
|
||||
mpProgressLayout->getAnim(1)->play();
|
||||
mTransferFlags[1] = 0;
|
||||
mScroller.initScroll();
|
||||
mScroller.resetBInst();
|
||||
if (mControllerFlags[0] != 0) {
|
||||
hideDownArrow();
|
||||
}
|
||||
if (mControllerFlags[1] != 0) {
|
||||
hideUpArrow();
|
||||
}
|
||||
result = 1;
|
||||
break;
|
||||
case 12:
|
||||
if (mTransferFlags[1] != 0) {
|
||||
mScroller.initScroll();
|
||||
mScroller.resetBInst();
|
||||
mpProgressLayout->getAnim(1)->initAnmFrame();
|
||||
mpProgressLayout->getAnim(1)->play();
|
||||
mTransferFlags[1] = 0;
|
||||
}
|
||||
if (!mpDialogLayout->isPlaying(1) && !mpProgressLayout->isPlaying(1)) {
|
||||
result = 2;
|
||||
} else {
|
||||
result = 1;
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
case 22: {
|
||||
if (sdState == NandSDWorker::SD_STATE_EJECTED || sdState == NandSDWorker::SD_STATE_INSERTED) {
|
||||
if (System::getDialog()->getStateForSDMemory() == 2) {
|
||||
System::getDialog()->terminate();
|
||||
mpProgressLayout->getAnim(1)->initAnmFrame();
|
||||
mpProgressLayout->getAnim(1)->play();
|
||||
mTransferFlags[1] = 0;
|
||||
} else if (System::getDialog()->getStateForSDMemory() == 4 ||
|
||||
System::getDialog()->getStateForSDMemory() == 3) {
|
||||
if (mTransferFlags[1] != 0) {
|
||||
mpProgressLayout->getAnim(1)->initAnmFrame();
|
||||
mpProgressLayout->getAnim(1)->play();
|
||||
mTransferFlags[1] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (System::getDialog()->getLastResult() != -1 && !mpProgressLayout->isPlaying(1)) {
|
||||
if (System::getDialog()->getLastResult() != 1 &&
|
||||
(sdState == NandSDWorker::SD_STATE_EJECTED || sdState == NandSDWorker::SD_STATE_INSERTED)) {
|
||||
result = 2;
|
||||
}
|
||||
} else {
|
||||
result = 1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (result == 2) {
|
||||
@@ -673,8 +686,7 @@ namespace ipl {
|
||||
if (!mpMainLayout->isPlaying(-1)) {
|
||||
for (int i = 0; i < 3; i++) {
|
||||
mPanelStates[i] = 0;
|
||||
nw4r::lyt::Pane* pane = mpMainLayout->FindPaneByName(sControlPaneNames[i]);
|
||||
mpPaneManagers[0]->initPane(pane);
|
||||
mpPaneManagers[0]->initPane(mpMainLayout->GetRootPane()->FindPaneByName(sControlPaneNames[i], true));
|
||||
}
|
||||
|
||||
mDialogState = 1;
|
||||
@@ -751,6 +763,25 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
void SDMemory::onDialogState7() {
|
||||
if (!mpTitleLayout->isPlaying(-1)) {
|
||||
switch (mProcessState) {
|
||||
case 4:
|
||||
mDialogState = 0;
|
||||
mpMainLayout->getAnim(0)->play();
|
||||
snd::getSystem()->startSE("WIPL_SE_INFO_WINDOW");
|
||||
break;
|
||||
default:
|
||||
mTransferStartTime = 0;
|
||||
mTransferFrame = 0;
|
||||
System::getDialog()->callBtn0NoShade(0xCC, 0, true);
|
||||
mDialogState = 8;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void SDMemory::onDialogState8() {
|
||||
if (System::getDialog()->getStateForSDMemory() == 2) {
|
||||
if (mTransferStartTime == 0) {
|
||||
@@ -758,7 +789,7 @@ namespace ipl {
|
||||
}
|
||||
|
||||
if (!mpSDChannelSelect->getWorker()->is_working() &&
|
||||
OSGetTime() - mTransferStartTime > OS_TIMER_CLOCK) {
|
||||
static_cast<s64>(OSGetTime() - mTransferStartTime) > static_cast<s64>(OS_TIMER_CLOCK)) {
|
||||
System::getDialog()->terminate();
|
||||
}
|
||||
}
|
||||
@@ -777,20 +808,19 @@ namespace ipl {
|
||||
animation->initFrame();
|
||||
animation->restart();
|
||||
|
||||
nw4r::lyt::Pane* headerPane = mpDialogLayout->FindPaneByName("T_Header");
|
||||
static_cast<nw4r::lyt::TextBox*>(headerPane)->SetString(System::getMessage(0xBE), 0);
|
||||
nw4r::lyt::TextBox* titleText = static_cast<nw4r::lyt::TextBox*>(mpDialogLayout->FindPaneByName("T_Header"));
|
||||
titleText->SetString(System::getMessage(0xBE), 0);
|
||||
|
||||
mButtonState = 0;
|
||||
nw4r::lyt::Pane* titlePane = mpDialogLayout->FindPaneByName("N_Body");
|
||||
nw4r::lyt::Pane* bodyPane = mpDialogLayout->FindPaneByName("T_Letter");
|
||||
bodyPane->SetAlpha(0xFF);
|
||||
titleText = static_cast<nw4r::lyt::TextBox*>(mpDialogLayout->FindPaneByName("T_Letter"));
|
||||
titleText->SetAlpha(0xFF);
|
||||
|
||||
for (u32 i = 0; i < mTitleCount; i++) {
|
||||
utility::layout::set_string(bodyPane, mTitleNames[i]);
|
||||
utility::layout::set_string(titleText, mTitleNames[i]);
|
||||
nw4r::ut::Rect textRect = mpDialogLayout->getTextDrawRect("T_Letter");
|
||||
f32 lineCount = -(textRect.bottom - textRect.top) / titlePane->GetSize().height;
|
||||
f32 roundedLineCount = ceil(lineCount);
|
||||
mButtonState += static_cast<s32>(roundedLineCount);
|
||||
mButtonState += static_cast<s32>(static_cast<f32>(ceil(lineCount)));
|
||||
}
|
||||
|
||||
setScrollLimit();
|
||||
@@ -798,32 +828,11 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
void SDMemory::onDialogState7() {
|
||||
if (!mpTitleLayout->isPlaying(-1)) {
|
||||
switch (mProcessState) {
|
||||
case 4:
|
||||
mDialogState = 0;
|
||||
mpMainLayout->getAnim(0)->play();
|
||||
snd::getSystem()->startSE("WIPL_SE_BT_TARGETTING");
|
||||
break;
|
||||
default:
|
||||
mTransferStartTime = 0;
|
||||
mTransferFrame = 0;
|
||||
System::getDialog()->callBtn0NoShade(0xCC, 0, true);
|
||||
mDialogState = 8;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void SDMemory::onDialogState9() {
|
||||
if (!mpDialogLayout->isPlaying(0)) {
|
||||
for (int i = 0; i < 4; i++) {
|
||||
mPanelAnimationStates[i] = 0;
|
||||
nw4r::lyt::Pane* pane = mpDialogLayout->FindPaneByName(sDialogPaneNames[i]);
|
||||
mpPaneManagers[2]->initPane(pane);
|
||||
mpPaneManagers[2]->initPane(mpDialogLayout->GetRootPane()->FindPaneByName(sDialogPaneNames[i], true));
|
||||
}
|
||||
|
||||
mDialogState = 10;
|
||||
@@ -924,7 +933,7 @@ namespace ipl {
|
||||
}
|
||||
|
||||
extern "C" bool iplSDMemory_813EE358(const SDMemory* memory,
|
||||
const ESTitleId* titleEntry, ESTitleId titleId,
|
||||
ESTitleId titleId,
|
||||
const ESTitleId* titleIds, u32 titleCount) {
|
||||
for (u32 i = 0; i < titleCount; i++) {
|
||||
if (titleIds[i] == titleId) {
|
||||
@@ -939,9 +948,8 @@ namespace ipl {
|
||||
if (!mpSDChannelSelect->getWorker()->is_working()) {
|
||||
s32 result = mpSDChannelSelect->getWorker()->get_async_result();
|
||||
if (result == 0) {
|
||||
const ESTitleId* titleEntry = &mTitleIds[mCurrentTitle];
|
||||
ESTitleId titleId = *titleEntry;
|
||||
if (iplSDMemory_813EE358(this, titleEntry, titleId,
|
||||
ESTitleId titleId = mTitleIds[mCurrentTitle];
|
||||
if (iplSDMemory_813EE358(this, titleId,
|
||||
mNandTitleIds, mNandTitleCount)) {
|
||||
mDialogState = 17;
|
||||
} else {
|
||||
@@ -974,24 +982,10 @@ namespace ipl {
|
||||
swprintf(mCurrentTitleName, 0x107f, L"%ls\n%ls", titleName, message);
|
||||
System::getDialog()->setTitleForSDMemory(mCurrentTitleName);
|
||||
|
||||
bool isKnownTitle;
|
||||
{
|
||||
const ESTitleId* titleEntry = &mTitleIds[mCurrentTitle];
|
||||
ESTitleId titleId = *titleEntry;
|
||||
isKnownTitle = iplSDMemory_813EE358(this, titleEntry, titleId,
|
||||
mSDTitleIds, mTitleNameCount);
|
||||
}
|
||||
if (!isKnownTitle) {
|
||||
const ESTitleId* titleEntry = &mTitleIds[mCurrentTitle];
|
||||
ESTitleId titleId = *titleEntry;
|
||||
isKnownTitle = iplSDMemory_813EE358(this, titleEntry, titleId,
|
||||
mNandTitleIds, mNandTitleCount);
|
||||
}
|
||||
|
||||
if (isKnownTitle) {
|
||||
const ESTitleId* titleEntry = &mTitleIds[mCurrentTitle];
|
||||
ESTitleId titleId = *titleEntry;
|
||||
if (iplSDChannelSelect_813DB478(mpSDChannelSelect, titleEntry, titleId)) {
|
||||
if (iplSDMemory_813EE358(this, mTitleIds[mCurrentTitle], mSDTitleIds, mTitleNameCount) ||
|
||||
iplSDMemory_813EE358(this, mTitleIds[mCurrentTitle], mNandTitleIds, mNandTitleCount)) {
|
||||
ESTitleId titleId = mTitleIds[mCurrentTitle];
|
||||
if (iplSDChannelSelect_813DB478(mpSDChannelSelect, titleId)) {
|
||||
mDialogState = 14;
|
||||
} else {
|
||||
System::getDialog()->terminate();
|
||||
@@ -1000,12 +994,10 @@ namespace ipl {
|
||||
mMessageId = 0xAE;
|
||||
}
|
||||
} else {
|
||||
f32 completedTitles = static_cast<f32>(mCurrentTitle + 1);
|
||||
f32 totalTitles = static_cast<f32>(mTitleCount);
|
||||
mDialogState = 15;
|
||||
f32 progress = completedTitles * 100.0f / totalTitles;
|
||||
f32 progress = static_cast<f32>(mCurrentTitle + 1) * 100.0f / static_cast<f32>(mTitleCount);
|
||||
if (progress >= 100.0f) {
|
||||
progress = 100.0f;
|
||||
progress = 99.0f;
|
||||
}
|
||||
|
||||
mTransferFrame = static_cast<s32>(progress);
|
||||
@@ -1014,16 +1006,10 @@ namespace ipl {
|
||||
}
|
||||
|
||||
void SDMemory::onDialogState15() {
|
||||
u32 completedPercent = NandSDWorker::getCompletionPct() / mTitleCount;
|
||||
u32 currentTitle = mCurrentTitle;
|
||||
u32 titleCount = mTitleCount;
|
||||
f32 completedPercentFloat = static_cast<f32>(completedPercent);
|
||||
f32 currentTitleNumber = static_cast<f32>(currentTitle + 1);
|
||||
f32 progress = currentTitleNumber * 100.0f;
|
||||
progress = progress / static_cast<f32>(titleCount);
|
||||
progress += completedPercentFloat;
|
||||
f32 progress = static_cast<f32>(mCurrentTitle) * 100.0f / static_cast<f32>(mTitleCount);
|
||||
progress += static_cast<f32>(NandSDWorker::getCompletionPct() / mTitleCount);
|
||||
if (progress >= 100.0f) {
|
||||
progress = 100.0f;
|
||||
progress = 99.0f;
|
||||
}
|
||||
|
||||
mTransferFrame = static_cast<s32>(progress);
|
||||
@@ -1049,8 +1035,7 @@ namespace ipl {
|
||||
|
||||
void SDMemory::onDialogState16() {
|
||||
if (mTitleCount > mCurrentTitle && System::isReceiveScheduleStopped()) {
|
||||
const ESTitleId* titleEntry = &mTitleIds[mCurrentTitle];
|
||||
if (iplSDChannelSelect_813DB4D4(mpSDChannelSelect, titleEntry, *titleEntry, 0)) {
|
||||
if (iplSDChannelSelect_813DB4D4(mpSDChannelSelect, mTitleIds[mCurrentTitle], 0)) {
|
||||
mDialogState = 16;
|
||||
} else {
|
||||
System::getDialog()->terminate();
|
||||
@@ -1076,9 +1061,8 @@ namespace ipl {
|
||||
if (mpSDChannelSelect->getWorker()->get_async_result() == 0) {
|
||||
mCurrentTitle++;
|
||||
if (mTitleCount > mCurrentTitle) {
|
||||
const ESTitleId* nextTitle = &mTitleIds[mCurrentTitle];
|
||||
ESTitleId nextTitleId = *nextTitle;
|
||||
if (iplSDMemory_813EE358(this, nextTitle, nextTitleId,
|
||||
ESTitleId nextTitleId = mTitleIds[mCurrentTitle];
|
||||
if (iplSDMemory_813EE358(this, nextTitleId,
|
||||
mNandTitleIds, mNandTitleCount)) {
|
||||
mDialogState = 17;
|
||||
} else {
|
||||
@@ -1105,9 +1089,8 @@ namespace ipl {
|
||||
swprintf(mCurrentTitleName, 0x107f, L"%ls\n%ls", titleName, message);
|
||||
System::getDialog()->setTitleForSDMemory(mCurrentTitleName);
|
||||
|
||||
const ESTitleId* titleEntry = &mTitleIds[mCurrentTitle];
|
||||
const ESTitleId titleId = *titleEntry;
|
||||
if (iplSDChannelSelect_813DB5EC(mpSDChannelSelect, titleEntry, titleId)) {
|
||||
const ESTitleId titleId = mTitleIds[mCurrentTitle];
|
||||
if (iplSDChannelSelect_813DB5EC(mpSDChannelSelect, titleId)) {
|
||||
mDialogState = 18;
|
||||
} else {
|
||||
System::getDialog()->terminate();
|
||||
@@ -1162,7 +1145,7 @@ namespace ipl {
|
||||
|
||||
if (blockCountMarker != NULL && message != NULL) {
|
||||
format[0] = L'\0';
|
||||
wcsncat(format, message, static_cast<u32>(blockCountMarker - message) >> 1);
|
||||
wcsncat(format, message, static_cast<u32>(blockCountMarker - message));
|
||||
wcscat(format, L"%d");
|
||||
wcscat(format, blockCountMarker + 4);
|
||||
|
||||
@@ -1198,7 +1181,7 @@ namespace ipl {
|
||||
|
||||
mpMainLayout->getAnim(0)->initAnmFrame();
|
||||
mpMainLayout->getAnim(0)->play();
|
||||
snd::getSystem()->startSE("WIPL_SE_CANCEL");
|
||||
snd::getSystem()->startSE("WIPL_SE_INFO_WINDOW");
|
||||
mDialogState = 0;
|
||||
}
|
||||
|
||||
@@ -1265,23 +1248,25 @@ namespace ipl {
|
||||
}
|
||||
|
||||
void SDMemory::drawTransferTitles() {
|
||||
nw4r::lyt::Pane* memoPane = mpDialogLayout->FindPaneByName("N_Memo");
|
||||
nw4r::lyt::Pane* headerPane = mpDialogLayout->FindPaneByName("header_header");
|
||||
const nw4r::math::VEC3& translation = mpDialogLayout->FindPaneByName("N_Memo")->GetTranslate();
|
||||
nw4r::math::VEC3 memoPosition(translation.x, translation.y, translation.z);
|
||||
mpDialogLayout->FindPaneByName("header_header");
|
||||
nw4r::lyt::Pane* bodyPane = mpDialogLayout->FindPaneByName("header_body");
|
||||
|
||||
f32 bodyY = headerPane->GetTranslate().y;
|
||||
if (bodyY < 0.0f) {
|
||||
f32 bodyY = memoPosition.y;
|
||||
if (bodyY < 500.0f) {
|
||||
mpDialogLayout->draw("header_header");
|
||||
}
|
||||
|
||||
u8 alpha = mpDialogLayout->FindPaneByName("N_Memo")->GetAlpha();
|
||||
nw4r::ut::LinkList<nw4r::lyt::Pane, offsetof(nw4r::lyt::detail::PaneBase, mLink)>::Iterator child =
|
||||
bodyPane->GetChildList().GetBeginIter();
|
||||
while (child != bodyPane->GetChildList().GetEndIter()) {
|
||||
child->SetAlpha(memoPane->GetAlpha());
|
||||
child->SetAlpha(alpha);
|
||||
++child;
|
||||
}
|
||||
|
||||
u32 lineCount = 0;
|
||||
s32 lineCount = 0;
|
||||
f32 messageOffset = 0.0f;
|
||||
f32 bodyHeight = bodyPane->GetSize().height;
|
||||
if (mNandTitleCount != 0) {
|
||||
@@ -1295,17 +1280,18 @@ namespace ipl {
|
||||
const wchar_t* messageLine = System::getMessage(0xCB);
|
||||
nw4r::lyt::TextBox* messageText = static_cast<nw4r::lyt::TextBox*>(
|
||||
mpDialogLayout->FindPaneByName("T_Header_body"));
|
||||
u32 lineIndex = 0;
|
||||
while (lineIndex <= lineCount) {
|
||||
s32 totalLines = lineCount + 1;
|
||||
s32 lineIndex = 0;
|
||||
while (lineIndex < totalLines) {
|
||||
const wchar_t* lineEnd = wcsstr(messageLine, L"\n");
|
||||
if (lineEnd != NULL) {
|
||||
if (lineEnd == NULL) {
|
||||
utility::layout::set_string(messageText, messageLine);
|
||||
} else {
|
||||
u32 lineLength = static_cast<u32>(lineEnd - messageLine);
|
||||
wcsncpy(mCurrentTitleName, messageLine, lineLength);
|
||||
mCurrentTitleName[lineLength] = L'\0';
|
||||
utility::layout::set_string(messageText, mCurrentTitleName);
|
||||
messageLine = lineEnd + 1;
|
||||
} else {
|
||||
utility::layout::set_string(messageText, messageLine);
|
||||
}
|
||||
|
||||
if (bodyY < 500.0f) {
|
||||
@@ -1321,64 +1307,87 @@ namespace ipl {
|
||||
}
|
||||
|
||||
messageOffset += bodyHeight;
|
||||
f32 titleOffset = messageOffset;
|
||||
f32 backgroundOffset = 40.0f + messageOffset;
|
||||
f32 titleOffset = 79.5f + messageOffset;
|
||||
|
||||
nw4r::lyt::TextBox* titleSizePane = static_cast<nw4r::lyt::TextBox*>(
|
||||
mpDialogLayout->FindPaneByName("T_Letter"));
|
||||
nw4r::lyt::Pane* titleSizePane = mpDialogLayout->FindPaneByName("N_Body");
|
||||
f32 rowHeight = titleSizePane->GetSize().height;
|
||||
nw4r::lyt::PaneList::Iterator titleChild = titleSizePane->GetChildList().GetBeginIter();
|
||||
while (titleChild != titleSizePane->GetChildList().GetEndIter()) {
|
||||
titleChild->SetAlpha(memoPane->GetAlpha());
|
||||
titleChild->SetAlpha(alpha);
|
||||
++titleChild;
|
||||
}
|
||||
|
||||
nw4r::lyt::TextBox* titleText = static_cast<nw4r::lyt::TextBox*>(
|
||||
mpDialogLayout->FindPaneByName("T_Letter"));
|
||||
titleText->SetAlpha(memoPane->GetAlpha());
|
||||
titleText->SetAlpha(alpha);
|
||||
|
||||
nw4r::ut::Color activeTitleColor(0x34, 0xBE, 0xED, 0xFF);
|
||||
nw4r::ut::Color inactiveTitleColor(0x64, 0x64, 0x64, 0xFF);
|
||||
u32 nandTitleIndex = 0;
|
||||
for (u32 titleIndex = 0; titleIndex < mTitleCount; ++titleIndex) {
|
||||
utility::layout::set_string(titleText, mTitleNames[titleIndex]);
|
||||
if (titleIndex < mNandTitleCount && mTitleIds[titleIndex] == mNandTitleIds[titleIndex]) {
|
||||
if (nandTitleIndex < mNandTitleCount && mTitleIds[titleIndex] == mNandTitleIds[nandTitleIndex]) {
|
||||
nw4r::ut::Color activeTitleColor;
|
||||
writeFourFlagBytes(&activeTitleColor.r, 0x34, 0xBE, 0xED, 0xFF);
|
||||
++nandTitleIndex;
|
||||
setTitleRowColors(titleText, activeTitleColor, activeTitleColor);
|
||||
} else {
|
||||
nw4r::ut::Color inactiveTitleColor;
|
||||
writeFourFlagBytes(&inactiveTitleColor.r, 0x64, 0x64, 0x64, 0xFF);
|
||||
setTitleRowColors(titleText, inactiveTitleColor, inactiveTitleColor);
|
||||
}
|
||||
|
||||
nw4r::ut::Rect textRect = mpDialogLayout->getTextDrawRect("T_Header_body");
|
||||
nw4r::ut::Rect textRect = mpDialogLayout->getTextDrawRect("T_Letter");
|
||||
f32 rowTop = textRect.bottom - textRect.top;
|
||||
u32 visibleRows = static_cast<u32>(ceil(-rowTop / rowHeight));
|
||||
for (u32 row = 0; row < visibleRows; ++row) {
|
||||
f32 rowOffset = titleOffset + static_cast<f32>(row) * rowHeight;
|
||||
f32 rowY = bodyY + rowOffset;
|
||||
s32 visibleRows = static_cast<s32>(static_cast<f32>(ceil(-rowTop / titleSizePane->GetSize().height)));
|
||||
for (s32 row = 0; row < visibleRows; ++row) {
|
||||
f32 rowY = bodyY + backgroundOffset;
|
||||
if (rowY > -500.0f && rowY < 500.0f) {
|
||||
nw4r::math::VEC2 translation(0.0f, rowOffset);
|
||||
titleText->SetTranslate(translation);
|
||||
titleText->CalculateMtx(*mpDialogLayout->getDrawInfo());
|
||||
mpDialogLayout->draw(titleText);
|
||||
nw4r::math::VEC2 translation(0.0f, backgroundOffset);
|
||||
titleSizePane->SetTranslate(translation);
|
||||
titleSizePane->CalculateMtx(*mpDialogLayout->getDrawInfo());
|
||||
mpDialogLayout->draw(titleSizePane);
|
||||
}
|
||||
backgroundOffset -= rowHeight;
|
||||
}
|
||||
if (bodyY + titleOffset > -500.0f && bodyY + titleOffset < 500.0f) {
|
||||
nw4r::math::VEC2 translation(0.0f, titleOffset);
|
||||
titleText->SetTranslate(translation);
|
||||
titleText->CalculateMtx(*mpDialogLayout->getDrawInfo());
|
||||
mpDialogLayout->draw(titleText);
|
||||
}
|
||||
titleOffset -= rowHeight * static_cast<f32>(visibleRows);
|
||||
}
|
||||
|
||||
backgroundOffset += rowHeight;
|
||||
nw4r::lyt::Pane* footerPane = mpDialogLayout->FindPaneByName("N_Footer");
|
||||
nw4r::lyt::PaneList::Iterator footerChild = footerPane->GetChildList().GetBeginIter();
|
||||
while (footerChild != footerPane->GetChildList().GetEndIter()) {
|
||||
footerChild->SetAlpha(memoPane->GetAlpha());
|
||||
footerChild->SetAlpha(alpha);
|
||||
++footerChild;
|
||||
}
|
||||
|
||||
if (bodyY + titleOffset > -500.0f) {
|
||||
nw4r::math::VEC2 translation(0.0f, titleOffset);
|
||||
if (bodyY + backgroundOffset > -500.0f) {
|
||||
nw4r::math::VEC2 translation(0.0f, backgroundOffset);
|
||||
footerPane->SetTranslate(translation);
|
||||
footerPane->CalculateMtx(*mpDialogLayout->getDrawInfo());
|
||||
mpDialogLayout->draw(footerPane);
|
||||
}
|
||||
|
||||
mpDialogLayout->draw("header_body");
|
||||
mpDialogLayout->draw("N_TopBtn_00");
|
||||
mpDialogLayout->draw("N_Memo");
|
||||
mpDialogLayout->draw("N_Back");
|
||||
mpDialogLayout->draw("N_Move");
|
||||
}
|
||||
|
||||
void writeFourFlagBytes(u8* flags, u8 first, u8 second, u8 third, u8 fourth) {
|
||||
flags[0] = first;
|
||||
flags[1] = second;
|
||||
flags[2] = third;
|
||||
flags[3] = fourth;
|
||||
}
|
||||
|
||||
void setTitleRowColors(nw4r::lyt::TextBox* textBox, const nw4r::ut::Color& first,
|
||||
const nw4r::ut::Color& second) {
|
||||
textBox->SetTextColors(first, second);
|
||||
}
|
||||
|
||||
s32 SDMemory::getControlPaneIndex(const char* paneName) {
|
||||
@@ -1548,8 +1557,6 @@ namespace ipl {
|
||||
}
|
||||
|
||||
if (animator != NULL) {
|
||||
mProcessState = paneIndex;
|
||||
mDialogState = 2;
|
||||
animator->initAnmFrame();
|
||||
animator->setAnmType(ANIM_TYPE_FORWARD);
|
||||
animator->initFrame();
|
||||
@@ -1825,16 +1832,5 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
void writeFourFlagBytes(u8* flags, u8 first, u8 second, u8 third, u8 fourth) {
|
||||
flags[0] = first;
|
||||
flags[1] = second;
|
||||
flags[2] = third;
|
||||
flags[3] = fourth;
|
||||
}
|
||||
|
||||
void setTitleRowColors(nw4r::lyt::TextBox* textBox, const nw4r::ut::Color& first,
|
||||
const nw4r::ut::Color& second) {
|
||||
textBox->SetTextColors(first, second);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -895,7 +895,7 @@ s32 CArGBAOdh::cdj_c_flashBuffer(SArCDJ_OdhMaster* master) {
|
||||
void CArGBAOdh::cdj_c_setQuantizationTable(SArCDJ_OdhMaster* master, u32 qualityScale) {
|
||||
u8 scaledQuantization[128];
|
||||
u32 tablePass = 0;
|
||||
int tableOffset = 0;
|
||||
u32 tableOffset = 0;
|
||||
|
||||
do {
|
||||
for (int i = 0; i < 0x40; i++) {
|
||||
@@ -918,14 +918,12 @@ void CArGBAOdh::cdj_c_setQuantizationTable(SArCDJ_OdhMaster* master, u32 quality
|
||||
const u16* scales = (const u16*)gArAANScales;
|
||||
do {
|
||||
int scaleIndex = 0;
|
||||
u32* destination = master->quantizationTables + tableOffset / 4;
|
||||
u8* quantizationRow = scaledQuantization + scaledTableOffset;
|
||||
for (int i = 0; i < 0x40; i++) {
|
||||
u32 scale = scales[scaleIndex];
|
||||
u8 coefficient = quantizationRow[i];
|
||||
*destination = 0x4000000 / (scale * (u32)coefficient);
|
||||
master->quantizationTables[tablePass * 64 + i] = 0x4000000 / (scale * (u32)coefficient);
|
||||
scaleIndex++;
|
||||
destination++;
|
||||
}
|
||||
tablePass = tablePass + 1;
|
||||
tableOffset = tableOffset + 0x100;
|
||||
@@ -933,6 +931,16 @@ void CArGBAOdh::cdj_c_setQuantizationTable(SArCDJ_OdhMaster* master, u32 quality
|
||||
} while (tablePass < 2);
|
||||
}
|
||||
|
||||
void CArGBAOdh::cdj_c_makeHeader(SArCDJ_OdhMaster* master, u32 size) {
|
||||
master->data[0] = 'A';
|
||||
master->data[1] = 'J';
|
||||
master->data[2] = 'P';
|
||||
master->data[3] = 'G';
|
||||
*(u32*)&master->data[4] = master->width | (u32)master->height << 11 | (u32)master->quality << 24;
|
||||
*(u32*)&master->data[8] = size;
|
||||
*(u32*)&master->data[12] = 0;
|
||||
}
|
||||
|
||||
s32 CArGBAOdh::cdj_c_colorConv(SArCDJ_OdhMaster* master, u8* sourceData, int format) {
|
||||
u16* dimensions = (u16*)&master->width;
|
||||
u16 width = *dimensions;
|
||||
@@ -1363,7 +1371,7 @@ s32 CArGBAOdh::cdj_d_initializeDecompressOdh(SArCDJ_OdhMaster* master, u8* workB
|
||||
}
|
||||
|
||||
s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int workSize) {
|
||||
int sourceLimit = srcSize;
|
||||
u32 sourceLimit = srcSize;
|
||||
int workBufferSize = workSize;
|
||||
|
||||
u8 xSampling;
|
||||
@@ -1372,14 +1380,12 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
int blockRowStride;
|
||||
int rowStride;
|
||||
int blockStride;
|
||||
u32 decoderAddress;
|
||||
int statusOrOffset;
|
||||
u16 blockX;
|
||||
int planeOffset;
|
||||
int blockRowSize;
|
||||
int naturalIndex;
|
||||
|
||||
decoderAddress = (u32)this;
|
||||
blockWidth = master->blocksWide;
|
||||
blockRowSize = (u32)blockWidth * 0x38;
|
||||
rowStride = (u32)blockWidth << 3;
|
||||
@@ -1388,8 +1394,8 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
do {
|
||||
xSampling = master->xSampling;
|
||||
if ((xSampling == 1U) && (master->ySampling == 1U)) {
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->luminanceRequest,(u32)&hufftreePtr,0,sourceLimit);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->luminanceRequest, (u16**)hufftreePtr.tables, 0, sourceLimit);
|
||||
master->chrominanceRequest.bitstream = master->luminanceRequest.bitstream;
|
||||
master->chrominanceRequest.bytesConsumed = master->luminanceRequest.bytesConsumed;
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
@@ -1402,13 +1408,13 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
(u32)master->blockX * 8;
|
||||
if (statusOrOffset + blockRowSize + 8 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)master->quantizationTables,(u32)master->coefficients,(int)master->workBuffer + statusOrOffset,
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables,master->coefficients,master->workBuffer + statusOrOffset,
|
||||
rowStride);
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->chrominanceRequest,(u32)(u32)&hufftreePtr.tables[2],1,sourceLimit);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->chrominanceRequest, (u16**)(hufftreePtr.tables + 2), 1, sourceLimit);
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
statusOrOffset = 0;
|
||||
for (naturalIndex = 0; naturalIndex < 0x40; naturalIndex++) {
|
||||
@@ -1420,13 +1426,13 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
(u32)master->blockX * 8);
|
||||
if (statusOrOffset + blockRowSize + 8 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)(master->quantizationTables + 64),(u32)master->coefficients,(int)master->workBuffer + statusOrOffset,
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables + 64,master->coefficients,master->workBuffer + statusOrOffset,
|
||||
rowStride);
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->chrominanceRequest,(u32)(u32)&hufftreePtr.tables[2],2,sourceLimit);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->chrominanceRequest, (u16**)(hufftreePtr.tables + 2), 2, sourceLimit);
|
||||
master->luminanceRequest.bitstream = master->chrominanceRequest.bitstream;
|
||||
master->luminanceRequest.bytesConsumed = master->chrominanceRequest.bytesConsumed;
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
@@ -1440,15 +1446,15 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
((u32)master->blockY << 6) * (u32)master->blocksWide);
|
||||
if (statusOrOffset + blockRowSize + 8 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)(master->quantizationTables + 64),(u32)master->coefficients,(int)master->workBuffer + statusOrOffset,
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables + 64,master->coefficients,master->workBuffer + statusOrOffset,
|
||||
rowStride);
|
||||
}
|
||||
else if ((xSampling == 2U) && (master->ySampling == 1U)) {
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->luminanceRequest,(u32)&hufftreePtr,0,sourceLimit);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->luminanceRequest, (u16**)hufftreePtr.tables, 0, sourceLimit);
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
statusOrOffset = 0;
|
||||
for (naturalIndex = 0; naturalIndex < 0x40; naturalIndex++) {
|
||||
@@ -1459,13 +1465,13 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
((u32)master->blockY << 6) * (u32)master->blocksWide * 2;
|
||||
if (planeOffset + blockRowStride + 8 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)master->quantizationTables,(u32)master->coefficients,(int)master->workBuffer + planeOffset
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables,master->coefficients,master->workBuffer + planeOffset
|
||||
,blockStride);
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->luminanceRequest,(u32)&hufftreePtr,0,sourceLimit);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->luminanceRequest, (u16**)hufftreePtr.tables, 0, sourceLimit);
|
||||
master->chrominanceRequest.bitstream = master->luminanceRequest.bitstream;
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
statusOrOffset = 0;
|
||||
@@ -1475,13 +1481,13 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
}
|
||||
if (planeOffset + blockRowStride + 0x10 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)master->quantizationTables,(u32)master->coefficients,
|
||||
planeOffset + (int)master->workBuffer + 8,blockStride);
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->chrominanceRequest,(u32)(u32)&hufftreePtr.tables[2],1,sourceLimit);
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables,master->coefficients,
|
||||
planeOffset + master->workBuffer + 8,blockStride);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->chrominanceRequest, (u16**)(hufftreePtr.tables + 2), 1, sourceLimit);
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
statusOrOffset = 0;
|
||||
for (naturalIndex = 0; naturalIndex < 0x40; naturalIndex++) {
|
||||
@@ -1493,13 +1499,13 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
(u32)master->blocksHigh * ((u32)master->blocksWide << 7);
|
||||
if (statusOrOffset + blockRowSize + 8 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)(master->quantizationTables + 64),(u32)master->coefficients,(int)master->workBuffer + statusOrOffset,
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables + 64,master->coefficients,master->workBuffer + statusOrOffset,
|
||||
rowStride);
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->chrominanceRequest,(u32)(u32)&hufftreePtr.tables[2],2,sourceLimit);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->chrominanceRequest, (u16**)(hufftreePtr.tables + 2), 2, sourceLimit);
|
||||
master->luminanceRequest.bitstream = master->chrominanceRequest.bitstream;
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
statusOrOffset = 0;
|
||||
@@ -1512,15 +1518,15 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
((u32)master->blockY << 6) * (u32)master->blocksWide);
|
||||
if (statusOrOffset + blockRowSize + 8 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)(master->quantizationTables + 64),(u32)master->coefficients,(int)master->workBuffer + statusOrOffset,
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables + 64,master->coefficients,master->workBuffer + statusOrOffset,
|
||||
rowStride);
|
||||
}
|
||||
else if ((xSampling == 1U) && (master->ySampling == 2U)) {
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->luminanceRequest,(u32)&hufftreePtr,0,sourceLimit);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->luminanceRequest, (u16**)hufftreePtr.tables, 0, sourceLimit);
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
statusOrOffset = 0;
|
||||
for (naturalIndex = 0; naturalIndex < 0x40; naturalIndex++) {
|
||||
@@ -1531,13 +1537,13 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
((u32)master->blockY << 6) * (u32)master->blocksWide * 2;
|
||||
if (planeOffset + blockRowSize + 8 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)master->quantizationTables,(u32)master->coefficients,(int)master->workBuffer + planeOffset
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables,master->coefficients,master->workBuffer + planeOffset
|
||||
,rowStride);
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->luminanceRequest,(u32)&hufftreePtr,0,sourceLimit);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->luminanceRequest, (u16**)hufftreePtr.tables, 0, sourceLimit);
|
||||
master->chrominanceRequest.bitstream = master->luminanceRequest.bitstream;
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
statusOrOffset = 0;
|
||||
@@ -1548,13 +1554,13 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
planeOffset = planeOffset + (u32)master->blocksWide * 0x40;
|
||||
if (planeOffset + blockRowSize + 8 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)master->quantizationTables,(u32)master->coefficients,(int)master->workBuffer + planeOffset
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables,master->coefficients,master->workBuffer + planeOffset
|
||||
,rowStride);
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->chrominanceRequest,(u32)(u32)&hufftreePtr.tables[2],1,sourceLimit);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->chrominanceRequest, (u16**)(hufftreePtr.tables + 2), 1, sourceLimit);
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
statusOrOffset = 0;
|
||||
for (naturalIndex = 0; naturalIndex < 0x40; naturalIndex++) {
|
||||
@@ -1566,13 +1572,13 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
((u32)master->blockY << 6) * (u32)master->blocksWide);
|
||||
if (statusOrOffset + blockRowSize + 8 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)(master->quantizationTables + 64),(u32)master->coefficients,(int)master->workBuffer + statusOrOffset,
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables + 64,master->coefficients,master->workBuffer + statusOrOffset,
|
||||
rowStride);
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->chrominanceRequest,(u32)(u32)&hufftreePtr.tables[2],2,sourceLimit);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->chrominanceRequest, (u16**)(hufftreePtr.tables + 2), 2, sourceLimit);
|
||||
master->luminanceRequest.bitstream = master->chrominanceRequest.bitstream;
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
statusOrOffset = 0;
|
||||
@@ -1585,15 +1591,15 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
((u32)master->blockY << 6) * (u32)master->blocksWide);
|
||||
if (statusOrOffset + blockRowSize + 8 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)(master->quantizationTables + 64),(u32)master->coefficients,(int)master->workBuffer + statusOrOffset,
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables + 64,master->coefficients,master->workBuffer + statusOrOffset,
|
||||
rowStride);
|
||||
}
|
||||
else if ((xSampling == 2U) && (master->ySampling == 2U)) {
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->luminanceRequest,(u32)&hufftreePtr,0,sourceLimit);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->luminanceRequest, (u16**)hufftreePtr.tables, 0, sourceLimit);
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
statusOrOffset = 0;
|
||||
for (naturalIndex = 0; naturalIndex < 0x40; naturalIndex++) {
|
||||
@@ -1604,13 +1610,13 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
((u32)master->blockY << 6) * (u32)master->blocksWide * 4;
|
||||
if (planeOffset + blockRowStride + 8 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)master->quantizationTables,(u32)master->coefficients,(int)master->workBuffer + planeOffset
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables,master->coefficients,master->workBuffer + planeOffset
|
||||
,blockStride);
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->luminanceRequest,(u32)&hufftreePtr,0,sourceLimit);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->luminanceRequest, (u16**)hufftreePtr.tables, 0, sourceLimit);
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
statusOrOffset = 0;
|
||||
for (naturalIndex = 0; naturalIndex < 0x40; naturalIndex++) {
|
||||
@@ -1621,13 +1627,13 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
planeOffset = nextOffset;
|
||||
if (nextOffset + blockRowStride + 8 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)master->quantizationTables,(u32)master->coefficients,(int)master->workBuffer + nextOffset
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables,master->coefficients,master->workBuffer + nextOffset
|
||||
,blockStride);
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->luminanceRequest,(u32)&hufftreePtr,0,sourceLimit);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->luminanceRequest, (u16**)hufftreePtr.tables, 0, sourceLimit);
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
statusOrOffset = 0;
|
||||
for (naturalIndex = 0; naturalIndex < 0x40; naturalIndex++) {
|
||||
@@ -1637,13 +1643,13 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
planeOffset = planeOffset + (u32)master->blocksWide * 0x80 + -8;
|
||||
if (planeOffset + blockRowStride + 8 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)master->quantizationTables,(u32)master->coefficients,(int)master->workBuffer + planeOffset
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables,master->coefficients,master->workBuffer + planeOffset
|
||||
,blockStride);
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->luminanceRequest,(u32)&hufftreePtr,0,sourceLimit);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->luminanceRequest, (u16**)hufftreePtr.tables, 0, sourceLimit);
|
||||
master->chrominanceRequest.bitstream = master->luminanceRequest.bitstream;
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
statusOrOffset = 0;
|
||||
@@ -1653,13 +1659,13 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
}
|
||||
if (planeOffset + blockRowStride + 0x10 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)master->quantizationTables,(u32)master->coefficients,
|
||||
planeOffset + (int)master->workBuffer + 8,blockStride);
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->chrominanceRequest,(u32)(u32)&hufftreePtr.tables[2],1,sourceLimit);
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables,master->coefficients,
|
||||
planeOffset + master->workBuffer + 8,blockStride);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->chrominanceRequest, (u16**)(hufftreePtr.tables + 2), 1, sourceLimit);
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
statusOrOffset = 0;
|
||||
for (naturalIndex = 0; naturalIndex < 0x40; naturalIndex++) {
|
||||
@@ -1671,13 +1677,13 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
((u32)master->blockY << 6) * (u32)master->blocksWide);
|
||||
if (statusOrOffset + blockRowSize + 8 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)(master->quantizationTables + 64),(u32)master->coefficients,(int)master->workBuffer + statusOrOffset,
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables + 64,master->coefficients,master->workBuffer + statusOrOffset,
|
||||
rowStride);
|
||||
statusOrOffset = huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl
|
||||
(decoderAddress,(u32)master->dcCoefficients,(u32)&master->chrominanceRequest,(u32)(u32)&hufftreePtr.tables[2],2,sourceLimit);
|
||||
statusOrOffset = huffmanDecoder
|
||||
(master->dcCoefficients, &master->chrominanceRequest, (u16**)(hufftreePtr.tables + 2), 2, sourceLimit);
|
||||
master->luminanceRequest.bitstream = master->chrominanceRequest.bitstream;
|
||||
if (statusOrOffset != 0) return statusOrOffset;
|
||||
statusOrOffset = 0;
|
||||
@@ -1690,10 +1696,10 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
((u32)master->blockY << 6) * (u32)master->blocksWide);
|
||||
if (statusOrOffset + blockRowSize + 8 > workBufferSize) {
|
||||
statusOrOffset = -0x7ffffffa;
|
||||
goto LAB_0001239c;
|
||||
goto finishBlock;
|
||||
}
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl
|
||||
(decoderAddress,(u32)range_limit,(u32)(master->quantizationTables + 64),(u32)master->coefficients,(int)master->workBuffer + statusOrOffset,
|
||||
idct_fast
|
||||
(range_limit,master->quantizationTables + 64,master->coefficients,master->workBuffer + statusOrOffset,
|
||||
rowStride);
|
||||
}
|
||||
blockX = master->blockX + 1;
|
||||
@@ -1704,7 +1710,7 @@ s32 CArGBAOdh::cdj_d_decompressLoop(SArCDJ_OdhMaster* master, int srcSize, int w
|
||||
}
|
||||
} while (master->blockY < master->blocksHigh);
|
||||
statusOrOffset = 0;
|
||||
LAB_0001239c:
|
||||
finishBlock:
|
||||
return statusOrOffset;
|
||||
}
|
||||
|
||||
@@ -1737,7 +1743,7 @@ void CArGBAOdh::cdj_d_setDequantizationTable(SArCDJ_OdhMaster* master, u32 quali
|
||||
scaleIndex = tableIndex;
|
||||
u32 scale = scales[scaleIndex];
|
||||
u32 value = (boundedCoefficient * scale + 2048) >> 0xC;
|
||||
u32* destination = master->quantizationTables + tableByteOffset / 4;
|
||||
u32* destination = master->quantizationTables + tablePass * 64;
|
||||
destination[tableIndex] = value;
|
||||
tableIndex++;
|
||||
standardTable++;
|
||||
@@ -1748,27 +1754,9 @@ void CArGBAOdh::cdj_d_setDequantizationTable(SArCDJ_OdhMaster* master, u32 quali
|
||||
} while (tablePass < 2);
|
||||
}
|
||||
|
||||
void CArGBAOdh::cdj_c_makeHeader(SArCDJ_OdhMaster* master, u32 size) {
|
||||
master->data[0] = 'A';
|
||||
master->data[1] = 'J';
|
||||
master->data[2] = 'P';
|
||||
master->data[3] = 'G';
|
||||
*(u32*)&master->data[4] = master->width | (u32)master->height << 11 | (u32)master->quality << 24;
|
||||
*(u32*)&master->data[8] = size;
|
||||
*(u32*)&master->data[12] = 0;
|
||||
}
|
||||
|
||||
s32 CArGBAOdh::ScaleLimit(s32 scale) {
|
||||
s32 newScale = scale;
|
||||
|
||||
if (newScale < 0) {
|
||||
newScale = 0;
|
||||
} else if (scale > 255) {
|
||||
newScale = 255;
|
||||
}
|
||||
|
||||
return newScale;
|
||||
}
|
||||
|
||||
s32 CArGBAOdh::cdj_d_colorDeconv(SArCDJ_OdhMaster* master, u8* destination, int outputFormat) {
|
||||
u16 width = master->width;
|
||||
@@ -1893,11 +1881,20 @@ void CArGBAOdh::LineDeconv11(u8* dest, u8* y, u8* cb, u8* cr, u16 width, u16 hei
|
||||
}
|
||||
}
|
||||
|
||||
s32 CArGBAOdh::ScaleLimit(s32 scale) {
|
||||
s32 newScale = scale;
|
||||
|
||||
if (newScale < 0) {
|
||||
newScale = 0;
|
||||
} else if (scale > 255) {
|
||||
newScale = 255;
|
||||
}
|
||||
|
||||
return newScale;
|
||||
}
|
||||
|
||||
void CArGBAOdh::LineDeconv21(u8* dest, u8* y, u8* cb, u8* cr, u16 width, u16 height,
|
||||
const SArDeconvTbl* table, int format) {
|
||||
u8 crValue;
|
||||
u8 lumaValue;
|
||||
u8 cbValue;
|
||||
s32 redValue;
|
||||
u32 greenValue;
|
||||
s32 blueValue;
|
||||
@@ -1907,9 +1904,9 @@ void CArGBAOdh::LineDeconv21(u8* dest, u8* y, u8* cb, u8* cr, u16 width, u16 hei
|
||||
u8* destinationCb = dest + (s32)width * height;
|
||||
u8* destinationCr = dest + (s32)width * height * 2;
|
||||
for (pixelIndex = 0; (s32)pixelIndex < (s32)(width & 0xFFFF); pixelIndex += 2) {
|
||||
crValue = *cr;
|
||||
lumaValue = *y;
|
||||
cbValue = *cb;
|
||||
u8 crValue = *cr;
|
||||
u8 lumaValue = *y;
|
||||
u8 cbValue = *cb;
|
||||
redValue = ScaleLimit((u32)lumaValue + table->luma[crValue]);
|
||||
greenValue = ScaleLimit((u32)lumaValue + (table->cbGreen[cbValue] + table->crGreen[crValue] >> 16));
|
||||
blueValue = ScaleLimit((u32)lumaValue + table->blue[cbValue]);
|
||||
@@ -1990,7 +1987,7 @@ void CArGBAOdh::LineDeconv12(u8* dest, u8* y, u8* cb, u8* cr, u16 width, u16 hei
|
||||
|
||||
if (format == 0) {
|
||||
outputOffset = (pixelIndex & 0x1FFFFFFC) * 8 + (pixelIndex & 3) * 2;
|
||||
redValue = blueValue >> 3 | (redValue & 0xF8) << 8 | (greenValue & 0xFC) << 3;
|
||||
redValue = ((redValue & 0xF8) << 8 | (greenValue & 0xFC) << 3) | (blueValue >> 3);
|
||||
pixelOutput = dest + outputOffset;
|
||||
*pixelOutput = redValue >> 8;
|
||||
pixelOutput[1] = redValue;
|
||||
@@ -2014,7 +2011,7 @@ void CArGBAOdh::LineDeconv12(u8* dest, u8* y, u8* cb, u8* cr, u16 width, u16 hei
|
||||
nextBlueValue = ScaleLimit((u32)lumaValue + table->blue[cbValue]);
|
||||
|
||||
if (format == 0) {
|
||||
redValue = nextBlueValue >> 3 | (redValue & 0xF8) << 8 | (greenValue & 0xFC) << 3;
|
||||
redValue = ((redValue & 0xF8) << 8 | (greenValue & 0xFC) << 3) | (nextBlueValue >> 3);
|
||||
pixelOutput[8] = redValue >> 8;
|
||||
pixelOutput[9] = redValue;
|
||||
} else if (format == 1) {
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
import struct, subprocess, sys
|
||||
|
||||
def sec(path, name=".text"):
|
||||
d = open(path,"rb").read()
|
||||
e_shoff = struct.unpack(">I", d[0x20:0x24])[0]
|
||||
esz = struct.unpack(">H", d[0x2e:0x30])[0]
|
||||
n = struct.unpack(">H", d[0x30:0x32])[0]
|
||||
si = struct.unpack(">H", d[0x32:0x34])[0]
|
||||
hdrs = [struct.unpack(">10I", d[e_shoff+i*esz:e_shoff+i*esz+40]) for i in range(n)]
|
||||
strt = hdrs[si][4]
|
||||
for h in hdrs:
|
||||
e = d.index(b"\0", strt+h[0]); nm = d[strt+h[0]:e].decode()
|
||||
if nm == name: return d[h[4]:h[4]+h[5]]
|
||||
|
||||
def funcs(path):
|
||||
out = subprocess.run(["readelf","-sW",path],capture_output=True,text=True).stdout
|
||||
fns = {}
|
||||
for l in out.splitlines():
|
||||
p = l.split()
|
||||
if len(p)>7 and p[3]=="FUNC":
|
||||
fns[p[7]] = (int(p[1],16), int(p[2]))
|
||||
return fns
|
||||
|
||||
unit = sys.argv[1] if len(sys.argv)>1 else "pf_file"
|
||||
o = funcs(f"build/43U/obj/libs/RVL_SDK/src/fa/{unit}.o")
|
||||
m = funcs(f"build/43U/src/libs/RVL_SDK/src/fa/{unit}.o")
|
||||
oraw = sec(f"build/43U/obj/libs/RVL_SDK/src/fa/{unit}.o")
|
||||
mraw = sec(f"build/43U/src/libs/RVL_SDK/src/fa/{unit}.o")
|
||||
diffs = []
|
||||
for nm,(oo,os_) in sorted(o.items(), key=lambda x:x[1][0]):
|
||||
if nm not in m:
|
||||
diffs.append((nm, "missing")); continue
|
||||
mo,ms_ = m[nm]
|
||||
if oraw[oo:oo+os_] != mraw[mo:mo+ms_]:
|
||||
diffs.append((nm, f"orig {os_} mine {ms_}"))
|
||||
print(f"{len(o)-len(diffs)}/{len(o)} fns byte-identical")
|
||||
for d in diffs: print(" DIFF:", *d)
|
||||
162
tools/decomp-assist/ezi3.attempts.md
Normal file
162
tools/decomp-assist/ezi3.attempts.md
Normal file
@@ -0,0 +1,162 @@
|
||||
# eZiText matching attempts, 2026-09-30
|
||||
|
||||
Six source units; local matching only. All final string pools are identical. Six additional instruction-exact functions; remaining functions are partial.
|
||||
|
||||
## Before -> after
|
||||
|
||||
| Unit | Instruction exact | Fuzzy code | Matched code bytes | Matched data bytes |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| zi8dawg | 2/6 -> 5/6 | 51.9523% -> 99.9754% | 536 -> 4356/4868 | 0 -> 120/120 |
|
||||
| zprepare | 0/1 -> 0/1 | 64.7575% -> 82.4734% | 0 -> 0/3760 | 0 -> 8/68 |
|
||||
| zkokeyp | 1/7 -> 1/7 | 76.1862% -> 81.0346% | 332 -> 332/5200 | 0 -> 0/140 |
|
||||
| zi8getc2 | 11/17 -> 14/17 | 81.5273% -> 94.7933% | 1380 -> 3584/6888 | 24 -> 112/332 |
|
||||
| zi8match | 7/10 -> 7/10 | 87.4123% -> 89.0165% | 3720 -> 3720/8256 | 608 -> 608/728 |
|
||||
| zikorean | 2/3 -> 2/3 | 85.0925% -> 86.8605% | 2712 -> 2712/5188 | 24 -> 24/348 |
|
||||
|
||||
## Remaining functions
|
||||
|
||||
- Zi8MatchROMdata1: 99.765625%; Register allocation only (group index and table address swap registers). Logged attempts: 11.
|
||||
- Zi8PrepareMatch: 82.473404%; Stack layout, stroke/phonetic basic blocks and temporaries remain different; 973 versus 940 instructions. Logged attempts: 5.
|
||||
- Zi8_8148302C: 99.491520%; Register allocation only: work pointer and table count exchange r27/r29. Logged attempts: 4.
|
||||
- Zi8_81483264: 98.902435%; Register allocation only: parameter pointer and byte counter exchange r30/r31. Logged attempts: 4.
|
||||
- Zi8_81483308: 99.137930%; Register allocation only: insertion count pointer and byte index exchange r29/r30. Logged attempts: 4.
|
||||
- Zi8_814833F0: 99.042560%; Register allocation only: parameter pointer and byte index exchange r30/r31. Logged attempts: 4.
|
||||
- Zi8_814834AC: 87.938774%; 343/343 instructions, but registers, stack accesses and branch operands differ (268 changed instructions). Logged attempts: 3.
|
||||
- Zi8GetKOcandidates: 69.584460%; Candidate traversal blocks and temporaries remain different; 727 versus 669 instructions. Logged attempts: 4.
|
||||
- Zi8GetDataSignature: 99.347824%; Register allocation only: destination, language and signature pointer cycle through r27/r28/r29. Logged attempts: 3.
|
||||
- Zi8GetCandidatesOrCount: 87.203170%; Stack frame 0x50 versus 0x60 and signature dispatch/early return order remain different; 693 versus 694 instructions. Logged attempts: 3.
|
||||
- Zi8IsDupWChar: 99.365080%; Register allocation only: character and duplicate flag exchange r27/r28. Logged attempts: 3.
|
||||
- Zi8MatchPhonetic: 85.950420%; Dictionary/mask registers, stack descriptor placement and nested branch order remain different; 358 versus 363 instructions. Logged attempts: 9.
|
||||
- Zi8GetPyPhonetic: 75.584960%; Stack byte placement, conversion loop scheduling and phonetic branches remain different; 727 versus 718 instructions. Logged attempts: 3.
|
||||
- Zi8GetPyFinal: 99.245285%; Register allocation only in final output row-address expressions (eight changed instructions). Logged attempts: 3.
|
||||
- Zi8GetKoreanCandidates: 72.468500%; 621/619 instructions; expression scheduling and table/candidate branch ordering differ. Logged attempts: 3.
|
||||
|
||||
## Exact gains
|
||||
|
||||
- zi8dawg: Zi8MatchROMdata0 (522/522), Zi8MatchROMdata2 (236/236), Zi8MatchROMdata (197/197).
|
||||
- zi8getc2: Zi8AlphaSignature (204/204), Zi8ZhSignature (208/208), Zi8IsDupWordW (139/139).
|
||||
- Each has objdiff 100.0 and ctxdiff diffs 0 from independent final object checks.
|
||||
|
||||
## Scope and uncertainty
|
||||
|
||||
zprepare, zkokeyp, zi8match and zikorean have fuzzy improvements without increased exact-function counts. They remain partial; GATE PASS does not assert completion. Register-only differences are observed; the compiler choice causing them is unresolved. Data scores remain partial in five units. No linking changes were attempted. Runtime behavior was not tested separately; target disassembly and object comparison were the matching authority.
|
||||
|
||||
## Files changed
|
||||
|
||||
- libs/RVLMiddleware/eZiText/src/clib/zi8dawg.c
|
||||
- libs/RVLMiddleware/eZiText/src/clib/zprepare.c
|
||||
- libs/RVLMiddleware/eZiText/src/clib/zkokeyp.c
|
||||
- libs/RVLMiddleware/eZiText/src/clib/zi8getc2.c
|
||||
- libs/RVLMiddleware/eZiText/src/clib/zi8match.c
|
||||
- libs/RVLMiddleware/eZiText/src/clib/zikorean.c
|
||||
- tools/decomp-assist/ezi3.attempts.md
|
||||
- tools/decomp-assist/ezi3.final-gate.txt
|
||||
|
||||
## Local source commits
|
||||
|
||||
```
|
||||
38961b58 match dawg graph traversal
|
||||
dc29ae80 match dawg segmented search
|
||||
14156024 match dawg group search
|
||||
cd667fb6 restore prepare match block structure
|
||||
e575012c restore korean candidate filter frame and branches
|
||||
a22a9876 restore korean key table traversal and options
|
||||
b063bccc match latin data signature output
|
||||
b36ad4ce match chinese data signature output
|
||||
d004c9bc restore signed candidate language dispatch
|
||||
e3d4e836 match duplicate word slot management
|
||||
8b57b56d restore phonetic and korean search blocks
|
||||
```
|
||||
|
||||
## Attempt log
|
||||
|
||||
Build failures are preserved. Candidate variants that failed to improve the best score were restored. The old pool tool raises KeyError on objects without .data; the gate string-reader fallback and final full gate verified their empty pools. A blank pool field in early attempts reflects that tool error, not an asserted match.
|
||||
|
||||
```
|
||||
zi8dawg Zi8MatchROMdata0 attempt 1: translate graph traversal blocks in address order; separate key and graph tables; u8 count and u16 search state; fuzzy 98.005745; src 0x824 base 0x828 insns 521/522; --- replace mine 40:41 base 40:41;
|
||||
zi8dawg Zi8MatchROMdata0 attempt 2: unsigned key array eliminates sign extension; explicit null pointer comparisons and key-table expression order; fuzzy 99.93104; src 0x828 base 0x828 insns 522/522; diffs 18: [99, 119, 120, 179, 180, 219, 222, 224, 243, 287, 316, 329, 332, 333, 335, 336, 443, 505];
|
||||
zi8dawg Zi8MatchROMdata0 attempt 3: reverse scalar declarations to match stack offsets; explicit signed key-count local and graph table update order; fuzzy 95.72797; src 0x828 base 0x828 insns 522/522; diffs 39: [190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209];
|
||||
zi8dawg Zi8MatchROMdata0 attempt 4: retain for-loop ternary, reorder used scalar locals to match reverse stack allocation; fuzzy 99.950195; src 0x828 base 0x828 insns 522/522; diffs 8: [219, 222, 224, 243, 316, 329, 332, 333];
|
||||
zi8dawg Zi8MatchROMdata0 attempt 5: explicit tail-tested key loop removes compiler temporary; compound key table update and grouped character table access; fuzzy 100.0; src 0x828 base 0x828 insns 522/522; diffs 0: [];
|
||||
zi8dawg Zi8MatchROMdata1 attempt 1: widen group index to byte type; fuzzy 98.203125; src 0x208 base 0x200 insns 130/128; --- replace mine 12:13 base 12:13;
|
||||
zi8dawg Zi8MatchROMdata1 attempt 2: inline table-address assignment; fuzzy 98.47656; src 0x1fc base 0x200 insns 127/128; --- replace mine 5:7 base 5:7;
|
||||
zi8dawg Zi8MatchROMdata1 attempt 3: use pointer local for table address; fuzzy 99.765625; src 0x200 base 0x200 insns 128/128; diffs 5: [12, 36, 37, 52, 57];
|
||||
zi8dawg Zi8MatchROMdata2 attempt 1: translate success-copy then failure-prefix blocks in target order; byte loop and parameter types; switch vowel test; fuzzy 99.15254; src 0x3b0 base 0x3b0 insns 236/236; diffs 10: [172, 173, 174, 175, 176, 177, 178, 179, 180, 181];
|
||||
zi8dawg Zi8MatchROMdata2 attempt 2: byte status prototype restores call narrowing; use unsigned result mask for segment accumulation; fuzzy 99.57627; src 0x3b4 base 0x3b0 insns 237/236; --- replace mine 21:22 base 21:22;
|
||||
zi8dawg Zi8MatchROMdata1 attempt 4: byte status parameter retains callee narrowing semantics; fuzzy 98.984375; src 0x204 base 0x200 insns 129/128; --- replace mine 12:13 base 12:13;
|
||||
zi8dawg Zi8MatchROMdata1 attempt 5: avoid duplicate byte-status mask at entry; fuzzy 99.765625; src 0x200 base 0x200 insns 128/128; diffs 5: [12, 36, 37, 52, 57];
|
||||
zi8dawg Zi8MatchROMdata2 attempt 3: compound segment-length update avoids redundant conversion; fuzzy 100.0; src 0x3b0 base 0x3b0 insns 236/236; diffs 0: [];
|
||||
zi8dawg Zi8MatchROMdata attempt 1: translate group iteration and fallback in address order; explicit mode reuse and table-size initialization; fuzzy 100.0; src 0x314 base 0x314 insns 197/197; diffs 0: [];
|
||||
zi8dawg Zi8MatchROMdata1 attempt 6: declare table address before result; fuzzy 99.765625; src 0x200 base 0x200 insns 128/128; diffs 5: [12, 36, 37, 52, 57];
|
||||
zi8dawg Zi8MatchROMdata1 attempt 7: test group index before group terminator; fuzzy 95.11719; src 0x200 base 0x200 insns 128/128; diffs 10: [12, 36, 37, 52, 53, 54, 55, 56, 57, 58];
|
||||
zi8dawg Zi8MatchROMdata1 attempt 8: compare group index through byte conversion; fuzzy 99.765625; src 0x200 base 0x200 insns 128/128; diffs 5: [12, 36, 37, 52, 57];
|
||||
zprepare Zi8PrepareMatch attempt 1: translate component setup and loop indices from target blocks; reconstruct byte locals and stack arrays; fuzzy 72.98404; src 0xfa4 base 0xeb0 insns 1001/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zprepare Zi8PrepareMatch attempt 2: remove cached returns and result local; restore shared byte loop index register and direct phonetic result storage; fuzzy 74.75319; src 0xf74 base 0xeb0 insns 989/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zprepare Zi8PrepareMatch attempt 3: restore independent nibble counter test; u32 nibble arithmetic, array declaration order and aligned mode scalar; fuzzy 74.42021; src 0xefc base 0xeb0 insns 959/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8dawg Zi8MatchROMdata1 attempt 9: group countdown name; fuzzy 99.765625; src 0x200 base 0x200 insns 128/128; diffs 5: [12, 36, 37, 52, 57];
|
||||
zi8dawg Zi8MatchROMdata1 attempt 10: table pointer name; fuzzy 99.765625; src 0x200 base 0x200 insns 128/128; diffs 5: [12, 36, 37, 52, 57];
|
||||
zi8dawg Zi8MatchROMdata1 attempt 11: remaining group counter name; fuzzy 99.765625; src 0x200 base 0x200 insns 128/128; diffs 5: [12, 36, 37, 52, 57];
|
||||
zprepare Zi8PrepareMatch attempt 4: replace stroke decisions with target switch and odd-nibble-first blocks; remove unused component flag, use compound byte increments; fuzzy 81.4617; src 0xf48 base 0xeb0 insns 978/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zprepare Zi8PrepareMatch attempt 5: switch for component mode; use integer table-address ABI like matched siblings; fuzzy 82.473404; src 0xf34 base 0xeb0 insns 973/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zkokeyp Zi8_8148302C attempt 1: reverse value comparison to target operand order; fuzzy 99.49152; src 0xec base 0xec insns 59/59; diffs 6: [7, 12, 32, 34, 38, 49];
|
||||
zkokeyp Zi8_8148302C attempt 2: scope decoded table value inside loop; fuzzy 89.81356; src 0xf8 base 0xec insns 62/59; --- replace mine 5:9 base 5:8;
|
||||
zkokeyp Zi8_8148302C attempt 3: use byte table index directly as u16; fuzzy 90.50848; src 0xfc base 0xec insns 63/59; --- replace mine 7:8 base 7:8;
|
||||
zkokeyp Zi8_8148302C attempt 4: reduce key-table arithmetic to nine-byte entries; fuzzy 94.40678; src 0xe4 base 0xec insns 57/59; --- replace mine 7:8 base 7:8;
|
||||
zkokeyp Zi8_81483264 attempt 1: widen loop variable and narrow at table accesses; fuzzy 98.902435; src 0xa4 base 0xa4 insns 41/41; diffs 8: [6, 8, 17, 20, 21, 24, 25, 26];
|
||||
zkokeyp Zi8_81483264 attempt 2: initialize loop index in declaration and use while loop; fuzzy 86.82927; src 0xa4 base 0xa4 insns 41/41; diffs 18: [8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 28];
|
||||
zkokeyp Zi8_81483308 attempt 1: widen loop variable and narrow at table accesses; fuzzy 99.13793; src 0xe8 base 0xe8 insns 58/58; diffs 9: [7, 22, 26, 33, 34, 39, 42, 44, 50];
|
||||
zkokeyp Zi8_81483308 attempt 2: initialize loop index in declaration and use while loop; fuzzy 93.86207; src 0xe4 base 0xe8 insns 57/58; --- replace mine 7:8 base 7:8;
|
||||
zkokeyp Zi8_814833F0 attempt 1: widen loop variable and narrow at table accesses; fuzzy 99.04256; src 0xbc base 0xbc insns 47/47; diffs 8: [6, 13, 22, 26, 27, 34, 35, 36];
|
||||
zkokeyp Zi8_814833F0 attempt 2: initialize loop index in declaration and use while loop; fuzzy 92.53191; src 0xb8 base 0xbc insns 46/47; --- replace mine 6:7 base 6:7;
|
||||
zkokeyp Zi8_81483264 attempt 3: C99 scoped for counter rejected by C89 compiler; restored original.
|
||||
zkokeyp Zi8_81483308 attempt 3: C99 scoped for counter rejected by C89 compiler; restored original.
|
||||
zkokeyp Zi8_814833F0 attempt 3: C99 scoped for counter rejected by C89 compiler; restored original.
|
||||
zkokeyp Zi8_81483264 attempt 4: C89 scope encloses scratch loop and counter; fuzzy 81.12195; src 0xb8 base 0xa4 insns 46/41; --- replace mine 6:11 base 6:9; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_81483308 attempt 4: C89 scope encloses scratch loop and counter; fuzzy 89.55173; src 0xf4 base 0xe8 insns 61/58; --- replace mine 5:10 base 5:9; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814833F0 attempt 4: C89 scope encloses scratch loop and counter; fuzzy 83.319145; src 0xd0 base 0xbc insns 52/47; --- replace mine 6:11 base 6:9; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814834AC attempt 1: replace oversized scratch union with five packed key bytes evidenced by frame and stores; fuzzy 77.472305; src 0x53c base 0x55c insns 335/343; --- replace mine 0:1 base 0:1; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814834AC attempt 2: translate frame-sized packed key buffer, candidate index initialization, signed divide and modulo, typed nine-byte entries; fuzzy 80.90087; src 0x55c base 0x55c insns 343/343; diffs 290: [6, 7, 11, 12, 13, 14, 15, 16, 23, 24, 25, 28, 32, 37, 38, 39, 41, 42, 45, 47]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814834AC attempt 3: separate filtering and compaction indices; emit remaining-candidate branch first like target; fuzzy 87.938774; src 0x55c base 0x55c insns 343/343; diffs 268: [8, 9, 10, 11, 12, 13, 14, 15, 16, 19, 23, 34, 35, 48, 55, 56, 78, 79, 80, 81]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 1: translate typed key table and options; correct nine-byte character stride and five-byte packed key frame; name traversal state; fuzzy 64.93572; src 0xb44 base 0xa74 insns 721/669; --- replace mine 3:7 base 3:5; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 2: direct early returns remove unnecessary result lifetimes; shift-plus-index entry addressing follows target blocks; BUILD FAILED, see Zi8GetKOcandidates-2.build
|
||||
zkokeyp Zi8GetKOcandidates attempt 3: direct early returns and literal shift-plus-index addressing preserve live intermediate counts; fuzzy 69.149475; src 0xb3c base 0xa74 insns 719/669; --- replace mine 3:7 base 3:5; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 4: signed division and modulo for packed key comparisons mirror original basic blocks; fuzzy 69.58446; src 0xb5c base 0xa74 insns 727/669; --- replace mine 3:7 base 3:5; POOL IDENTICAL, no strings
|
||||
zi8getc2 Zi8GetDataSignature attempt 1: decode signature address into integer local; fuzzy 99.347824; src 0x114 base 0x114 insns 69/69; diffs 9: [5, 7, 9, 28, 32, 33, 51, 52, 57]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetDataSignature attempt 2: split capacity test from empty signature; fuzzy 90.434784; src 0x114 base 0x114 insns 69/69; diffs 16: [5, 7, 9, 28, 32, 33, 38, 39, 40, 41, 42, 43, 44, 51, 52, 57]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetDataSignature attempt 3: keep table selector separate from signature length; fuzzy 99.05797; src 0x114 base 0x114 insns 69/69; diffs 13: [5, 7, 9, 25, 27, 28, 29, 32, 33, 34, 51, 52, 57]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8AlphaSignature attempt 1: translate signature validation and copy blocks; keep first/second descriptors and one active cursor/length; fuzzy 97.97059; src 0x32c base 0x330 insns 203/204; --- replace mine 10:11 base 10:11; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8AlphaSignature attempt 2: keep dictionary descriptor length in aggregate storage and reverse array declarations for target stack layout; BUILD FAILED, see Zi8AlphaSignature-2.build
|
||||
zi8getc2 Zi8AlphaSignature attempt 3: use aggregate descriptor length consistently in first signature copy; fuzzy 99.90196; src 0x330 base 0x330 insns 204/204; diffs 20: [0, 2, 3, 12, 16, 23, 37, 39, 40, 43, 45, 57, 69, 118, 119, 158, 159, 198, 200, 202]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8AlphaSignature attempt 4: group persistent signature descriptors into one typed state structure; fuzzy 100.0; src 0x330 base 0x330 insns 204/204; diffs 0: []; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8ZhSignature attempt 1: translate context-selected signature copy paths in address order; common u16 length and independent source lengths; fuzzy 99.01923; src 0x340 base 0x340 insns 208/208; diffs 6: [133, 147, 148, 155, 181, 187]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8ZhSignature attempt 2: ordinary copied length scalar and combined dictionary cursor expression restore target stack and statement ordering; fuzzy 100.0; src 0x340 base 0x340 insns 208/208; diffs 0: []; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 1: direct signature returns keep candidate count lifetime out of dispatcher; fuzzy 87.18588; src 0xb18 base 0xad8 insns 710/694; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 2: promote language selector to signed int for target dispatch comparisons; fuzzy 87.20317; src 0xad4 base 0xad8 insns 693/694; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 3: separate character-info buffer and saved call fields in typed state; fuzzy 86.7608; src 0xb0c base 0xad8 insns 707/694; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8IsDupWChar attempt 1: signed reverse scan index; fuzzy 99.36508; src 0xfc base 0xfc insns 63/63; diffs 8: [5, 7, 14, 25, 30, 41, 49, 56]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8IsDupWChar attempt 2: invert equality into continue branch; fuzzy 99.36508; src 0xfc base 0xfc insns 63/63; diffs 8: [5, 7, 14, 25, 30, 41, 49, 56]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8IsDupWChar attempt 3: move duplicate initialization after buffer setup; fuzzy 97.53968; src 0xfc base 0xfc insns 63/63; diffs 9: [5, 7, 8, 14, 25, 30, 41, 49, 56]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8IsDupWordW attempt 1: reconstruct word slots as 21-character rows; reuse slot and character counters; fuzzy 99.244606; src 0x230 base 0x22c insns 140/139; --- replace mine 19:20 base 19:20; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8IsDupWordW attempt 2: keep selected slot as byte; fuzzy 94.71223; src 0x238 base 0x22c insns 142/139; --- replace mine 19:20 base 19:20; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8IsDupWordW attempt 3: reverse duplicate branch into matched-first order; fuzzy 97.94964; src 0x230 base 0x22c insns 140/139; --- replace mine 19:20 base 19:20; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8IsDupWordW attempt 4: reuse assigned mapping byte as selected slot without an extra work count load; fuzzy 100.0; src 0x22c base 0x22c insns 139/139; diffs 0: []; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8match Zi8MatchPhonetic attempt 1: restore byte traversal fields and typed stack state; nonzero count branch first; BUILD FAILED, see Zi8MatchPhonetic-1.build
|
||||
zi8match Zi8MatchPhonetic attempt 2: group sound offset in target operand order and signed header division; BUILD FAILED, see Zi8MatchPhonetic-2.build
|
||||
zi8match Zi8MatchPhonetic attempt 3: use one sound cursor and packed dictionary entry terminator, as original blocks do; BUILD FAILED, see Zi8MatchPhonetic-3.build
|
||||
zi8match Zi8GetPyPhonetic attempt 1: restore initial partial flag and conversion-count initialization ordering; fuzzy 75.58496; src 0xb5c base 0xb38 insns 727/718; --- replace mine 7:10 base 7:10; POOL IDENTICAL, no strings
|
||||
zi8match Zi8GetPyPhonetic attempt 2: group phonetic result and conversion descriptors in meaningful stack state; fuzzy 75.58218; src 0xb5c base 0xb38 insns 727/718; --- replace mine 7:10 base 7:10; POOL IDENTICAL, no strings
|
||||
zi8match Zi8GetPyPhonetic attempt 3: reverse scratch array declarations and express extension normalization by subtraction; fuzzy 75.144844; src 0xb64 base 0xb38 insns 729/718; --- replace mine 7:10 base 7:10; POOL IDENTICAL, no strings
|
||||
zi8match Zi8GetPyFinal attempt 1: select row base before final output columns; fuzzy 99.245285; src 0xd4 base 0xd4 insns 53/53; diffs 8: [26, 27, 28, 29, 34, 35, 36, 37]; POOL IDENTICAL, no strings
|
||||
zi8match Zi8GetPyFinal attempt 2: use wider row counter to remove redundant narrowing; fuzzy 99.245285; src 0xd4 base 0xd4 insns 53/53; diffs 8: [26, 27, 28, 29, 34, 35, 36, 37]; POOL IDENTICAL, no strings
|
||||
zi8match Zi8GetPyFinal attempt 3: tail tested index loop with explicit initialization; fuzzy 99.245285; src 0xd4 base 0xd4 insns 53/53; diffs 8: [26, 27, 28, 29, 34, 35, 36, 37]; POOL IDENTICAL, no strings
|
||||
zi8match Zi8MatchPhonetic attempt 4: typed traversal state with all actual fields and count initialization; fuzzy 78.10193; src 0x5a0 base 0x5ac insns 360/363; --- replace mine 5:10 base 5:10; POOL IDENTICAL, no strings
|
||||
zi8match Zi8MatchPhonetic attempt 5: target grouped offset arithmetic and signed header shift; fuzzy 77.804405; src 0x5a4 base 0x5ac insns 361/363; --- replace mine 5:10 base 5:10; POOL IDENTICAL, no strings
|
||||
zikorean Zi8GetKoreanCandidates attempt 1: restore grouped output reset, successful character lookup first, candidate loop reset; helper owns input index; fuzzy 71.52342; src 0x9b4 base 0x9ac insns 621/619; --- replace mine 8:10 base 8:10; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8match Zi8MatchPhonetic attempt 6: single cursor and packed dictionary terminator state; fuzzy 82.55923; src 0x58c base 0x5ac insns 355/363; --- replace mine 6:10 base 6:10; POOL IDENTICAL, no strings
|
||||
zikorean Zi8GetKoreanCandidates attempt 2: invert Korean helper success block into target address order and direct typed out parameters; fuzzy 72.4685; src 0x9b4 base 0x9ac insns 621/619; --- replace mine 8:10 base 8:10; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zikorean Zi8GetKoreanCandidates attempt 3: widen reusable character loop counter and express special-table upper bound literally; fuzzy 72.063; src 0x95c base 0x9ac insns 599/619; --- replace mine 13:19 base 13:19; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8match Zi8MatchPhonetic attempt 7: reuse mutable alternate-mode parameter; header shift without signed division correction; fuzzy 82.74104; src 0x588 base 0x5ac insns 354/363; --- replace mine 5:10 base 5:10; POOL IDENTICAL, no strings
|
||||
zi8match Zi8MatchPhonetic attempt 8: place node advance block before decoding and branch back on every skip; fuzzy 83.58127; src 0x590 base 0x5ac insns 356/363; --- replace mine 5:10 base 5:10; POOL IDENTICAL, no strings
|
||||
zi8match Zi8MatchPhonetic attempt 9: place phonetic equality dispatch after nested traversal, preserving target basic block order; fuzzy 85.95042; src 0x598 base 0x5ac insns 358/363; --- replace mine 5:10 base 5:10; POOL IDENTICAL, no strings
|
||||
```
|
||||
|
||||
74
tools/decomp-assist/ezi3.final-gate.txt
Normal file
74
tools/decomp-assist/ezi3.final-gate.txt
Normal file
@@ -0,0 +1,74 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] objdiff: code 4356/4868 data 120/120 functions 5/6 fuzzy 99.9754 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] instruction-exact functions: 5/6
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section .text size 4868 match 99.97535
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section extab size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section extabindex size 72 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] below 100: Zi8MatchROMdata1 99.765625
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] baseline: code 536/4868 data None functions 2 fuzzy 51.9523
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 82.4734 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 82.473404
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 83.33333
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 82.473404
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data None functions 0 fuzzy 64.7575
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data None/140 functions 1/7 fuzzy 81.0346 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 81.034615
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 96.42857
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 97.61904
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 87.938774
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 69.58446
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data None functions 1 fuzzy 76.1862
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] objdiff: code 3584/6888 data 112/332 functions 14/17 fuzzy 94.7933 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] instruction-exact functions: 14/17
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .data size 80 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .rodata size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sbss2 size 8 match 50.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .text size 6888 match 94.79327
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extab size 88 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extabindex size 132 match 99.242424
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetDataSignature 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetCandidatesOrCount 87.20317
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8IsDupWChar 99.36508
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] baseline: code 1380/6888 data 24 functions 11 fuzzy 81.5273
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] objdiff: code 3720/8256 data 608/728 functions 7/10 fuzzy 89.0165 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] instruction-exact functions: 7/10
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section .rodata size 528 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section .text size 8256 match 89.01647
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section extab size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section extabindex size 120 match 98.333336
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8MatchPhonetic 85.95042
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8GetPyPhonetic 75.58496
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8GetPyFinal 99.245285
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] baseline: code 3720/8256 data 608 functions 7 fuzzy 87.4123
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] objdiff: code 2712/5188 data 24/348 functions 2/3 fuzzy 86.8605 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] instruction-exact functions: 2/3
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .data size 288 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .text size 5188 match 86.86045
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extabindex size 36 match 97.22222
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] below 100: Zi8GetKoreanCandidates 72.4685
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] baseline: code 2712/5188 data 24 functions 2 fuzzy 85.0925
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.85455 -> 84.05567
|
||||
global fuzzy_match_percent: 97.62925 -> 97.77593
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.15434 -> 90.16612
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
193
tools/decomp-assist/ezi3.round2.attempts.md
Normal file
193
tools/decomp-assist/ezi3.round2.attempts.md
Normal file
@@ -0,0 +1,193 @@
|
||||
# eZiText continuation attempts, 2026-09-30
|
||||
|
||||
Base: `884952a1`. One additional instruction-exact function: `Zi8GetCandidatesOrCount` (694/694 instructions, zero ctxdiff differences). All six pools remain identical. No Matching flags or shared headers changed.
|
||||
|
||||
| Unit | Instruction exact | Fuzzy | Matched code bytes | Matched data bytes |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| zkokeyp | 1/7 -> 1/7 | 81.034615% -> 94.311540% | 332 -> 332/5200 | 0 -> 56/140 |
|
||||
| zprepare | 0/1 -> 0/1 | 82.473404% -> 86.263830% | 0 -> 0/3760 | 8 -> 8/68 |
|
||||
| zikorean | 2/3 -> 2/3 | 86.860450% -> 86.940636% | 2712 -> 2712/5188 | 24 -> 24/348 |
|
||||
| zi8match | 7/10 -> 7/10 | 89.016470% -> 89.016470% | 3720 -> 3720/8256 | 608 -> 608/728 |
|
||||
| zi8getc2 | 14/17 -> 15/17 | 94.793270% -> 99.950640% | 3584 -> 6360/6888 | 112 -> 324/332 |
|
||||
| zi8dawg | 5/6 -> 5/6 | 99.975350% -> 99.975350% | 4356 -> 4356/4868 | 120 -> 120/120 |
|
||||
|
||||
## Remaining functions
|
||||
|
||||
- Zi8_8148302C: 99.491520%; Only register allocation: work pointer and table count exchange r27/r29. src 0xec base 0xec insns 59/59; 5 successful additional logged attempts.
|
||||
- Zi8_81483264: 98.902435%; Only register allocation: parameter pointer and byte cursor exchange r30/r31. src 0xa4 base 0xa4 insns 41/41; 3 successful additional logged attempts.
|
||||
- Zi8_81483308: 99.137930%; Only register allocation: insertion-count pointer and byte cursor exchange r29/r30. src 0xe8 base 0xe8 insns 58/58; 3 successful additional logged attempts.
|
||||
- Zi8_814833F0: 99.042560%; Only register allocation: parameter pointer and byte cursor exchange r30/r31. src 0xbc base 0xbc insns 47/47; 3 successful additional logged attempts.
|
||||
- Zi8_814834AC: 99.067055%; Packed-key initialization and one later narrowing instruction differ; work pointer and insertion cursor exchange registers. src 0x55c base 0x55c insns 343/343; 5 successful additional logged attempts.
|
||||
- Zi8GetKOcandidates: 89.678630%; Word-prefix traversal, key-index assignment narrowing and address-expression scheduling still differ; final count/materialize arms now follow the original. src 0xa88 base 0xa74 insns 674/669; 14 successful additional logged attempts.
|
||||
- Zi8PrepareMatch: 86.263830%; Original 0x70 frame restored. Stroke and phonetic instruction scheduling and conversions differ; original stores to its unused component-present byte are absent. src 0xf08 base 0xeb0 insns 962/940; 9 successful additional logged attempts.
|
||||
- Zi8GetKoreanCandidates: 72.636510%; Mapping/candidate scanning blocks, temporary widths and address arithmetic differ; three-byte record arithmetic trials worsened the result. src 0x9b4 base 0x9ac insns 621/619; 6 successful additional logged attempts.
|
||||
- Zi8MatchPhonetic: 85.950420%; Dictionary traversal, alternate sound and terminal checks retain different blocks and parameter allocation. src 0x598 base 0x5ac insns 358/363; 3 successful additional logged attempts.
|
||||
- Zi8GetPyPhonetic: 75.584960%; Pinyin conversion/final parsing blocks and stack/register allocation differ; compound updates reached the original instruction count but lowered similarity. src 0xb5c base 0xb38 insns 727/718; 3 successful additional logged attempts.
|
||||
- Zi8GetPyFinal: 99.245285%; Only register allocation: table address and shifted row index exchange r6/r7. src 0xd4 base 0xd4 insns 53/53; 3 successful additional logged attempts.
|
||||
- Zi8GetDataSignature: 99.347824%; Only register allocation: destination, language and signature pointer use different saved registers. src 0x114 base 0x114 insns 69/69; 3 successful additional logged attempts.
|
||||
- Zi8IsDupWChar: 99.365080%; Only register allocation: input character and duplicate flag exchange r27/r28. src 0xfc base 0xfc insns 63/63; 3 successful additional logged attempts.
|
||||
- Zi8MatchROMdata1: 99.765625%; Only register allocation: group index and table address exchange r26/r27. src 0x200 base 0x200 insns 128/128; 3 successful additional logged attempts.
|
||||
|
||||
## Data evidence
|
||||
|
||||
- `zi8getc2`: both ten-entry language sequence jump tables now have the original source order and exact instruction targets. Matched data rose from 112 to 324 bytes. Its 16-byte search-order table is exact. The four-byte PY constant is exact. The extracted object contains four additional unnamed zero bytes after that constant and assigns eight zero bytes to the ZY symbol, while the real bitfield structure emits four bytes. Both setter functions already match. The remaining eight bytes appear to be extraction/alignment space; no objects were added to manufacture it.
|
||||
- `zkokeyp` / `zikorean`: the original `zkokeyp` object contains no `.data`, although its exact `Zi8_81483118` has a ten-entry switch. The final 40 bytes of the original `zikorean` `.data` contain ten relocations to that `zkokeyp` function. The compiled `zkokeyp` emits those same ten references into its own object. This indicates a split/extraction boundary issue. No switch table was manually placed, and no function was moved between units. `zkokeyp` exception-table data now matches 56 bytes.
|
||||
- `zikorean`: the two genuine 31-entry switches are present in source order (248 bytes); targets depending on unfinished candidate code still differ. The additional 40-byte cross-unit switch is the boundary issue above.
|
||||
- `zprepare`: the 48-byte, 12-entry component switch is present; targets still depend on unfinished code. Exception metadata matches eight bytes.
|
||||
- `zi8match`: all four constant tables, including the 432-byte Pinyin final table, match all 528 `.rodata` bytes in source order. The remaining data differences are function metadata.
|
||||
- `zi8dawg`: all 120 metadata bytes remain exact. There are no string literals in any of these six objects.
|
||||
|
||||
The boundary/alignment explanations are inferences from the object sections, symbol extents and relocations. They have not been confirmed against the original source. The raw inventory follows.
|
||||
|
||||
```text
|
||||
zkokeyp
|
||||
obj extab 56 relocs 0 symbols [('', 0, 0), ('@etb_81330770', 0, 8), ('@etb_81330778', 8, 8), ('@etb_81330780', 16, 8), ('@etb_81330788', 24, 8), ('@etb_81330790', 32, 8), ('@etb_81330798', 40, 8), ('@etb_813307A0', 48, 8)]
|
||||
obj extabindex 84 relocs 14 symbols [('', 0, 0), ('@eti_813314B8', 0, 12), ('@eti_813314C4', 12, 12), ('@eti_813314D0', 24, 12), ('@eti_813314DC', 36, 12), ('@eti_813314E8', 48, 12), ('@eti_813314F4', 60, 12), ('@eti_81331500', 72, 12)]
|
||||
src extab 56 relocs 0 symbols [('', 0, 0), ('@34', 0, 8), ('@60', 8, 8), ('@78', 16, 8), ('@103', 24, 8), ('@124', 32, 8), ('@223', 40, 8), ('@389', 48, 8)]
|
||||
src extabindex 84 relocs 14 symbols [('', 0, 0), ('@35', 0, 12), ('@61', 12, 12), ('@79', 24, 12), ('@104', 36, 12), ('@125', 48, 12), ('@224', 60, 12), ('@390', 72, 12)]
|
||||
src .data 40 relocs 10 symbols [('', 0, 0), ('@59', 0, 40)]
|
||||
zprepare
|
||||
obj extab 8 relocs 0 symbols [('', 0, 0), ('@etb_813307D8', 0, 8)]
|
||||
obj extabindex 12 relocs 2 symbols [('', 0, 0), ('@eti_81331554', 0, 12)]
|
||||
obj .data 48 relocs 12 symbols [('', 0, 0), ('jumptable_8166B3D0', 0, 48)]
|
||||
src extab 8 relocs 0 symbols [('', 0, 0), ('@231', 0, 8)]
|
||||
src extabindex 12 relocs 2 symbols [('', 0, 0), ('@232', 0, 12)]
|
||||
src .data 48 relocs 12 symbols [('', 0, 0), ('@230', 0, 48)]
|
||||
zikorean
|
||||
obj extab 24 relocs 0 symbols [('', 0, 0), ('@etb_81330748', 0, 8), ('@etb_81330750', 8, 8), ('@etb_81330758', 16, 8)]
|
||||
obj extabindex 36 relocs 6 symbols [('', 0, 0), ('@eti_8133147C', 0, 12), ('@eti_81331488', 12, 12), ('@eti_81331494', 24, 12)]
|
||||
obj .data 288 relocs 72 symbols [('', 0, 0), ('jumptable_8166B2B0', 0, 124), ('jumptable_8166B32C', 124, 124), ('jumptable_8166B3A8', 248, 40)]
|
||||
src extab 24 relocs 0 symbols [('', 0, 0), ('@35', 0, 8), ('@164', 8, 8), ('@282', 16, 8)]
|
||||
src extabindex 36 relocs 6 symbols [('', 0, 0), ('@36', 0, 12), ('@165', 12, 12), ('@283', 24, 12)]
|
||||
src .data 248 relocs 62 symbols [('', 0, 0), ('@163', 0, 124), ('@281', 124, 124)]
|
||||
zi8match
|
||||
obj extab 80 relocs 0 symbols [('', 0, 0), ('@etb_81330650', 0, 8), ('@etb_81330658', 8, 8), ('@etb_81330660', 16, 8), ('@etb_81330668', 24, 8), ('@etb_81330670', 32, 8), ('@etb_81330678', 40, 8), ('@etb_81330680', 48, 8)]
|
||||
obj extabindex 120 relocs 20 symbols [('', 0, 0), ('@eti_81331308', 0, 12), ('@eti_81331314', 12, 12), ('@eti_81331320', 24, 12), ('@eti_8133132C', 36, 12), ('@eti_81331338', 48, 12), ('@eti_81331344', 60, 12), ('@eti_81331350', 72, 12)]
|
||||
obj .rodata 528 relocs 0 symbols [('', 0, 0), ('Zi8PinyinInitials', 0, 28), ('Zi8BpmfInitials', 28, 36), ('Zi8PinyinFinals', 64, 432), ('nodeHeaderTable', 496, 32)]
|
||||
src extab 80 relocs 0 symbols [('', 0, 0), ('@41', 0, 8), ('@72', 8, 8), ('@176', 16, 8), ('@206', 24, 8), ('@238', 32, 8), ('@383', 40, 8), ('@583', 48, 8)]
|
||||
src extabindex 120 relocs 20 symbols [('', 0, 0), ('@42', 0, 12), ('@73', 12, 12), ('@177', 24, 12), ('@207', 36, 12), ('@239', 48, 12), ('@384', 60, 12), ('@584', 72, 12)]
|
||||
src .rodata 528 relocs 0 symbols [('', 0, 0), ('Zi8PinyinInitials', 0, 28), ('Zi8BpmfInitials', 28, 36), ('Zi8PinyinFinals', 64, 432), ('nodeHeaderTable', 496, 32)]
|
||||
zi8getc2
|
||||
obj extab 88 relocs 0 symbols [('', 0, 0), ('@etb_813305D8', 0, 8), ('@etb_813305E0', 8, 8), ('@etb_813305E8', 16, 8), ('@etb_813305F0', 24, 8), ('@etb_813305F8', 32, 8), ('@etb_81330600', 40, 8), ('@etb_81330608', 48, 8)]
|
||||
obj extabindex 132 relocs 22 symbols [('', 0, 0), ('@eti_81331254', 0, 12), ('@eti_81331260', 12, 12), ('@eti_8133126C', 24, 12), ('@eti_81331278', 36, 12), ('@eti_81331284', 48, 12), ('@eti_81331290', 60, 12), ('@eti_8133129C', 72, 12)]
|
||||
obj .rodata 16 relocs 0 symbols [('', 0, 0), ('Zi8SOdefaultArray', 0, 16)]
|
||||
obj .data 80 relocs 20 symbols [('', 0, 0), ('jumptable_8166B260', 0, 40), ('jumptable_8166B288', 40, 40)]
|
||||
obj .sdata2 8 relocs 0 symbols [('', 0, 0), ('Zi8PYdefaultFuzzyPairs', 0, 4)]
|
||||
obj .sbss2 8 relocs 0 symbols [('', 0, 0), ('Zi8ZYdefaultFuzzyPairs', 0, 8)]
|
||||
src extab 88 relocs 0 symbols [('', 0, 0), ('@88', 0, 8), ('@101', 8, 8), ('@167', 16, 8), ('@243', 24, 8), ('@254', 32, 8), ('@265', 40, 8), ('@511', 48, 8)]
|
||||
src extabindex 132 relocs 22 symbols [('', 0, 0), ('@89', 0, 12), ('@102', 12, 12), ('@168', 24, 12), ('@244', 36, 12), ('@255', 48, 12), ('@266', 60, 12), ('@512', 72, 12)]
|
||||
src .rodata 16 relocs 0 symbols [('', 0, 0), ('Zi8SOdefaultArray', 0, 16)]
|
||||
src .data 80 relocs 20 symbols [('', 0, 0), ('@509', 40, 40), ('@510', 0, 40)]
|
||||
src .sdata2 4 relocs 0 symbols [('', 0, 0), ('Zi8PYdefaultFuzzyPairs', 0, 4)]
|
||||
src .sbss2 4 relocs 0 symbols [('', 0, 0), ('Zi8ZYdefaultFuzzyPairs', 0, 4)]
|
||||
zi8dawg
|
||||
obj extab 48 relocs 0 symbols [('', 0, 0), ('@etb_813305A0', 0, 8), ('@etb_813305A8', 8, 8), ('@etb_813305B0', 16, 8), ('@etb_813305B8', 24, 8), ('@etb_813305C0', 32, 8), ('@etb_813305C8', 40, 8)]
|
||||
obj extabindex 72 relocs 12 symbols [('', 0, 0), ('@eti_81331200', 0, 12), ('@eti_8133120C', 12, 12), ('@eti_81331218', 24, 12), ('@eti_81331224', 36, 12), ('@eti_81331230', 48, 12), ('@eti_8133123C', 60, 12)]
|
||||
src extab 48 relocs 0 symbols [('', 0, 0), ('@193', 0, 8), ('@220', 8, 8), ('@270', 16, 8), ('@350', 24, 8), ('@413', 32, 8), ('@440', 40, 8)]
|
||||
src extabindex 72 relocs 12 symbols [('', 0, 0), ('@194', 0, 12), ('@221', 12, 12), ('@271', 24, 12), ('@351', 36, 12), ('@414', 48, 12), ('@441', 60, 12)]
|
||||
```
|
||||
|
||||
## Attempt log
|
||||
|
||||
Every entry below is a compiled source experiment followed by pool checking, ctxdiff and fresh objdiff. Build failures are recorded separately and do not count toward the three successful attempts. Lower scores were discarded.
|
||||
|
||||
```text
|
||||
zkokeyp Zi8_8148302C attempt 1: use typed Korean key record for high and low character bytes; fuzzy 98.38983; src 0xec base 0xec insns 59/59; diffs 17: [6, 7, 12, 14, 18, 19, 20, 21, 26, 27, 28, 29, 32, 34, 38, 44, 49]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_8148302C attempt 2: keep decoded character as u16 rather than promoted u32; fuzzy 98.38983; src 0xec base 0xec insns 59/59; diffs 17: [6, 7, 12, 14, 18, 19, 20, 21, 26, 27, 28, 29, 32, 34, 38, 44, 49]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_8148302C attempt 3: use signed table traversal index with explicit u16 comparison; fuzzy 98.38983; src 0xec base 0xec insns 59/59; diffs 17: [6, 7, 12, 14, 18, 19, 20, 21, 26, 27, 28, 29, 32, 34, 38, 44, 49]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_81483264 attempt 1: wide traversal counter with explicit byte indexing and comparison; fuzzy 98.902435; src 0xa4 base 0xa4 insns 41/41; diffs 8: [6, 8, 17, 20, 21, 24, 25, 26]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_81483264 attempt 2: signed traversal index, preserving byte limits and buffer addressing; fuzzy 98.902435; src 0xa4 base 0xa4 insns 41/41; diffs 8: [6, 8, 17, 20, 21, 24, 25, 26]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_81483264 attempt 3: explicit tail-tested candidate scan in original block address order; fuzzy 98.902435; src 0xa4 base 0xa4 insns 41/41; diffs 8: [6, 8, 17, 20, 21, 24, 25, 26]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_81483308 attempt 1: wide traversal counter with explicit byte indexing and comparison; fuzzy 99.13793; src 0xe8 base 0xe8 insns 58/58; diffs 9: [7, 22, 26, 33, 34, 39, 42, 44, 50]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_81483308 attempt 2: signed traversal index, preserving byte limits and buffer addressing; fuzzy 99.13793; src 0xe8 base 0xe8 insns 58/58; diffs 9: [7, 22, 26, 33, 34, 39, 42, 44, 50]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_81483308 attempt 3: explicit tail-tested candidate scan in original block address order; fuzzy 99.13793; src 0xe8 base 0xe8 insns 58/58; diffs 9: [7, 22, 26, 33, 34, 39, 42, 44, 50]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814833F0 attempt 1: wide traversal counter with explicit byte indexing and comparison; fuzzy 99.04256; src 0xbc base 0xbc insns 47/47; diffs 8: [6, 13, 22, 26, 27, 34, 35, 36]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814833F0 attempt 2: signed traversal index, preserving byte limits and buffer addressing; fuzzy 99.04256; src 0xbc base 0xbc insns 47/47; diffs 8: [6, 13, 22, 26, 27, 34, 35, 36]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814833F0 attempt 3: explicit tail-tested candidate scan in original block address order; fuzzy 99.04256; src 0xbc base 0xbc insns 47/47; diffs 8: [6, 13, 22, 26, 27, 34, 35, 36]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814834AC attempt 1: restore typed filter stack descriptor in target field order; fuzzy 90.868805; src 0x570 base 0x55c insns 348/343; --- replace mine 9:11 base 9:11; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814834AC attempt 2: separate oversized-input return before key table traversal, matching target block order; fuzzy 93.58309; src 0x56c base 0x55c insns 347/343; --- replace mine 9:11 base 9:11; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814834AC attempt 3: separate remaining-candidate compaction counter from insertion cursor and use compound remaining updates; fuzzy 95.61224; src 0x584 base 0x55c insns 353/343; --- replace mine 9:10 base 9:10; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 1: restore Korean word search descriptor with byte length and signed count/index fields in target stack order; fuzzy 73.50523; src 0xad8 base 0xa74 insns 694/669; --- replace mine 0:1 base 0:1; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 2: restore compound byte/candidate updates and direct letters increment comparisons; fuzzy 76.75785; src 0xa84 base 0xa74 insns 673/669; --- replace mine 0:1 base 0:1; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 3: translate parity pass selection and trailing prefix count blocks literally; direct result returns; fuzzy 80.847534; src 0xa78 base 0xa74 insns 670/669; --- delete mine 15:16 base 15:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814834AC attempt 4: compound candidate flag updates and count subtraction; shared scratch reset; signed key-byte comparison; fuzzy 99.067055; src 0x55c base 0x55c insns 343/343; diffs 318: [9, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_814834AC attempt 5: scope insertion cursor to matched-candidate path to shorten its lifetime; fuzzy 95.44898; src 0x568 base 0x55c insns 346/343; --- replace mine 5:12 base 5:11; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 4: restore full-width membership helper return and shared packed-key initialization; fuzzy 80.76532; src 0xa78 base 0xa74 insns 670/669; --- delete mine 15:16 base 15:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 5: group word offset upper bytes before combining low byte in target operand order; fuzzy 81.64126; src 0xa78 base 0xa74 insns 670/669; --- delete mine 15:16 base 15:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 6: correct candidate count field to byte 0x20; offset-first record arithmetic and assignment-result comparison; fuzzy 81.434975; src 0xa78 base 0xa74 insns 670/669; --- insert mine 14:14 base 14:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 7: translate remaining-prefix scan into tail-tested loop with match-ending arm first; fuzzy 82.76083; src 0xa80 base 0xa74 insns 672/669; --- insert mine 14:14 base 14:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 8: restore suffix advance and prefix restart order; direct output length comparison; fuzzy 85.03288; src 0xa8c base 0xa74 insns 675/669; --- insert mine 14:14 base 14:15; POOL IDENTICAL, no strings
|
||||
zprepare Zi8PrepareMatch attempt 1: group actual prepare fields, arrays and saved segment length in target stack order; BUILD FAILED, see Zi8PrepareMatch-1.build
|
||||
zprepare Zi8PrepareMatch attempt 2: restore high-bit language mode arms first and reuse byte index for prefix nibble fill; BUILD FAILED, see Zi8PrepareMatch-2.build
|
||||
zprepare Zi8PrepareMatch attempt 3: use typed segment rows, unsigned phonetic count assignment and grouped input advance; BUILD FAILED, see Zi8PrepareMatch-3.build
|
||||
zprepare Zi8PrepareMatch attempt 4: ordered typed prepare state and saved prefix length; fuzzy 81.90745; src 0xf38 base 0xeb0 insns 974/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zprepare Zi8PrepareMatch attempt 5: high-bit language mode before low-bit selection and common prefix index; fuzzy 84.75; src 0xf24 base 0xeb0 insns 969/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zprepare Zi8PrepareMatch attempt 6: typed segment rows and unsigned phonetic count; fuzzy 84.75; src 0xf20 base 0xeb0 insns 968/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zkokeyp Zi8GetKOcandidates attempt 9: readable offset-first key record expressions; fuzzy 85.03288; src 0xa8c base 0xa74 insns 675/669; --- insert mine 14:14 base 14:15; POOL IDENTICAL, no strings
|
||||
zprepare Zi8PrepareMatch attempt 7: split byte controls, halfword phonetics and aligned buffers to avoid aggregate alignment gap; BUILD FAILED, see Zi8PrepareMatch-7.build
|
||||
zprepare Zi8PrepareMatch attempt 8: declare aligned phonetics and buffers before byte controls; BUILD FAILED, see Zi8PrepareMatch-8.build
|
||||
zprepare Zi8PrepareMatch attempt 9: split byte controls, halfword phonetics and aligned buffers to avoid aggregate alignment gap; fuzzy 84.75106; src 0xf24 base 0xeb0 insns 969/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zprepare Zi8PrepareMatch attempt 10: declare aligned phonetics and buffers before byte controls; fuzzy 84.75106; src 0xf24 base 0xeb0 insns 969/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zikorean Zi8GetKoreanCandidates attempt 1: restore output reset source order to count byte 0x20, count 0x22, letters 0x21; fuzzy 72.471725; src 0x9b4 base 0x9ac insns 621/619; --- replace mine 8:10 base 8:10; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zikorean Zi8GetKoreanCandidates attempt 2: decode three-byte Korean mapping records with original shift-minus-index arithmetic; fuzzy 71.93538; src 0x9d4 base 0x9ac insns 629/619; --- replace mine 15:19 base 15:19; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zikorean Zi8GetKoreanCandidates attempt 3: use signed output cursor and character bounds matching original compare instructions; fuzzy 71.20355; src 0x9d4 base 0x9ac insns 629/619; --- replace mine 15:19 base 15:19; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8match Zi8GetPyFinal attempt 1: cache current pinyin final table row in typed byte pointer; fuzzy 99.245285; src 0xd4 base 0xd4 insns 53/53; diffs 8: [26, 27, 28, 29, 34, 35, 36, 37]; POOL IDENTICAL, no strings
|
||||
zi8match Zi8GetPyFinal attempt 2: use halfword row cursor for the 54-entry final table; fuzzy 99.245285; src 0xd4 base 0xd4 insns 53/53; diffs 8: [26, 27, 28, 29, 34, 35, 36, 37]; POOL IDENTICAL, no strings
|
||||
zi8match Zi8GetPyFinal attempt 3: evaluate table byte before input byte in final scan; fuzzy 99.245285; src 0xd4 base 0xd4 insns 53/53; diffs 8: [26, 27, 28, 29, 34, 35, 36, 37]; POOL IDENTICAL, no strings
|
||||
zi8match Zi8MatchPhonetic attempt 1: separate strict and partial terminal checks into original independent branches; fuzzy 85.95042; src 0x598 base 0x5ac insns 358/363; --- replace mine 5:10 base 5:10; POOL IDENTICAL, no strings
|
||||
zi8match Zi8MatchPhonetic attempt 2: cache decoded dictionary record for code and alternate-sound flag checks; fuzzy 85.36915; src 0x588 base 0x5ac insns 354/363; --- replace mine 6:10 base 6:10; POOL IDENTICAL, no strings
|
||||
zi8match Zi8MatchPhonetic attempt 3: use explicit remaining-node decrement before node decoding; fuzzy 84.24518; src 0x598 base 0x5ac insns 358/363; --- replace mine 5:10 base 5:10; POOL IDENTICAL, no strings
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 1: restore actual saved mode, converted count and character buffer stack layout; fuzzy 88.15994; src 0xae4 base 0xad8 insns 697/694; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 2: return signature results directly from their original blocks; fuzzy 88.629684; src 0xaf0 base 0xad8 insns 700/694; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 3: separate signature byte count from main candidate count lifetime; fuzzy 88.29683; src 0xaf0 base 0xad8 insns 700/694; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8match Zi8GetPyPhonetic attempt 1: restore pinyin byte descriptor order before final-string and conversion buffers; fuzzy 75.58218; src 0xb5c base 0xb38 insns 727/718; --- replace mine 7:10 base 7:10; POOL IDENTICAL, no strings
|
||||
zi8match Zi8GetPyPhonetic attempt 2: compound result count updates and independent conversion count initialization; fuzzy 74.462395; src 0xb38 base 0xb38 insns 718/718; diffs 675: [13, 16, 17, 20, 21, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44]; POOL IDENTICAL, no strings
|
||||
zi8match Zi8GetPyPhonetic attempt 3: evaluate ASCII conversion bounds before extended uppercase range; fuzzy 74.456825; src 0xb38 base 0xb38 insns 718/718; diffs 675: [13, 16, 17, 20, 21, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44]; POOL IDENTICAL, no strings
|
||||
zi8getc2 Zi8GetDataSignature attempt 1: use independent signature table identifier instead of reusing length; fuzzy 99.05797; src 0x114 base 0x114 insns 69/69; diffs 13: [5, 7, 9, 25, 27, 28, 29, 32, 33, 34, 51, 52, 57]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetDataSignature attempt 2: scope signature table pointer after language mode selection; fuzzy 88.89855; src 0x124 base 0x114 insns 73/69; --- replace mine 5:11 base 5:10; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetDataSignature attempt 3: store copied terminator through pointer addition expression; fuzzy 99.347824; src 0x114 base 0x114 insns 69/69; diffs 9: [5, 7, 9, 28, 32, 33, 51, 52, 57]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8IsDupWChar attempt 1: reverse duplicate comparison operands; fuzzy 99.36508; src 0xfc base 0xfc insns 63/63; diffs 8: [5, 7, 14, 25, 30, 41, 49, 56]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8IsDupWChar attempt 2: use explicit decrement and tail-tested duplicate scan; fuzzy 99.36508; src 0xfc base 0xfc insns 63/63; diffs 8: [5, 7, 14, 25, 30, 41, 49, 56]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8IsDupWChar attempt 3: use signed duplicate buffer cursor with original zero bound; fuzzy 99.36508; src 0xfc base 0xfc insns 63/63; diffs 8: [5, 7, 14, 25, 30, 41, 49, 56]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8dawg Zi8MatchROMdata1 attempt 1: retain table address as typed group pointer rather than integer address; fuzzy 99.765625; src 0x200 base 0x200 insns 128/128; diffs 5: [12, 36, 37, 52, 57]; POOL IDENTICAL, no strings
|
||||
zi8dawg Zi8MatchROMdata1 attempt 2: scope table lookup address to fallback group lookup; fuzzy 93.10156; src 0x20c base 0x200 insns 131/128; --- replace mine 0:1 base 0:1; POOL IDENTICAL, no strings
|
||||
zi8dawg Zi8MatchROMdata1 attempt 3: translate group selection into while loop with explicit index decrement; fuzzy 99.765625; src 0x200 base 0x200 insns 128/128; diffs 5: [12, 36, 37, 52, 57]; POOL IDENTICAL, no strings
|
||||
zprepare Zi8PrepareMatch attempt 11: pack scalar controls and phonetics before one buffer aggregate to recover original frame; fuzzy 85.20638; src 0xf24 base 0xeb0 insns 969/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zprepare Zi8PrepareMatch attempt 12: reverse independent scalar declaration order while keeping packed buffer aggregate; fuzzy 85.315956; src 0xf24 base 0xeb0 insns 969/940; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zprepare Zi8PrepareMatch attempt 13: restore phonetic lookup basic blocks, removing compiler boolean spill and excess frame; fuzzy 86.237236; src 0xf0c base 0xeb0 insns 963/940; --- replace mine 9:13 base 9:13; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zprepare Zi8PrepareMatch attempt 14: group input advance and use typed segment rows without redundant count narrowing; fuzzy 86.26383; src 0xf08 base 0xeb0 insns 962/940; --- replace mine 9:13 base 9:13; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 4: correct full-width candidate return declarations and separate aligned character buffer; fuzzy 89.603745; src 0xae8 base 0xad8 insns 698/694; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 5: literal Korean and tone range bounds; direct format flag and compound option update; fuzzy 89.946686; src 0xae4 base 0xad8 insns 697/694; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 6: restore language switch and Chinese/Latin state machines in target block order; fuzzy 93.33573; src 0xae0 base 0xad8 insns 696/694; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 7: place saved state before aligned character array, use halfword error and byte restoration index; fuzzy 95.21326; src 0xaec base 0xad8 insns 699/694; --- replace mine 10:11 base 10:11; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 8: restore successful syllable candidate call before unsupported-format error arm; fuzzy 96.09222; src 0xaec base 0xad8 insns 699/694; --- replace mine 10:11 base 10:11; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 9: remove syllable temporary spill and restore candidate character postincrement/predecrement blocks; fuzzy 98.2392; src 0xad8 base 0xad8 insns 694/694; diffs 21: [116, 127, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 522, 523, 524, 525, 526, 527, 528, 529]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 10: restore Chinese sequence switch source order and successful stroke-format arm before error; fuzzy 99.12104; src 0xad8 base 0xad8 insns 694/694; diffs 10: [483, 484, 485, 486, 487, 488, 489, 490, 491, 492]; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zi8getc2 Zi8GetCandidatesOrCount attempt 11: restore one-key spelling arm before regular candidate arms; fuzzy 100.0; src 0xad8 base 0xad8 insns 694/694; diffs 0: []; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zikorean Zi8GetKoreanCandidates attempt 4: full-width candidate result consistent with dispatcher ABI; fuzzy 72.63651; src 0x9b4 base 0x9ac insns 621/619; --- replace mine 8:10 base 8:10; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zikorean Zi8GetKoreanCandidates attempt 5: explicit byte output conversion after full-width candidate accumulation; fuzzy 72.63651; src 0x9b4 base 0x9ac insns 621/619; --- replace mine 8:10 base 8:10; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zikorean Zi8GetKoreanCandidates attempt 6: use byte-sized result counter matching candidate indexing masks; fuzzy 72.570274; src 0x9cc base 0x9ac insns 627/619; --- replace mine 8:10 base 8:10; POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
zkokeyp Zi8GetKOcandidates attempt 10: restore final decrement/count/materialize block order and common result returns; fuzzy 89.67863; src 0xa88 base 0xa74 insns 674/669; --- insert mine 14:14 base 14:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 11: restore packed-key reset and unmatched-prefix restart order; fuzzy 89.45441; src 0xa88 base 0xa74 insns 674/669; --- delete mine 15:16 base 15:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 12: use typed nine-byte key records for repeated word and table accesses; fuzzy 87.86248; src 0xa68 base 0xa74 insns 666/669; --- insert mine 14:14 base 14:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_8148302C attempt 4: return halfword Korean key table index to match caller assignment ABI; fuzzy 98.47458; src 0xec base 0xec insns 59/59; diffs 7: [7, 12, 32, 34, 38, 40, 49]; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 13: evaluate halfword key lookup return at word traversal callers; fuzzy 89.64873; src 0xa84 base 0xa74 insns 673/669; --- insert mine 14:14 base 14:15; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8_8148302C attempt 5: use native halfword key index with halfword return; fuzzy 91.52542; src 0xfc base 0xec insns 63/59; --- replace mine 7:8 base 7:8; POOL IDENTICAL, no strings
|
||||
zkokeyp Zi8GetKOcandidates attempt 14: evaluate native halfword key lookup result at word traversal callers; fuzzy 89.64873; src 0xa84 base 0xa74 insns 673/669; --- insert mine 14:14 base 14:15; POOL IDENTICAL, no strings
|
||||
```
|
||||
|
||||
## Gate record
|
||||
|
||||
[Every gate block, including the failed intermediate gate](ezi3.round2.gates.txt). The intermediate candidate frame experiment lowered metadata matches from 112 to 24 bytes. A commit was made before its failed gate output was inspected; that commit was amended after recovering the exact frame and passing the gate. The final history contains the passing exact candidate dispatch change.
|
||||
|
||||
The final full gate rebuilt all six owned units from clean objects, passed with zero regressions and zero new forbidden/readability findings. The original DOL hash was preserved. Its full output is the last block in the gate record.
|
||||
|
||||
## Source commits
|
||||
|
||||
f71e3c51 restore korean count mode traversal arms
|
||||
859c9c6d match candidate dispatch and restore language switch tables
|
||||
77c0f589 recover prepare match frame and phonetic scan blocks
|
||||
dff371df restore candidate dispatcher saved argument layout
|
||||
ce517199 restore korean count fields and prepare language selection
|
||||
877043a9 restore korean word search state and flag updates
|
||||
ba8c537c restore korean candidate filter stack state
|
||||
436
tools/decomp-assist/ezi3.round2.gates.txt
Normal file
436
tools/decomp-assist/ezi3.round2.gates.txt
Normal file
@@ -0,0 +1,436 @@
|
||||
===== gate-initial.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data None/140 functions 1/7 fuzzy 81.0346 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 81.034615
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 96.42857
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 97.61904
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 87.938774
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 69.58446
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data None functions 1 fuzzy 81.0346
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 82.4734 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 82.473404
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 83.33333
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 82.473404
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 8 functions 0 fuzzy 82.4734
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] objdiff: code 2712/5188 data 24/348 functions 2/3 fuzzy 86.8605 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] instruction-exact functions: 2/3
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .data size 288 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .text size 5188 match 86.86045
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extabindex size 36 match 97.22222
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] below 100: Zi8GetKoreanCandidates 72.4685
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] baseline: code 2712/5188 data 24 functions 2 fuzzy 86.8605
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] objdiff: code 3720/8256 data 608/728 functions 7/10 fuzzy 89.0165 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] instruction-exact functions: 7/10
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section .rodata size 528 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section .text size 8256 match 89.01647
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section extab size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section extabindex size 120 match 98.333336
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8MatchPhonetic 85.95042
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8GetPyPhonetic 75.58496
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8GetPyFinal 99.245285
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] baseline: code 3720/8256 data 608 functions 7 fuzzy 89.0165
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] objdiff: code 3584/6888 data 112/332 functions 14/17 fuzzy 94.7933 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] instruction-exact functions: 14/17
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .data size 80 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .rodata size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sbss2 size 8 match 50.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .text size 6888 match 94.79327
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extab size 88 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extabindex size 132 match 99.242424
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetDataSignature 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetCandidatesOrCount 87.20317
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8IsDupWChar 99.36508
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] baseline: code 3584/6888 data 112 functions 14 fuzzy 94.7933
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] objdiff: code 4356/4868 data 120/120 functions 5/6 fuzzy 99.9754 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] instruction-exact functions: 5/6
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section .text size 4868 match 99.97535
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section extab size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section extabindex size 72 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] below 100: Zi8MatchROMdata1 99.765625
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] baseline: code 4356/4868 data 120 functions 5 fuzzy 99.9754
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.84081
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32545
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-ko-filter.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data None/140 functions 1/7 fuzzy 83.0592 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 83.05923
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 98.21429
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 85.71429
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 95.61224
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 69.58446
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data None functions 1 fuzzy 81.0346
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.84431
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32545
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-ko-structure.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data 56/140 functions 1/7 fuzzy 90.1754 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 90.175385
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 98.809525
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 99.067055
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 81.64126
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data None functions 1 fuzzy 81.0346
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.85668
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32851
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-ko-prepare.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data 56/140 functions 1/7 fuzzy 91.9208 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 91.92077
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 98.809525
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 99.067055
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 85.03288
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data None functions 1 fuzzy 81.0346
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 84.7500 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 84.75
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 83.33333
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 84.75
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 8 functions 0 fuzzy 82.4734
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.86256
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32851
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-controls.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data 56/140 functions 1/7 fuzzy 91.9208 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 91.92077
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 98.809525
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 99.067055
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 85.03288
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data None functions 1 fuzzy 81.0346
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 84.7511 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 84.75106
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 83.33333
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 84.75106
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 8 functions 0 fuzzy 82.4734
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] objdiff: code 2712/5188 data 24/348 functions 2/3 fuzzy 86.8620 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] instruction-exact functions: 2/3
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .data size 288 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .text size 5188 match 86.86199
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extabindex size 36 match 97.22222
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] below 100: Zi8GetKoreanCandidates 72.471725
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] baseline: code 2712/5188 data 24 functions 2 fuzzy 86.8605
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.86256
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32851
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-candidate-layout.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] objdiff: code 3584/6888 data 112/332 functions 14/17 fuzzy 95.3682 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] instruction-exact functions: 14/17
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .data size 80 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .rodata size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sbss2 size 8 match 50.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .text size 6888 match 95.36818
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extab size 88 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extabindex size 132 match 99.242424
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetDataSignature 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetCandidatesOrCount 88.629684
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8IsDupWChar 99.36508
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] baseline: code 3584/6888 data 112 functions 14 fuzzy 94.7933
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.86388
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32851
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-prepare-frame.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 86.2638 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 86.26383
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 83.33333
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 86.26383
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 8 functions 0 fuzzy 82.4734
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.86578
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32851
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-candidate-dispatch.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] objdiff: code 3584/6888 data 24/332 functions 14/17 fuzzy 98.3757 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] instruction-exact functions: 14/17
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .data size 80 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .rodata size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sbss2 size 8 match 50.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .text size 6888 match 98.375725
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extab size 88 match 98.86364
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extabindex size 132 match 99.242424
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetDataSignature 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetCandidatesOrCount 96.09222
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8IsDupWChar 99.36508
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] baseline: code 3584/6888 data 112 functions 14 fuzzy 94.7933
|
||||
regressions vs baseline: 1
|
||||
main/libs/RVLMiddleware/eZiText/src/clib/zi8getc2: matched_data 112 -> 24
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.87271
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32370
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE FAIL: 1 regressions vs main
|
||||
|
||||
===== gate-candidate-near.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] objdiff: code 3584/6888 data 324/332 functions 14/17 fuzzy 99.5964 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] instruction-exact functions: 14/17
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .data size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .rodata size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sbss2 size 8 match 50.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .text size 6888 match 99.5964
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extab size 88 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extabindex size 132 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetDataSignature 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetCandidatesOrCount 99.12104
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8IsDupWChar 99.36508
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] baseline: code 3584/6888 data 112 functions 14 fuzzy 94.7933
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.30567
|
||||
global fuzzy_match_percent: 97.84081 -> 97.87551
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.34007
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-candidate-exact.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] objdiff: code 6360/6888 data 324/332 functions 15/17 fuzzy 99.9506 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] instruction-exact functions: 15/17
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .data size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .rodata size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sbss2 size 8 match 50.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .text size 6888 match 99.95064
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extab size 88 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extabindex size 132 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetDataSignature 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8IsDupWChar 99.36508
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] baseline: code 3584/6888 data 112 functions 14 fuzzy 94.7933
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.39836
|
||||
global fuzzy_match_percent: 97.84081 -> 97.87632
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.34007
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-korean-counts.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data 56/140 functions 1/7 fuzzy 94.3115 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 94.31154
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 98.809525
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 99.067055
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 89.67863
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data None functions 1 fuzzy 81.0346
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] objdiff: code 2712/5188 data 24/348 functions 2/3 fuzzy 86.9406 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] instruction-exact functions: 2/3
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .data size 288 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .text size 5188 match 86.940636
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extabindex size 36 match 97.22222
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] below 100: Zi8GetKoreanCandidates 72.63651
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] baseline: code 2712/5188 data 24 functions 2 fuzzy 86.8605
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.39836
|
||||
global fuzzy_match_percent: 97.84081 -> 97.88062
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.34007
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
===== gate-final.log =====
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] objdiff: code 332/5200 data 56/140 functions 1/7 fuzzy 94.3115 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] instruction-exact functions: 1/7
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section .text size 5200 match 94.31154
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extab size 56 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] section extabindex size 84 match 98.809525
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_8148302C 99.49152
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483264 98.902435
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_81483308 99.13793
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814833F0 99.04256
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8_814834AC 99.067055
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] below 100: Zi8GetKOcandidates 89.67863
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zkokeyp] baseline: code 332/5200 data None functions 1 fuzzy 81.0346
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] objdiff: code None/3760 data 8/68 functions 0/1 fuzzy 86.2638 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .data size 48 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section .text size 3760 match 86.26383
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extab size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] section extabindex size 12 match 83.33333
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] below 100: Zi8PrepareMatch 86.26383
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zprepare] baseline: code None/3760 data 8 functions 0 fuzzy 82.4734
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] objdiff: code 2712/5188 data 24/348 functions 2/3 fuzzy 86.9406 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] instruction-exact functions: 2/3
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .data size 288 match None
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section .text size 5188 match 86.940636
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extab size 24 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] section extabindex size 36 match 97.22222
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] below 100: Zi8GetKoreanCandidates 72.63651
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zikorean] baseline: code 2712/5188 data 24 functions 2 fuzzy 86.8605
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] objdiff: code 3720/8256 data 608/728 functions 7/10 fuzzy 89.0165 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] instruction-exact functions: 7/10
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section .rodata size 528 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section .text size 8256 match 89.01647
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section extab size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] section extabindex size 120 match 98.333336
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8MatchPhonetic 85.95042
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8GetPyPhonetic 75.58496
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] below 100: Zi8GetPyFinal 99.245285
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8match] baseline: code 3720/8256 data 608 functions 7 fuzzy 89.0165
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] objdiff: code 6360/6888 data 324/332 functions 15/17 fuzzy 99.9506 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] instruction-exact functions: 15/17
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .data size 80 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .rodata size 16 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sbss2 size 8 match 50.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .sdata2 size 8 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section .text size 6888 match 99.95064
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extab size 88 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] section extabindex size 132 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8GetDataSignature 99.347824
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] below 100: Zi8IsDupWChar 99.36508
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8getc2] baseline: code 3584/6888 data 112 functions 14 fuzzy 94.7933
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] objdiff: code 4356/4868 data 120/120 functions 5/6 fuzzy 99.9754 linked code 0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] instruction-exact functions: 5/6
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section .text size 4868 match 99.97535
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section extab size 48 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] section extabindex size 72 match 100.0
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] below 100: Zi8MatchROMdata1 99.765625
|
||||
[libs/RVLMiddleware/eZiText/src/clib/zi8dawg] baseline: code 4356/4868 data 120 functions 5 fuzzy 99.9754
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.30567 -> 84.39836
|
||||
global fuzzy_match_percent: 97.84081 -> 97.88062
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.34007
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
73
tools/decomp-assist/jpeg-final-gate.md
Normal file
73
tools/decomp-assist/jpeg-final-gate.md
Normal file
@@ -0,0 +1,73 @@
|
||||
# Final full JPEG gate
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 2192/15948 data None/None functions 4/13 fuzzy 58.0594 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] instruction-exact functions: 2/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] section .text size 15948 match 58.059444
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.54082
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814EFEAC 53.101124
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F043C 52.51151
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F0A58 43.55579
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F11C4 52.51151
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F17E0 41.890297
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F1F48 49.791878
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F2570 47.10372
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F2B50 53.634716
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code None/15948 data None functions 0 fuzzy 48.8432
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] objdiff: code 612/6184 data None/None functions 2/13 fuzzy 83.6197 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] instruction-exact functions: 2/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] section .text size 6184 match 83.61967
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_set_converterRGB565 93.86471
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV411toRGB565 74.23963
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV411toRGB565edge 82.85849
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV422toRGB565 78.117645
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV422toRGB565edge 82.66355
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV420toRGB565 77.375885
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV420toRGB565edge 83.72807
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV211toRGB565 75.33673
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV211toRGB565edge 79.16514
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV444toRGB565 88.24176
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV444toRGB565edge 88.07692
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] baseline: code None/6184 data None functions 0 fuzzy 80.1514
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] objdiff: code 660/6596 data None/None functions 2/13 fuzzy 76.8957 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] instruction-exact functions: 2/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] section .text size 6596 match 76.89569
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_set_converterRGBA8 93.86471
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV411toRGBA8 69.44215
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV411toRGBA8edge 71.90179
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV422toRGBA8 67.77027
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV422toRGBA8edge 70.42478
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV420toRGBA8 71.03268
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV420toRGBA8edge 74.60833
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV211toRGBA8 71.04808
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV211toRGBA8edge 75.92174
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV444toRGBA8 72.38145
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV444toRGBA8edge 77.6
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] baseline: code None/6596 data None functions 0 fuzzy 73.7611
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 68.2110 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 68.21097
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 66.618675
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 69.112335
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 66.9142
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] objdiff: code None/1104 data None/None functions 0/1 fuzzy 85.1123 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] section .text size 1104 match 85.11232
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] below 100: TMCJPEGDEC_decode_iquant 85.11232
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] baseline: code None/1104 data None functions 0 fuzzy 84.6413
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.98756 -> 84.10322
|
||||
global fuzzy_match_percent: 97.68822 -> 97.75277
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.15434 -> 90.15434
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
759
tools/decomp-assist/jpeg-matching-attempts.md
Normal file
759
tools/decomp-assist/jpeg-matching-attempts.md
Normal file
@@ -0,0 +1,759 @@
|
||||
# JPEG matching attempts
|
||||
|
||||
Baseline full gate passes. All five units start with zero instruction-exact functions and zero objdiff matched code/data bytes.
|
||||
|
||||
## Texture_MCUtoY8U8V8
|
||||
|
||||
TMCJPEGDEC_set_converterY8U8V8: five distinct attempts, word-sized buffer indexing, pointer stores before function stores, state load before component load, local declaration order, remainder/division operand order. All retained 195 instructions versus 196 target; buffer base folding and register allocation remain. Reverted.
|
||||
|
||||
TMCJPEG_814F3158: shared tile/pixel offsets with column postincrement reduced 275 instructions to the target 99. Moving loop declarations to function scope reduced 76 differences to 66. Declaration-order experiments reduced this to 18. Swapping luminance and Cr texture declarations left 11 differences; swapping row skip and Cr row output declarations produced zero. Objdiff 100 percent; clean full gate passes.
|
||||
|
||||
## Texture_MCUtoRGB565
|
||||
|
||||
TMCJPEGDEC_converterYUV400toRGB565: target and source have 70 instructions. Advancing the y parameter instead of a row local increased differences from 9 to 10. Reordering pointer initialization and moving column/tile row declarations to loop scope increased differences to 23. Explicit row offsets, alternate pointer arithmetic and scoped declarations did not improve the original. Flat declaration order reduced 9 differences to 4. Explicit tileY and rowOffset locals made no further change and were reverted. Remaining differences are srawi/row-offset register allocation at instructions 15, 16, 17 and 19. Objdiff 99.71429 percent.
|
||||
|
||||
TMCJPEG_814F32E4: porting the exact YUV444 declaration order and shared offset loop, retaining the edge width/height branches, produced 112/112 instructions and zero differences on the first attempt. Objdiff 100 percent; gate passes.
|
||||
|
||||
Grayscale sibling port: RGB565 normal and edge loops each retained four register differences after copying the declaration/loop shape. Computing the row output pointer before the tile-row product removed all four, yielding 70/70 and 83/83 instructions with zero differences. RGBA8 initially had 16 differences after the port; the same statement order plus cycling blue, yEnd and tileWidth declarations produced 76/76 and 89/89 instructions with zero differences. The full gate over all three converters passes with zero regressions, no forbidden patterns, no readability warnings and the target DOL hash.
|
||||
|
||||
## Remaining-function sweeps
|
||||
|
||||
Each row records a separately built source variant and its fresh exact-name objdiff score. The ctxdiff instruction counts are included. Rejected variants were restored; only increases were retained.
|
||||
|
||||
### Texture_MCUtoY8U8V8
|
||||
|
||||
| Function | Attempt | Before percent | After percent | Instructions |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| TMCJPEG_814EFEAC | source pointer walks | 52.233147 | 52.233147 | src 0x548 base 0x590 insns 338/356 |
|
||||
| TMCJPEG_814EFEAC | column declared at function scope | 52.233147 | 52.373596 | src 0x548 base 0x590 insns 338/356 |
|
||||
| TMCJPEG_814EFEAC | x/y bound initialization order | 52.233147 | 52.233147 | src 0x548 base 0x590 insns 338/356 |
|
||||
| TMCJPEG_814EFEAC | arithmetic operand order | 52.233147 | 52.233147 | src 0x548 base 0x590 insns 338/356 |
|
||||
| TMCJPEG_814EFEAC | texture and tile width declaration order | 52.233147 | 52.261234 | src 0x548 base 0x590 insns 338/356 |
|
||||
| TMCJPEG_814F043C | source pointer walks | 51.3555 | 51.3555 | src 0x61c base 0x61c insns 391/391 |
|
||||
| TMCJPEG_814F043C | column declared at function scope | 51.3555 | 52.51151 | src 0x61c base 0x61c insns 391/391 |
|
||||
| TMCJPEG_814F043C | x/y bound initialization order | 51.3555 | 51.3555 | src 0x61c base 0x61c insns 391/391 |
|
||||
| TMCJPEG_814F043C | arithmetic operand order | 51.3555 | 51.3555 | src 0x61c base 0x61c insns 391/391 |
|
||||
| TMCJPEG_814F043C | texture and tile width declaration order | 51.3555 | 51.3555 | src 0x61c base 0x61c insns 391/391 |
|
||||
| TMCJPEG_814F0A58 | source pointer walks | 43.534737 | 43.534737 | src 0x774 base 0x76c insns 477/475 |
|
||||
| TMCJPEG_814F0A58 | column declared at function scope | 43.534737 | 43.55579 | src 0x774 base 0x76c insns 477/475 |
|
||||
| TMCJPEG_814F0A58 | x/y bound initialization order | 43.534737 | 43.534737 | src 0x774 base 0x76c insns 477/475 |
|
||||
| TMCJPEG_814F0A58 | arithmetic operand order | 43.534737 | 43.534737 | src 0x774 base 0x76c insns 477/475 |
|
||||
| TMCJPEG_814F0A58 | texture and tile width declaration order | 43.534737 | 43.534737 | src 0x774 base 0x76c insns 477/475 |
|
||||
| TMCJPEG_814F11C4 | source pointer walks | 51.3555 | 51.3555 | src 0x61c base 0x61c insns 391/391 |
|
||||
| TMCJPEG_814F11C4 | column declared at function scope | 51.3555 | 52.51151 | src 0x61c base 0x61c insns 391/391 |
|
||||
| TMCJPEG_814F11C4 | x/y bound initialization order | 51.3555 | 51.3555 | src 0x61c base 0x61c insns 391/391 |
|
||||
| TMCJPEG_814F11C4 | arithmetic operand order | 51.3555 | 51.3555 | src 0x61c base 0x61c insns 391/391 |
|
||||
| TMCJPEG_814F11C4 | texture and tile width declaration order | 51.3555 | 51.3555 | src 0x61c base 0x61c insns 391/391 |
|
||||
| TMCJPEG_814F17E0 | source pointer walks | 41.890297 | 41.890297 | src 0x76c base 0x768 insns 475/474 |
|
||||
| TMCJPEG_814F17E0 | column declared at function scope | 41.890297 | 41.890297 | src 0x76c base 0x768 insns 475/474 |
|
||||
| TMCJPEG_814F17E0 | x/y bound initialization order | 41.890297 | 41.890297 | src 0x76c base 0x768 insns 475/474 |
|
||||
| TMCJPEG_814F17E0 | arithmetic operand order | 41.890297 | 41.890297 | src 0x76c base 0x768 insns 475/474 |
|
||||
| TMCJPEG_814F17E0 | texture and tile width declaration order | 41.890297 | 41.890297 | src 0x76c base 0x768 insns 475/474 |
|
||||
| TMCJPEG_814F1F48 | source pointer walks | 46.809643 | 46.809643 | src 0x640 base 0x628 insns 400/394 |
|
||||
| TMCJPEG_814F1F48 | column declared at function scope | 46.809643 | 49.791878 | src 0x640 base 0x628 insns 400/394 |
|
||||
| TMCJPEG_814F1F48 | x/y bound initialization order | 46.809643 | 46.809643 | src 0x640 base 0x628 insns 400/394 |
|
||||
| TMCJPEG_814F1F48 | arithmetic operand order | 46.809643 | 46.809643 | src 0x640 base 0x628 insns 400/394 |
|
||||
| TMCJPEG_814F1F48 | texture and tile width declaration order | 46.809643 | 46.588833 | src 0x640 base 0x628 insns 400/394 |
|
||||
| TMCJPEG_814F2570 | source pointer walks | 47.06383 | 47.06383 | src 0x5e0 base 0x5e0 insns 376/376 |
|
||||
| TMCJPEG_814F2570 | column declared at function scope | 47.06383 | 47.10372 | src 0x5e0 base 0x5e0 insns 376/376 |
|
||||
| TMCJPEG_814F2570 | x/y bound initialization order | 47.06383 | 47.06383 | src 0x5e0 base 0x5e0 insns 376/376 |
|
||||
| TMCJPEG_814F2570 | arithmetic operand order | 47.06383 | 47.06383 | src 0x5e0 base 0x5e0 insns 376/376 |
|
||||
| TMCJPEG_814F2570 | texture and tile width declaration order | 47.06383 | 47.06383 | src 0x5e0 base 0x5e0 insns 376/376 |
|
||||
| TMCJPEG_814F2B50 | source pointer walks | 52.95078 | 52.95078 | src 0x604 base 0x608 insns 385/386 |
|
||||
| TMCJPEG_814F2B50 | column declared at function scope | 52.95078 | 53.634716 | src 0x604 base 0x608 insns 385/386 |
|
||||
| TMCJPEG_814F2B50 | x/y bound initialization order | 52.95078 | 52.95078 | src 0x604 base 0x608 insns 385/386 |
|
||||
| TMCJPEG_814F2B50 | arithmetic operand order | 52.95078 | 52.95078 | src 0x604 base 0x608 insns 385/386 |
|
||||
| TMCJPEG_814F2B50 | texture and tile width declaration order | 52.95078 | 52.95078 | src 0x604 base 0x608 insns 385/386 |
|
||||
| TMCJPEG_814F34A4 | source pointer walks | 60.037037 | 60.098766 | src 0x24c base 0x288 insns 147/162 |
|
||||
| TMCJPEG_814F34A4 | column declared at function scope | 60.037037 | 59.512344 | src 0x24c base 0x288 insns 147/162 |
|
||||
| TMCJPEG_814F34A4 | x/y bound initialization order | 60.037037 | 59.728394 | src 0x24c base 0x288 insns 147/162 |
|
||||
| TMCJPEG_814F34A4 | arithmetic operand order | 60.037037 | 60.037037 | src 0x24c base 0x288 insns 147/162 |
|
||||
| TMCJPEG_814F34A4 | texture and tile width declaration order | 60.037037 | 60.037037 | src 0x24c base 0x288 insns 147/162 |
|
||||
| TMCJPEG_814F372C | source pointer walks | 62.89143 | 62.89143 | src 0x280 base 0x2bc insns 160/175 |
|
||||
| TMCJPEG_814F372C | column declared at function scope | 62.89143 | 62.92 | src 0x280 base 0x2bc insns 160/175 |
|
||||
| TMCJPEG_814F372C | x/y bound initialization order | 62.89143 | 62.605713 | src 0x280 base 0x2bc insns 160/175 |
|
||||
| TMCJPEG_814F372C | arithmetic operand order | 62.89143 | 62.89143 | src 0x280 base 0x2bc insns 160/175 |
|
||||
| TMCJPEG_814F372C | texture and tile width declaration order | 62.89143 | 62.89143 | src 0x280 base 0x2bc insns 160/175 |
|
||||
|
||||
### Texture_MCUtoRGB565
|
||||
|
||||
| Function | Attempt | Before percent | After percent | Instructions |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| TMCJPEGDEC_set_converterRGB565 | state load before component | 93.63529 | 93.63529 | src 0x2a4 base 0x2a8 insns 169/170 |
|
||||
| TMCJPEGDEC_set_converterRGB565 | pointer stores before converter stores | 93.63529 | 93.86471 | src 0x2a4 base 0x2a8 insns 169/170 |
|
||||
| TMCJPEGDEC_set_converterRGB565 | dimension operand order | 93.63529 | 93.63529 | src 0x2a4 base 0x2a8 insns 169/170 |
|
||||
| TMCJPEGDEC_set_converterRGB565 | base local declaration order | 93.63529 | 93.63529 | src 0x2a4 base 0x2a8 insns 169/170 |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | source pointer walks | 72.79723 | 72.46083 | src 0x364 base 0x364 insns 217/217 |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | column declared at function scope | 72.79723 | 72.77419 | src 0x364 base 0x364 insns 217/217 |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | x/y bound initialization order | 72.79723 | 72.79723 | src 0x364 base 0x364 insns 217/217 |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | arithmetic operand order | 72.79723 | 74.23963 | src 0x364 base 0x364 insns 217/217 |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | texture and tile width declaration order | 72.79723 | 72.79723 | src 0x364 base 0x364 insns 217/217 |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565edge | source pointer walks | 80.92453 | 81.396225 | src 0x1b4 base 0x1a8 insns 109/106 |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565edge | column declared at function scope | 80.92453 | 82.85849 | src 0x1b4 base 0x1a8 insns 109/106 |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565edge | x/y bound initialization order | 80.92453 | 80.92453 | src 0x1b4 base 0x1a8 insns 109/106 |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565edge | arithmetic operand order | 80.92453 | 79.20755 | src 0x1b4 base 0x1a8 insns 109/106 |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565edge | texture and tile width declaration order | 80.92453 | 80.830185 | src 0x1b4 base 0x1a8 insns 109/106 |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | source pointer walks | 76.58088 | 75.33088 | src 0x220 base 0x220 insns 136/136 |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | column declared at function scope | 76.58088 | 78.117645 | src 0x220 base 0x220 insns 136/136 |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | x/y bound initialization order | 76.58088 | 76.58088 | src 0x220 base 0x220 insns 136/136 |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | arithmetic operand order | 76.58088 | 75.68382 | src 0x220 base 0x220 insns 136/136 |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | texture and tile width declaration order | 76.58088 | 76.58088 | src 0x220 base 0x220 insns 136/136 |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565edge | source pointer walks | 80.794395 | 74.53271 | src 0x1b8 base 0x1ac insns 110/107 |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565edge | column declared at function scope | 80.794395 | 82.66355 | src 0x1b8 base 0x1ac insns 110/107 |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565edge | x/y bound initialization order | 80.794395 | 80.794395 | src 0x1b8 base 0x1ac insns 110/107 |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565edge | arithmetic operand order | 80.794395 | 78.76636 | src 0x1b8 base 0x1ac insns 110/107 |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565edge | texture and tile width declaration order | 80.794395 | 80.700935 | src 0x1b8 base 0x1ac insns 110/107 |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | source pointer walks | 77.375885 | 75.992905 | src 0x234 base 0x234 insns 141/141 |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | column declared at function scope | 77.375885 | 77.23404 | src 0x234 base 0x234 insns 141/141 |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | x/y bound initialization order | 77.375885 | 77.30496 | src 0x234 base 0x234 insns 141/141 |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | arithmetic operand order | 77.375885 | 76.510635 | src 0x234 base 0x234 insns 141/141 |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | texture and tile width declaration order | 77.375885 | 77.23404 | src 0x234 base 0x234 insns 141/141 |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565edge | source pointer walks | 83.289474 | 83.72807 | src 0x1d4 base 0x1c8 insns 117/114 |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565edge | column declared at function scope | 83.289474 | 83.42105 | src 0x1d4 base 0x1c8 insns 117/114 |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565edge | x/y bound initialization order | 83.289474 | 83.289474 | src 0x1d4 base 0x1c8 insns 117/114 |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565edge | arithmetic operand order | 83.289474 | 81.51755 | src 0x1d4 base 0x1c8 insns 117/114 |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565edge | texture and tile width declaration order | 83.289474 | 83.20175 | src 0x1d4 base 0x1c8 insns 117/114 |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | source pointer walks | 73.05102 | 73.765305 | src 0x188 base 0x188 insns 98/98 |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | column declared at function scope | 73.05102 | 75.33673 | src 0x188 base 0x188 insns 98/98 |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | x/y bound initialization order | 73.05102 | 73.05102 | src 0x188 base 0x188 insns 98/98 |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | arithmetic operand order | 73.05102 | 69.66327 | src 0x188 base 0x188 insns 98/98 |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | texture and tile width declaration order | 73.05102 | 72.94898 | src 0x188 base 0x188 insns 98/98 |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | source pointer walks | 77.23853 | 77.88074 | src 0x1b4 base 0x1b4 insns 109/109 |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | column declared at function scope | 77.23853 | 79.16514 | src 0x1b4 base 0x1b4 insns 109/109 |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | x/y bound initialization order | 77.23853 | 77.23853 | src 0x1b4 base 0x1b4 insns 109/109 |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | arithmetic operand order | 77.23853 | 74.19266 | src 0x1b4 base 0x1b4 insns 109/109 |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | texture and tile width declaration order | 77.23853 | 77.23853 | src 0x1b4 base 0x1b4 insns 109/109 |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | source pointer walks | 73.50549 | 74.27473 | src 0x16c base 0x16c insns 91/91 |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | column declared at function scope | 73.50549 | 73.61539 | src 0x16c base 0x16c insns 91/91 |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | x/y bound initialization order | 73.50549 | 73.50549 | src 0x16c base 0x16c insns 91/91 |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | arithmetic operand order | 73.50549 | 69.85714 | src 0x16c base 0x16c insns 91/91 |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | texture and tile width declaration order | 73.50549 | 73.50549 | src 0x16c base 0x16c insns 91/91 |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | source pointer walks | 76.48077 | 77.15385 | src 0x1a0 base 0x1a0 insns 104/104 |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | column declared at function scope | 76.48077 | 78.45192 | src 0x1a0 base 0x1a0 insns 104/104 |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | x/y bound initialization order | 76.48077 | 76.48077 | src 0x1a0 base 0x1a0 insns 104/104 |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | arithmetic operand order | 76.48077 | 73.28846 | src 0x1a0 base 0x1a0 insns 104/104 |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | texture and tile width declaration order | 76.48077 | 76.48077 | src 0x1a0 base 0x1a0 insns 104/104 |
|
||||
|
||||
### Texture_MCUtoRGBA8
|
||||
|
||||
| Function | Attempt | Before percent | After percent | Instructions |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| TMCJPEGDEC_set_converterRGBA8 | state load before component | 93.63529 | 93.63529 | src 0x2a4 base 0x2a8 insns 169/170 |
|
||||
| TMCJPEGDEC_set_converterRGBA8 | pointer stores before converter stores | 93.63529 | 93.86471 | src 0x2a4 base 0x2a8 insns 169/170 |
|
||||
| TMCJPEGDEC_set_converterRGBA8 | dimension operand order | 93.63529 | 93.63529 | src 0x2a4 base 0x2a8 insns 169/170 |
|
||||
| TMCJPEGDEC_set_converterRGBA8 | base local declaration order | 93.63529 | 93.63529 | src 0x2a4 base 0x2a8 insns 169/170 |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | source pointer walks | 65.8719 | 69.44215 | src 0x3c8 base 0x3c8 insns 242/242 |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | column declared at function scope | 65.8719 | 64.921486 | src 0x3c8 base 0x3c8 insns 242/242 |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | x/y bound initialization order | 65.8719 | 65.19009 | src 0x3c8 base 0x3c8 insns 242/242 |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | arithmetic operand order | 65.8719 | 65.86777 | src 0x3c8 base 0x3c8 insns 242/242 |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | texture and tile width declaration order | 65.8719 | 65.14876 | src 0x3c8 base 0x3c8 insns 242/242 |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8edge | source pointer walks | 71.54464 | 67.97321 | src 0x1cc base 0x1c0 insns 115/112 |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8edge | column declared at function scope | 71.54464 | 71.90179 | src 0x1cc base 0x1c0 insns 115/112 |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8edge | x/y bound initialization order | 71.54464 | 71.54464 | src 0x1cc base 0x1c0 insns 115/112 |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8edge | arithmetic operand order | 71.54464 | 71.48214 | src 0x1cc base 0x1c0 insns 115/112 |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8edge | texture and tile width declaration order | 71.54464 | 71.54464 | src 0x1cc base 0x1c0 insns 115/112 |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | source pointer walks | 66.48649 | 67.58108 | src 0x250 base 0x250 insns 148/148 |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | column declared at function scope | 66.48649 | 66.28378 | src 0x250 base 0x250 insns 148/148 |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | x/y bound initialization order | 66.48649 | 67.77027 | src 0x250 base 0x250 insns 148/148 |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | arithmetic operand order | 66.48649 | 66.3446 | src 0x250 base 0x250 insns 148/148 |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | texture and tile width declaration order | 66.48649 | 66.28378 | src 0x250 base 0x250 insns 148/148 |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8edge | source pointer walks | 68.61062 | 67.530975 | src 0x1d0 base 0x1c4 insns 116/113 |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8edge | column declared at function scope | 68.61062 | 70.42478 | src 0x1d0 base 0x1c4 insns 116/113 |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8edge | x/y bound initialization order | 68.61062 | 68.61062 | src 0x1d0 base 0x1c4 insns 116/113 |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8edge | arithmetic operand order | 68.61062 | 68.59292 | src 0x1d0 base 0x1c4 insns 116/113 |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8edge | texture and tile width declaration order | 68.61062 | 68.522125 | src 0x1d0 base 0x1c4 insns 116/113 |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | source pointer walks | 69.745094 | 71.03268 | src 0x264 base 0x264 insns 153/153 |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | column declared at function scope | 69.745094 | 70.00654 | src 0x264 base 0x264 insns 153/153 |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | x/y bound initialization order | 69.745094 | 69.810455 | src 0x264 base 0x264 insns 153/153 |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | arithmetic operand order | 69.745094 | 69.77124 | src 0x264 base 0x264 insns 153/153 |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | texture and tile width declaration order | 69.745094 | 69.87582 | src 0x264 base 0x264 insns 153/153 |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8edge | source pointer walks | 74.191666 | 74.60833 | src 0x1ec base 0x1e0 insns 123/120 |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8edge | column declared at function scope | 74.191666 | 74.191666 | src 0x1ec base 0x1e0 insns 123/120 |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8edge | x/y bound initialization order | 74.191666 | 74.191666 | src 0x1ec base 0x1e0 insns 123/120 |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8edge | arithmetic operand order | 74.191666 | 74.175 | src 0x1ec base 0x1e0 insns 123/120 |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8edge | texture and tile width declaration order | 74.191666 | 74.275 | src 0x1ec base 0x1e0 insns 123/120 |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | source pointer walks | 69.48077 | 71.04808 | src 0x1a0 base 0x1a0 insns 104/104 |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | column declared at function scope | 69.48077 | 69.91346 | src 0x1a0 base 0x1a0 insns 104/104 |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | x/y bound initialization order | 69.48077 | 69.48077 | src 0x1a0 base 0x1a0 insns 104/104 |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | arithmetic operand order | 69.48077 | 66.09615 | src 0x1a0 base 0x1a0 insns 104/104 |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | texture and tile width declaration order | 69.48077 | 69.76923 | src 0x1a0 base 0x1a0 insns 104/104 |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | source pointer walks | 73.96522 | 75.38261 | src 0x1cc base 0x1cc insns 115/115 |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | column declared at function scope | 73.96522 | 75.92174 | src 0x1cc base 0x1cc insns 115/115 |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | x/y bound initialization order | 73.96522 | 73.96522 | src 0x1cc base 0x1cc insns 115/115 |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | arithmetic operand order | 73.96522 | 70.90435 | src 0x1cc base 0x1cc insns 115/115 |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | texture and tile width declaration order | 73.96522 | 74.05218 | src 0x1cc base 0x1cc insns 115/115 |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | source pointer walks | 70.08247 | 71.762886 | src 0x184 base 0x184 insns 97/97 |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | column declared at function scope | 70.08247 | 70.18557 | src 0x184 base 0x184 insns 97/97 |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | x/y bound initialization order | 70.08247 | 70.08247 | src 0x184 base 0x184 insns 97/97 |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | arithmetic operand order | 70.08247 | 66.453606 | src 0x184 base 0x184 insns 97/97 |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | texture and tile width declaration order | 70.08247 | 70.18557 | src 0x184 base 0x184 insns 97/97 |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | source pointer walks | 73.11818 | 74.6 | src 0x1b8 base 0x1b8 insns 110/110 |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | column declared at function scope | 73.11818 | 75.163635 | src 0x1b8 base 0x1b8 insns 110/110 |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | x/y bound initialization order | 73.11818 | 73.11818 | src 0x1b8 base 0x1b8 insns 110/110 |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | arithmetic operand order | 73.11818 | 69.91818 | src 0x1b8 base 0x1b8 insns 110/110 |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | texture and tile width declaration order | 73.11818 | 73.20909 | src 0x1b8 base 0x1b8 insns 110/110 |
|
||||
|
||||
### idct_block_var
|
||||
|
||||
| Function | Attempt | Before percent | After percent | Instructions |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| TMCJPEGDEC_IdctBlock_Lumi | ac operand order | 63.07782 | 63.07782 | src 0x404 base 0x404 insns 257/257 |
|
||||
| TMCJPEGDEC_IdctBlock_Lumi | butterfly operand grouping | 63.07782 | 66.618675 | src 0x404 base 0x404 insns 257/257 |
|
||||
| TMCJPEGDEC_IdctBlock_Lumi | first pass row counter form | 63.07782 | 62.55642 | src 0x404 base 0x404 insns 257/257 |
|
||||
| TMCJPEGDEC_IdctBlock_Lumi | second pass pointer before counter | 63.07782 | 65.33463 | src 0x404 base 0x404 insns 257/257 |
|
||||
| TMCJPEGDEC_IdctBlock_Lumi | clamp arithmetic sign tests | 63.07782 | 63.07782 | src 0x404 base 0x404 insns 257/257 |
|
||||
| TMCJPEGDEC_IdctBlock_Col | ac operand order | 69.0859 | 69.0859 | src 0x780 base 0x718 insns 480/454 |
|
||||
| TMCJPEGDEC_IdctBlock_Col | butterfly operand grouping | 69.0859 | 69.0859 | src 0x780 base 0x718 insns 480/454 |
|
||||
| TMCJPEGDEC_IdctBlock_Col | first pass row counter form | 69.0859 | 68.90969 | src 0x780 base 0x718 insns 480/454 |
|
||||
| TMCJPEGDEC_IdctBlock_Col | second pass pointer before counter | 69.0859 | 69.0859 | src 0x780 base 0x718 insns 480/454 |
|
||||
| TMCJPEGDEC_IdctBlock_Col | clamp arithmetic sign tests | 69.0859 | 69.112335 | src 0x780 base 0x718 insns 480/454 |
|
||||
|
||||
### iqdec_b65_frv32
|
||||
|
||||
| Function | Attempt | Before percent | After percent | Instructions |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| TMCJPEGDEC_decode_iquant | huffman code uses decoded threshold | 84.641304 | 84.641304 | src 0x460 base 0x450 insns 280/276 |
|
||||
| TMCJPEGDEC_decode_iquant | dc load failure through common return | 84.641304 | 84.71377 | src 0x460 base 0x450 insns 280/276 |
|
||||
| TMCJPEGDEC_decode_iquant | sign-extension subtraction operand grouping | 84.641304 | 85.11232 | src 0x468 base 0x450 insns 282/276 |
|
||||
| TMCJPEGDEC_decode_iquant | dc lookup shift temporary combined | 84.641304 | 84.822464 | src 0x460 base 0x450 insns 280/276 |
|
||||
| TMCJPEGDEC_decode_iquant | dc predictor load before quantizer | 84.641304 | 84.60507 | src 0x460 base 0x450 insns 280/276 |
|
||||
|
||||
## Further block translations
|
||||
|
||||
Planar grayscale: moving tile row and output row calculations inside the pixel loop changed 147 instructions to 150; explicit tile/pixel offsets kept 150. Making tile-row arithmetic unsigned reproduced the target 162/162 and 175/175 instructions, instead of compiler strength reduction. This is the unsigned product of the tile-row index and the existing unsigned tile width. Remaining differences were register allocation.
|
||||
|
||||
Planar 411 chroma: moving row calculations inside the pixel loop still produced 338/356 instructions, so structural differences remain.
|
||||
|
||||
RGB565/RGBA8 YUV444: ported the flat local declarations, pointer walking, row output before tile-row calculation, and per-pixel green/red/blue arithmetic in assembly order. Both normal and edge instruction counts agree with their targets. Register/saturation branch choices remain. Explicit clamp branches compiled identically to the ternaries.
|
||||
|
||||
Planar grayscale follow-up: declaration order brought both normal and edge functions to 100 percent objdiff, with identical complete raw .text byte slices of 648 and 700 bytes. Existing ctxdiff/gate disassembly reports two false differences for each because odiff.dis reads operand zero of a conditional branch as an immediate; for CR1 branches operand zero is a register, not the branch destination. Their differing source/target object positions leak into the displayed differences. Neither the gate nor its dependencies were modified. The gate's instruction-exact count therefore remains 2/13 for this unit while objdiff correctly reports 4/13.
|
||||
|
||||
All remaining functions received at least three separately built source variants, with five attempts for ordinary converters and both IDCT functions and the entropy decoder. Exact functions were kept. This is a partial matching result, not full unit completion or a linking change.
|
||||
|
||||
## Final remaining functions
|
||||
|
||||
### libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var
|
||||
|
||||
TMCJPEGDEC_IdctBlock_Lumi, 66.61867%, 257/257 instructions; 119 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
TMCJPEGDEC_IdctBlock_Col, 69.11234%, instruction count 480/454; loop/control-flow shape and scheduling remain
|
||||
|
||||
|
||||
### libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8
|
||||
|
||||
TMCJPEGDEC_set_converterY8U8V8, 92.54082%, instruction count 195/196; loop/control-flow shape and scheduling remain
|
||||
|
||||
TMCJPEG_814EFEAC, 53.10112%, instruction count 338/356; loop/control-flow shape and scheduling remain
|
||||
|
||||
TMCJPEG_814F043C, 52.51151%, 391/391 instructions; 308 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
TMCJPEG_814F0A58, 43.55579%, instruction count 477/475; loop/control-flow shape and scheduling remain
|
||||
|
||||
TMCJPEG_814F11C4, 52.51151%, 391/391 instructions; 308 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
TMCJPEG_814F17E0, 41.89030%, instruction count 475/474; loop/control-flow shape and scheduling remain
|
||||
|
||||
TMCJPEG_814F1F48, 49.79188%, instruction count 400/394; loop/control-flow shape and scheduling remain
|
||||
|
||||
TMCJPEG_814F2570, 47.10372%, 376/376 instructions; 318 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
TMCJPEG_814F2B50, 53.63472%, instruction count 385/386; loop/control-flow shape and scheduling remain
|
||||
|
||||
|
||||
### libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565
|
||||
|
||||
TMCJPEGDEC_set_converterRGB565, 93.86471%, instruction count 169/170; loop/control-flow shape and scheduling remain
|
||||
|
||||
TMCJPEGDEC_converterYUV411toRGB565, 74.23963%, 217/217 instructions; 104 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
TMCJPEGDEC_converterYUV411toRGB565edge, 82.85849%, instruction count 109/106; loop/control-flow shape and scheduling remain
|
||||
|
||||
TMCJPEGDEC_converterYUV422toRGB565, 78.11764%, 136/136 instructions; 59 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
TMCJPEGDEC_converterYUV422toRGB565edge, 82.66355%, instruction count 110/107; loop/control-flow shape and scheduling remain
|
||||
|
||||
TMCJPEGDEC_converterYUV420toRGB565, 77.37588%, 141/141 instructions; 57 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
TMCJPEGDEC_converterYUV420toRGB565edge, 83.72807%, instruction count 117/114; loop/control-flow shape and scheduling remain
|
||||
|
||||
TMCJPEGDEC_converterYUV211toRGB565, 75.33673%, 98/98 instructions; 50 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
TMCJPEGDEC_converterYUV211toRGB565edge, 79.16514%, 109/109 instructions; 44 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
TMCJPEGDEC_converterYUV444toRGB565, 88.24176%, 91/91 instructions; 17 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
TMCJPEGDEC_converterYUV444toRGB565edge, 88.07692%, 104/104 instructions; 17 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
|
||||
### libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8
|
||||
|
||||
TMCJPEGDEC_set_converterRGBA8, 93.86471%, instruction count 169/170; loop/control-flow shape and scheduling remain
|
||||
|
||||
TMCJPEGDEC_converterYUV411toRGBA8, 69.44215%, 242/242 instructions; 119 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
TMCJPEGDEC_converterYUV411toRGBA8edge, 71.90179%, instruction count 115/112; loop/control-flow shape and scheduling remain
|
||||
|
||||
TMCJPEGDEC_converterYUV422toRGBA8, 67.77027%, 148/148 instructions; 74 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
TMCJPEGDEC_converterYUV422toRGBA8edge, 70.42478%, instruction count 116/113; loop/control-flow shape and scheduling remain
|
||||
|
||||
TMCJPEGDEC_converterYUV420toRGBA8, 71.03268%, 153/153 instructions; 69 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
TMCJPEGDEC_converterYUV420toRGBA8edge, 74.60833%, instruction count 123/120; loop/control-flow shape and scheduling remain
|
||||
|
||||
TMCJPEGDEC_converterYUV211toRGBA8, 71.04808%, 104/104 instructions; 34 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
TMCJPEGDEC_converterYUV211toRGBA8edge, 75.92174%, 115/115 instructions; 50 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
TMCJPEGDEC_converterYUV444toRGBA8, 72.38145%, 97/97 instructions; 34 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
TMCJPEGDEC_converterYUV444toRGBA8edge, 77.60000%, 110/110 instructions; 28 opcode positions differ, arithmetic/saturation scheduling and register allocation
|
||||
|
||||
|
||||
### libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32
|
||||
|
||||
TMCJPEGDEC_decode_iquant, 85.11232%, instruction count 282/276; loop/control-flow shape and scheduling remain
|
||||
|
||||
## Continued matching after c923937c
|
||||
|
||||
Fresh baseline quick gate: PASS, zero regressions. All five original objects contain only code, with zero data bytes; their string pools are identical. No tables, vtables, or string literals require reconstruction in these units.
|
||||
|
||||
| Function | Distinct source attempt | Before percent | After percent | Evidence |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| TMCJPEGDEC_set_converterRGB565 | converter stores before row stores | 93.864710 | 93.635290 | 169/170 instructions; 169 differences |
|
||||
| TMCJPEGDEC_set_converterRGB565 | pointer to whole conversion buffer | 93.864710 | 93.635290 | 169/170 instructions; 169 differences |
|
||||
| TMCJPEGDEC_set_converterRGB565 | signed conversion sample pointer | 93.864710 | 93.635290 | 169/170 instructions; 169 differences |
|
||||
| TMCJPEGDEC_set_converterRGB565 | case scoped converter function pointers | 93.864710 | 93.864710 | 169/170 instructions; 169 differences |
|
||||
| TMCJPEGDEC_set_converterRGB565 | buffer initialized after state and component | 93.864710 | 93.635290 | 169/170 instructions; 169 differences |
|
||||
| TMCJPEGDEC_set_converterRGBA8 | converter stores before row stores | 93.864710 | 93.635290 | 169/170 instructions; 169 differences |
|
||||
| TMCJPEGDEC_set_converterRGBA8 | pointer to whole conversion buffer | 93.864710 | 93.635290 | 169/170 instructions; 169 differences |
|
||||
| TMCJPEGDEC_set_converterRGBA8 | signed conversion sample pointer | 93.864710 | 93.635290 | 169/170 instructions; 169 differences |
|
||||
| TMCJPEGDEC_set_converterRGBA8 | case scoped converter function pointers | 93.864710 | 93.864710 | 169/170 instructions; 169 differences |
|
||||
| TMCJPEGDEC_set_converterRGBA8 | buffer initialized after state and component | 93.864710 | 93.635290 | 169/170 instructions; 169 differences |
|
||||
| TMCJPEGDEC_set_converterY8U8V8 | converter stores before row stores | 92.540820 | 92.540820 | 195/196 instructions; 195 differences |
|
||||
| TMCJPEGDEC_set_converterY8U8V8 | pointer to whole conversion buffer | 92.540820 | 92.540820 | 195/196 instructions; 195 differences |
|
||||
| TMCJPEGDEC_set_converterY8U8V8 | signed conversion sample pointer | 92.540820 | 92.540820 | 195/196 instructions; 195 differences |
|
||||
| TMCJPEGDEC_set_converterY8U8V8 | case scoped converter function pointers | 92.540820 | 92.739800 | 195/196 instructions; 195 differences |
|
||||
| TMCJPEGDEC_set_converterY8U8V8 | buffer initialized after state and component | 92.540820 | 92.540820 | 195/196 instructions; 195 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | reuse luminance temporary for blue | 88.241760 | 88.241760 | 91/91 instructions; 49 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | saturation low branch first | 88.241760 | 88.241760 | 91/91 instructions; 49 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | pixel arithmetic locals scoped to pixel loop | 88.241760 | 88.021980 | 91/91 instructions; 53 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | combined saturation mask | 88.241760 | 87.582420 | 91/91 instructions; 50 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | pack green after red and blue sum | 88.241760 | 88.241760 | 91/91 instructions; 49 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | reuse luminance temporary for blue | 88.076920 | 88.076920 | 104/104 instructions; 72 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | saturation low branch first | 88.076920 | 88.076920 | 104/104 instructions; 72 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | pixel arithmetic locals scoped to pixel loop | 88.076920 | 88.076920 | 104/104 instructions; 72 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | combined saturation mask | 88.076920 | 87.500000 | 104/104 instructions; 73 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | pack green after red and blue sum | 88.076920 | 88.076920 | 104/104 instructions; 72 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | reuse luminance temporary for blue | 72.381450 | 73.226810 | 97/97 instructions; 76 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | saturation low branch first | 72.381450 | 72.381450 | 97/97 instructions; 78 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | pixel arithmetic locals scoped to pixel loop | 72.381450 | 72.381450 | 97/97 instructions; 78 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | combined saturation mask | 72.381450 | 72.381450 | 97/97 instructions; 78 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | pack green after red and blue sum | 72.381450 | 72.381450 | 97/97 instructions; 78 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | reuse luminance temporary for blue | 77.600000 | 78.345450 | 110/110 instructions; 72 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | saturation low branch first | 77.600000 | 77.600000 | 110/110 instructions; 74 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | pixel arithmetic locals scoped to pixel loop | 77.600000 | 77.600000 | 110/110 instructions; 74 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | combined saturation mask | 77.600000 | 77.600000 | 110/110 instructions; 74 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | pack green after red and blue sum | 77.600000 | 77.600000 | 110/110 instructions; 74 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | saturation block with early break | 88.241760 | 88.241760 | 91/91 instructions; 49 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | negative mask before saturation decision | 88.241760 | 89.450550 | 88/91 instructions; 65 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | unsigned upper bound following negative clamp | 88.241760 | 85.879120 | 88/91 instructions; 65 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | saturation block with early break | 88.076920 | 88.076920 | 104/104 instructions; 72 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | negative mask before saturation decision | 88.076920 | 88.942310 | 101/104 instructions; 82 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | unsigned upper bound following negative clamp | 88.076920 | 86.009610 | 101/104 instructions; 82 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | saturation block with early break | 73.226810 | 73.226810 | 97/97 instructions; 76 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | negative mask before saturation decision | 73.226810 | 76.216490 | 94/97 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | unsigned upper bound following negative clamp | 73.226810 | 73.690720 | 94/97 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | saturation block with early break | 78.345450 | 78.345450 | 110/110 instructions; 72 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | negative mask before saturation decision | 78.345450 | 80.981820 | 107/110 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | unsigned upper bound following negative clamp | 78.345450 | 78.754550 | 107/110 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565edge | row output pointer before tile product | 83.728070 | 83.640350 | 117/114 instructions; 110 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565edge | green pixel sum before red pixel sum | 83.728070 | 83.859650 | 117/114 instructions; 110 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565edge | explicit saturation branches in each pixel | 83.728070 | 83.728070 | 117/114 instructions; 110 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565edge | named output pixel offset before each store | 83.728070 | 83.728070 | 117/114 instructions; 110 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565edge | signed chroma source pointers | 83.728070 | 83.991230 | 117/114 instructions; 110 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565edge | row output pointer before tile product | 82.858490 | 82.858490 | 109/106 instructions; 100 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565edge | green pixel sum before red pixel sum | 82.858490 | 84.292450 | 109/106 instructions; 99 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565edge | explicit saturation branches in each pixel | 82.858490 | 82.858490 | 109/106 instructions; 100 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565edge | named output pixel offset before each store | 82.858490 | 82.858490 | 109/106 instructions; 100 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565edge | signed chroma source pointers | 82.858490 | 82.716980 | 109/106 instructions; 100 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565edge | row output pointer before tile product | 82.663550 | 82.663550 | 110/107 instructions; 103 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565edge | green pixel sum before red pixel sum | 82.663550 | 82.710280 | 110/107 instructions; 103 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565edge | explicit saturation branches in each pixel | 82.663550 | 82.663550 | 110/107 instructions; 103 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565edge | named output pixel offset before each store | 82.663550 | 82.663550 | 110/107 instructions; 103 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565edge | signed chroma source pointers | 82.663550 | 82.803740 | 110/107 instructions; 103 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | converter locals flattened like exact siblings | 79.165140 | 79.165140 | 109/109 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | row output pointer before tile product | 79.165140 | 79.165140 | 109/109 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | green pixel sum before red pixel sum | 79.165140 | 86.788994 | 109/109 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | explicit saturation branches in each pixel | 79.165140 | 79.165140 | 109/109 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | named output pixel offset before each store | 79.165140 | 79.165140 | 109/109 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | signed chroma source pointers | 79.165140 | 79.119260 | 109/109 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | converter locals flattened like exact siblings | 78.117645 | 77.970590 | 136/136 instructions; 124 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | row output pointer before tile product | 78.117645 | 78.117645 | 136/136 instructions; 122 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | green pixel sum before red pixel sum | 78.117645 | 65.985290 | 136/136 instructions; 124 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | explicit saturation branches in each pixel | 78.117645 | 78.117645 | 136/136 instructions; 122 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | named output pixel offset before each store | 78.117645 | 78.117645 | 136/136 instructions; 122 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | signed chroma source pointers | 78.117645 | 78.080880 | 136/136 instructions; 122 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | converter locals flattened like exact siblings | 77.375885 | 77.234040 | 141/141 instructions; 127 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | row output pointer before tile product | 77.375885 | 77.375885 | 141/141 instructions; 125 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | green pixel sum before red pixel sum | 77.375885 | 65.673760 | 141/141 instructions; 127 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | explicit saturation branches in each pixel | 77.375885 | 77.375885 | 141/141 instructions; 125 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | named output pixel offset before each store | 77.375885 | 77.375885 | 141/141 instructions; 125 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | signed chroma source pointers | 77.375885 | 77.340420 | 141/141 instructions; 125 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | converter locals flattened like exact siblings | 75.921740 | 75.921740 | 115/115 instructions; 95 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | row output pointer before tile product | 75.921740 | 75.834785 | 115/115 instructions; 96 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | green pixel sum before red pixel sum | 75.921740 | 75.921740 | 115/115 instructions; 95 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | explicit saturation branches in each pixel | 75.921740 | 75.921740 | 115/115 instructions; 95 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | named output pixel offset before each store | 75.921740 | 75.921740 | 115/115 instructions; 95 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | signed chroma source pointers | 75.921740 | 75.791306 | 115/115 instructions; 95 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | converter locals flattened like exact siblings | 75.336730 | 75.336730 | 98/98 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | row output pointer before tile product | 75.336730 | 75.336730 | 98/98 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | green pixel sum before red pixel sum | 75.336730 | 83.816330 | 98/98 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | explicit saturation branches in each pixel | 75.336730 | 75.336730 | 98/98 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | named output pixel offset before each store | 75.336730 | 75.336730 | 98/98 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | signed chroma source pointers | 75.336730 | 75.285710 | 98/98 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8edge | row output pointer before tile product | 74.608330 | 74.691666 | 123/120 instructions; 108 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8edge | green pixel sum before red pixel sum | 74.608330 | 74.608330 | 123/120 instructions; 108 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8edge | explicit saturation branches in each pixel | 74.608330 | 74.608330 | 123/120 instructions; 108 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8edge | named output pixel offset before each store | 74.608330 | 74.608330 | 123/120 instructions; 108 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8edge | signed chroma source pointers | 74.608330 | 74.566666 | 123/120 instructions; 108 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | converter locals flattened like exact siblings | 74.239630 | 70.884796 | 217/217 instructions; 201 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | row output pointer before tile product | 74.239630 | 74.009220 | 217/217 instructions; 201 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | green pixel sum before red pixel sum | 74.239630 | 61.179720 | 217/217 instructions; 201 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | explicit saturation branches in each pixel | 74.239630 | 74.239630 | 217/217 instructions; 201 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | named output pixel offset before each store | 74.239630 | 74.239630 | 217/217 instructions; 201 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | signed chroma source pointers | 74.239630 | 74.239630 | 217/217 instructions; 201 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8edge | row output pointer before tile product | 71.901790 | 71.812500 | 115/112 instructions; 104 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8edge | green pixel sum before red pixel sum | 71.901790 | 71.901790 | 115/112 instructions; 104 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8edge | explicit saturation branches in each pixel | 71.901790 | 71.901790 | 115/112 instructions; 104 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8edge | named output pixel offset before each store | 71.901790 | 71.901790 | 115/112 instructions; 104 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8edge | signed chroma source pointers | 71.901790 | 71.901790 | 115/112 instructions; 104 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | converter locals flattened like exact siblings | 71.048080 | 71.048080 | 104/104 instructions; 91 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | row output pointer before tile product | 71.048080 | 71.048080 | 104/104 instructions; 91 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | green pixel sum before red pixel sum | 71.048080 | 71.048080 | 104/104 instructions; 91 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | explicit saturation branches in each pixel | 71.048080 | 71.048080 | 104/104 instructions; 91 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | named output pixel offset before each store | 71.048080 | 71.048080 | 104/104 instructions; 91 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | signed chroma source pointers | 71.048080 | 70.903850 | 104/104 instructions; 91 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | converter locals flattened like exact siblings | 71.032680 | 70.960785 | 153/153 instructions; 133 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | row output pointer before tile product | 71.032680 | 71.032680 | 153/153 instructions; 135 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | green pixel sum before red pixel sum | 71.032680 | 71.032680 | 153/153 instructions; 135 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | explicit saturation branches in each pixel | 71.032680 | 71.032680 | 153/153 instructions; 135 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | named output pixel offset before each store | 71.032680 | 69.071890 | 153/153 instructions; 135 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | signed chroma source pointers | 71.032680 | 71.065360 | 153/153 instructions; 135 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8edge | row output pointer before tile product | 70.424780 | 70.424780 | 116/113 instructions; 107 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8edge | green pixel sum before red pixel sum | 70.424780 | 70.424780 | 116/113 instructions; 107 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8edge | explicit saturation branches in each pixel | 70.424780 | 70.424780 | 116/113 instructions; 107 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8edge | named output pixel offset before each store | 70.424780 | 70.424780 | 116/113 instructions; 107 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8edge | signed chroma source pointers | 70.424780 | 70.424780 | 116/113 instructions; 107 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | converter locals flattened like exact siblings | 69.442150 | 69.442150 | 242/242 instructions; 216 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | row output pointer before tile product | 69.442150 | 69.462810 | 242/242 instructions; 216 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | green pixel sum before red pixel sum | 69.442150 | 69.442150 | 242/242 instructions; 216 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | explicit saturation branches in each pixel | 69.442150 | 69.442150 | 242/242 instructions; 216 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | named output pixel offset before each store | 69.442150 | 63.801650 | 242/242 instructions; 216 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | signed chroma source pointers | 69.442150 | 69.442150 | 242/242 instructions; 216 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | converter locals flattened like exact siblings | 67.770270 | 69.060814 | 148/148 instructions; 138 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | row output pointer before tile product | 67.770270 | 67.770270 | 148/148 instructions; 137 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | green pixel sum before red pixel sum | 67.770270 | 67.770270 | 148/148 instructions; 137 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | explicit saturation branches in each pixel | 67.770270 | 67.770270 | 148/148 instructions; 137 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | named output pixel offset before each store | 67.770270 | 68.412160 | 148/148 instructions; 137 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | signed chroma source pointers | 67.770270 | 67.770270 | 148/148 instructions; 136 differences |
|
||||
| TMCJPEG_814F2B50 | exact sibling split tile and pixel addressing | 53.634716 | 53.634716 | 385/386 instructions; 382 differences |
|
||||
| TMCJPEG_814F2B50 | unsigned chroma samples with split addressing | 53.634716 | 53.634716 | 385/386 instructions; 382 differences |
|
||||
| TMCJPEG_814F2B50 | row output pointers before tile row arithmetic | 53.634716 | 53.634716 | 385/386 instructions; 382 differences |
|
||||
| TMCJPEG_814F2B50 | row arithmetic inside pixel loop as exact grayscale | 53.634716 | 55.795338 | 386/386 instructions; 382 differences |
|
||||
| TMCJPEG_814EFEAC | exact sibling split tile and pixel addressing | 53.101124 | 53.101124 | 338/356 instructions; 356 differences |
|
||||
| TMCJPEG_814EFEAC | unsigned chroma samples with split addressing | 53.101124 | 53.101124 | 338/356 instructions; 356 differences |
|
||||
| TMCJPEG_814EFEAC | row output pointers before tile row arithmetic | 53.101124 | 53.101124 | 338/356 instructions; 356 differences |
|
||||
| TMCJPEG_814EFEAC | row arithmetic inside pixel loop as exact grayscale | 53.101124 | 52.412920 | 339/356 instructions; 355 differences |
|
||||
| TMCJPEG_814F043C | exact sibling split tile and pixel addressing | 52.511510 | 52.511510 | 391/391 instructions; 387 differences |
|
||||
| TMCJPEG_814F043C | unsigned chroma samples with split addressing | 52.511510 | 52.511510 | 391/391 instructions; 387 differences |
|
||||
| TMCJPEG_814F043C | row output pointers before tile row arithmetic | 52.511510 | 53.222507 | 391/391 instructions; 387 differences |
|
||||
| TMCJPEG_814F043C | row arithmetic inside pixel loop as exact grayscale | 52.511510 | 57.682865 | 391/391 instructions; 383 differences |
|
||||
| TMCJPEG_814F11C4 | exact sibling split tile and pixel addressing | 52.511510 | 52.511510 | 391/391 instructions; 387 differences |
|
||||
| TMCJPEG_814F11C4 | unsigned chroma samples with split addressing | 52.511510 | 52.511510 | 391/391 instructions; 387 differences |
|
||||
| TMCJPEG_814F11C4 | row output pointers before tile row arithmetic | 52.511510 | 53.222507 | 391/391 instructions; 387 differences |
|
||||
| TMCJPEG_814F11C4 | row arithmetic inside pixel loop as exact grayscale | 52.511510 | 57.682865 | 391/391 instructions; 383 differences |
|
||||
| TMCJPEG_814F1F48 | exact sibling split tile and pixel addressing | 49.791878 | 49.791878 | 400/394 instructions; 395 differences |
|
||||
| TMCJPEG_814F1F48 | unsigned chroma samples with split addressing | 49.791878 | 49.791878 | 400/394 instructions; 395 differences |
|
||||
| TMCJPEG_814F1F48 | row output pointers before tile row arithmetic | 49.791878 | 48.713200 | 400/394 instructions; 395 differences |
|
||||
| TMCJPEG_814F1F48 | row arithmetic inside pixel loop as exact grayscale | 49.791878 | 52.167510 | 400/394 instructions; 395 differences |
|
||||
| TMCJPEG_814F2570 | exact sibling split tile and pixel addressing | 47.103720 | 47.103720 | 376/376 instructions; 370 differences |
|
||||
| TMCJPEG_814F2570 | unsigned chroma samples with split addressing | 47.103720 | 47.103720 | 376/376 instructions; 370 differences |
|
||||
| TMCJPEG_814F2570 | row output pointers before tile row arithmetic | 47.103720 | 49.789894 | 376/376 instructions; 371 differences |
|
||||
| TMCJPEG_814F2570 | row arithmetic inside pixel loop as exact grayscale | 47.103720 | 52.587765 | 376/376 instructions; 373 differences |
|
||||
| TMCJPEG_814F0A58 | exact sibling split tile and pixel addressing | 43.555790 | 43.555790 | 477/475 instructions; 475 differences |
|
||||
| TMCJPEG_814F0A58 | unsigned chroma samples with split addressing | 43.555790 | 43.555790 | 477/475 instructions; 475 differences |
|
||||
| TMCJPEG_814F0A58 | row output pointers before tile row arithmetic | 43.555790 | 45.195790 | 477/475 instructions; 475 differences |
|
||||
| TMCJPEG_814F0A58 | row arithmetic inside pixel loop as exact grayscale | 43.555790 | 44.507370 | 478/475 instructions; 478 differences |
|
||||
| TMCJPEG_814F17E0 | exact sibling split tile and pixel addressing | 41.890297 | 41.890297 | 475/474 instructions; 472 differences |
|
||||
| TMCJPEG_814F17E0 | unsigned chroma samples with split addressing | 41.890297 | 41.890297 | 475/474 instructions; 472 differences |
|
||||
| TMCJPEG_814F17E0 | row output pointers before tile row arithmetic | 41.890297 | 44.407173 | 475/474 instructions; 472 differences |
|
||||
| TMCJPEG_814F17E0 | row arithmetic inside pixel loop as exact grayscale | 41.890297 | 41.890297 | 475/474 instructions; 472 differences |
|
||||
|
||||
Converter checkpoint: full clean gate PASS; zero regressions, forbidden patterns, and readability warnings. Global fuzzy 97.98290 -> 98.00015. Retained real source-shape gains in all three converters. Setup buffer base still folds; colored saturation and loop scheduling still differ. Data inventory from original ELF sections confirmed all five units have no data sections. Failed flattening experiments were reverted before the gate.
|
||||
| TMCJPEGDEC_IdctBlock_Col | AC reduction from newly loaded coefficient | 69.112335 | 69.112335 | 480/454 instructions; 466 differences |
|
||||
| TMCJPEGDEC_IdctBlock_Col | last butterfly sum uses target operand order | 69.112335 | 69.112335 | 480/454 instructions; 466 differences |
|
||||
| TMCJPEGDEC_IdctBlock_Col | odd outer sum grouped before inner correction | 69.112335 | 69.112335 | 480/454 instructions; 466 differences |
|
||||
| TMCJPEGDEC_IdctBlock_Col | column pass decrements pointer in loop update | 69.112335 | 69.085900 | 480/454 instructions; 466 differences |
|
||||
| TMCJPEGDEC_IdctBlock_Col | row pass zero fill uses pointer bound | 69.112335 | 69.017624 | 480/454 instructions; 467 differences |
|
||||
| TMCJPEGDEC_IdctBlock_Col | butterfly coefficients load odd terms before even terms | 69.112335 | 69.112335 | 480/454 instructions; 466 differences |
|
||||
| TMCJPEGDEC_IdctBlock_Lumi | AC reduction from newly loaded coefficient | 66.618675 | 66.618675 | 257/257 instructions; 217 differences |
|
||||
| TMCJPEGDEC_IdctBlock_Lumi | last butterfly sum uses target operand order | 66.618675 | 66.618675 | 257/257 instructions; 217 differences |
|
||||
| TMCJPEGDEC_IdctBlock_Lumi | odd outer sum grouped before inner correction | 66.618675 | 66.618675 | 257/257 instructions; 217 differences |
|
||||
| TMCJPEGDEC_IdctBlock_Lumi | column pass decrements pointer in loop update | 66.618675 | 66.610890 | 257/257 instructions; 217 differences |
|
||||
| TMCJPEGDEC_IdctBlock_Lumi | row pass zero fill uses pointer bound | 66.618675 | 65.038910 | 257/257 instructions; 224 differences |
|
||||
| TMCJPEGDEC_IdctBlock_Lumi | butterfly coefficients load odd terms before even terms | 66.618675 | 63.797665 | 257/257 instructions; 213 differences |
|
||||
| TMCJPEGDEC_decode_iquant | sign extension subtracts amplitude mask | 85.112320 | 84.731890 | 280/276 instructions; 252 differences |
|
||||
| TMCJPEGDEC_decode_iquant | AC entry lifetime begins after DC decoding | 85.112320 | 85.126810 | 282/276 instructions; 251 differences |
|
||||
| TMCJPEGDEC_decode_iquant | DC entry declared before AC entry | 85.112320 | 85.119570 | 282/276 instructions; 253 differences |
|
||||
| TMCJPEGDEC_decode_iquant | slow Huffman offset reads original entry symbol | 85.112320 | 85.293480 | 280/276 instructions; 245 differences |
|
||||
| TMCJPEGDEC_decode_iquant | slow Huffman offsets added after code difference | 85.112320 | 85.039856 | 282/276 instructions; 254 differences |
|
||||
| TMCJPEGDEC_decode_iquant | quantizer and predictor multiplication operands | 85.112320 | 85.094200 | 282/276 instructions; 254 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | unique converter locals at function scope | 89.450550 | 89.450550 | 88/91 instructions; 65 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | sample loads before pointer increments | 89.450550 | 82.087910 | 88/91 instructions; 82 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | explicit addition for pixel counter updates | 89.450550 | 89.450550 | 88/91 instructions; 65 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | tile column multiply replaces tile shift | 89.450550 | 89.450550 | 88/91 instructions; 65 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | row traversal uses exact sibling row variable | 89.450550 | 87.252750 | 88/91 instructions; 68 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | output tile product cast to unsigned | 89.450550 | 89.450550 | 88/91 instructions; 65 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565 | prefix increment for row and column counters | 89.450550 | 89.450550 | 88/91 instructions; 65 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | unique converter locals at function scope | 88.942310 | 88.942310 | 101/104 instructions; 82 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | sample loads before pointer increments | 88.942310 | 88.365390 | 101/104 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | explicit addition for pixel counter updates | 88.942310 | 88.942310 | 101/104 instructions; 82 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | tile column multiply replaces tile shift | 88.942310 | 88.942310 | 101/104 instructions; 82 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | row traversal uses exact sibling row variable | 88.942310 | 88.942310 | 101/104 instructions; 82 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | output tile product cast to unsigned | 88.942310 | 88.942310 | 101/104 instructions; 82 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGB565edge | prefix increment for row and column counters | 88.942310 | 88.942310 | 101/104 instructions; 82 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | unique converter locals at function scope | 86.788994 | 86.788994 | 109/109 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | explicit addition for pixel counter updates | 86.788994 | 86.788994 | 109/109 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | tile column multiply replaces tile shift | 86.788994 | 86.788994 | 109/109 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | row traversal uses exact sibling row variable | 86.788994 | 86.788994 | 109/109 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | output tile product cast to unsigned | 86.788994 | 86.788994 | 109/109 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565edge | prefix increment for row and column counters | 86.788994 | 86.788994 | 109/109 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565edge | explicit addition for pixel counter updates | 84.292450 | 84.292450 | 109/106 instructions; 99 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565edge | tile column multiply replaces tile shift | 84.292450 | 84.292450 | 109/106 instructions; 99 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565edge | row traversal uses exact sibling row variable | 84.292450 | 84.292450 | 109/106 instructions; 99 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565edge | output tile product cast to unsigned | 84.292450 | 84.292450 | 109/106 instructions; 99 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565edge | prefix increment for row and column counters | 84.292450 | 84.292450 | 109/106 instructions; 99 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565edge | explicit addition for pixel counter updates | 83.991230 | 83.991230 | 117/114 instructions; 110 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565edge | tile column multiply replaces tile shift | 83.991230 | 83.991230 | 117/114 instructions; 110 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565edge | row traversal uses exact sibling row variable | 83.991230 | 83.991230 | 117/114 instructions; 110 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565edge | output tile product cast to unsigned | 83.991230 | 83.991230 | 117/114 instructions; 110 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565edge | prefix increment for row and column counters | 83.991230 | 83.991230 | 117/114 instructions; 110 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | unique converter locals at function scope | 83.816330 | 83.816330 | 98/98 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | explicit addition for pixel counter updates | 83.816330 | 83.816330 | 98/98 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | tile column multiply replaces tile shift | 83.816330 | 83.816330 | 98/98 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | row traversal uses exact sibling row variable | 83.816330 | 83.602040 | 98/98 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | output tile product cast to unsigned | 83.816330 | 83.816330 | 98/98 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGB565 | prefix increment for row and column counters | 83.816330 | 83.816330 | 98/98 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565edge | explicit addition for pixel counter updates | 82.803740 | 82.803740 | 110/107 instructions; 103 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565edge | tile column multiply replaces tile shift | 82.803740 | 82.803740 | 110/107 instructions; 103 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565edge | row traversal uses exact sibling row variable | 82.803740 | 82.803740 | 110/107 instructions; 103 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565edge | output tile product cast to unsigned | 82.803740 | 82.803740 | 110/107 instructions; 103 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565edge | prefix increment for row and column counters | 82.803740 | 82.803740 | 110/107 instructions; 103 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | unique converter locals at function scope | 80.981820 | 80.981820 | 107/110 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | sample loads before pointer increments | 80.981820 | 80.209090 | 107/110 instructions; 86 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | explicit addition for pixel counter updates | 80.981820 | 80.981820 | 107/110 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | tile column multiply replaces tile shift | 80.981820 | 80.981820 | 107/110 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | row traversal uses exact sibling row variable | 80.981820 | 80.981820 | 107/110 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | output tile product cast to unsigned | 80.981820 | 80.981820 | 107/110 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8edge | prefix increment for row and column counters | 80.981820 | 80.981820 | 107/110 instructions; 83 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | unique converter locals at function scope | 78.117645 | 78.117645 | 136/136 instructions; 122 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | explicit addition for pixel counter updates | 78.117645 | 78.117645 | 136/136 instructions; 122 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | tile column multiply replaces tile shift | 78.117645 | 78.117645 | 136/136 instructions; 122 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | row traversal uses exact sibling row variable | 78.117645 | 78.110290 | 136/136 instructions; 122 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | output tile product cast to unsigned | 78.117645 | 78.117645 | 136/136 instructions; 122 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGB565 | prefix increment for row and column counters | 78.117645 | 78.117645 | 136/136 instructions; 122 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | unique converter locals at function scope | 77.375885 | 77.375885 | 141/141 instructions; 125 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | explicit addition for pixel counter updates | 77.375885 | 77.375885 | 141/141 instructions; 125 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | tile column multiply replaces tile shift | 77.375885 | 77.375885 | 141/141 instructions; 125 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | row traversal uses exact sibling row variable | 77.375885 | 77.375885 | 141/141 instructions; 125 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | output tile product cast to unsigned | 77.375885 | 77.375885 | 141/141 instructions; 125 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGB565 | prefix increment for row and column counters | 77.375885 | 77.375885 | 141/141 instructions; 125 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | unique converter locals at function scope | 76.216490 | 76.216490 | 94/97 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | sample loads before pointer increments | 76.216490 | 75.340210 | 94/97 instructions; 90 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | explicit addition for pixel counter updates | 76.216490 | 76.216490 | 94/97 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | tile column multiply replaces tile shift | 76.216490 | 76.216490 | 94/97 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | row traversal uses exact sibling row variable | 76.216490 | 76.257730 | 94/97 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | output tile product cast to unsigned | 76.216490 | 76.216490 | 94/97 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV444toRGBA8 | prefix increment for row and column counters | 76.216490 | 76.216490 | 94/97 instructions; 87 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | unique converter locals at function scope | 75.921740 | 75.921740 | 115/115 instructions; 95 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | explicit addition for pixel counter updates | 75.921740 | 75.921740 | 115/115 instructions; 95 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | tile column multiply replaces tile shift | 75.921740 | 75.921740 | 115/115 instructions; 95 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | row traversal uses exact sibling row variable | 75.921740 | 75.921740 | 115/115 instructions; 95 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | output tile product cast to unsigned | 75.921740 | 75.921740 | 115/115 instructions; 95 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8edge | prefix increment for row and column counters | 75.921740 | 75.921740 | 115/115 instructions; 95 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8edge | explicit addition for pixel counter updates | 74.691666 | 74.691666 | 123/120 instructions; 108 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8edge | tile column multiply replaces tile shift | 74.691666 | 74.691666 | 123/120 instructions; 108 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8edge | row traversal uses exact sibling row variable | 74.691666 | 74.691666 | 123/120 instructions; 108 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8edge | output tile product cast to unsigned | 74.691666 | 74.691666 | 123/120 instructions; 108 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8edge | prefix increment for row and column counters | 74.691666 | 74.691666 | 123/120 instructions; 108 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | unique converter locals at function scope | 74.239630 | 74.239630 | 217/217 instructions; 201 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | explicit addition for pixel counter updates | 74.239630 | 74.239630 | 217/217 instructions; 201 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | tile column multiply replaces tile shift | 74.239630 | 74.239630 | 217/217 instructions; 201 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | row traversal uses exact sibling row variable | 74.239630 | 74.235020 | 217/217 instructions; 201 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | output tile product cast to unsigned | 74.239630 | 74.239630 | 217/217 instructions; 201 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGB565 | prefix increment for row and column counters | 74.239630 | 74.239630 | 217/217 instructions; 201 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8edge | explicit addition for pixel counter updates | 71.901790 | 71.901790 | 115/112 instructions; 104 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8edge | tile column multiply replaces tile shift | 71.901790 | 71.901790 | 115/112 instructions; 104 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8edge | row traversal uses exact sibling row variable | 71.901790 | 71.901790 | 115/112 instructions; 104 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8edge | output tile product cast to unsigned | 71.901790 | 71.901790 | 115/112 instructions; 104 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8edge | prefix increment for row and column counters | 71.901790 | 71.901790 | 115/112 instructions; 104 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | unique converter locals at function scope | 71.065360 | 71.065360 | 153/153 instructions; 135 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | explicit addition for pixel counter updates | 71.065360 | 71.065360 | 153/153 instructions; 135 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | tile column multiply replaces tile shift | 71.065360 | 71.065360 | 153/153 instructions; 135 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | row traversal uses exact sibling row variable | 71.065360 | 71.065360 | 153/153 instructions; 134 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | output tile product cast to unsigned | 71.065360 | 71.065360 | 153/153 instructions; 135 differences |
|
||||
| TMCJPEGDEC_converterYUV420toRGBA8 | prefix increment for row and column counters | 71.065360 | 71.065360 | 153/153 instructions; 135 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | unique converter locals at function scope | 71.048080 | 71.048080 | 104/104 instructions; 91 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | explicit addition for pixel counter updates | 71.048080 | 71.048080 | 104/104 instructions; 91 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | tile column multiply replaces tile shift | 71.048080 | 71.048080 | 104/104 instructions; 91 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | row traversal uses exact sibling row variable | 71.048080 | 69.269230 | 104/104 instructions; 90 differences |
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | output tile product cast to unsigned | 71.048080 | 71.048080 | 104/104 instructions; 91 differences |
|
||||
|
||||
Additional sibling pass tests the exact grayscale declaration and row traversal shape against every remaining colored/planar sibling. Counter spelling and arithmetic casts can compile identically; these are recorded as source attempts, not as improvements. Failed variants are restored. No data has been added: the original ELF data inventory is empty for all five units.
|
||||
| TMCJPEGDEC_converterYUV211toRGBA8 | prefix increment for row and column counters | 71.048080 | 71.048080 | 104/104 instructions; 91 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8edge | explicit addition for pixel counter updates | 70.424780 | 70.424780 | 116/113 instructions; 107 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8edge | tile column multiply replaces tile shift | 70.424780 | 70.424780 | 116/113 instructions; 107 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8edge | row traversal uses exact sibling row variable | 70.424780 | 70.424780 | 116/113 instructions; 107 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8edge | output tile product cast to unsigned | 70.424780 | 70.424780 | 116/113 instructions; 107 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8edge | prefix increment for row and column counters | 70.424780 | 70.424780 | 116/113 instructions; 107 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | unique converter locals at function scope | 69.462810 | 69.462810 | 242/242 instructions; 216 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | explicit addition for pixel counter updates | 69.462810 | 69.462810 | 242/242 instructions; 216 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | tile column multiply replaces tile shift | 69.462810 | 69.462810 | 242/242 instructions; 216 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | row traversal uses exact sibling row variable | 69.462810 | 69.595040 | 242/242 instructions; 213 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | output tile product cast to unsigned | 69.462810 | 69.462810 | 242/242 instructions; 216 differences |
|
||||
| TMCJPEGDEC_converterYUV411toRGBA8 | prefix increment for row and column counters | 69.462810 | 69.462810 | 242/242 instructions; 216 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | unique converter locals at function scope | 69.060814 | 67.770270 | 148/148 instructions; 137 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | sample loads before pointer increments | 69.060814 | 69.060814 | 148/148 instructions; 138 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | explicit addition for pixel counter updates | 69.060814 | 69.060814 | 148/148 instructions; 138 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | tile column multiply replaces tile shift | 69.060814 | 69.060814 | 148/148 instructions; 138 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | row traversal uses exact sibling row variable | 69.060814 | 67.675674 | 148/148 instructions; 137 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | output tile product cast to unsigned | 69.060814 | 69.060814 | 148/148 instructions; 138 differences |
|
||||
| TMCJPEGDEC_converterYUV422toRGBA8 | prefix increment for row and column counters | 69.060814 | 69.060814 | 148/148 instructions; 138 differences |
|
||||
| TMCJPEG_814F043C | unique converter locals at function scope | 57.682865 | 57.682865 | 391/391 instructions; 383 differences |
|
||||
| TMCJPEG_814F043C | sample loads before pointer increments | 57.682865 | 57.682865 | 391/391 instructions; 383 differences |
|
||||
| TMCJPEG_814F043C | explicit addition for pixel counter updates | 57.682865 | 57.682865 | 391/391 instructions; 383 differences |
|
||||
| TMCJPEG_814F043C | tile column multiply replaces tile shift | 57.682865 | 57.682865 | 391/391 instructions; 383 differences |
|
||||
| TMCJPEG_814F043C | row traversal uses exact sibling row variable | 57.682865 | 57.682865 | 391/391 instructions; 383 differences |
|
||||
| TMCJPEG_814F043C | output tile product cast to unsigned | 57.682865 | 57.682865 | 391/391 instructions; 383 differences |
|
||||
| TMCJPEG_814F043C | prefix increment for row and column counters | 57.682865 | 57.682865 | 391/391 instructions; 383 differences |
|
||||
| TMCJPEG_814F11C4 | unique converter locals at function scope | 57.682865 | 57.682865 | 391/391 instructions; 383 differences |
|
||||
| TMCJPEG_814F11C4 | sample loads before pointer increments | 57.682865 | 57.682865 | 391/391 instructions; 383 differences |
|
||||
| TMCJPEG_814F11C4 | explicit addition for pixel counter updates | 57.682865 | 57.682865 | 391/391 instructions; 383 differences |
|
||||
| TMCJPEG_814F11C4 | tile column multiply replaces tile shift | 57.682865 | 57.682865 | 391/391 instructions; 383 differences |
|
||||
| TMCJPEG_814F11C4 | row traversal uses exact sibling row variable | 57.682865 | 57.682865 | 391/391 instructions; 383 differences |
|
||||
| TMCJPEG_814F11C4 | output tile product cast to unsigned | 57.682865 | 57.682865 | 391/391 instructions; 383 differences |
|
||||
| TMCJPEG_814F11C4 | prefix increment for row and column counters | 57.682865 | 57.682865 | 391/391 instructions; 383 differences |
|
||||
| TMCJPEG_814F2B50 | unique converter locals at function scope | 55.795338 | 55.795338 | 386/386 instructions; 382 differences |
|
||||
| TMCJPEG_814F2B50 | sample loads before pointer increments | 55.795338 | 55.795338 | 386/386 instructions; 382 differences |
|
||||
| TMCJPEG_814F2B50 | explicit addition for pixel counter updates | 55.795338 | 55.795338 | 386/386 instructions; 382 differences |
|
||||
| TMCJPEG_814F2B50 | tile column multiply replaces tile shift | 55.795338 | 55.795338 | 386/386 instructions; 382 differences |
|
||||
| TMCJPEG_814F2B50 | row traversal uses exact sibling row variable | 55.795338 | 55.795338 | 386/386 instructions; 382 differences |
|
||||
| TMCJPEG_814F2B50 | output tile product cast to unsigned | 55.795338 | 55.795338 | 386/386 instructions; 382 differences |
|
||||
| TMCJPEG_814F2B50 | prefix increment for row and column counters | 55.795338 | 55.795338 | 386/386 instructions; 382 differences |
|
||||
| TMCJPEG_814EFEAC | unique converter locals at function scope | 53.101124 | 53.101124 | 338/356 instructions; 356 differences |
|
||||
| TMCJPEG_814EFEAC | sample loads before pointer increments | 53.101124 | 53.101124 | 338/356 instructions; 356 differences |
|
||||
| TMCJPEG_814EFEAC | explicit addition for pixel counter updates | 53.101124 | 53.101124 | 338/356 instructions; 356 differences |
|
||||
| TMCJPEG_814EFEAC | tile column multiply replaces tile shift | 53.101124 | 53.101124 | 338/356 instructions; 356 differences |
|
||||
| TMCJPEG_814EFEAC | row traversal uses exact sibling row variable | 53.101124 | 53.073032 | 338/356 instructions; 356 differences |
|
||||
| TMCJPEG_814EFEAC | output tile product cast to unsigned | 53.101124 | 53.101124 | 338/356 instructions; 356 differences |
|
||||
| TMCJPEG_814EFEAC | prefix increment for row and column counters | 53.101124 | 53.101124 | 338/356 instructions; 356 differences |
|
||||
| TMCJPEG_814F2570 | unique converter locals at function scope | 52.587765 | 52.587765 | 376/376 instructions; 373 differences |
|
||||
| TMCJPEG_814F2570 | sample loads before pointer increments | 52.587765 | 52.587765 | 376/376 instructions; 373 differences |
|
||||
| TMCJPEG_814F2570 | explicit addition for pixel counter updates | 52.587765 | 52.587765 | 376/376 instructions; 373 differences |
|
||||
| TMCJPEG_814F2570 | tile column multiply replaces tile shift | 52.587765 | 52.587765 | 376/376 instructions; 373 differences |
|
||||
| TMCJPEG_814F2570 | row traversal uses exact sibling row variable | 52.587765 | 52.587765 | 376/376 instructions; 373 differences |
|
||||
| TMCJPEG_814F2570 | output tile product cast to unsigned | 52.587765 | 52.587765 | 376/376 instructions; 373 differences |
|
||||
| TMCJPEG_814F2570 | prefix increment for row and column counters | 52.587765 | 52.587765 | 376/376 instructions; 373 differences |
|
||||
| TMCJPEG_814F1F48 | unique converter locals at function scope | 52.167510 | 52.167510 | 400/394 instructions; 395 differences |
|
||||
| TMCJPEG_814F1F48 | sample loads before pointer increments | 52.167510 | 52.167510 | 400/394 instructions; 395 differences |
|
||||
| TMCJPEG_814F1F48 | explicit addition for pixel counter updates | 52.167510 | 52.167510 | 400/394 instructions; 395 differences |
|
||||
| TMCJPEG_814F1F48 | tile column multiply replaces tile shift | 52.167510 | 52.167510 | 400/394 instructions; 395 differences |
|
||||
| TMCJPEG_814F1F48 | row traversal uses exact sibling row variable | 52.167510 | 52.167510 | 400/394 instructions; 395 differences |
|
||||
| TMCJPEG_814F1F48 | output tile product cast to unsigned | 52.167510 | 52.167510 | 400/394 instructions; 395 differences |
|
||||
| TMCJPEG_814F1F48 | prefix increment for row and column counters | 52.167510 | 52.167510 | 400/394 instructions; 395 differences |
|
||||
| TMCJPEG_814F0A58 | sample loads before pointer increments | 45.195790 | 45.195790 | 477/475 instructions; 475 differences |
|
||||
| TMCJPEG_814F0A58 | explicit addition for pixel counter updates | 45.195790 | 45.195790 | 477/475 instructions; 475 differences |
|
||||
| TMCJPEG_814F0A58 | tile column multiply replaces tile shift | 45.195790 | 45.195790 | 477/475 instructions; 475 differences |
|
||||
| TMCJPEG_814F0A58 | row traversal uses exact sibling row variable | 45.195790 | 42.867367 | 477/475 instructions; 475 differences |
|
||||
| TMCJPEG_814F0A58 | output tile product cast to unsigned | 45.195790 | 45.195790 | 477/475 instructions; 475 differences |
|
||||
| TMCJPEG_814F0A58 | prefix increment for row and column counters | 45.195790 | 45.195790 | 477/475 instructions; 475 differences |
|
||||
| TMCJPEG_814F17E0 | sample loads before pointer increments | 44.407173 | 44.407173 | 475/474 instructions; 472 differences |
|
||||
| TMCJPEG_814F17E0 | explicit addition for pixel counter updates | 44.407173 | 44.407173 | 475/474 instructions; 472 differences |
|
||||
| TMCJPEG_814F17E0 | tile column multiply replaces tile shift | 44.407173 | 44.407173 | 475/474 instructions; 472 differences |
|
||||
| TMCJPEG_814F17E0 | row traversal uses exact sibling row variable | 44.407173 | 44.407173 | 475/474 instructions; 472 differences |
|
||||
| TMCJPEG_814F17E0 | output tile product cast to unsigned | 44.407173 | 44.407173 | 475/474 instructions; 472 differences |
|
||||
| TMCJPEG_814F17E0 | prefix increment for row and column counters | 44.407173 | 44.407173 | 475/474 instructions; 472 differences |
|
||||
| TMCJPEGDEC_decode_iquant | slow DC result has separate lifetime | 85.293480 | 85.384056 | 280/276 instructions; 243 differences |
|
||||
| TMCJPEGDEC_decode_iquant | DC sign extension and AC sign extension use mask temporary | 85.293480 | 86.634056 | 278/276 instructions; 225 differences |
|
||||
| TMCJPEGDEC_decode_iquant | scoped AC entry following scoped slow DC result | 85.293480 | 85.398550 | 280/276 instructions; 240 differences |
|
||||
| TMCJPEGDEC_decode_iquant | slow DC load errors flow through DC end | 85.293480 | 85.181160 | 279/276 instructions; 250 differences |
|
||||
| TMCJPEGDEC_decode_iquant | DC and AC amplitudes subtract precomputed masks | 85.293480 | 86.739130 | 278/276 instructions; 219 differences |
|
||||
| TMCJPEGDEC_decode_iquant | DC load and symbol errors share final assignment | 86.739130 | 87.576090 | 277/276 instructions; 256 differences |
|
||||
| TMCJPEGDEC_decode_iquant | DC final assignment then signed result check | 86.739130 | 86.648550 | 278/276 instructions; 221 differences |
|
||||
| TMCJPEGDEC_decode_iquant | Huffman code subtraction before symbol offset | 86.739130 | 87.576090 | 277/276 instructions; 256 differences |
|
||||
| TMCJPEGDEC_decode_iquant | DC bit buffer and position load order | 86.739130 | 87.576090 | 277/276 instructions; 256 differences |
|
||||
| TMCJPEGDEC_decode_iquant | amplitude bit position stored after extraction | 86.739130 | 87.123190 | 277/276 instructions; 256 differences |
|
||||
| TMCJPEGDEC_decode_iquant | AC entry declared last among outer locals | 87.576090 | 87.561590 | 277/276 instructions; 257 differences |
|
||||
| TMCJPEGDEC_decode_iquant | DC entry outer lifetime with AC declaration last | 87.576090 | 87.568840 | 277/276 instructions; 256 differences |
|
||||
| TMCJPEGDEC_IdctBlock_Lumi | first IDCT butterfly translated in target block order | 66.618675 | 65.120620 | 257/257 instructions; 215 differences |
|
||||
| TMCJPEGDEC_IdctBlock_Lumi | last odd rotation scheduled between target stores | 66.618675 | 65.120620 | 257/257 instructions; 215 differences |
|
||||
| TMCJPEGDEC_IdctBlock_Lumi | outer odd sum added after corrected inner sum | 66.618675 | 65.120620 | 257/257 instructions; 215 differences |
|
||||
| TMCJPEGDEC_IdctBlock_Lumi | sum and difference stores grouped by output pair | 66.618675 | 64.443580 | 257/257 instructions; 216 differences |
|
||||
| TMCJPEGDEC_IdctBlock_Lumi | temporary array walk with remaining row count | 66.618675 | 64.354090 | 257/257 instructions; 221 differences |
|
||||
|
||||
Scalar block work: IDCT Lumi first butterfly was translated in target address order, then tried delayed odd rotation, alternate sum grouping, store order, and remaining-row loop. All five builds retained 257 instructions; none exceeded baseline, so all were reverted. Col retains 480 versus target 454 after six separately built arithmetic, store-loop and coefficient-load changes. IQ DC/AC lifetimes, common error path, Huffman symbol load and amplitude-mask subtraction reduced 282 to 277 instructions, improving 85.11232 -> 87.57609. No newly exact function has been obtained in this continuation.
|
||||
|
||||
## Continuation final remaining functions
|
||||
|
||||
Every remaining function has at least five logged source-level attempts across the two continued passes. Identical compiler output is reported without claiming a gain. Instruction difference counts are positional; one insertion shifts later comparisons. The two already exact CR1 grayscale functions still trigger the known ctxdiff branch normalization discrepancy.
|
||||
|
||||
|
||||
libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8
|
||||
|
||||
TMCJPEGDEC_set_converterY8U8V8: 92.739800%; buffer base address folded; store scheduling and register allocation differ.
|
||||
TMCJPEG_814EFEAC: 53.101124%; tile address loops, unrolling and register allocation differ.
|
||||
TMCJPEG_814F043C: 57.682865%; tile address loops, unrolling and register allocation differ.
|
||||
TMCJPEG_814F0A58: 45.195790%; tile address loops, unrolling and register allocation differ.
|
||||
TMCJPEG_814F11C4: 57.682865%; tile address loops, unrolling and register allocation differ.
|
||||
TMCJPEG_814F17E0: 44.407173%; tile address loops, unrolling and register allocation differ.
|
||||
TMCJPEG_814F1F48: 52.167510%; tile address loops, unrolling and register allocation differ.
|
||||
TMCJPEG_814F2570: 52.587765%; tile address loops, unrolling and register allocation differ.
|
||||
TMCJPEG_814F2B50: 55.795338%; tile address loops, unrolling and register allocation differ.
|
||||
|
||||
libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565
|
||||
|
||||
TMCJPEGDEC_set_converterRGB565: 93.864710%; buffer base address folded; store scheduling and register allocation differ.
|
||||
TMCJPEGDEC_converterYUV411toRGB565: 74.239630%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV411toRGB565edge: 84.292450%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV422toRGB565: 78.117645%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV422toRGB565edge: 82.803740%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV420toRGB565: 77.375885%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV420toRGB565edge: 83.991230%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV211toRGB565: 83.816330%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV211toRGB565edge: 86.788994%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV444toRGB565: 89.450550%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV444toRGB565edge: 88.942310%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
|
||||
libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8
|
||||
|
||||
TMCJPEGDEC_set_converterRGBA8: 93.864710%; buffer base address folded; store scheduling and register allocation differ.
|
||||
TMCJPEGDEC_converterYUV411toRGBA8: 69.595040%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV411toRGBA8edge: 71.901790%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV422toRGBA8: 69.060814%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV422toRGBA8edge: 70.424780%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV420toRGBA8: 71.065360%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV420toRGBA8edge: 74.691666%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV211toRGBA8: 71.048080%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV211toRGBA8edge: 75.921740%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV444toRGBA8: 76.257730%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
TMCJPEGDEC_converterYUV444toRGBA8edge: 80.981820%; chroma arithmetic, saturation branches and register scheduling differ.
|
||||
|
||||
libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var
|
||||
|
||||
TMCJPEGDEC_IdctBlock_Lumi: 66.618675%; IDCT butterflies, sparse path and register scheduling differ.
|
||||
TMCJPEGDEC_IdctBlock_Col: 69.112335%; IDCT butterflies, sparse path and register scheduling differ.
|
||||
|
||||
libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32
|
||||
|
||||
TMCJPEGDEC_decode_iquant: 87.576090%; AC Huffman loop scheduling and register allocation; 277/276 instructions.
|
||||
223
tools/decomp-assist/jpeg-round2-gates.md
Normal file
223
tools/decomp-assist/jpeg-round2-gates.md
Normal file
@@ -0,0 +1,223 @@
|
||||
# JPEG continuation gates
|
||||
|
||||
## Converter improvements
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 2192/15948 data None/None functions 4/13 fuzzy 60.5393 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] instruction-exact functions: 2/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] section .text size 15948 match 60.539253
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.7398
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814EFEAC 53.101124
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F043C 57.682865
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F0A58 45.19579
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F11C4 57.682865
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F17E0 44.407173
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F1F48 52.16751
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F2570 52.587765
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F2B50 55.795338
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 2192/15948 data None functions 4 fuzzy 58.0594
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] objdiff: code 612/6184 data None/None functions 2/13 fuzzy 84.9515 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] instruction-exact functions: 2/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] section .text size 6184 match 84.951485
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_set_converterRGB565 93.86471
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV411toRGB565 74.23963
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV411toRGB565edge 84.29245
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV422toRGB565 78.117645
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV422toRGB565edge 82.80374
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV420toRGB565 77.375885
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV420toRGB565edge 83.99123
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV211toRGB565 83.81633
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV211toRGB565edge 86.788994
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV444toRGB565 89.45055
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV444toRGB565edge 88.94231
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] baseline: code 612/6184 data None functions 2 fuzzy 83.6197
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] objdiff: code 660/6596 data None/None functions 2/13 fuzzy 77.4748 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] instruction-exact functions: 2/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] section .text size 6596 match 77.47483
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_set_converterRGBA8 93.86471
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV411toRGBA8 69.46281
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV411toRGBA8edge 71.90179
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV422toRGBA8 69.060814
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV422toRGBA8edge 70.42478
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV420toRGBA8 71.06536
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV420toRGBA8edge 74.691666
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV211toRGBA8 71.04808
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV211toRGBA8edge 75.92174
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV444toRGBA8 76.21649
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV444toRGBA8edge 80.98182
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] baseline: code 660/6596 data None functions 2 fuzzy 76.8957
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 68.2110 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 68.21097
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 66.618675
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 69.112335
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 68.2110
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] objdiff: code None/1104 data None/None functions 0/1 fuzzy 85.1123 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] section .text size 1104 match 85.11232
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] below 100: TMCJPEGDEC_decode_iquant 85.11232
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] baseline: code None/1104 data None functions 0 fuzzy 85.1123
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.58613 -> 84.58613
|
||||
global fuzzy_match_percent: 97.98290 -> 98.00015
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32545
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
## Fresh baseline quick gate
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 2192/15948 data None/None functions 4/13 fuzzy 58.0594 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] instruction-exact functions: 2/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] section .text size 15948 match 58.059444
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.54082
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814EFEAC 53.101124
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F043C 52.51151
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F0A58 43.55579
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F11C4 52.51151
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F17E0 41.890297
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F1F48 49.791878
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F2570 47.10372
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F2B50 53.634716
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 2192/15948 data None functions 4 fuzzy 58.0594
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] objdiff: code 612/6184 data None/None functions 2/13 fuzzy 83.6197 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] instruction-exact functions: 2/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] section .text size 6184 match 83.61967
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_set_converterRGB565 93.86471
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV411toRGB565 74.23963
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV411toRGB565edge 82.85849
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV422toRGB565 78.117645
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV422toRGB565edge 82.66355
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV420toRGB565 77.375885
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV420toRGB565edge 83.72807
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV211toRGB565 75.33673
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV211toRGB565edge 79.16514
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV444toRGB565 88.24176
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV444toRGB565edge 88.07692
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] baseline: code 612/6184 data None functions 2 fuzzy 83.6197
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] objdiff: code 660/6596 data None/None functions 2/13 fuzzy 76.8957 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] instruction-exact functions: 2/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] section .text size 6596 match 76.89569
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_set_converterRGBA8 93.86471
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV411toRGBA8 69.44215
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV411toRGBA8edge 71.90179
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV422toRGBA8 67.77027
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV422toRGBA8edge 70.42478
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV420toRGBA8 71.03268
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV420toRGBA8edge 74.60833
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV211toRGBA8 71.04808
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV211toRGBA8edge 75.92174
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV444toRGBA8 72.38145
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV444toRGBA8edge 77.6
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] baseline: code 660/6596 data None functions 2 fuzzy 76.8957
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 68.2110 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 68.21097
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 66.618675
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 69.112335
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 68.2110
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] objdiff: code None/1104 data None/None functions 0/1 fuzzy 85.1123 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] section .text size 1104 match 85.11232
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] below 100: TMCJPEGDEC_decode_iquant 85.11232
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] baseline: code None/1104 data None functions 0 fuzzy 85.1123
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.58613 -> 84.58613
|
||||
global fuzzy_match_percent: 97.98290 -> 97.98290
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32545
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
## Final full clean gate
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 2192/15948 data None/None functions 4/13 fuzzy 60.5393 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] instruction-exact functions: 2/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] section .text size 15948 match 60.539253
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEGDEC_set_converterY8U8V8 92.7398
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814EFEAC 53.101124
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F043C 57.682865
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F0A58 45.19579
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F11C4 57.682865
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F17E0 44.407173
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F1F48 52.16751
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F2570 52.587765
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] below 100: TMCJPEG_814F2B50 55.795338
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 2192/15948 data None functions 4 fuzzy 58.0594
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] objdiff: code 612/6184 data None/None functions 2/13 fuzzy 84.9515 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] instruction-exact functions: 2/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] section .text size 6184 match 84.951485
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_set_converterRGB565 93.86471
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV411toRGB565 74.23963
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV411toRGB565edge 84.29245
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV422toRGB565 78.117645
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV422toRGB565edge 82.80374
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV420toRGB565 77.375885
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV420toRGB565edge 83.99123
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV211toRGB565 83.81633
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV211toRGB565edge 86.788994
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV444toRGB565 89.45055
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV444toRGB565edge 88.94231
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] baseline: code 612/6184 data None functions 2 fuzzy 83.6197
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] objdiff: code 660/6596 data None/None functions 2/13 fuzzy 77.4967 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] instruction-exact functions: 2/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] section .text size 6596 match 77.496666
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_set_converterRGBA8 93.86471
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV411toRGBA8 69.59504
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV411toRGBA8edge 71.90179
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV422toRGBA8 69.060814
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV422toRGBA8edge 70.42478
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV420toRGBA8 71.06536
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV420toRGBA8edge 74.691666
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV211toRGBA8 71.04808
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV211toRGBA8edge 75.92174
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV444toRGBA8 76.25773
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV444toRGBA8edge 80.98182
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] baseline: code 660/6596 data None functions 2 fuzzy 76.8957
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] objdiff: code None/2844 data None/None functions 0/2 fuzzy 68.2110 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] instruction-exact functions: 0/2
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] section .text size 2844 match 68.21097
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Lumi 66.618675
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] below 100: TMCJPEGDEC_IdctBlock_Col 69.112335
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/buffer/idct_block_var] baseline: code None/2844 data None functions 0 fuzzy 68.2110
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] objdiff: code None/1104 data None/None functions 0/1 fuzzy 87.5761 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] instruction-exact functions: 0/1
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] section .text size 1104 match 87.57609
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] below 100: TMCJPEGDEC_decode_iquant 87.57609
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/b65/iqdec_b65_frv32] baseline: code None/1104 data None functions 0 fuzzy 85.1123
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.58613 -> 84.58613
|
||||
global fuzzy_match_percent: 97.98290 -> 98.00108
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32545
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
165
tools/decomp-assist/sol-high-attempts.md
Normal file
165
tools/decomp-assist/sol-high-attempts.md
Normal file
@@ -0,0 +1,165 @@
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 1 reconstruct rename allocation rollback and LFN writes from all assembly blocks | BUILD FAILED: dir.d build/43U/src/libs/RVL_SDK/src/fa/pf_dir.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RVL_SDK\src\fa\pf_dir.c
|
||||
# -------------------------------------
|
||||
# 782: if (PFSTR_StrNCmp((PFDIR_STR*)new_path, ":", 1, 1, 1) == 0 &&
|
||||
# Error: ^
|
||||
# (10209) illegal implicit conversion from 'char[2]' to
|
||||
# 'const signed char *'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 1 completed control flow typed cache and literal argument fixes | objdiff 90.192000% | insns 584/625 | positional diffs 614 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 2 inline current directory traversal with typed volume state | objdiff 96.568000% | insns 626/625 | positional diffs 619 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 3 reorder real locals to match target stack lifetimes | objdiff 96.568000% | insns 626/625 | positional diffs 619 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 1 reconstruct all allocation root cluster dot entries and LFN assembly blocks | BUILD FAILED: -------------------------------------
|
||||
# 803: pf_u8 attributes, pf_u32 start, pf_u32* found);
|
||||
# Error: ^
|
||||
# (10563) identifier 'PFENT_ITER_FindEntry(...)' redeclared as 'long (struct
|
||||
# PF_ENT_ITER *, struct PF_DIR_ENT *, struct PFDIR_STR *, unsigned char,
|
||||
# unsigned long, unsigned long *)'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 1 complete body with original SDK function declarations | objdiff 92.156586% | insns 550/562 | positional diffs 551 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 2 inline dot directory name stores instead of out of line calls | objdiff 96.887900% | insns 571/562 | positional diffs 559 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 3 explicit sector countdown and separate LFN loop lifetimes | objdiff 96.887900% | insns 571/562 | positional diffs 559 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 1 reconstruct move ancestry checks rollback LFN and dot dot relocation from assembly | objdiff 96.228210% | insns 636/631 | positional diffs 590 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 4 deletion buffer initializer and signed length checks | objdiff 97.376000% | insns 626/625 | positional diffs 614 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 2 use semantic deletion byte buffer and signed unicode length checks | objdiff 96.980980% | insns 636/631 | positional diffs 563 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 3 split open file index from LFN countdown temporary | objdiff 96.973060% | insns 636/631 | positional diffs 563 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rmdir | 1 restore original iterator after empty check and preserve cluster before removal | objdiff 99.975250% | insns 202/202 | positional diffs 5 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rmdir | 2 express free chain error normalization as ternary | objdiff 99.975250% | insns 202/202 | positional diffs 5 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rmdir | 3 explicit free chain success return | objdiff 99.975250% | insns 202/202 | positional diffs 5 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsexec | 1 rebuild direct and searched entry branches from original control flow | objdiff 98.178570% | insns 279/280 | positional diffs 267 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rmdir | 4 order live hint before saved hint to reproduce stack offsets | objdiff 100.000000% | insns 202/202 | positional diffs 0 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsexec | 2 order string locals and express accepted flag branch positively | objdiff 98.142860% | insns 279/280 | positional diffs 267 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsexec | 3 preserve result temporary through final dispatch branch | objdiff 98.142860% | insns 279/280 | positional diffs 267 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 1 increment free candidate before index | objdiff 99.710144% | insns 69/69 | positional diffs 2 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 2 update candidate in for increment | objdiff 99.681160% | insns 69/69 | positional diffs 2 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 3 advance candidate by indexed next SDD | objdiff 99.536230% | insns 69/69 | positional diffs 3 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsexec_remove | 1 let empty-check output initialize is_empty | objdiff 100.000000% | insns 176/176 | positional diffs 0 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsexec_remove | 2 reuse entry attribute temporary for both tests | objdiff 100.000000% | insns 176/176 | positional diffs 0 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsexec_remove | 3 narrow empty flag lifetime to directory branch | objdiff 100.000000% | insns 176/176 | positional diffs 0 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsnext | 1 exit scan after a real entry is found | objdiff 100.000000% | insns 193/193 | positional diffs 0 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsnext | 2 express single lookup as guarded search | objdiff 94.948190% | insns 192/193 | positional diffs 164 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsnext | 3 use positive entry result branch | objdiff 100.000000% | insns 193/193 | positional diffs 0 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 4 move index increment to loop update | objdiff 99.710144% | insns 69/69 | positional diffs 2 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 5 candidate uses next indexed descriptor | objdiff 95.057970% | insns 72/69 | positional diffs 66 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 6 scalar descriptor offset drives lookup | objdiff 88.753624% | insns 62/69 | positional diffs 67 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsexec | 4 put accepted flag paths inside branch and share invalid return at tail | objdiff 98.803570% | insns 279/280 | positional diffs 38 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsexec | 5 put dispatch result after invalid flag return and restore pattern order | objdiff 100.000000% | insns 280/280 | positional diffs 0 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 1 reconstruct header validation read failure and repair deletion assembly branches | objdiff 98.490560% | insns 212/212 | positional diffs 4 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24UpdateDlTask | 1 reconstruct id rejection access-time validation reset and preincrement retry check from asm | objdiff 90.992096% | insns 247/253 | positional diffs 250 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 2 signed subtask count and separate task pointer assignment | objdiff 98.773580% | insns 212/212 | positional diffs 3 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 3 separate list header and repair locals to test prologue scheduling | objdiff 98.773580% | insns 212/212 | positional diffs 3 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 1 rederive URL validation before retry and full-list allocation loop with existing-task update | objdiff 93.578550% | insns 397/401 | positional diffs 328 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 2 separate existing task result from free slot branch | objdiff 93.578550% | insns 397/401 | positional diffs 328 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 3 positive free-slot branch with explicit retry label | objdiff 93.578550% | insns 397/401 | positional diffs 328 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24UpdateDlTask | 2 distinct retry-count local retained across disabled branch | objdiff 90.992096% | insns 247/253 | positional diffs 250 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24UpdateDlTask | 3 explicit nested result normalization after access time update | objdiff 90.557310% | insns 246/253 | positional diffs 250 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 1 restore independent cached header reads and next-time validator from assembly | objdiff 97.552444% | insns 146/143 | positional diffs 140 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 2 scope interval and next time at scheduling call | objdiff 97.552444% | insns 146/143 | positional diffs 140 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 3 preserve scheduling helper result in caller | objdiff 97.552444% | insns 146/143 | positional diffs 140 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTaskEx | 1 restore strict selected and best candidate comparisons from assembly | objdiff 90.103450% | insns 143/145 | positional diffs 92 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTaskEx | 2 materialize selected comparison with ternary | objdiff 90.103450% | insns 143/145 | positional diffs 92 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTaskEx | 3 compare updated sort flag for sentinel each pass | objdiff 90.689650% | insns 144/145 | positional diffs 92 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 1 return occupied task slots instead of empty entries | objdiff 81.113920% | insns 74/79 | positional diffs 36 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 2 move slot advance into for loop increment | objdiff 83.962030% | insns 74/79 | positional diffs 52 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 3 inline combined slot validity condition | objdiff 83.772150% | insns 72/79 | positional diffs 48 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24PurgeOldestDlTask | 1 inline original read and ordinary delete validator allowing unassigned ids | objdiff 84.312500% | insns 167/176 | positional diffs 86 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24PurgeOldestDlTask | 2 delay done-to-failed translation until iteration exit | objdiff 83.744316% | insns 168/176 | positional diffs 147 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24PurgeOldestDlTask | 3 scope selected task id at read boundary | objdiff 84.312500% | insns 167/176 | positional diffs 86 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ManageDlTaskListForMenu | 1 use max-count accessor and original inline read and remove control flow | objdiff 94.335526% | insns 149/152 | positional diffs 124 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ManageDlTaskListForMenu | 2 hold task pointer across read and deletion | objdiff 93.453950% | insns 151/152 | positional diffs 137 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ManageDlTaskListForMenu | 3 store removal result before return | objdiff 94.335526% | insns 149/152 | positional diffs 124 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlUrl | 1 factor URL parsing result before setter validation | objdiff 100.000000% | insns 109/109 | positional diffs 0 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlUrl | 2 retain separate parse result local | objdiff 100.000000% | insns 109/109 | positional diffs 0 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlUrl | 3 separate lax check from secure-download URL check | objdiff 100.000000% | insns 109/109 | positional diffs 0 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 1 reuse inline reader at public entry point | objdiff 99.728264% | insns 92/92 | positional diffs 5 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 2 preserve destination pointer in read phase | objdiff 99.728264% | insns 92/92 | positional diffs 5 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 3 load task id only after file open | objdiff 99.728264% | insns 92/92 | positional diffs 5 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlFlags | 1 keep explicit nonlegacy task type cases | objdiff 100.000000% | insns 91/91 | positional diffs 0 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlFlags | 2 use enum temporary for legacy flag switch | objdiff 98.901100% | insns 90/91 | positional diffs 19 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlFlags | 3 separate legacy task flag result from setter | objdiff 98.901100% | insns 90/91 | positional diffs 19 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24InitDlTask | 1 materialize content type boolean and reuse original write validator | objdiff 96.541664% | insns 143/144 | positional diffs 103 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24InitDlTask | 2 order default task stores around content type comparison | objdiff 96.187500% | insns 143/144 | positional diffs 103 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24InitDlTask | 3 express final validation result as sign test | objdiff 96.541664% | insns 143/144 | positional diffs 103 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24DeleteDlTask | 1 rebuild admin exemption and nested remove validation | objdiff 98.047620% | insns 107/105 | positional diffs 52 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24DeleteDlTask | 2 branch admin exemption positively | objdiff 98.000000% | insns 107/105 | positional diffs 96 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24DeleteDlTask | 3 retain ordinary remove result in caller | objdiff 98.047620% | insns 107/105 | positional diffs 52 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 1 shorten scheduled id lifetime after validation | objdiff 99.897960% | insns 147/147 | positional diffs 3 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 2 retain local task pointer only until timestamp division | objdiff 99.897960% | insns 147/147 | positional diffs 3 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 3 move time division into scheduler helper | objdiff 80.680275% | insns 175/147 | positional diffs 58 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 1 give reload result a separate lifetime after extension | objdiff 99.854010% | insns 137/137 | positional diffs 4 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 2 express close-error preference in ternary | objdiff 99.854010% | insns 137/137 | positional diffs 4 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 3 return close failure before reloaded success | objdiff 99.854010% | insns 137/137 | positional diffs 4 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 1 separate initialized header pointer from cached accessor | objdiff 99.624060% | insns 133/133 | positional diffs 10 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 2 narrow initialized header to setup scope | objdiff 99.624060% | insns 133/133 | positional diffs 10 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 3 retain task count as loop bound temporary | objdiff 99.624060% | insns 133/133 | positional diffs 10 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iLoadDlHeader | 1 finish seek and read operation before status check | objdiff 100.000000% | insns 100/100 | positional diffs 0 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iLoadDlHeader | 2 use explicit read-result normalization | objdiff 94.250000% | insns 101/100 | positional diffs 81 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iLoadDlHeader | 3 scoped header read with separate status local | objdiff 100.000000% | insns 100/100 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | updateInput__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFRQ39textinput5input10HKBManager | 1 isolate the real 12-byte hardware KeySet ABI while preserving all existing header guard sides | objdiff 76.839620% | insns 201/212 | positional diffs 201 | regressions 0
|
||||
src/keyboard/tiCellPhone | updateInput__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFRQ39textinput5input10HKBManager | 2 reconstruct both switch loops with a shared iterator and pane-name release event | BUILD FAILED: ^
|
||||
# (10184) return value expected
|
||||
### mwcceppc.exe Compiler:
|
||||
# 1073: bool LayoutByNW4R::updateInput(input::HKBManager& hkbManager) {
|
||||
# Error: ^
|
||||
# (10333) object
|
||||
# 'textinput::keyboard::cellphonetype::LayoutByNW4R::updateInput(textinput::i
|
||||
# nput::HKBManager &)' redefined
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
src/keyboard/tiCellPhone | updateInput__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFRQ39textinput5input10HKBManager | 2 reconstruct both switch loops with a shared iterator and pane-name release event | objdiff 99.245285% | insns 211/212 | positional diffs 108 | regressions 0
|
||||
src/keyboard/tiCellPhone | updateInput__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFRQ39textinput5input10HKBManager | 3 retain wide character return until selected character-pane search | objdiff 100.000000% | insns 212/212 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 1 reconstruct all key cycling prediction numeric-space and confirmation blocks with typed ConfirmInput | objdiff 94.837240% | insns 682/682 | positional diffs 539 | regressions 0
|
||||
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 2 use inline pane lookup and preserve Japanese mode branch before uppercase fallback | objdiff 96.895900% | insns 681/682 | positional diffs 494 | regressions 0
|
||||
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 3 give numeric-pane lookup a reference lifetime instead of retaining pointer | objdiff 96.895900% | insns 681/682 | positional diffs 494 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 1 unroll texture acquisition and restore target final setLanguage dispatch | objdiff 81.465460% | insns 331/333 | positional diffs 303 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 2 perform initialization inside the base pane constructor and delay descriptor lifetime | objdiff 90.981980% | insns 341/333 | positional diffs 320 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 3 retain the allocator result directly through the null path | objdiff 92.228226% | insns 337/333 | positional diffs 315 | regressions 0
|
||||
src/keyboard/tiCellPhone | onTiEvent__Q49textinput8keyboard13cellphonetype12EventHandlerFPQ39textinput3gui13PaneComponentUlPQ49textinput11nw4rmanager14TiEventHandler5Input | 1 derive event masks, animation dispatch, normal-key search and independent repeat timeout from target blocks | objdiff 100.000000% | insns 284/284 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | onTiEvent__Q49textinput8keyboard13cellphonetype12EventHandlerFPQ39textinput3gui13PaneComponentUlPQ49textinput11nw4rmanager14TiEventHandler5Input | 2 use signed event switch to retain the target comparison tree | objdiff 100.000000% | insns 284/284 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | onTiEvent__Q49textinput8keyboard13cellphonetype12EventHandlerFPQ39textinput3gui13PaneComponentUlPQ49textinput11nw4rmanager14TiEventHandler5Input | 3 leave event structure alignment to its natural padding | objdiff 100.000000% | insns 284/284 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype4BaseFv | 1 initialize a boolean command value in its owning branch | objdiff 95.825390% | insns 63/63 | positional diffs 6 | regressions 0
|
||||
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype4BaseFv | 2 initialize a one-element boolean array using normal aggregate initialization | objdiff 99.936510% | insns 63/63 | positional diffs 4 | regressions 0
|
||||
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype4BaseFv | 3 initialize a typed active-mode command structure | objdiff 99.936510% | insns 63/63 | positional diffs 4 | regressions 0
|
||||
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype4BaseFQ59textinput8keyboard13cellphonetype4Base9InputMode | 1 initialize a boolean command value in its owning branch | objdiff 96.242860% | insns 70/70 | positional diffs 6 | regressions 0
|
||||
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype4BaseFQ59textinput8keyboard13cellphonetype4Base9InputMode | 2 initialize a one-element boolean array using normal aggregate initialization | objdiff 99.942856% | insns 70/70 | positional diffs 4 | regressions 0
|
||||
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype4BaseFQ59textinput8keyboard13cellphonetype4Base9InputMode | 3 initialize a typed active-mode command structure | objdiff 99.942856% | insns 70/70 | positional diffs 4 | regressions 0
|
||||
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 1 initialize a boolean command value in its owning branch | objdiff 96.000000% | insns 65/65 | positional diffs 4 | regressions 0
|
||||
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 2 initialize a one-element boolean array using normal aggregate initialization | objdiff 100.000000% | insns 65/65 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 3 initialize a typed active-mode command structure | objdiff 100.000000% | insns 65/65 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype4BaseFv | 4 scope the inactive command alongside the active command to restore stack lifetimes | objdiff 99.936510% | insns 63/63 | positional diffs 4 | regressions 0
|
||||
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype4BaseFQ59textinput8keyboard13cellphonetype4Base9InputMode | 4 scope the inactive command alongside the active command to restore stack lifetimes | objdiff 99.942856% | insns 70/70 | positional diffs 4 | regressions 0
|
||||
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFQ59textinput8keyboard13cellphonetype4Base9InputMode | 1 derive signed mode cases and condition order, aggregate active flag and restore virtual pane initialization | objdiff 90.062805% | insns 216/207 | positional diffs 189 | regressions 0
|
||||
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFQ59textinput8keyboard13cellphonetype4Base9InputMode | 2 use the passed mode as the remapped key-set index | objdiff 90.062805% | insns 216/207 | positional diffs 189 | regressions 0
|
||||
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFQ59textinput8keyboard13cellphonetype4Base9InputMode | 3 scope and type the inactive command value | objdiff 90.043480% | insns 216/207 | positional diffs 189 | regressions 0
|
||||
src/keyboard/tiCellPhone | changeSpaceKeyTop__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFPCQ49textinput8keyboard13cellphonetype18PaneNameToCharCode | 1 correct the cell-phone-only space-data declarations to the pointer loads shown by target asm | objdiff 100.000000% | insns 52/52 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | changeSpaceKeyTop__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFPCQ49textinput8keyboard13cellphonetype18PaneNameToCharCode | 2 select the space key label before issuing one SetString call | objdiff 82.884610% | insns 47/52 | positional diffs 21 | regressions 0
|
||||
src/keyboard/tiCellPhone | changeSpaceKeyTop__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFPCQ49textinput8keyboard13cellphonetype18PaneNameToCharCode | 3 return early for Japanese input before acquiring text pane | objdiff 100.000000% | insns 52/52 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 1 re-derive Chinese and Korean prediction-button dispatch, key-set reload after visibility call and virtual FIFO initialization | objdiff 96.468285% | insns 544/536 | positional diffs 449 | regressions 0
|
||||
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 2 use a narrow index for the four toggle panes | objdiff 94.992540% | insns 545/536 | positional diffs 443 | regressions 0
|
||||
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 3 retain a typed text box and signed loop index | objdiff 96.468285% | insns 544/536 | positional diffs 449 | regressions 0
|
||||
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFUlPv | 1 give the current control-key descriptor a scoped reference | objdiff 97.850464% | insns 107/107 | positional diffs 9 | regressions 0
|
||||
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFUlPv | 2 use a conventional for loop and break for control-key search | objdiff 96.766360% | insns 107/107 | positional diffs 33 | regressions 0
|
||||
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFUlPv | 3 inline a value-returning control-key lookup | objdiff 100.000000% | insns 107/107 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | doNumericMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 1 restore the fourth pane-visibility call missing from the target control flow | objdiff 93.923080% | insns 173/169 | positional diffs 168 | regressions 0
|
||||
src/keyboard/tiCellPhone | doNumericMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 2 compute the shared hidden-state value once before updating panes | objdiff 93.923080% | insns 173/169 | positional diffs 168 | regressions 0
|
||||
src/keyboard/tiCellPhone | doNumericMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 3 return for disabled numeric mode before updating pane visibility | objdiff 93.923080% | insns 173/169 | positional diffs 168 | regressions 0
|
||||
src/keyboard/tiCellPhone | setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 1 retain typed pane-name pointers for the two sign-window controls | objdiff 71.100000% | insns 72/70 | positional diffs 70 | regressions 0
|
||||
src/keyboard/tiCellPhone | setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 2 finish the disabled sign-window branch with an early return | objdiff 87.071430% | insns 70/70 | positional diffs 21 | regressions 0
|
||||
src/keyboard/tiCellPhone | setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 3 select the active regional sign pane before dispatching visibility | objdiff 73.842860% | insns 63/70 | positional diffs 43 | regressions 0
|
||||
src/keyboard/tiCellPhone | doNumericWithDotMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 1 retain the dot key pane name across numeric-mode dispatch | objdiff 95.000000% | insns 36/35 | positional diffs 14 | regressions 0
|
||||
src/keyboard/tiCellPhone | doNumericWithDotMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 2 dispatch dot-pane visibility through the layout base pointer | objdiff 87.971430% | insns 39/35 | positional diffs 20 | regressions 0
|
||||
src/keyboard/tiCellPhone | doNumericWithDotMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 3 bind the numeric-pane descriptor at the point of use | objdiff 95.000000% | insns 36/35 | positional diffs 14 | regressions 0
|
||||
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype4BaseFv | 5 type both activation command payloads as boolean structures to preserve stack order | objdiff 100.000000% | insns 63/63 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype4BaseFQ59textinput8keyboard13cellphonetype4Base9InputMode | 5 type both activation command payloads as boolean structures to preserve stack order | objdiff 100.000000% | insns 70/70 | positional diffs 0 | regressions 0
|
||||
337
tools/decomp-assist/sol-high-partial.attempts.md
Normal file
337
tools/decomp-assist/sol-high-partial.attempts.md
Normal file
@@ -0,0 +1,337 @@
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declare interrupt state before loop index; (99.583336, 7, 96, 96, 11, '1324', '32') -> (99.270836, 12, 96, 96, 11, '1324', '32')
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declare channel copy before kpad; (99.583336, 7, 96, 96, 11, '1324', '32') -> (99.583336, 7, 96, 96, 11, '1324', '32')
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: scope loop index at for; (99.583336, 7, 96, 96, 11, '1324', '32') -> BUILD FAIL .c -o build/43U/src/libs/RVL_SDK/src/kpad && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RVL_SDK\src\kpad\KPAD.c
|
||||
# -------------------------------------
|
||||
# 197: for (u32 i = 0; i < 16; i++) {
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: reuse normalizedX for vertical blend; (99.72603, 3, 73, 73, 11, '1324', '32') -> (99.65753, 5, 73, 73, 11, '1324', '32')
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: reuse accelZ for vertical blend; (99.72603, 3, 73, 73, 11, '1324', '32') -> (99.65753, 5, 73, 73, 11, '1324', '32')
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: declare vertical blend before horizontal; (99.72603, 3, 73, 73, 11, '1324', '32') -> (99.65753, 5, 73, 73, 11, '1324', '32')
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: multiply height then coefficient on left; (96.57895, 9, 19, 19, 11, '1324', '32') -> (95.52631, 10, 19, 19, 11, '1324', '32')
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: height operand before half coefficient; (96.57895, 9, 19, 19, 11, '1324', '32') -> (96.052635, 9, 19, 19, 11, '1324', '32')
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: compute scaled before floats; (96.57895, 9, 19, 19, 11, '1324', '32') -> (95.0, 13, 19, 19, 11, '1324', '32')
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: reuse horizontal magnitude after its final read; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.10959, 11, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: reuse blend after its final read; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.65753, 5, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: compute vertical before horizontal interpolation; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.15069, 10, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: keep double expression in output and left scale coefficient; (96.57895, 9, 19, 19, 11, 1324, 32) -> (96.31579, 10, 19, 19, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: reuse height for halfHeight with left coefficient; (96.57895, 9, 19, 19, 11, 1324, 32) -> BUILD FAIL c/kpad/KPAD.c -o build/43U/src/libs/RVL_SDK/src/kpad && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RVL_SDK\src\kpad\KPAD.c
|
||||
# -------------------------------------
|
||||
# 1248: f32 x = src->x * height;
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: declare scaled after output floats with left coefficient; (96.57895, 9, 19, 19, 11, 1324, 32) -> (95.52631, 11, 19, 19, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: use signed sample loop index; (99.583336, 7, 96, 96, 11, 1324, 32) -> (99.010414, 7, 96, 96, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declare loop index after latest; (99.583336, 7, 96, 96, 11, 1324, 32) -> (98.958336, 17, 96, 96, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declare loop index after type; (99.583336, 7, 96, 96, 11, 1324, 32) -> (98.697914, 21, 96, 96, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: scope interrupt state and loop within process; (99.583336, 7, 96, 96, 11, 1324, 32) -> (99.322914, 12, 96, 96, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_button_repeat: load current before threshold and narrow next only in wrap; (95.50495, 16, 101, 101, 11, 1324, 32) -> (99.653465, 6, 101, 101, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_button_repeat: reload updated threshold inside wrap; (95.50495, 16, 101, 101, 11, 1324, 32) -> (99.653465, 6, 101, 101, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_button_repeat: load current first and scope narrowing within wrap; (95.50495, 16, 101, 101, 11, 1324, 32) -> (95.39604, 17, 101, 101, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 0; (99.72603, 3, 73, 73, 11, 1324, 32) -> (97.945206, 21, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 1; (99.72603, 3, 73, 73, 11, 1324, 32) -> (100.0, 0, 73, 73, 12, 1616, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 2; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.246574, 9, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 3; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.08219, 20, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 4; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.630135, 15, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 5; (99.72603, 3, 73, 73, 11, 1324, 32) -> (100.0, 0, 73, 73, 12, 1616, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 6; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.21918, 18, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 7; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.35616, 17, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 8; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.9726, 11, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 9; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.65753, 5, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 10; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.42466, 15, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 11; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.38356, 8, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 12; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.65753, 5, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 13; (99.72603, 3, 73, 73, 11, 1324, 32) -> (100.0, 0, 73, 73, 12, 1616, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 14; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.38356, 7, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 15; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.42466, 15, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 16; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.35616, 18, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 17; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.38356, 8, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 18; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.630135, 15, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 19; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.45206, 6, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 20; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.630135, 15, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 21; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.9726, 11, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 22; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.65753, 5, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 23; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.9726, 12, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 24; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.9726, 12, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 25; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.15069, 18, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 26; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.21918, 18, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 27; (99.72603, 3, 73, 73, 11, 1324, 32) -> (100.0, 0, 73, 73, 12, 1616, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 28; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.246574, 9, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 29; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.38356, 7, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 30; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.45206, 6, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 31; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.42466, 15, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 32; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.35616, 17, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 33; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.630135, 15, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 34; (99.72603, 3, 73, 73, 11, 1324, 32) -> (99.45206, 6, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_vertical: local declaration order 35; (99.72603, 3, 73, 73, 11, 1324, 32) -> (98.08219, 20, 73, 73, 11, 1324, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_button_repeat: independent extension temporaries; (99.653465, 6, 101, 101, 12, 1616, 32) -> BUILD FAIL DK/src/kpad/KPAD.c -o build/43U/src/libs/RVL_SDK/src/kpad && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RVL_SDK\src\kpad\KPAD.c
|
||||
# -------------------------------------
|
||||
# 301: u16 extensionCount;
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_button_repeat: independent extension temporaries reversed; (99.653465, 6, 101, 101, 12, 1616, 32) -> BUILD FAIL SDK/src/kpad/KPAD.c -o build/43U/src/libs/RVL_SDK/src/kpad && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RVL_SDK\src\kpad\KPAD.c
|
||||
# -------------------------------------
|
||||
# 301: u32 extensionNext;
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_button_repeat: separate extension scope temporaries; (99.653465, 6, 101, 101, 12, 1616, 32) -> (100.0, 0, 101, 101, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: ['scaled', 'height', 'halfHeight', 'x', 'y']; (96.57895, 9, 19, 19, 13, 2020, 32) -> (95.52631, 10, 19, 19, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: ['height', 'halfHeight', 'x', 'y', 'scaled']; (96.57895, 9, 19, 19, 13, 2020, 32) -> (95.52631, 11, 19, 19, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: ['height', 'halfHeight', 'scaled', 'x', 'y']; (96.57895, 9, 19, 19, 13, 2020, 32) -> (95.52631, 11, 19, 19, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: ['height', 'scaled', 'halfHeight', 'x', 'y']; (96.57895, 9, 19, 19, 13, 2020, 32) -> (95.52631, 11, 19, 19, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: ['scaled', 'x', 'y', 'height', 'halfHeight']; (96.57895, 9, 19, 19, 13, 2020, 32) -> (95.52631, 10, 19, 19, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon: restore inclusive radius test from fcmpo/cror; (93.069305, 87, 99, 101, 13, 2020, 32) -> (95.89109, 87, 100, 101, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon: inclusive radius and reuse targetX for nextY; (93.069305, 87, 99, 101, 13, 2020, 32) -> (95.49505, 87, 100, 101, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon: inclusive radius and normalization uses old accelerations; (93.069305, 87, 99, 101, 13, 2020, 32) -> (93.26733, 87, 98, 101, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_acc: restore inclusive smoothing thresholds from cror; (58.565, 396, 378, 400, 13, 2020, 32) -> (58.3425, 396, 384, 400, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_acc: thresholds and preserve previous vectors as struct copies; (58.565, 396, 378, 400, 13, 2020, 32) -> (63.5625, 386, 396, 400, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_acc: thresholds and name raw acceleration axes; (58.565, 396, 378, 400, 13, 2020, 32) -> (58.3425, 396, 384, 400, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_first: restore inclusive near/far rejection tests; (65.86885, 110, 125, 122, 13, 2020, 32) -> (69.41803, 110, 127, 122, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_first: near/far tests and ordinary candidate copies; (65.86885, 110, 125, 122, 13, 2020, 32) -> (72.86066, 110, 127, 122, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_first: near/far tests and distance operand order; (65.86885, 110, 125, 122, 13, 2020, 32) -> (69.459015, 110, 127, 122, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_continue: restore bound tests and two-point score ceiling from assembly; (73.04348, 96, 138, 138, 13, 2020, 32) -> (79.615944, 112, 140, 138, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_continue: bounds and reuse distance for distance score; (73.04348, 96, 138, 138, 13, 2020, 32) -> (79.50725, 112, 140, 138, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_continue: bounds and explicit reverse branch; (73.04348, 96, 138, 138, 13, 2020, 32) -> (83.37681, 124, 141, 138, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_first: restore inclusive outside-frame branches and first candidate copy; (54.51376, 109, 85, 109, 13, 2020, 32) -> (70.220184, 109, 93, 109, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_first: outside-frame bounds and candidate struct copy; (54.51376, 109, 85, 109, 13, 2020, 32) -> (70.09174, 109, 93, 109, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_first: outside-frame bounds and offset operand order; (54.51376, 109, 85, 109, 13, 2020, 32) -> (70.220184, 109, 93, 109, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable: restore inclusive smoothing thresholds; (68.608, 241, 228, 250, 13, 2020, 32) -> (71.404, 241, 231, 250, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable: thresholds and reverse midpoint operand order; (68.608, 241, 228, 250, 13, 2020, 32) -> (71.404, 241, 231, 250, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable: thresholds and separate distance interpolation product; (68.608, 241, 228, 250, 13, 2020, 32) -> (71.384, 241, 231, 250, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_dpd: restore inclusive frame/acceleration rejection tests; (69.09712, 271, 276, 278, 13, 2020, 32) -> (72.39209, 271, 281, 278, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_dpd: bounds and direction scaling order; (69.09712, 271, 276, 278, 13, 2020, 32) -> (72.35612, 271, 281, 278, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_dpd: bounds and reference distance operand order; (69.09712, 271, 276, 278, 13, 2020, 32) -> (72.3741, 271, 281, 278, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD reset_kpad: restore post-store decrement loops from assembly; (65.17094, 101, 115, 117, 13, 2020, 32) -> (0, 264, 264, 117, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD reset_kpad: loops and copy direction as bit-preserving words; (65.17094, 101, 115, 117, 13, 2020, 32) -> (0, 266, 268, 117, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD reset_kpad: loops and separate object/candidate iterator; (65.17094, 101, 115, 117, 13, 2020, 32) -> (0, 264, 264, 117, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_stick: restore if/else device dispatch and signed right stick; (84.26582, 135, 157, 158, 13, 2020, 32) -> (88.73418, 109, 153, 158, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_stick: dispatch and signed trigger arithmetic; (84.26582, 135, 157, 158, 13, 2020, 32) -> (95.3481, 108, 157, 158, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_stick: dispatch and select clamp with explicit else; (84.26582, 135, 157, 158, 13, 2020, 32) -> (88.73418, 109, 153, 158, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_continue: ordinary matched candidate struct copy; (78.30108, 92, 95, 93, 13, 2020, 32) -> (79.80645, 92, 95, 93, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_continue: declare float products before directions; (78.30108, 92, 95, 93, 13, 2020, 32) -> (78.462364, 92, 95, 93, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_continue: multiply offset by direction first; (78.30108, 92, 95, 93, 13, 2020, 32) -> (78.354836, 92, 95, 93, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: restore unordered min branch direction; (93.55769, 21, 52, 52, 13, 2020, 32) -> (91.63461, 32, 53, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: declaration order one; (93.55769, 21, 52, 52, 13, 2020, 32) -> (92.78846, 23, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: declaration order two; (93.55769, 21, 52, 52, 13, 2020, 32) -> (92.78846, 23, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADRead: restore reachable unplugged callback condition; (82.53377, 452, 472, 459, 13, 2020, 32) -> (82.40305, 453, 472, 459, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADRead: use BOOL interrupt state; (82.53377, 452, 472, 459, 13, 2020, 32) -> (83.10022, 459, 470, 459, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADRead: declaration order one; (82.53377, 452, 472, 459, 13, 2020, 32) -> (82.50109, 452, 472, 459, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADInit: reuse reference extents after diagonal calculation; (71.85946, 198, 201, 185, 13, 2020, 32) -> (71.72433, 198, 201, 185, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADInit: scope diagonal extents within each channel; (71.85946, 198, 201, 185, 13, 2020, 32) -> (71.67027, 198, 201, 185, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADInit: declaration order two; (71.85946, 198, 201, 185, 13, 2020, 32) -> (71.53513, 197, 201, 185, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADiSamplingCallback: restore special device cases from switch branches; (84.2033, 152, 175, 182, 13, 2020, 32) -> (88.14835, 108, 182, 182, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADiSamplingCallback: restore unordered min branch; (84.2033, 152, 175, 182, 13, 2020, 32) -> (85.3022, 133, 176, 182, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADiSamplingCallback: scope sensor constants after position query; (84.2033, 152, 175, 182, 13, 2020, 32) -> (87.91209, 152, 175, 182, 13, 2020, 32)
|
||||
src/system/odh cdj_c_colorConv: declare image planes before assignments; (97.402596, 30, 77, 77, 16, 4092, 6360) -> (97.402596, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: declare image planes in reverse order; (97.402596, 30, 77, 77, 16, 4092, 6360) -> (98.31169, 23, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: declare image planes by name; (97.402596, 30, 77, 77, 16, 4092, 6360) -> (97.72727, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: source offset adds base last; (97.402596, 30, 77, 77, 16, 4092, 6360) -> (97.46753, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_decompressLoop: decoder local declaration order one; (97.67297, 383, 899, 899, 16, 4092, 6360) -> (97.60623, 395, 899, 899, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_decompressLoop: decoder local declaration order two; (97.67297, 383, 899, 899, 16, 4092, 6360) -> (97.67297, 383, 899, 899, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_decompressLoop: decoder local declaration order three; (97.67297, 383, 899, 899, 16, 4092, 6360) -> (97.60623, 395, 899, 899, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv22: declare image planes before assignments; (96.434425, 115, 244, 244, 16, 4092, 6360) -> (96.434425, 115, 244, 244, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv22: declare image planes in reverse order; (96.434425, 115, 244, 244, 16, 4092, 6360) -> (96.434425, 115, 244, 244, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv22: pixel addressing adds destination last; (96.434425, 115, 244, 244, 16, 4092, 6360) -> (96.434425, 115, 244, 244, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 0, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.46753, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 1, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 2, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 3, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (98.05195, 21, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 4, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (98.31169, 20, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 5, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 6, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.53247, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 7, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.53247, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 8, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (98.31169, 20, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 9, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 10, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 11, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.792206, 27, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 12, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 13, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 14, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.85714, 27, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 15, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (98.05195, 21, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 16, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.46753, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 17, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 18, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.46753, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: plane/stride declarations 19, explicit remainder and base-first address; (98.31169, 23, 77, 77, 16, 4092, 6360) -> (97.53247, 29, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: unsigned table byte offsets remove signed divide correction; (81.671425, 58, 72, 70, 16, 4092, 6360) -> (85.171425, 49, 70, 70, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: unsigned offsets and indexed quantization destination; (81.671425, 58, 72, 70, 16, 4092, 6360) -> (84.9, 58, 71, 70, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: unsigned offsets and explicit standard table cursor; (81.671425, 58, 72, 70, 16, 4092, 6360) -> (78.21429, 63, 68, 70, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_setDequantizationTable: unsigned table byte offset; (88.27451, 46, 54, 51, 16, 4092, 6360) -> (92.98039, 44, 52, 51, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_setDequantizationTable: quantization destination expressed as row indices; (88.27451, 46, 54, 51, 16, 4092, 6360) -> (94.60784, 30, 51, 51, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_setDequantizationTable: unsigned offset and coefficient declaration order; (88.27451, 46, 54, 51, 16, 4092, 6360) -> (92.98039, 44, 52, 51, 16, 4092, 6360)
|
||||
src/system/odh LineConv11: signed pixel cursor; (80.746574, 102, 146, 146, 16, 4092, 6360) -> (80.746574, 102, 146, 146, 16, 4092, 6360)
|
||||
src/system/odh LineConv11: blue/red scale products on right; (80.746574, 102, 146, 146, 16, 4092, 6360) -> (80.746574, 102, 146, 146, 16, 4092, 6360)
|
||||
src/system/odh fdct_fast: use existing butterfly temporaries throughout both passes; (78.30769, 118, 169, 169, 16, 4092, 6360) -> (78.36687, 118, 169, 169, 16, 4092, 6360)
|
||||
src/system/odh fdct_fast: reverse independent even-sum add operands; (78.30769, 118, 169, 169, 16, 4092, 6360) -> (78.23669, 120, 169, 169, 16, 4092, 6360)
|
||||
src/system/odh fdct_fast: column input traversal uses a cursor; (78.30769, 118, 169, 169, 16, 4092, 6360) -> (73.40237, 161, 167, 169, 16, 4092, 6360)
|
||||
src/system/odh huffmanCoder: signed input cursor eliminates explicit sign-extension shifts; (91.96319, 155, 166, 163, 16, 4092, 6360) -> BUILD FAIL 3" tools/transform_dep.py build/43U/src/src/system/odh.d build/43U/src/src/system/odh.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: src\system\odh.cpp
|
||||
# ---------------------------
|
||||
# 1202: coefficientPointer = nextCoefficient;
|
||||
# Error: ^
|
||||
# (10209) illegal implicit conversion from 'short *' to
|
||||
# 'unsigned short *'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
src/system/odh huffmanCoder: declare predictor before block loop; (91.96319, 155, 166, 163, 16, 4092, 6360) -> (91.96319, 155, 166, 163, 16, 4092, 6360)
|
||||
src/system/odh huffmanCoder: swap independent cursor and magnitude declarations; (91.96319, 155, 166, 163, 16, 4092, 6360) -> (91.96319, 155, 166, 163, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv21: signed pixel index; (92.578575, 125, 145, 140, 16, 4092, 6360) -> (92.578575, 125, 145, 140, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv21: unsigned blue channel packs with logical shift; (92.578575, 125, 145, 140, 16, 4092, 6360) -> (89.72143, 125, 145, 140, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv21: local declaration order one; (92.578575, 125, 145, 140, 16, 4092, 6360) -> (92.435715, 126, 145, 140, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv12: signed pixel index; (78.095894, 142, 148, 146, 16, 4092, 6360) -> (78.095894, 142, 148, 146, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv12: unsigned blue channel packs with logical shift; (78.095894, 142, 148, 146, 16, 4092, 6360) -> (77.68493, 142, 148, 146, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv12: local declaration order one; (78.095894, 142, 148, 146, 16, 4092, 6360) -> (78.095894, 142, 148, 146, 16, 4092, 6360)
|
||||
src/system/odh huffmanDecoder: local declaration order one; (91.04902, 277, 308, 306, 16, 4092, 6360) -> (91.13072, 277, 308, 306, 16, 4092, 6360)
|
||||
src/system/odh huffmanDecoder: local declaration order two; (91.04902, 277, 308, 306, 16, 4092, 6360) -> (91.13072, 277, 308, 306, 16, 4092, 6360)
|
||||
src/system/odh huffmanDecoder: local declaration order three; (91.04902, 277, 308, 306, 16, 4092, 6360) -> (91.473854, 277, 308, 306, 16, 4092, 6360)
|
||||
src/system/odh idct_fast: local declaration order one; (70.49789, 174, 236, 237, 16, 4092, 6360) -> (67.43038, 188, 236, 237, 16, 4092, 6360)
|
||||
src/system/odh idct_fast: local declaration order two; (70.49789, 174, 236, 237, 16, 4092, 6360) -> (69.92827, 175, 236, 237, 16, 4092, 6360)
|
||||
src/system/odh idct_fast: local declaration order three; (70.49789, 174, 236, 237, 16, 4092, 6360) -> (71.101265, 175, 236, 237, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 0; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (98.11688, 25, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 1; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 2; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 3; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (98.376625, 21, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 4; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.85714, 27, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 5; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 6; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 29, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 7; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 29, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 8; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.987015, 22, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 9; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 10; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 29, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 11; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (98.31169, 20, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 12; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 13; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 14; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 15; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 29, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 16; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.792206, 27, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 17; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (98.05195, 25, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 18; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 29, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 19; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 20; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 21; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.792206, 27, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 22; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.53247, 29, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 23; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.46753, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 24; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (98.05195, 25, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 25; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 26; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.85714, 27, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 27; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 28; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.792206, 28, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 29; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 30; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.207794, 31, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: dimension and stride declaration order 31; (98.31169, 20, 77, 77, 16, 4092, 6360) -> (97.85714, 27, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: indexed destination row, variant 0; (85.171425, 49, 70, 70, 16, 4092, 6360) -> (86.51428, 49, 70, 70, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: indexed destination row, variant 1; (85.171425, 49, 70, 70, 16, 4092, 6360) -> (83.37143, 49, 70, 70, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: indexed destination row, variant 2; (85.171425, 49, 70, 70, 16, 4092, 6360) -> (86.51428, 49, 70, 70, 16, 4092, 6360)
|
||||
src/BS2/BS2Mach BS2NANDDivideReadAsync: global state assignment order from target; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (60.31915, 44, 45, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideReadAsync: state assignment order and test incoming length; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (60.31915, 44, 45, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideReadAsync: keep request buffer for report; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (60.31915, 44, 45, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideWriteAsync: global state assignment order from target; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (60.31915, 44, 45, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideWriteAsync: state assignment order and test incoming length; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (60.31915, 44, 45, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideWriteAsync: keep request buffer for report; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (60.31915, 44, 45, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGCGame: poll cover command field directly; (98.11404, 97, 227, 228, 21, 4052, 155504) -> (95.4386, 103, 227, 228, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGCGame: time conversion expression from RTC and frequency; (98.11404, 97, 227, 228, 21, 4052, 155504) -> (98.24561, 93, 227, 228, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGCGame: reverse RTC local declarations; (98.11404, 97, 227, 228, 21, 4052, 155504) -> (98.11404, 97, 227, 228, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGame: poll cover command field directly; (95.496185, 173, 401, 393, 21, 4052, 155504) -> (93.94402, 179, 401, 393, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGame: reverse title-version local declarations; (95.496185, 173, 401, 393, 21, 4052, 155504) -> (95.31807, 186, 401, 393, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGame: poll cover with explicit do loop; (95.496185, 173, 401, 393, 21, 4052, 155504) -> (93.94402, 179, 401, 393, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideCallback: remaining length local reused for transfer decision; (85.03906, 107, 119, 128, 21, 4052, 155504) -> (85.03906, 107, 119, 128, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideCallback: cancel and error branches return immediately; (85.03906, 107, 119, 128, 21, 4052, 155504) -> (85.03906, 107, 119, 128, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideCallback: perform buffer update before transferred count; (85.03906, 107, 119, 128, 21, 4052, 155504) -> (85.0, 107, 119, 128, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach CheckBS2CommandStatus: unsigned declaration block reversed; (80.133, 321, 387, 406, 21, 4052, 155504) -> (80.133, 321, 387, 406, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach CheckBS2CommandStatus: signed partition count local; (80.133, 321, 387, 406, 21, 4052, 155504) -> (80.133, 321, 387, 406, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach CheckBS2CommandStatus: signed chunk length local; (80.133, 321, 387, 406, 21, 4052, 155504) -> (80.133, 321, 387, 406, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2Tick: reverse integer declaration block; (74.78608, 1765, 1905, 1940, 21, 4052, 155504) -> (74.78608, 1765, 1905, 1940, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach Run: preincrement block after cache operations; (0, 43, 28, 43, 21, 4052, 155504) -> (0, 43, 28, 43, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach Run: use bounded cache block loop; (0, 43, 28, 43, 21, 4052, 155504) -> (0, 43, 31, 43, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach Run: decrement count before cache operations; (0, 43, 28, 43, 21, 4052, 155504) -> (0, 43, 29, 43, 21, 4052, 155504)
|
||||
src/BS2/BS2Update BS2UpdateInit: retain workspace pointer before reporting; (77.5, 61, 71, 72, 8, 112, 0) -> (77.5, 61, 71, 72, 8, 112, 0)
|
||||
src/BS2/BS2Update BS2UpdateInit: compute thread and DMA flag buffer pointers before reporting; (77.5, 61, 71, 72, 8, 112, 0) -> (90.09722, 50, 72, 72, 8, 112, 0)
|
||||
src/BS2/BS2Update BS2UpdateInit: retain thread storage as a typed pointer before reporting; (77.5, 61, 71, 72, 8, 112, 0) -> (90.09722, 50, 72, 72, 8, 112, 0)
|
||||
src/BS2/BS2Update UpdateThread: initialize counters after entry report to match block order; (78.59365, 884, 866, 913, 8, 112, 0) -> (79.10186, 884, 865, 913, 8, 112, 0)
|
||||
src/BS2/BS2Update UpdateThread: keep primary update entry cursor across scan; (78.59365, 884, 866, 913, 8, 112, 0) -> (77.02628, 886, 865, 913, 8, 112, 0)
|
||||
src/BS2/BS2Update UpdateThread: compare region characters in unsigned integer temporary; (78.59365, 884, 866, 913, 8, 112, 0) -> (78.31873, 882, 862, 913, 8, 112, 0)
|
||||
src/BS2/BS2Mach BS2Tick: declare title prefix before code; (74.78608, 1765, 1905, 1940, 21, 4052, 155504) -> (74.78608, 1765, 1905, 1940, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2Tick: declare read address before read length and offset; (74.78608, 1765, 1905, 1940, 21, 4052, 155504) -> (74.7866, 1765, 1905, 1940, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2Tick: interrupt mask retains BOOL result type; (74.78608, 1765, 1905, 1940, 21, 4052, 155504) -> (74.78608, 1765, 1905, 1940, 21, 4052, 155504)
|
||||
src/system/odh LineConv11: blue conversion constant declared before red and green constants; (80.746574, 102, 146, 146, 16, 4092, 6360) -> (80.712326, 102, 146, 146, 16, 4092, 6320)
|
||||
|
||||
Final source selection
|
||||
|
||||
KPAD retains the two exact functions and assembly-derived bound/device corrections. Odh and BS2Mach source experiments are reverted because none increased their exact counts. BS2Update retains the reconstructed initializer and complete thread, the integer progress counter, real thread/flag/header storage, and guarded metadata fields. The aggregate workspace experiment was removed. All 55 BS2Update strings are ordinary literals and identical in pool order. The product-area jump table maps areas 0 and 5 to J/D, 1 to E/D, 2 to P/D, 6 to K, and 11 to C; other areas reject. Both new functions remain nonmatching. No linking status changed.
|
||||
|
||||
libs/RVL_SDK/src/kpad/KPAD final unmatched functions
|
||||
get_ring_buffer_by_kpad1_style: objdiff 99.583336%; instructions 96/96, positional differences 7; register allocation / operand order / scheduling.
|
||||
reset_kpad: objdiff 65.17094%; instructions 115/117, positional differences 101; block layout / missing or extra instructions / scheduling.
|
||||
KPADGetProjectionPos: objdiff 96.57895%; instructions 19/19, positional differences 9; register allocation / operand order / scheduling.
|
||||
KPADSetSensorHeight: objdiff 93.55769%; instructions 52/52, positional differences 21; register allocation / operand order / scheduling.
|
||||
calc_acc_horizon: objdiff 95.89109%; instructions 100/101, positional differences 87; block layout / missing or extra instructions / scheduling.
|
||||
read_kpad_acc: objdiff 63.5625%; instructions 396/400, positional differences 386; block layout / missing or extra instructions / scheduling.
|
||||
select_2obj_first: objdiff 72.86066%; instructions 127/122, positional differences 110; block layout / missing or extra instructions / scheduling.
|
||||
select_2obj_continue: objdiff 83.37681%; instructions 141/138, positional differences 124; block layout / missing or extra instructions / scheduling.
|
||||
select_1obj_first: objdiff 70.220184%; instructions 93/109, positional differences 109; block layout / missing or extra instructions / scheduling.
|
||||
select_1obj_continue: objdiff 79.80645%; instructions 95/93, positional differences 92; block layout / missing or extra instructions / scheduling.
|
||||
calc_dpd_variable: objdiff 71.404%; instructions 231/250, positional differences 241; block layout / missing or extra instructions / scheduling.
|
||||
read_kpad_dpd: objdiff 72.39209%; instructions 281/278, positional differences 271; block layout / missing or extra instructions / scheduling.
|
||||
read_kpad_stick: objdiff 95.3481%; instructions 157/158, positional differences 108; block layout / missing or extra instructions / scheduling.
|
||||
KPADRead: objdiff 83.10022%; instructions 470/459, positional differences 459; block layout / missing or extra instructions / scheduling.
|
||||
KPADInit: objdiff 71.85946%; instructions 201/185, positional differences 198; block layout / missing or extra instructions / scheduling.
|
||||
KPADiSamplingCallback: objdiff 88.14835%; instructions 182/182, positional differences 108; register allocation / operand order / scheduling.
|
||||
|
||||
src/system/odh final unmatched functions
|
||||
cdj_c_setQuantizationTable__9CArGBAOdhFP16SArCDJ_OdhMasterUl: objdiff 81.671425%; instructions 72/70, positional differences 58; block layout / missing or extra instructions / scheduling.
|
||||
cdj_c_colorConv__9CArGBAOdhFP16SArCDJ_OdhMasterPUci: objdiff 97.402596%; instructions 77/77, positional differences 30; register allocation / operand order / scheduling.
|
||||
LineConv11__9CArGBAOdhFPUcPUcPUcPUcUsUsPCli: objdiff 80.746574%; instructions 146/146, positional differences 102; register allocation / operand order / scheduling.
|
||||
fdct_fast__9CArGBAOdhFPUlPUcUlPUl: objdiff 78.30769%; instructions 169/169, positional differences 118; register allocation / operand order / scheduling.
|
||||
huffmanCoder__9CArGBAOdhFPUsP21SArCDJ_HuffmanRequest: objdiff 91.96319%; instructions 166/163, positional differences 155; block layout / missing or extra instructions / scheduling.
|
||||
cdj_d_decompressLoop__9CArGBAOdhFP16SArCDJ_OdhMasterii: objdiff 97.67297%; instructions 899/899, positional differences 383; register allocation / operand order / scheduling.
|
||||
cdj_d_setDequantizationTable__9CArGBAOdhFP16SArCDJ_OdhMasterUl: objdiff 88.27451%; instructions 54/51, positional differences 46; block layout / missing or extra instructions / scheduling.
|
||||
LineDeconv21__9CArGBAOdhFPUcPUcPUcPUcUsUsPC12SArDeconvTbli: objdiff 92.578575%; instructions 145/140, positional differences 125; block layout / missing or extra instructions / scheduling.
|
||||
LineDeconv12__9CArGBAOdhFPUcPUcPUcPUcUsUsPC12SArDeconvTbli: objdiff 78.095894%; instructions 148/146, positional differences 142; block layout / missing or extra instructions / scheduling.
|
||||
LineDeconv22__9CArGBAOdhFPUcPUcPUcPUcUsUsPC12SArDeconvTbli: objdiff 96.434425%; instructions 244/244, positional differences 115; register allocation / operand order / scheduling.
|
||||
huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl: objdiff 91.04902%; instructions 308/306, positional differences 277; block layout / missing or extra instructions / scheduling.
|
||||
idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl: objdiff 70.49789%; instructions 236/237, positional differences 174; block layout / missing or extra instructions / scheduling.
|
||||
|
||||
src/BS2/BS2Mach final unmatched functions
|
||||
Run: objdiff unscored; instructions 28/43, positional differences 43; block layout / missing or extra instructions / scheduling.
|
||||
BS2StartGame: objdiff 95.496185%; instructions 401/393, positional differences 173; block layout / missing or extra instructions / scheduling.
|
||||
BS2StartGCGame: objdiff 98.11404%; instructions 227/228, positional differences 97; block layout / missing or extra instructions / scheduling.
|
||||
BS2NANDDivideCallback: objdiff 85.03906%; instructions 119/128, positional differences 107; block layout / missing or extra instructions / scheduling.
|
||||
BS2NANDDivideReadAsync: objdiff 60.29787%; instructions 45/47, positional differences 45; block layout / missing or extra instructions / scheduling.
|
||||
BS2NANDDivideWriteAsync: objdiff 60.29787%; instructions 45/47, positional differences 45; block layout / missing or extra instructions / scheduling.
|
||||
CheckBS2CommandStatus: objdiff 80.133%; instructions 387/406, positional differences 321; block layout / missing or extra instructions / scheduling.
|
||||
BS2Tick: objdiff 74.78608%; instructions 1905/1940, positional differences 1765; block layout / missing or extra instructions / scheduling.
|
||||
|
||||
src/BS2/BS2Update final unmatched functions
|
||||
BS2UpdateInit: objdiff 79.875%; instructions 71/72, positional differences 65; block layout / missing or extra instructions / scheduling.
|
||||
UpdateThread: objdiff 84.05586%; instructions 863/913, positional differences 867; block layout / missing or extra instructions / scheduling.
|
||||
123
tools/decomp-assist/sol-high-result.md
Normal file
123
tools/decomp-assist/sol-high-result.md
Normal file
@@ -0,0 +1,123 @@
|
||||
# Matching result
|
||||
|
||||
Final full gate: all three units, fresh 43U rebuild; pools identical; zero regressions, forbidden additions and readability warnings. DOL SHA1: `26116613f624061ba99c8d1a299aaa6efa85670d`.
|
||||
|
||||
| Unit | Instruction-exact functions | Fuzzy | Exact code bytes | Exact data bytes |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| libs/RVL_SDK/src/fa/pf_dir | 30/38 -> 34/38 | 67.96859% -> 98.87879% | 8024 -> 11428 / 18976 | 0 -> 8 / 40 |
|
||||
| libs/RevoEX/src/nwc24/NWC24Download | 13/30 -> 16/30 | 83.35883% -> 95.99360% | 2020 -> 3220 / 12496 | 80 -> 80 / 80 |
|
||||
| src/keyboard/tiCellPhone | 72/86 -> 79/86 | 86.62876% -> 97.73765% | 7488 -> 10900 / 19028 | 4 -> 4 / 3860 |
|
||||
|
||||
## Remaining functions
|
||||
|
||||
Instruction counts below are source/target. Every initially nonexact function has at least three distinct logged source attempts; failed compilations are additional evidence, not counted toward the minimum. Explanations identify the surviving diff area; they do not establish a compiler tie-break.
|
||||
|
||||
### libs/RVL_SDK/src/fa/pf_dir
|
||||
|
||||
- `PFDIR_GetSDD`: 99.710144%; 69/69 instructions; load scheduling.
|
||||
- `PFDIR_p_mkdir`: 96.887900%; 571/562 instructions; allocation and directory-write block scheduling.
|
||||
- `PFDIR_p_rename`: 97.376000%; 626/625 instructions; retained path and directory temporaries.
|
||||
- `PFDIR_p_move`: 96.973060%; 636/631 instructions; directory traversal and write block scheduling.
|
||||
|
||||
### libs/RevoEX/src/nwc24/NWC24Download
|
||||
|
||||
- `NWC24InitDlTask`: 96.541664%; 143/144 instructions; validation and default-field store scheduling.
|
||||
- `NWC24SetDlInterval`: 99.897960%; 147/147 instructions; temporary register allocation.
|
||||
- `NWC24IterateDlTask`: 83.962030%; 74/79 instructions; loop termination and callback-result scheduling.
|
||||
- `NWC24IterateDlTaskEx`: 90.689650%; 144/145 instructions; inlined read-loop and callback-result scheduling.
|
||||
- `NWC24UpdateDlTask`: 90.992096%; 247/253 instructions; retry-validation and timestamp block scheduling.
|
||||
- `NWC24DeleteDlTask`: 98.047620%; 107/105 instructions; validation and deletion block scheduling.
|
||||
- `NWC24AddDlTask`: 97.552444%; 146/143 instructions; validation and slot-search block scheduling.
|
||||
- `NWC24GetDlTask`: 99.728264%; 92/92 instructions; parameter register allocation.
|
||||
- `NWC24PurgeOldestDlTask`: 84.312500%; 167/176 instructions; slot-scan and inlined deletion blocks.
|
||||
- `NWC24ManageDlTaskListForMenu`: 94.335526%; 149/152 instructions; menu-limit and task-deletion blocks.
|
||||
- `NWC24ExtendDlTaskList`: 99.854010%; 137/137 instructions; reload-result register allocation.
|
||||
- `NWC24iCheckDlHeaderConsistency`: 98.773580%; 212/212 instructions; prologue move scheduling.
|
||||
- `NWC24iCreateDlTaskList`: 99.624060%; 133/133 instructions; header-pointer register allocation.
|
||||
- `AddTaskInternal`: 93.578550%; 397/401 instructions; slot search and timestamp-update blocks.
|
||||
|
||||
### src/keyboard/tiCellPhone
|
||||
|
||||
- `onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv`: 96.895900%; 681/682 instructions; key lookup, command-payload and register scheduling.
|
||||
- `create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator`: 92.228226%; 337/333 instructions; descriptor address setup and constructor scheduling.
|
||||
- `init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv`: 96.468285%; 544/536 instructions; pane address setup, key-set reload and virtual-call scheduling.
|
||||
- `changeInputMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFQ59textinput8keyboard13cellphonetype4Base9InputMode`: 90.062805%; 216/207 instructions; mode-branch and pane-address scheduling.
|
||||
- `doNumericMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb`: 93.923080%; 173/169 instructions; pane-address and shared visibility-value scheduling.
|
||||
- `doNumericWithDotMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb`: 95.000000%; 36/35 instructions; extra pane-address calculation.
|
||||
- `setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb`: 87.071430%; 70/70 instructions; regional pane-address setup and scheduling.
|
||||
|
||||
## Validation
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 8/40 functions 34/38 fuzzy 98.8788 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 92.85714
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 98.87879
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 96.8879
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 97.376
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 96.97306
|
||||
[libs/RVL_SDK/src/fa/pf_dir] baseline: code 8024/18976 data None functions 30 fuzzy 67.9686
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3220/12496 data 80/80 functions 16/30 fuzzy 95.9936 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 16/30
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 95.9936
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 96.541664
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 83.96203
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 90.68965
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 90.992096
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24DeleteDlTask 98.04762
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 84.3125
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 94.335526
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 2020/12496 data 80 functions 13 fuzzy 83.3588
|
||||
[src/keyboard/tiCellPhone] pool: IDENTICAL
|
||||
[src/keyboard/tiCellPhone] objdiff: code 10900/19028 data 4/3860 functions 79/86 fuzzy 97.7377 linked code 0
|
||||
[src/keyboard/tiCellPhone] instruction-exact functions: 79/86
|
||||
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .data size 2416 match 56.210873
|
||||
[src/keyboard/tiCellPhone] section .rodata size 1320 match 99.69697
|
||||
[src/keyboard/tiCellPhone] section .sdata size 112 match None
|
||||
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 55.555557
|
||||
[src/keyboard/tiCellPhone] section .text size 19028 match 97.73765
|
||||
[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 96.8959
|
||||
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 92.228226
|
||||
[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 96.468285
|
||||
[src/keyboard/tiCellPhone] below 100: changeInputMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFQ59textinput8keyboard13cellphonetype4Base9InputMode 90.062805
|
||||
[src/keyboard/tiCellPhone] below 100: doNumericMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb 93.92308
|
||||
[src/keyboard/tiCellPhone] below 100: doNumericWithDotMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb 95.0
|
||||
[src/keyboard/tiCellPhone] below 100: setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb 87.07143
|
||||
[src/keyboard/tiCellPhone] baseline: code 7488/19028 data 4 functions 72 fuzzy 86.6288
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.03911 -> 83.30673
|
||||
global fuzzy_match_percent: 96.63766 -> 96.95678
|
||||
global complete_code_percent: 58.19218 -> 58.19218
|
||||
global matched_data_percent: 89.88587 -> 89.88631
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
## Files and commits
|
||||
|
||||
- `libs/RVL_SDK/src/fa/pf_dir.c`: `26c329e5`, `f7cce6f6`.
|
||||
- `libs/RevoEX/src/nwc24/NWC24Download.c`: `59a7118e`.
|
||||
- `src/keyboard/tiCellPhone.cpp`, `include/keyboard/tiCellPhone.h`, `include/keyboard/tiCpData.h`, `include/keyboard/tiHKBManager.h`: `965687ab`.
|
||||
- `tools/decomp-assist/sol-high-attempts.md`: source attempts and their measurements.
|
||||
|
||||
## Limits
|
||||
|
||||
25 functions and partial pf_dir/tiCellPhone data remain unmatched. No unit was switched to Matching. Linking was left for the later phase. The residual data differences were not proven to be only linker-deduplicated weak data; the matching-only result does not claim complete units.
|
||||
190
tools/decomp-assist/sol-high-round2-attempts.md
Normal file
190
tools/decomp-assist/sol-high-round2-attempts.md
Normal file
@@ -0,0 +1,190 @@
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_chdir | data 1 deduplicate the ordinary empty root-path literal with opendir | objdiff 100.000000% | insns 159/159 | positional diffs 0 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 1 give the final header update its own task ID lifetime | objdiff 99.897960% | insns 147/147 | positional diffs 3 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 2 remove the duplicate task-pointer assignment and isolate final task ID | objdiff 99.897960% | insns 147/147 | positional diffs 3 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 3 reuse the real next-time helper for the inlined header update | objdiff 99.727890% | insns 147/147 | positional diffs 8 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 1 give the final header reload result a separate local lifetime | objdiff 99.854010% | insns 137/137 | positional diffs 4 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 2 express final error precedence as a conditional return | objdiff 99.854010% | insns 137/137 | positional diffs 4 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 3 return close failure before returning a separately scoped reload result | objdiff 99.854010% | insns 137/137 | positional diffs 4 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 1 retain a named destination pointer for file reads | objdiff 99.728264% | insns 92/92 | positional diffs 5 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 2 separate the task ID value lifetime from the passed argument | objdiff 99.728264% | insns 92/92 | positional diffs 5 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 3 retain destination and task ID as local inputs to read validation | objdiff 99.728264% | insns 92/92 | positional diffs 5 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 1 scope the entry-initialization index after header creation | objdiff 99.624060% | insns 133/133 | positional diffs 10 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 2 reload the initialized header for its magic-field write | objdiff 97.218050% | insns 134/133 | positional diffs 120 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 3 use a natural unsigned counter for initializing all entries | objdiff 99.624060% | insns 133/133 | positional diffs 10 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 1 initialize the task pointer after the parameter aliases | objdiff 98.773580% | insns 212/212 | positional diffs 3 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 2 use the passed header and repair flag directly throughout the consistency loop | objdiff 98.773580% | insns 212/212 | positional diffs 3 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 3 bind a typed view for task fields separately from the file-read pointer | objdiff 98.773580% | insns 212/212 | positional diffs 3 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24DeleteDlTask | 1 keep the owner-validation result test inside the protected-app branch | objdiff 100.000000% | insns 105/105 | positional diffs 0 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24DeleteDlTask | 2 spell out the delete operation and retain its success result | objdiff 98.952380% | insns 104/105 | positional diffs 15 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24DeleteDlTask | 3 use early failure returns through the final delete and ID invalidation | objdiff 100.000000% | insns 105/105 | positional diffs 0 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 1 keep the header-count validation as a direct invalid-header branch | objdiff 94.748250% | insns 142/143 | positional diffs 137 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 2 place the next-time calculation inside the successful-time-query branch | objdiff 96.783220% | insns 145/143 | positional diffs 139 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 3 derive the final validation and header timestamp update directly from target blocks | objdiff 95.384610% | insns 146/143 | positional diffs 140 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24InitDlTask | 1 derive the explicit true and false content-file branches from target assembly | objdiff 98.923615% | insns 144/144 | positional diffs 31 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24InitDlTask | 2 use the common header validator and typed home-path element addresses | objdiff 96.541664% | insns 143/144 | positional diffs 103 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24InitDlTask | 3 reverse the two default interval stores and retain the boolean as a signed result | objdiff 96.541664% | insns 143/144 | positional diffs 102 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ManageDlTaskListForMenu | 1 retain a task pointer across the read and removal blocks | BUILD FAILED: && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24Download.d build/43U/src/libs/RevoEX/src/nwc24/NWC24Download.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RevoEX\src\nwc24\NWC24Download.c
|
||||
# ----------------------------------------------
|
||||
# 918: NWC24DlTask* taskPointer = &task;
|
||||
# Error: ^^^^^^^^^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ManageDlTaskListForMenu | 2 spell out final read-validation, delete and invalidation blocks | objdiff 94.335526% | insns 149/152 | positional diffs 124 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ManageDlTaskListForMenu | 3 scope final deletion result and consolidate failed-read handling | objdiff 92.217100% | insns 148/152 | positional diffs 126 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 1 derive the allocation loop as a while loop ending at task update | objdiff 71.753120% | insns 398/401 | positional diffs 319 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 2 retain the URL pointer across length and prefix checks as target does | objdiff 92.765590% | insns 393/401 | positional diffs 333 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 3 use one failure-result check after free-slot allocation or purging | objdiff 71.753120% | insns 398/401 | positional diffs 319 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24UpdateDlTask | 1 derive the retry loop with its test before the increment body | objdiff 94.173910% | insns 247/253 | positional diffs 249 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24UpdateDlTask | 2 remove the initial task-ID lifetime while preserving the target retry loop | objdiff 94.173910% | insns 247/253 | positional diffs 249 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24UpdateDlTask | 3 split universal-time and access-time failures before the corrected retry loop | objdiff 93.146250% | insns 245/253 | positional diffs 251 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ManageDlTaskListForMenu | 4 retain the task pointer with a C89-compatible declaration | objdiff 94.736840% | insns 151/152 | positional diffs 137 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTaskEx | 1 derive separate ascending and descending initial-bound stores | objdiff 93.689650% | insns 147/145 | positional diffs 74 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTaskEx | 2 preload each comparison bound before the direction-dependent comparisons | objdiff 97.931040% | insns 145/145 | positional diffs 19 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTaskEx | 3 order the tie-breaking comparison and found flag as in the target blocks | objdiff 93.793106% | insns 147/145 | positional diffs 72 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24PurgeOldestDlTask | 1 derive the menu-task skipping loop with its iterator call at the test | objdiff 85.829544% | insns 171/176 | positional diffs 166 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24PurgeOldestDlTask | 2 reverse retained read-input lifetimes and spell out the final delete result | objdiff 83.715910% | insns 166/176 | positional diffs 86 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24PurgeOldestDlTask | 3 consolidate final iterator failures and use the selected task ID directly | objdiff 84.880684% | insns 166/176 | positional diffs 158 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 1 derive dynamic loop bounds and per-slot validation results from every target block | BUILD FAILED: /src/libs/RevoEX/src/nwc24/NWC24Download.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RevoEX\src\nwc24\NWC24Download.c
|
||||
# ----------------------------------------------
|
||||
# 581: taskId < (work != NULL ? (DlTaskListHeader*)work->dlHead : NULL)->maxTaskCount; taskId++) {
|
||||
# Error: ^^
|
||||
# (10149) not a struct/union/class
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 2 express the re-derived slot scan as a while loop | BUILD FAILED: build/43U/src/libs/RevoEX/src/nwc24/NWC24Download.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RevoEX\src\nwc24\NWC24Download.c
|
||||
# ----------------------------------------------
|
||||
# 581: taskId < (work != NULL ? (DlTaskListHeader*)work->dlHead : NULL)->maxTaskCount) {
|
||||
# Error: ^^
|
||||
# (10149) not a struct/union/class
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 3 separate the found and missing slot result assignments | BUILD FAILED: /src/libs/RevoEX/src/nwc24/NWC24Download.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RevoEX\src\nwc24\NWC24Download.c
|
||||
# ----------------------------------------------
|
||||
# 581: taskId < (work != NULL ? (DlTaskListHeader*)work->dlHead : NULL)->maxTaskCount; taskId++) {
|
||||
# Error: ^^
|
||||
# (10149) not a struct/union/class
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 1 derive dynamic loop bounds and per-slot validation results from every target block | objdiff 94.620255% | insns 78/79 | positional diffs 51 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 2 express the re-derived slot scan as a while loop | objdiff 94.620255% | insns 78/79 | positional diffs 51 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 3 separate the found and missing slot result assignments | objdiff 94.620255% | insns 78/79 | positional diffs 51 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | data1 ordinary pane literals in first-use order and separate normal/toggle animation tables | objdiff 97.297295% | insns 335/333 | positional diffs 254 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 1 advance the indexed directory before the free-slot pointer | objdiff 99.681160% | insns 69/69 | positional diffs 2 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 2 put the two directory advances in the for-loop step | objdiff 99.681160% | insns 69/69 | positional diffs 2 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 3 derive the free candidate from the next indexed directory | objdiff 99.536230% | insns 69/69 | positional diffs 3 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 1 derive separate missing and volume-label branches and the short-name return | objdiff 97.712000% | insns 628/625 | positional diffs 540 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 2 match volume comparison operands and narrow the long-name offset adjustment | objdiff 97.808000% | insns 628/625 | positional diffs 540 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 3 give the final long-name emission loop its own counter lifetime | objdiff 97.712000% | insns 628/625 | positional diffs 540 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 1 derive the not-found and final-update branches from the target blocks | objdiff 96.640250% | insns 634/631 | positional diffs 490 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 2 use unsigned long-name division and narrow the saved entry adjustment | objdiff 96.148970% | insns 631/631 | positional diffs 482 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 3 retain the stored byte-sized long-name count and advance the file pointer first | objdiff 96.354996% | insns 637/631 | positional diffs 567 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 1 derive unsigned long-name division from the target mulhwu block | objdiff 97.937720% | insns 566/562 | positional diffs 555 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 2 start the sector and long-name-count lifetimes at the allocation blocks | objdiff 97.405690% | insns 565/562 | positional diffs 376 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 3 retain the complete filename length and count through allocation | objdiff 97.076515% | insns 563/562 | positional diffs 396 | regressions 0
|
||||
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 1 assign the control key after the target search and fallback blocks | objdiff 95.718475% | insns 685/682 | positional diffs 671 | regressions 0
|
||||
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 2 express the control lookup with a while loop and selected fallback | objdiff 95.718475% | insns 685/682 | positional diffs 670 | regressions 0
|
||||
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 3 retain the current control record instead of its multiplied index | objdiff 96.230200% | insns 679/682 | positional diffs 662 | regressions 0
|
||||
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 1 call the inherited virtual directly without nullable base-pointer conversion | objdiff 98.526120% | insns 536/536 | positional diffs 155 | regressions 0
|
||||
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 2 use an unsigned index for the four input-mode panes | objdiff 98.423510% | insns 536/536 | positional diffs 155 | regressions 0
|
||||
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 3 retain the toggle-pane record through the label update loop | objdiff 98.522385% | insns 536/536 | positional diffs 155 | regressions 0
|
||||
src/keyboard/tiCellPhone | doNumericWithDotMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 1 give the dot-key visibility value its own local lifetime | objdiff 100.000000% | insns 35/35 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | doNumericWithDotMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 2 store numeric-dot mode before the final visibility dispatch | objdiff 56.057144% | insns 35/35 | positional diffs 11 | regressions 0
|
||||
src/keyboard/tiCellPhone | doNumericWithDotMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 3 derive the explicit true and false visibility alternatives | objdiff 100.000000% | insns 35/35 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | doNumericMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 1 place visibility updates in the enabled branch | objdiff 100.000000% | insns 169/169 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | doNumericMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 2 retain the toolbar across its presence check and numeric-mode update | BUILD FAILED: iCellPhone.cpp
|
||||
# -------------------------------------
|
||||
# 410: bool Base::onClose() {}
|
||||
# Warning: ^
|
||||
# (10184) return value expected
|
||||
### mwcceppc.exe Compiler:
|
||||
# 888: toolbar::ToolBar* toolbar = mpManager->getToolBar();
|
||||
# Error: ^^^^^^^
|
||||
# (10140) undefined identifier 'ToolBar'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
src/keyboard/tiCellPhone | doNumericMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 3 retain one visibility value across the numeric-mode pane updates | objdiff 100.000000% | insns 169/169 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 1 test the typed pane allocation before placement construction | objdiff 97.297295% | insns 335/333 | positional diffs 254 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 2 load the record animation key at its target conditional use | objdiff 92.732735% | insns 333/333 | positional diffs 155 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 3 give both animation attachment loops natural unsigned counters | objdiff 89.075070% | insns 331/333 | positional diffs 271 | regressions 0
|
||||
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFQ59textinput8keyboard13cellphonetype4Base9InputMode | 1 derive the dakuten pane references and direct inherited virtual dispatch | objdiff 100.000000% | insns 207/207 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFQ59textinput8keyboard13cellphonetype4Base9InputMode | 2 represent the disabled input-mode payload as its boolean field | objdiff 97.777780% | insns 207/207 | positional diffs 49 | regressions 0
|
||||
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFQ59textinput8keyboard13cellphonetype4Base9InputMode | 3 test the selected mode before its upper-case state | objdiff 98.975845% | insns 207/207 | positional diffs 4 | regressions 0
|
||||
src/keyboard/tiCellPhone | setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 1 retain the language across sign-window pane decisions | objdiff 100.000000% | insns 70/70 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 2 test the Japanese language value directly | objdiff 100.000000% | insns 70/70 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 3 use the stored sign-window enable state for visibility dispatch | BUILD FAILED: -----------------
|
||||
# 410: bool Base::onClose() {}
|
||||
# Warning: ^
|
||||
# (10184) return value expected
|
||||
### mwcceppc.exe Compiler:
|
||||
# 1007: setVisible("W_othersBT_EU", mbSignWindowButton);
|
||||
# Error: ^^^^^^^^^^^^^^^^^^
|
||||
# (10140) undefined identifier 'mbSignWindowButton'
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
src/keyboard/tiCellPhone | doNumericMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 4 retain the correctly typed toolbar through its presence check | objdiff 96.976330% | insns 164/169 | positional diffs 133 | regressions 0
|
||||
src/keyboard/tiCellPhone | setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 4 retain the language in the enabled sign-window branch | objdiff 100.000000% | insns 70/70 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 5 reverse the language branch and its ordinary literal uses | objdiff 99.785710% | insns 70/70 | positional diffs 3 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | data2 inherit the command-sender vtable entries under the unit-only guard | objdiff 97.297295% | insns 335/333 | positional diffs 254 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | data3 initialize animation-key fields directly in their ordinary table declarations | objdiff 97.297295% | insns 335/333 | positional diffs 254 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | data4 share the actual input-mode-enabled command payload type | objdiff 97.297295% | insns 335/333 | positional diffs 254 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | data5 define the layout destructor after the pane destructors it owns | objdiff 97.297295% | insns 335/333 | positional diffs 254 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | data6 declare the layout after its event and pane classes under the unit-only guard | objdiff 97.297295% | insns 335/333 | positional diffs 254 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | data7 declare event/pane/layout ownership in the target vtable emission order | objdiff 97.297295% | insns 335/333 | positional diffs 254 | regressions 0
|
||||
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | data8 reuse the base activation command sequence and its initializer | objdiff 100.000000% | insns 65/65 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFQ59textinput8keyboard13cellphonetype4Base9InputMode | data9 reuse the base input-mode command sequence and its initializer | objdiff 100.000000% | insns 207/207 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | convertToZiCellphoneInput___Q49textinput8keyboard13cellphonetype4BaseFw | data10 derive digit labels from the target jump table: 1-9 then 0 | objdiff 100.000000% | insns 41/41 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFUlPv | data11 derive sign-window control 9 as the target switch default | objdiff 100.000000% | insns 107/107 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | onAnmEvent__Q49textinput8keyboard13cellphonetype16CellPhoneAnmPaneFQ49textinput11nw4rmanager7AnmPane12AnmPaneEvent | data12 derive state-2/state-3 dispatch from the target jump-table relocations | objdiff 100.000000% | insns 149/149 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 4 use the same early-return control-lookup helper as layout onKey | objdiff 97.331375% | insns 680/682 | positional diffs 556 | regressions 0
|
||||
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 5 reload input-mode records at target use sites and use signed mode/count comparisons | objdiff 99.523460% | insns 683/682 | positional diffs 305 | regressions 0
|
||||
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 6 treat the convert-space query payload as its callee-written output | objdiff 99.670090% | insns 682/682 | positional diffs 37 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 4 use the natural fixed-size descriptor index as the loop bound | objdiff 99.710144% | insns 69/69 | positional diffs 2 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 5 count down the remaining descriptors in a while-loop test | objdiff 99.710144% | insns 69/69 | positional diffs 2 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 6 use unsigned descriptor indices and remaining count | objdiff 99.710144% | insns 69/69 | positional diffs 2 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 7 advance the free candidate after the indexed loop body | objdiff 99.681160% | insns 69/69 | positional diffs 2 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 4 separate allocated and long-name sectors and order live cache outputs as target stack slots | objdiff 99.418150% | insns 563/562 | positional diffs 552 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 5 initialize both real allocation counters from their common zero value | objdiff 99.596085% | insns 562/562 | positional diffs 39 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 6 begin the long-name-count lifetime after entry metadata initialization | objdiff 99.400350% | insns 563/562 | positional diffs 385 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 7 separate the sector countdown from the long-name entry countdown | objdiff 99.649470% | insns 562/562 | positional diffs 36 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 8 initialize the long-name counter before its sector-chain pointer | objdiff 99.596085% | insns 562/562 | positional diffs 39 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 9 initialize the long-name count from the allocated-sector initial state | objdiff 99.418150% | insns 563/562 | positional diffs 552 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 4 let placement construction supply the allocation null check once | objdiff 97.897896% | insns 333/333 | positional diffs 18 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 5 load each animation-table field through its real indexed record | objdiff 99.819820% | insns 333/333 | positional diffs 11 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 6 reuse the tested animation-key value when attaching its transform | objdiff 98.618620% | insns 333/333 | positional diffs 16 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 7 initialize the tested animation key before retaining the pane record | objdiff 99.774770% | insns 333/333 | positional diffs 14 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 8 read pane animation keys through their indexed records | objdiff 99.789790% | insns 333/333 | positional diffs 12 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 9 retain the normal-pane record but index toggle-pane key reloads | objdiff 99.729730% | insns 333/333 | positional diffs 16 | regressions 0
|
||||
src/keyboard/tiCellPhone | updatePredictLanguage__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFPQ39textinput15CommandReceiver17ChangePredictMode | data13 derive empty JP/USA captions and all subsequent language slots from the target pointer table | objdiff 100.000000% | insns 85/85 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | updatePredictLanguage__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFPQ39textinput15CommandReceiver17ChangePredictMode | data14 give the real empty-caption value an ordinary named character array | objdiff 100.000000% | insns 85/85 | positional diffs 0 | regressions 0
|
||||
src/keyboard/tiCellPhone | updatePredictLanguage__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFPQ39textinput15CommandReceiver17ChangePredictMode | data15 give the real empty-caption value an ordinary named character array | objdiff 100.000000% | insns 85/85 | positional diffs 0 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 10 initialize the allocated sector independently while retaining the count-first declaration order | objdiff 99.649470% | insns 562/562 | positional diffs 36 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 4 retain the typed task-entry header at the target pre-loop block | objdiff 93.544304% | insns 79/79 | positional diffs 20 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 5 derive the prevalidated slot loop as a do-while scan | objdiff 95.000000% | insns 78/79 | positional diffs 50 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 6 spell out each nullable header selection before slot validation | objdiff 93.544304% | insns 79/79 | positional diffs 20 | regressions 0
|
||||
564
tools/decomp-assist/sol-high-round2-report.md
Normal file
564
tools/decomp-assist/sol-high-round2-report.md
Normal file
@@ -0,0 +1,564 @@
|
||||
# Matching round 2
|
||||
|
||||
Baseline: 7a6efe8a. Final code: 6eb8458d. No unit was changed to Matching.
|
||||
|
||||
| Unit | Instruction-exact functions | Fuzzy % | Exact code bytes | Exact data bytes |
|
||||
|---|---:|---:|---:|---:|
|
||||
| libs/RVL_SDK/src/fa/pf_dir | 34 -> 34/38 | 98.878790 -> 99.262856 | 11428 -> 11428/18976 | 8 -> 40/40 |
|
||||
| libs/RevoEX/src/nwc24/NWC24Download | 16 -> 17/30 | 95.993600 -> 97.146930 | 3220 -> 3640/12496 | 80 -> 80/80 |
|
||||
| src/keyboard/tiCellPhone | 79 -> 83/86 | 97.737650 -> 99.774020 | 10900 -> 12824/19028 | 4 -> 3860/3860 |
|
||||
|
||||
pf_dir gained exact data and improved fuzzy code, but its instruction-exact count remains 34/38. All three units have 100% data. Twenty functions remain below 100%.
|
||||
|
||||
## Remaining functions
|
||||
|
||||
PFDIR_GetSDD | 99.710144% | 69/69 instructions | ordering of two induction-pointer advances (2 instruction differences)
|
||||
PFDIR_p_mkdir | 99.649470% | 562/562 instructions | register allocation and order of dot-entry constants (36 differences)
|
||||
PFDIR_p_rename | 97.808000% | 628/625 instructions | current-directory traversal addressing and short-name return/rollback branches; 3 extra instructions
|
||||
PFDIR_p_move | 96.973060% | 636/631 instructions | ancestry checks and long-name arithmetic/control flow; 5 extra instructions
|
||||
NWC24InitDlTask | 98.923615% | 144/144 instructions | register allocation only (31 differences)
|
||||
NWC24SetDlInterval | 99.897960% | 147/147 instructions | final task-ID register allocation only (3 differences)
|
||||
NWC24IterateDlTask | 95.000000% | 78/79 instructions | loop-entry branch and increment scheduling; 1 instruction missing
|
||||
NWC24IterateDlTaskEx | 97.931040% | 145/145 instructions | comparison operands, flag-store scheduling and registers
|
||||
NWC24UpdateDlTask | 94.173910% | 247/253 instructions | retry/validation branches and saved-register frame; 6 instructions missing
|
||||
NWC24AddDlTask | 97.552444% | 146/143 instructions | inlined initialization and validation branches; 3 extra instructions
|
||||
NWC24GetDlTask | 99.728264% | 92/92 instructions | retained destination/task-ID registers only (5 differences)
|
||||
NWC24PurgeOldestDlTask | 85.829544% | 171/176 instructions | iterator initialization, menu-task skip and deletion/error blocks; 5 instructions missing
|
||||
NWC24ManageDlTaskListForMenu | 94.736840% | 151/152 instructions | read/delete result blocks and register lifetimes; 1 instruction missing
|
||||
NWC24ExtendDlTaskList | 99.854010% | 137/137 instructions | final reload-result register only (4 differences)
|
||||
NWC24iCheckDlHeaderConsistency | 98.773580% | 212/212 instructions | three prologue moves scheduled in a different order
|
||||
NWC24iCreateDlTaskList | 99.624060% | 133/133 instructions | header-pointer register allocation only (10 differences)
|
||||
AddTaskInternal | 93.578550% | 397/401 instructions | URL checks and free-slot/purge/update loop; 4 instructions missing
|
||||
onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 99.670090% | 682/682 instructions | register allocation only (37 differences)
|
||||
create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 99.819820% | 333/333 instructions | register allocation only (11 differences)
|
||||
init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 98.526120% | 536/536 instructions | register allocation only (155 differences)
|
||||
|
||||
## Attempt audit
|
||||
|
||||
Successful trials only; failed compiler trials are excluded. Distinct bodies were counted from the saved source for each logged trial after normalizing whitespace. The attempt log records each result.
|
||||
|
||||
PFDIR_GetSDD | 7 distinct successful source bodies
|
||||
PFDIR_p_rename | 3 distinct successful source bodies
|
||||
PFDIR_p_move | 3 distinct successful source bodies
|
||||
PFDIR_p_mkdir | 10 distinct successful source bodies
|
||||
NWC24SetDlInterval | 3 distinct successful source bodies
|
||||
NWC24ExtendDlTaskList | 3 distinct successful source bodies
|
||||
NWC24GetDlTask | 3 distinct successful source bodies
|
||||
NWC24iCreateDlTaskList | 3 distinct successful source bodies
|
||||
NWC24iCheckDlHeaderConsistency | 3 distinct successful source bodies
|
||||
NWC24DeleteDlTask | 3 distinct successful source bodies
|
||||
NWC24AddDlTask | 3 distinct successful source bodies
|
||||
NWC24InitDlTask | 3 distinct successful source bodies
|
||||
NWC24ManageDlTaskListForMenu | 3 distinct successful source bodies
|
||||
AddTaskInternal | 3 distinct successful source bodies
|
||||
NWC24UpdateDlTask | 3 distinct successful source bodies
|
||||
NWC24IterateDlTaskEx | 3 distinct successful source bodies
|
||||
NWC24PurgeOldestDlTask | 3 distinct successful source bodies
|
||||
NWC24IterateDlTask | 6 distinct successful source bodies
|
||||
onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 6 distinct successful source bodies
|
||||
init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 3 distinct successful source bodies
|
||||
doNumericWithDotMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 3 distinct successful source bodies
|
||||
doNumericMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 3 distinct successful source bodies
|
||||
create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 10 distinct successful source bodies
|
||||
changeInputMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFQ59textinput8keyboard13cellphonetype4Base9InputMode | 4 distinct successful source bodies
|
||||
setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 3 distinct successful source bodies
|
||||
|
||||
## Files and commits
|
||||
|
||||
Changed: libs/RVL_SDK/src/fa/pf_dir.c; libs/RevoEX/src/nwc24/NWC24Download.c; src/keyboard/tiCellPhone.cpp; include/keyboard/tiCellPhone.h; include/keyboard/tiCellPhoneLayout.h; include/keyboard/tiKeyboard.h; tools/decomp-assist/sol-high-round2-attempts.md; this report.
|
||||
|
||||
6eb8458d complete keyboard data and refine remaining bodies
|
||||
1669eba5 match keyboard vtables and command constants
|
||||
18c13528 match keyboard pane literals and animation tables
|
||||
c7b37722 refine download iterator control flow
|
||||
9febc706 match download deletion and directory data
|
||||
|
||||
Header declaration ordering changes are guarded by TI_CELLPHONE_MATCH_LAYOUT, defined only in tiCellPhone.cpp. Every original conditional branch of the moved layout declaration is retained.
|
||||
|
||||
Command 32 writes the convert-space query result in tiInputForm.cpp:1104 before use. This is an output parameter.
|
||||
|
||||
Uncertainty: no known data mismatch remains. Equal instruction counts in the three keyboard bodies still leave register allocation differences; exact source forms are unresolved.
|
||||
|
||||
## Every gate block
|
||||
|
||||
### sol-high-round2-before-gate.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3220/12496 data 80/80 functions 16/30 fuzzy 95.9936 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 16/30
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 95.9936
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 96.541664
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 83.96203
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 90.68965
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 90.992096
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24DeleteDlTask 98.04762
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 84.3125
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 94.335526
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 3220/12496 data 80 functions 16 fuzzy 95.9936
|
||||
[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 8/40 functions 34/38 fuzzy 98.8788 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 92.85714
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 98.87879
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 96.8879
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 97.376
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 96.97306
|
||||
[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11428/18976 data 8 functions 34 fuzzy 98.8788
|
||||
[src/keyboard/tiCellPhone] pool: IDENTICAL
|
||||
[src/keyboard/tiCellPhone] objdiff: code 10900/19028 data 4/3860 functions 79/86 fuzzy 97.7377 linked code 0
|
||||
[src/keyboard/tiCellPhone] instruction-exact functions: 79/86
|
||||
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .data size 2416 match 56.210873
|
||||
[src/keyboard/tiCellPhone] section .rodata size 1320 match 99.69697
|
||||
[src/keyboard/tiCellPhone] section .sdata size 112 match None
|
||||
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 55.555557
|
||||
[src/keyboard/tiCellPhone] section .text size 19028 match 97.73765
|
||||
[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 96.8959
|
||||
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 92.228226
|
||||
[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 96.468285
|
||||
[src/keyboard/tiCellPhone] below 100: changeInputMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFQ59textinput8keyboard13cellphonetype4Base9InputMode 90.062805
|
||||
[src/keyboard/tiCellPhone] below 100: doNumericMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb 93.92308
|
||||
[src/keyboard/tiCellPhone] below 100: doNumericWithDotMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb 95.0
|
||||
[src/keyboard/tiCellPhone] below 100: setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb 87.07143
|
||||
[src/keyboard/tiCellPhone] baseline: code 10900/19028 data 4 functions 79 fuzzy 97.7377
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.50505 -> 83.50505
|
||||
global fuzzy_match_percent: 97.03687 -> 97.03687
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 89.93258 -> 89.93258
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-high-round2-pool-gate.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 40/40 functions 34/38 fuzzy 98.8788 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 98.87879
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 96.8879
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 97.376
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 96.97306
|
||||
[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11428/18976 data 8 functions 34 fuzzy 98.8788
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.50505 -> 83.50505
|
||||
global fuzzy_match_percent: 97.03687 -> 97.03687
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 89.93258 -> 89.93433
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-high-round2-first-full.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 40/40 functions 34/38 fuzzy 98.8788 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 98.87879
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 96.8879
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 97.376
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 96.97306
|
||||
[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11428/18976 data 8 functions 34 fuzzy 98.8788
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3640/12496 data 80/80 functions 17/30 fuzzy 96.1690 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 17/30
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 96.169014
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 83.96203
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 90.68965
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 90.992096
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 84.3125
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 94.335526
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 3220/12496 data 80 functions 16 fuzzy 95.9936
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.50505 -> 83.51907
|
||||
global fuzzy_match_percent: 97.03687 -> 97.03761
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 89.93258 -> 89.93433
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-high-round2-nwc-full.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3640/12496 data 80/80 functions 17/30 fuzzy 97.1373 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 17/30
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 97.13732
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 94.620255
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 97.93104
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 94.17391
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 85.829544
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 94.73684
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 3220/12496 data 80 functions 16 fuzzy 95.9936
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.50505 -> 83.55567
|
||||
global fuzzy_match_percent: 97.03687 -> 97.04997
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 89.93258 -> 90.00635
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-high-round2-keyboard-full.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 40/40 functions 34/38 fuzzy 99.0601 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 99.060074
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 97.93772
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 97.808
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 96.97306
|
||||
[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11428/18976 data 8 functions 34 fuzzy 98.8788
|
||||
[src/keyboard/tiCellPhone] pool: IDENTICAL
|
||||
[src/keyboard/tiCellPhone] objdiff: code 12824/19028 data 1324/3860 functions 83/86 fuzzy 99.1997 linked code 0
|
||||
[src/keyboard/tiCellPhone] instruction-exact functions: 83/86
|
||||
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .data size 2416 match 56.210873
|
||||
[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .sdata size 112 match None
|
||||
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 55.555557
|
||||
[src/keyboard/tiCellPhone] section .text size 19028 match 99.19971
|
||||
[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 96.8959
|
||||
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 97.297295
|
||||
[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612
|
||||
[src/keyboard/tiCellPhone] baseline: code 10900/19028 data 4 functions 79 fuzzy 97.7377
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.50505 -> 83.58331
|
||||
global fuzzy_match_percent: 97.03687 -> 97.05209
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 89.93258 -> 90.00635
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-high-round2-resume-gate.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 40/40 functions 34/38 fuzzy 99.0601 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 99.060074
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 97.93772
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 97.808
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 96.97306
|
||||
[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11428/18976 data 8 functions 34 fuzzy 98.8788
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3640/12496 data 80/80 functions 17/30 fuzzy 97.1373 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 17/30
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 97.13732
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 94.620255
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 97.93104
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 94.17391
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 85.829544
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 94.73684
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 3220/12496 data 80 functions 16 fuzzy 95.9936
|
||||
[src/keyboard/tiCellPhone] pool: IDENTICAL
|
||||
[src/keyboard/tiCellPhone] objdiff: code 12824/19028 data 1332/3860 functions 83/86 fuzzy 99.1997 linked code 0
|
||||
[src/keyboard/tiCellPhone] instruction-exact functions: 83/86
|
||||
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .data size 2416 match 56.49574
|
||||
[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .sdata size 112 match None
|
||||
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .text size 19028 match 99.19971
|
||||
[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 96.8959
|
||||
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 97.297295
|
||||
[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612
|
||||
[src/keyboard/tiCellPhone] baseline: code 10900/19028 data 4 functions 79 fuzzy 97.7377
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.50505 -> 83.58331
|
||||
global fuzzy_match_percent: 97.03687 -> 97.05209
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 89.93258 -> 90.00679
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-high-round2-data-full.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/keyboard/tiCellPhone] pool: IDENTICAL
|
||||
[src/keyboard/tiCellPhone] objdiff: code 12824/19028 data 3748/3860 functions 83/86 fuzzy 99.5974 linked code 0
|
||||
[src/keyboard/tiCellPhone] instruction-exact functions: 83/86
|
||||
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .data size 2416 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .sdata size 112 match None
|
||||
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .text size 19028 match 99.597435
|
||||
[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009
|
||||
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 97.297295
|
||||
[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612
|
||||
[src/keyboard/tiCellPhone] baseline: code 10900/19028 data 4 functions 79 fuzzy 97.7377
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.50505 -> 83.58331
|
||||
global fuzzy_match_percent: 97.03687 -> 97.05460
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 89.93258 -> 90.13861
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-high-round2-final-full.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 40/40 functions 34/38 fuzzy 99.2629 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 99.262856
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 99.64947
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 97.808
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 96.97306
|
||||
[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11428/18976 data 8 functions 34 fuzzy 98.8788
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3640/12496 data 80/80 functions 17/30 fuzzy 97.1373 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 17/30
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 97.13732
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 94.620255
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 97.93104
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 94.17391
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 85.829544
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 94.73684
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 3220/12496 data 80 functions 16 fuzzy 95.9936
|
||||
[src/keyboard/tiCellPhone] pool: IDENTICAL
|
||||
[src/keyboard/tiCellPhone] objdiff: code 12824/19028 data 3748/3860 functions 83/86 fuzzy 99.7740 linked code 0
|
||||
[src/keyboard/tiCellPhone] instruction-exact functions: 83/86
|
||||
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .data size 2416 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .sdata size 112 match None
|
||||
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .text size 19028 match 99.77402
|
||||
[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009
|
||||
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.81982
|
||||
[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612
|
||||
[src/keyboard/tiCellPhone] baseline: code 10900/19028 data 4 functions 79 fuzzy 97.7377
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.50505 -> 83.58331
|
||||
global fuzzy_match_percent: 97.03687 -> 97.05702
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 89.93258 -> 90.13861
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-high-round2-final-data-full.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 40/40 functions 34/38 fuzzy 99.2629 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 99.262856
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 99.64947
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 97.808
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 96.97306
|
||||
[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11428/18976 data 8 functions 34 fuzzy 98.8788
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3640/12496 data 80/80 functions 17/30 fuzzy 97.1373 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 17/30
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 97.13732
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 94.620255
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 97.93104
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 94.17391
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 85.829544
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 94.73684
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 3220/12496 data 80 functions 16 fuzzy 95.9936
|
||||
[src/keyboard/tiCellPhone] pool: IDENTICAL
|
||||
[src/keyboard/tiCellPhone] objdiff: code 12824/19028 data 3860/3860 functions 83/86 fuzzy 99.7740 linked code 0
|
||||
[src/keyboard/tiCellPhone] instruction-exact functions: 83/86
|
||||
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .data size 2416 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .sdata size 112 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .text size 19028 match 99.77402
|
||||
[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009
|
||||
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.81982
|
||||
[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612
|
||||
[src/keyboard/tiCellPhone] baseline: code 10900/19028 data 4 functions 79 fuzzy 97.7377
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.50505 -> 83.58331
|
||||
global fuzzy_match_percent: 97.03687 -> 97.05702
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 89.93258 -> 90.14473
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-high-round2-final-gate.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 40/40 functions 34/38 fuzzy 99.2629 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 99.262856
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 99.64947
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 97.808
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 96.97306
|
||||
[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11428/18976 data 8 functions 34 fuzzy 98.8788
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3640/12496 data 80/80 functions 17/30 fuzzy 97.1469 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 17/30
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 97.14693
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 95.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 97.93104
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 94.17391
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 85.829544
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 94.73684
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 3220/12496 data 80 functions 16 fuzzy 95.9936
|
||||
[src/keyboard/tiCellPhone] pool: IDENTICAL
|
||||
[src/keyboard/tiCellPhone] objdiff: code 12824/19028 data 3860/3860 functions 83/86 fuzzy 99.7740 linked code 0
|
||||
[src/keyboard/tiCellPhone] instruction-exact functions: 83/86
|
||||
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .data size 2416 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .sdata size 112 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .text size 19028 match 99.77402
|
||||
[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009
|
||||
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.81982
|
||||
[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612
|
||||
[src/keyboard/tiCellPhone] baseline: code 10900/19028 data 4 functions 79 fuzzy 97.7377
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.50505 -> 83.58331
|
||||
global fuzzy_match_percent: 97.03687 -> 97.05706
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 89.93258 -> 90.14473
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
299
tools/decomp-assist/sol-high-round2.attempts.md
Normal file
299
tools/decomp-assist/sol-high-round2.attempts.md
Normal file
@@ -0,0 +1,299 @@
|
||||
Round 2; base f9bd6755; candidates measured independently from the current function body.
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: reuse channel argument for unsigned sample loop; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.958336, 15, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: scope device selector within loop; (99.583336, 7, 96, 96, 13, 2020, 32) -> BUILD FAIL 3U/src/libs/RVL_SDK/src/kpad && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RVL_SDK\src\kpad\KPAD.c
|
||||
# -------------------------------------
|
||||
# 204: u32 type = kpad->ringData[index].device;
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declare interrupt token before indices after size; (99.583336, 7, 96, 96, 13, 2020, 32) -> (99.010414, 17, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: reverse scale and coordinate multiplication operands; (96.57895, 9, 19, 19, 13, 2020, 32) -> (95.52631, 10, 19, 19, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: define projection factor after y temporary; (96.57895, 9, 19, 19, 13, 2020, 32) -> BUILD FAIL pad/KPAD.c -o build/43U/src/libs/RVL_SDK/src/kpad && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RVL_SDK\src\kpad\KPAD.c
|
||||
# -------------------------------------
|
||||
# 1242: f64 scaled = 0.908 * scale;
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: project vector using shared height and early double factor; (96.57895, 9, 19, 19, 13, 2020, 32) -> (95.52631, 11, 19, 19, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon: reuse normalized vector components after projection; (95.89109, 87, 100, 101, 13, 2020, 32) -> (88.0, 87, 100, 101, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon: keep horizon state as a vector copy; (95.89109, 87, 100, 101, 13, 2020, 32) -> (93.77228, 95, 102, 101, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon: reuse magnitude for final vector length; (95.89109, 87, 100, 101, 13, 2020, 32) -> (95.89109, 87, 100, 101, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declare sample ordinal after device with scoped device local; (99.583336, 7, 96, 96, 13, 2020, 32) -> (99.583336, 7, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: put destination width after loop ordinal and pointer last; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.489586, 25, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: declare all single precision coordinates before double scaling; (96.57895, 9, 19, 19, 13, 2020, 32) -> (96.57895, 10, 19, 19, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: calculate projection using a temporary vector; (96.57895, 9, 19, 19, 13, 2020, 32) -> (59.105263, 20, 23, 19, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_stick: retain clamp selector after extension pointer; (95.3481, 108, 157, 158, 13, 2020, 32) -> (93.00633, 123, 157, 158, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_stick: declare device and format before clamp and extension; (95.3481, 108, 157, 158, 13, 2020, 32) -> (95.3481, 108, 157, 158, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_stick: use local trigger range once for both trigger divisions; (95.3481, 108, 157, 158, 13, 2020, 32) -> (91.025314, 98, 156, 158, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: select minimum extent with a conditional expression; (93.55769, 21, 52, 52, 13, 2020, 32) -> (97.59615, 19, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: divide along separate width and height branches; (93.55769, 21, 52, 52, 13, 2020, 32) -> (91.59615, 31, 53, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: compute width squared before assigning height; (93.55769, 21, 52, 52, 13, 2020, 32) -> (93.55769, 21, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADiSamplingCallback: keep ring slot pointer before slot ordinal; (88.14835, 108, 182, 182, 13, 2020, 32) -> (88.14835, 108, 182, 182, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADiSamplingCallback: scope sensor extent scalars before angle and offset; (88.14835, 108, 182, 182, 13, 2020, 32) -> (87.79121, 108, 182, 182, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADiSamplingCallback: scale mode table index before querying DPD hardware; (88.14835, 108, 182, 182, 13, 2020, 32) -> (81.62637, 175, 178, 182, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_continue: copy whole typed candidate objects; (83.37681, 124, 141, 138, 13, 2020, 32) -> (86.347824, 124, 141, 138, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_continue: derive normalized direction before inverse distance; (83.37681, 124, 141, 138, 13, 2020, 32) -> (83.37681, 124, 141, 138, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_continue: split reversed and forward best candidates into signed dot branches; (83.37681, 124, 141, 138, 13, 2020, 32) -> (79.615944, 112, 140, 138, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADRead: retain conditional callback with pending flag test; (83.10022, 459, 470, 459, 13, 2020, 32) -> (83.57952, 458, 471, 459, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADRead: signed circular sample index following target cmpwi; (83.10022, 459, 470, 459, 13, 2020, 32) -> (83.05665, 459, 470, 459, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADRead: keep copied sample after gravity workspace to influence live frame; (83.10022, 459, 470, 459, 13, 2020, 32) -> (83.10022, 459, 470, 459, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_continue: walk second candidate with saved end pointer; (79.80645, 92, 95, 93, 13, 2020, 32) -> (79.37634, 93, 95, 93, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_continue: compute both tangent products before direction sums; (79.80645, 92, 95, 93, 13, 2020, 32) -> (80.07527, 92, 95, 93, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_continue: scale direction on right of products; (79.80645, 92, 95, 93, 13, 2020, 32) -> (79.860214, 92, 95, 93, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_first: cache first pointer for each inner pair scan; (72.86066, 110, 127, 122, 13, 2020, 32) -> (72.86066, 110, 127, 122, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_first: compute distance before direction normalization; (72.86066, 110, 127, 122, 13, 2020, 32) -> (72.86066, 110, 127, 122, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_first: copy absolute orientation into score after distance validation; (72.86066, 110, 127, 122, 13, 2020, 32) -> (72.86066, 110, 127, 122, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_dpd: use postdecrement pointer comparisons in DPD sample loop; (72.39209, 271, 281, 278, 13, 2020, 32) -> (73.54317, 271, 281, 278, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_dpd: scope pair normalization as vector delta; (72.39209, 271, 281, 278, 13, 2020, 32) -> BUILD FAIL D.c -o build/43U/src/libs/RVL_SDK/src/kpad && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d build/43U/src/libs/RVL_SDK/src/kpad/KPAD.d
|
||||
### mwcceppc.exe Compiler:
|
||||
# File: libs\RVL_SDK\src\kpad\KPAD.c
|
||||
# -------------------------------------
|
||||
# 1005: f32 scale = 1.0f / length;
|
||||
# Error: ^^^
|
||||
# (10141) expression syntax error
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_dpd: iterate duplicate objects with a counted inner loop; (72.39209, 271, 281, 278, 13, 2020, 32) -> (72.28058, 271, 281, 278, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADInit: separate reference extents from adjusted extents by reusing scalars; (71.85946, 198, 201, 185, 13, 2020, 32) -> (71.72433, 198, 201, 185, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADInit: introduce explicit squared reference extents before center reads; (71.85946, 198, 201, 185, 13, 2020, 32) -> (71.61622, 198, 201, 185, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADInit: normalize extent selection with conditional expression and late matrix pointer; (71.85946, 198, 201, 185, 13, 2020, 32) -> (72.46487, 197, 200, 185, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable: round horizontal rotation through local vector copy; (71.404, 241, 231, 250, 13, 2020, 32) -> (73.028, 247, 237, 250, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable: use vector for blended final position; (71.404, 241, 231, 250, 13, 2020, 32) -> (73.56, 241, 235, 250, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable: separate distance blend product before delta multiplication; (71.404, 241, 231, 250, 13, 2020, 32) -> (71.384, 241, 231, 250, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_first: construct missing endpoint vectors and typed coordinate copies; (70.220184, 109, 93, 109, 13, 2020, 32) -> (62.183487, 99, 112, 109, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_first: construct endpoint vectors and defer bounds to individual tests; (70.220184, 109, 93, 109, 13, 2020, 32) -> (73.02752, 114, 116, 109, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_first: copy both candidate and endpoint as typed objects; (70.220184, 109, 93, 109, 13, 2020, 32) -> (62.201836, 99, 112, 109, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD reset_kpad: walk pointers downward through inclusive beginning; (65.17094, 101, 115, 117, 13, 2020, 32) -> (0, 264, 264, 117, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD reset_kpad: copy the stored acceleration as a typed vector; (65.17094, 101, 115, 117, 13, 2020, 32) -> (69.37607, 121, 126, 117, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD reset_kpad: compute scaled reference after all bounds then resets; (65.17094, 101, 115, 117, 13, 2020, 32) -> (61.76923, 117, 116, 117, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_acc: represent core acceleration as local vector for length and speed; (63.5625, 386, 396, 400, 13, 2020, 32) -> (65.735, 383, 400, 400, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_acc: retain raw freestyle axes as named fields instead of array alias; (63.5625, 386, 396, 400, 13, 2020, 32) -> (63.5625, 386, 396, 400, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_acc: perform format selection with a switch over supported formats; (63.5625, 386, 396, 400, 13, 2020, 32) -> (64.3, 388, 398, 400, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: update half extents with compound assignments; (97.59615, 19, 52, 52, 13, 2020, 32) -> (98.84615, 10, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: initialize extents and squared lengths in separate scope; (97.59615, 19, 52, 52, 13, 2020, 32) -> (98.17308, 11, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: keep adjusted extents in original variables with goto join; (97.59615, 19, 52, 52, 13, 2020, 32) -> (91.63461, 32, 53, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_dpd: keep candidate delta as a Vec2 after correct C89 declarations; (73.54317, 271, 281, 278, 13, 2020, 32) -> (65.89568, 274, 277, 278, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes index,kpad,enabled,i,size,type,latest; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.489586, 25, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes size,i,type,index,latest,enabled,kpad; (99.583336, 7, 96, 96, 13, 2020, 32) -> (99.114586, 16, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes i,index,type,latest,kpad,size,enabled; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.489586, 25, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes size,latest,i,kpad,enabled,index,type; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.489586, 25, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes kpad,i,type,size,enabled,index,latest; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.697914, 21, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes kpad,i,type,enabled,latest,size,index; (99.583336, 7, 96, 96, 13, 2020, 32) -> (99.010414, 17, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes index,latest,size,type,i,enabled,kpad; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.489586, 25, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes kpad,type,index,enabled,i,latest,size; (99.583336, 7, 96, 96, 13, 2020, 32) -> (99.0625, 15, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes kpad,index,size,enabled,type,i,latest; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.90625, 18, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes latest,i,enabled,kpad,size,type,index; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.489586, 25, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes kpad,index,enabled,type,size,i,latest; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.90625, 18, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes i,enabled,size,index,type,latest,kpad; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.697914, 21, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes index,latest,i,enabled,kpad,type,size; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.75, 21, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes latest,enabled,index,type,i,kpad,size; (99.583336, 7, 96, 96, 13, 2020, 32) -> (99.166664, 14, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes enabled,size,kpad,type,latest,index,i; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.802086, 21, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes index,latest,kpad,type,i,enabled,size; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.75, 21, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes i,latest,type,size,enabled,kpad,index; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.489586, 25, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes type,latest,enabled,kpad,size,i,index; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.802086, 20, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes index,kpad,type,enabled,i,size,latest; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.489586, 25, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes type,size,latest,enabled,i,index,kpad; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.59375, 23, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes size,i,kpad,type,enabled,latest,index; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.489586, 25, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes type,index,enabled,kpad,latest,size,i; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.90625, 19, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes kpad,type,size,latest,i,enabled,index; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.697914, 21, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes enabled,type,index,latest,kpad,size,i; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.489586, 25, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes index,latest,type,size,enabled,kpad,i; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.489586, 25, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes i,type,size,kpad,latest,enabled,index; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.802086, 21, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes enabled,kpad,size,latest,type,index,i; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.802086, 21, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes i,size,latest,enabled,kpad,index,type; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.489586, 25, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes type,latest,i,kpad,size,enabled,index; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.489586, 25, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes size,enabled,i,index,kpad,type,latest; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.59375, 23, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes i,size,enabled,kpad,index,latest,type; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.489586, 25, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes enabled,index,size,i,latest,kpad,type; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.59375, 23, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes size,type,latest,index,kpad,enabled,i; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.802086, 20, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes enabled,index,size,i,kpad,latest,type; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.489586, 25, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: declaration lifetimes type,i,size,enabled,kpad,latest,index; (99.583336, 7, 96, 96, 13, 2020, 32) -> (98.489586, 25, 96, 96, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 0; (98.84615, 10, 52, 52, 13, 2020, 32) -> (97.01923, 19, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 1; (98.84615, 10, 52, 52, 13, 2020, 32) -> (97.21154, 19, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 2; (98.84615, 10, 52, 52, 13, 2020, 32) -> (97.01923, 19, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 3; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.65385, 13, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 4; (98.84615, 10, 52, 52, 13, 2020, 32) -> (99.03846, 8, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 5; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.26923, 16, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 6; (98.84615, 10, 52, 52, 13, 2020, 32) -> (96.44231, 22, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 7; (98.84615, 10, 52, 52, 13, 2020, 32) -> (96.63461, 22, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 8; (98.84615, 10, 52, 52, 13, 2020, 32) -> (97.21154, 19, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 9; (98.84615, 10, 52, 52, 13, 2020, 32) -> (99.23077, 7, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 10; (98.84615, 10, 52, 52, 13, 2020, 32) -> (97.01923, 19, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 11; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.65385, 13, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 12; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.84615, 10, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 13; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.26923, 16, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 14; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.84615, 10, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 15; (98.84615, 10, 52, 52, 13, 2020, 32) -> (97.01923, 19, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 16; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.65385, 13, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 17; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.46154, 15, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 18; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.84615, 10, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 19; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.46154, 14, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 20; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.26923, 16, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 21; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.84615, 10, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 22; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.26923, 16, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 23; (98.84615, 10, 52, 52, 13, 2020, 32) -> (97.01923, 19, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 24; (98.84615, 10, 52, 52, 13, 2020, 32) -> (96.44231, 22, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 25; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.26923, 16, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 26; (98.84615, 10, 52, 52, 13, 2020, 32) -> (96.82692, 20, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 27; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.46154, 15, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 28; (98.84615, 10, 52, 52, 13, 2020, 32) -> (99.03846, 8, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 29; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.46154, 15, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 30; (98.84615, 10, 52, 52, 13, 2020, 32) -> (96.44231, 22, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 31; (98.84615, 10, 52, 52, 13, 2020, 32) -> (97.01923, 19, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 32; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.26923, 16, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 33; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.26923, 16, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: extent scalar order 34; (98.84615, 10, 52, 52, 13, 2020, 32) -> (98.26923, 16, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: initialize channel pointer in declaration; (99.23077, 7, 52, 52, 13, 2020, 32) -> (99.23077, 7, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: load zero as a named local before squared extents; (99.23077, 7, 52, 52, 13, 2020, 32) -> (99.03846, 8, 52, 52, 13, 2020, 32)
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: square height within combined diagonal calculation; (99.23077, 7, 52, 52, 13, 2020, 32) -> (99.03846, 9, 52, 52, 13, 2020, 32)
|
||||
src/system/odh cdj_d_decompressLoop: restore typed member Huffman calls; (97.67297, 383, 899, 899, 16, 4092, 6360) -> BUILD FAIL Error: ^
|
||||
# (10248) function call '[CArGBAOdh].huffmanDecoder({lval} unsigned
|
||||
# long[64], SArCDJ_HuffmanRequest *, {lval} const unsigned long *[4], int,
|
||||
# {lval} int)' does not match
|
||||
# 'CArGBAOdh::huffmanDecoder(unsigned long *, SArCDJ_HuffmanRequest *,
|
||||
# unsigned short **, int, unsigned long)' (non-static)
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
src/system/odh cdj_d_decompressLoop: restore typed member inverse transform calls; (97.67297, 383, 899, 899, 16, 4092, 6360) -> (97.65073, 385, 899, 899, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_decompressLoop: restore all typed member decoder and transform calls; (97.67297, 383, 899, 899, 16, 4092, 6360) -> BUILD FAIL Error: ^
|
||||
# (10248) function call '[CArGBAOdh].huffmanDecoder({lval} unsigned
|
||||
# long[64], SArCDJ_HuffmanRequest *, {lval} const unsigned long *[4], int,
|
||||
# {lval} int)' does not match
|
||||
# 'CArGBAOdh::huffmanDecoder(unsigned long *, SArCDJ_HuffmanRequest *,
|
||||
# unsigned short **, int, unsigned long)' (non-static)
|
||||
# Too many errors printed, aborting program
|
||||
|
||||
User break, cancelled...
|
||||
ninja: build stopped: subcommand failed.
|
||||
|
||||
src/system/odh cdj_c_colorConv: declare persistent plane pointers before dimension processing; (97.402596, 30, 77, 77, 16, 4092, 6360) -> (97.402596, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: keep height before width test and iterate with signed row; (97.402596, 30, 77, 77, 16, 4092, 6360) -> (92.207794, 32, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_colorConv: keep plane size as shared unsigned scalar; (97.402596, 30, 77, 77, 16, 4092, 6360) -> (97.402596, 30, 77, 77, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv22: keep output and planar destinations before pixel count; (96.434425, 115, 244, 244, 16, 4092, 6360) -> (96.065575, 127, 244, 244, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv22: use signed raster index with unsigned texture masks; (96.434425, 115, 244, 244, 16, 4092, 6360) -> (96.434425, 115, 244, 244, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv22: reuse packed red scalar instead of fresh pixel temporaries; (96.434425, 115, 244, 244, 16, 4092, 6360) -> (95.45082, 119, 244, 244, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv21: use packed pixel scalar separate from red channel; (92.578575, 125, 145, 140, 16, 4092, 6360) -> (92.578575, 125, 145, 140, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv21: calculate texture stride in unsigned plane arithmetic; (92.578575, 125, 145, 140, 16, 4092, 6360) -> (92.578575, 125, 145, 140, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv21: keep channel samples and output pointer in inner loop scope; (92.578575, 125, 145, 140, 16, 4092, 6360) -> (92.61429, 124, 145, 140, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_decompressLoop: typed decoder and inverse calls with actual table pointer casts; (97.67297, 383, 899, 899, 16, 4092, 6360) -> (97.65073, 385, 899, 899, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_decompressLoop: typed calls with unsigned source limit parameter copy; (97.67297, 383, 899, 899, 16, 4092, 6360) -> (97.68409, 379, 899, 899, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_decompressLoop: typed calls with natural permutation index inside each reorder loop; (97.67297, 383, 899, 899, 16, 4092, 6360) -> (97.65073, 385, 899, 899, 16, 4092, 6360)
|
||||
src/system/odh huffmanCoder: read signed coefficients with sign extension instead of shifts; (91.96319, 155, 166, 163, 16, 4092, 6360) -> (90.29448, 78, 163, 163, 16, 4092, 6360)
|
||||
src/system/odh huffmanCoder: traverse signed halfword coefficient pointers consistently; (91.96319, 155, 166, 163, 16, 4092, 6360) -> (90.171776, 78, 163, 163, 16, 4092, 6360)
|
||||
src/system/odh huffmanCoder: reuse next coefficient cursor with postincrement pair stepping; (91.96319, 155, 166, 163, 16, 4092, 6360) -> (91.96319, 155, 166, 163, 16, 4092, 6360)
|
||||
src/system/odh huffmanDecoder: advance bitstream with a remaining-byte loop; (91.04902, 277, 308, 306, 16, 4092, 6360) -> (89.117645, 216, 306, 306, 16, 4092, 6360)
|
||||
src/system/odh huffmanDecoder: use unsigned maximum Huffman bit length throughout; (91.04902, 277, 308, 306, 16, 4092, 6360) -> (90.166664, 277, 308, 306, 16, 4092, 6360)
|
||||
src/system/odh huffmanDecoder: use signed table symbol category local with explicit pointer predictor; (91.04902, 277, 308, 306, 16, 4092, 6360) -> (91.04902, 277, 308, 306, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_setDequantizationTable: unsigned byte offset and direct field indexing; (88.27451, 46, 54, 51, 16, 4092, 6360) -> (92.98039, 44, 52, 51, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_setDequantizationTable: unsigned table offset with explicit row and scale indices; (88.27451, 46, 54, 51, 16, 4092, 6360) -> (92.98039, 44, 52, 51, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_setDequantizationTable: table pass as destination row index; (88.27451, 46, 54, 51, 16, 4092, 6360) -> (94.60784, 30, 51, 51, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: unsigned byte offset with field-indexed quantization output; (81.671425, 58, 72, 70, 16, 4092, 6360) -> (92.42857, 58, 71, 70, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: unsigned byte offset with separate scale and destination indices; (81.671425, 58, 72, 70, 16, 4092, 6360) -> (92.42857, 58, 71, 70, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: use coefficient row index for destination pointer; (81.671425, 58, 72, 70, 16, 4092, 6360) -> (86.51428, 49, 70, 70, 16, 4092, 6360)
|
||||
src/system/odh LineConv11: derive color planes from named pixel count and typed source indexing; (80.746574, 102, 146, 146, 16, 4092, 6360) -> (80.60959, 102, 146, 146, 16, 4092, 6360)
|
||||
src/system/odh LineConv11: declare floating chroma intermediates before luma conversion; (80.746574, 102, 146, 146, 16, 4092, 6360) -> (69.83562, 105, 146, 146, 16, 4092, 6360)
|
||||
src/system/odh LineConv11: use one raster ordinal in place of duplicate counter; (80.746574, 102, 146, 146, 16, 4092, 6360) -> (80.30137, 103, 146, 146, 16, 4092, 6360)
|
||||
src/system/odh fdct_fast: store butterflies in ascending even coefficient order; (78.30769, 118, 169, 169, 16, 4092, 6360) -> (73.02959, 111, 169, 169, 16, 4092, 6360)
|
||||
src/system/odh fdct_fast: use signed coefficient pointer for initial centered samples; (78.30769, 118, 169, 169, 16, 4092, 6360) -> (78.30769, 118, 169, 169, 16, 4092, 6360)
|
||||
src/system/odh fdct_fast: advance initial sample column by pointer rather than index; (78.30769, 118, 169, 169, 16, 4092, 6360) -> (76.87574, 131, 169, 169, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv12: share blue channel temporary across rows; (78.095894, 142, 148, 146, 16, 4092, 6360) -> (78.095894, 142, 148, 146, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv12: keep planar output pointers beside next-row pointer; (78.095894, 142, 148, 146, 16, 4092, 6360) -> (78.095894, 142, 148, 146, 16, 4092, 6360)
|
||||
src/system/odh LineDeconv12: compute RGB565 channels before shifting packed pixel; (78.095894, 142, 148, 146, 16, 4092, 6360) -> (83.4726, 124, 146, 146, 16, 4092, 6360)
|
||||
src/system/odh idct_fast: advance coefficient and quantization pointers at common column exit; (70.49789, 174, 236, 237, 16, 4092, 6360) -> (69.12236, 210, 233, 237, 16, 4092, 6360)
|
||||
src/system/odh idct_fast: use signed workspace coefficients throughout butterfly rows; (70.49789, 174, 236, 237, 16, 4092, 6360) -> (70.49789, 174, 236, 237, 16, 4092, 6360)
|
||||
src/system/odh idct_fast: calculate output row address before first workspace load; (70.49789, 174, 236, 237, 16, 4092, 6360) -> (70.49789, 174, 236, 237, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_setDequantizationTable: initialize destination row before standard table row; (94.60784, 30, 51, 51, 16, 4092, 6360) -> (81.01961, 38, 51, 51, 16, 4092, 6360)
|
||||
src/system/odh cdj_d_setDequantizationTable: name normalization divisor at outer scope; (94.60784, 30, 51, 51, 16, 4092, 6360) -> (94.60784, 30, 51, 51, 16, 4092, 6320)
|
||||
src/system/odh cdj_d_setDequantizationTable: set destination by whole row index without row pointer; (94.60784, 30, 51, 51, 16, 4092, 6360) -> (94.60784, 30, 51, 51, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: use pass and coefficient indices for direct destination field; (92.42857, 58, 71, 70, 16, 4092, 6360) -> (93.97143, 48, 70, 70, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: separate outer pass variable for scale application; (92.42857, 58, 71, 70, 16, 4092, 6360) -> (93.97143, 48, 70, 70, 16, 4092, 6360)
|
||||
src/system/odh cdj_c_setQuantizationTable: keep explicit scale and output ordinal with row multiplication; (92.42857, 58, 71, 70, 16, 4092, 6360) -> (93.97143, 48, 70, 70, 16, 4092, 6360)
|
||||
src/BS2/BS2Mach BS2StartGCGame: multiply RTC sum before timer frequency; (98.11404, 97, 227, 228, 21, 4052, 155504) -> (98.24561, 93, 227, 228, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGCGame: poll DVD command state directly as original load loop; (98.11404, 97, 227, 228, 21, 4052, 155504) -> (95.4386, 103, 227, 228, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGCGame: reuse SRAM counter bias for time sum temporary; (98.11404, 97, 227, 228, 21, 4052, 155504) -> (98.13596, 97, 227, 228, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGame: declare boot state flags near read and write scope; (95.496185, 173, 401, 393, 21, 4052, 155504) -> (95.496185, 173, 401, 393, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGame: poll DVD state directly before boot transition; (95.496185, 173, 401, 393, 21, 4052, 155504) -> (93.94402, 179, 401, 393, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2StartGame: declare IOS title halves adjacent to ticket count and views; (95.496185, 173, 401, 393, 21, 4052, 155504) -> (95.2799, 189, 401, 393, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideCallback: compute remaining amount from updated total before advancing buffer; (85.03906, 107, 119, 128, 21, 4052, 155504) -> (85.03906, 107, 119, 128, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideCallback: share read and write completion test after size branches; (85.03906, 107, 119, 128, 21, 4052, 155504) -> (68.984375, 106, 128, 128, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideCallback: split cancellation and failure as early exits; (85.03906, 107, 119, 128, 21, 4052, 155504) -> (85.03906, 107, 119, 128, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach CheckBS2CommandStatus: combine cache-disabled conditions in one branch; (80.133, 321, 387, 406, 21, 4052, 155504) -> (80.133, 321, 387, 406, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach CheckBS2CommandStatus: carry transfer length through a single local before overflow check; (80.133, 321, 387, 406, 21, 4052, 155504) -> (80.133, 321, 387, 406, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach CheckBS2CommandStatus: compute partition rounded length after completing command flag; (80.133, 321, 387, 406, 21, 4052, 155504) -> (80.12069, 321, 387, 406, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2Tick: use dedicated unsigned ticket byte counter; (74.78608, 1765, 1905, 1940, 21, 4052, 155504) -> (74.78608, 1765, 1905, 1940, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2Tick: use signed OS time type for delay arithmetic; (74.78608, 1765, 1905, 1940, 21, 4052, 155504) -> (74.78608, 1765, 1905, 1940, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2Tick: perform IOS title half extraction in named title identifier; (74.78608, 1765, 1905, 1940, 21, 4052, 155504) -> (74.77577, 1765, 1905, 1940, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideReadAsync: assign completion operation and transfer counters before pointers; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (60.31915, 44, 45, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideReadAsync: choose a bounded first transfer size before reporting and issuing; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (28.382978, 45, 37, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideReadAsync: place file pointer before length and buffer after branch comparison; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (59.87234, 43, 46, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideWriteAsync: assign completion operation and transfer counters before pointers; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (60.31915, 44, 45, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideWriteAsync: choose a bounded first transfer size before reporting and issuing; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (28.382978, 45, 37, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach BS2NANDDivideWriteAsync: place file pointer before length and buffer after branch comparison; (60.29787, 45, 45, 47, 21, 4052, 155504) -> (59.87234, 43, 46, 47, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach Run: iterate cache blocks with explicit ordinal instead of predecrement; (0, 43, 28, 43, 21, 4052, 155504) -> (0, 43, 31, 43, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach Run: clear and flush entire cache extent as a range; (0, 43, 28, 43, 21, 4052, 155504) -> (0, 43, 25, 43, 21, 4052, 155504)
|
||||
src/BS2/BS2Mach Run: transfer to application without a fourth argument value; (0, 43, 28, 43, 21, 4052, 155504) -> (0, 43, 26, 43, 21, 4052, 155504)
|
||||
All four units: audited target st_value order; corrected KPAD definition order and odh header/ScaleLimit order; no missing functions.
|
||||
src/BS2/BS2Update UpdateThread: walk update and seat entries by pointers with a separate flag index; (84.05586, 867, 863, 913, 8, 112, 0) -> (83.423874, 865, 860, 913, 8, 112, 0)
|
||||
src/BS2/BS2Update UpdateThread: keep available bytes as a local before budget checks; (84.05586, 867, 863, 913, 8, 112, 0) -> (84.05586, 867, 863, 913, 8, 112, 0)
|
||||
src/BS2/BS2Update UpdateThread: keep stack workspaces in original product title and DVD order; (84.05586, 867, 863, 913, 8, 112, 0) -> (84.05586, 867, 863, 913, 8, 112, 0)
|
||||
src/BS2/BS2Update BS2UpdateInit: retain thread pointer from entry through create and resume; (79.875, 65, 71, 72, 8, 112, 0) -> (79.875, 65, 71, 72, 8, 112, 0)
|
||||
src/BS2/BS2Update BS2UpdateInit: derive stack end from stack pointer kept with flag pointer; (79.875, 65, 71, 72, 8, 112, 0) -> (79.875, 65, 71, 72, 8, 112, 0)
|
||||
src/BS2/BS2Update BS2UpdateInit: store allocator before issuing version report calls; (79.875, 65, 71, 72, 8, 112, 0) -> (71.611115, 64, 71, 72, 8, 112, 0)
|
||||
|
||||
Final remaining-function evidence; counts include only compiled candidates, not failed builds.
|
||||
libs/RVL_SDK/src/kpad/KPAD get_ring_buffer_by_kpad1_style: 39 compiled attempts; 99.583336%; instructions 96/96, positional differences 7; register allocation and instruction scheduling.
|
||||
libs/RVL_SDK/src/kpad/KPAD reset_kpad: 3 compiled attempts; 69.37607%; instructions 126/117, positional differences 121; remaining control flow, reloads, or temporary storage differ.
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADGetProjectionPos: 4 compiled attempts; 96.57895%; instructions 19/19, positional differences 9; register allocation and instruction scheduling.
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADSetSensorHeight: 44 compiled attempts; 99.23077%; instructions 52/52, positional differences 7; register allocation and instruction scheduling.
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_acc_horizon: 3 compiled attempts; 95.89109%; instructions 100/101, positional differences 87; remaining control flow, reloads, or temporary storage differ.
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_acc: 3 compiled attempts; 65.735%; instructions 400/400, positional differences 383; register allocation and instruction scheduling.
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_first: 3 compiled attempts; 72.86066%; instructions 127/122, positional differences 110; remaining control flow, reloads, or temporary storage differ.
|
||||
libs/RVL_SDK/src/kpad/KPAD select_2obj_continue: 3 compiled attempts; 86.347824%; instructions 141/138, positional differences 124; remaining control flow, reloads, or temporary storage differ.
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_first: 3 compiled attempts; 73.02752%; instructions 116/109, positional differences 114; remaining control flow, reloads, or temporary storage differ.
|
||||
libs/RVL_SDK/src/kpad/KPAD select_1obj_continue: 3 compiled attempts; 80.07527%; instructions 95/93, positional differences 92; remaining control flow, reloads, or temporary storage differ.
|
||||
libs/RVL_SDK/src/kpad/KPAD calc_dpd_variable: 3 compiled attempts; 73.56%; instructions 235/250, positional differences 241; remaining control flow, reloads, or temporary storage differ.
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_dpd: 3 compiled attempts; 73.54317%; instructions 281/278, positional differences 271; remaining control flow, reloads, or temporary storage differ.
|
||||
libs/RVL_SDK/src/kpad/KPAD read_kpad_stick: 3 compiled attempts; 95.3481%; instructions 157/158, positional differences 108; remaining control flow, reloads, or temporary storage differ.
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADRead: 3 compiled attempts; 83.57952%; instructions 471/459, positional differences 458; remaining control flow, reloads, or temporary storage differ.
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADInit: 3 compiled attempts; 72.46487%; instructions 200/185, positional differences 197; remaining control flow, reloads, or temporary storage differ.
|
||||
libs/RVL_SDK/src/kpad/KPAD KPADiSamplingCallback: 3 compiled attempts; 88.14835%; instructions 182/182, positional differences 108; register allocation and instruction scheduling.
|
||||
src/system/odh cdj_c_setQuantizationTable__9CArGBAOdhFP16SArCDJ_OdhMasterUl: 6 compiled attempts; 93.97143%; instructions 70/70, positional differences 48; register allocation and instruction scheduling.
|
||||
src/system/odh cdj_c_colorConv__9CArGBAOdhFP16SArCDJ_OdhMasterPUci: 3 compiled attempts; 97.402596%; instructions 77/77, positional differences 30; register allocation and instruction scheduling.
|
||||
src/system/odh LineConv11__9CArGBAOdhFPUcPUcPUcPUcUsUsPCli: 3 compiled attempts; 80.746574%; instructions 146/146, positional differences 102; register allocation and instruction scheduling.
|
||||
src/system/odh fdct_fast__9CArGBAOdhFPUlPUcUlPUl: 3 compiled attempts; 78.30769%; instructions 169/169, positional differences 118; register allocation and instruction scheduling.
|
||||
src/system/odh huffmanCoder__9CArGBAOdhFPUsP21SArCDJ_HuffmanRequest: 3 compiled attempts; 91.96319%; instructions 166/163, positional differences 155; remaining control flow, reloads, or temporary storage differ.
|
||||
src/system/odh cdj_d_decompressLoop__9CArGBAOdhFP16SArCDJ_OdhMasterii: 4 compiled attempts; 97.68409%; instructions 899/899, positional differences 379; register allocation and instruction scheduling.
|
||||
src/system/odh cdj_d_setDequantizationTable__9CArGBAOdhFP16SArCDJ_OdhMasterUl: 6 compiled attempts; 94.60784%; instructions 51/51, positional differences 30; register allocation and instruction scheduling.
|
||||
src/system/odh LineDeconv21__9CArGBAOdhFPUcPUcPUcPUcUsUsPC12SArDeconvTbli: 3 compiled attempts; 92.61429%; instructions 145/140, positional differences 124; remaining control flow, reloads, or temporary storage differ.
|
||||
src/system/odh LineDeconv12__9CArGBAOdhFPUcPUcPUcPUcUsUsPC12SArDeconvTbli: 3 compiled attempts; 83.4726%; instructions 146/146, positional differences 124; register allocation and instruction scheduling.
|
||||
src/system/odh LineDeconv22__9CArGBAOdhFPUcPUcPUcPUcUsUsPC12SArDeconvTbli: 3 compiled attempts; 96.434425%; instructions 244/244, positional differences 115; register allocation and instruction scheduling.
|
||||
src/system/odh huffmanDecoder__9CArGBAOdhFPUlP21SArCDJ_HuffmanRequestPPUsiUl: 3 compiled attempts; 91.04902%; instructions 308/306, positional differences 277; remaining control flow, reloads, or temporary storage differ.
|
||||
src/system/odh idct_fast__9CArGBAOdhFPCUcPUlPUlPUcUl: 3 compiled attempts; 70.49789%; instructions 236/237, positional differences 174; remaining control flow, reloads, or temporary storage differ.
|
||||
src/BS2/BS2Mach Run: 3 compiled attempts; None%; instructions 28/43, positional differences 43; original clears architectural registers and replaces stack before branch; cannot express that faithfully with the permitted C changes.
|
||||
src/BS2/BS2Mach BS2StartGame: 3 compiled attempts; 95.496185%; instructions 401/393, positional differences 173; DVD status poll and MMIO loads plus live register allocation differ.
|
||||
src/BS2/BS2Mach BS2StartGCGame: 3 compiled attempts; 98.24561%; instructions 227/228, positional differences 93; DVD status poll and MMIO loads plus live register allocation differ.
|
||||
src/BS2/BS2Mach BS2NANDDivideCallback: 3 compiled attempts; 85.03906%; instructions 119/128, positional differences 107; target retains asynchronous global reloads that current nonvolatile C definitions eliminate.
|
||||
src/BS2/BS2Mach BS2NANDDivideReadAsync: 3 compiled attempts; 60.31915%; instructions 45/47, positional differences 44; target retains asynchronous global reloads that current nonvolatile C definitions eliminate.
|
||||
src/BS2/BS2Mach BS2NANDDivideWriteAsync: 3 compiled attempts; 60.31915%; instructions 45/47, positional differences 44; target retains asynchronous global reloads that current nonvolatile C definitions eliminate.
|
||||
src/BS2/BS2Mach CheckBS2CommandStatus: 3 compiled attempts; 80.133%; instructions 387/406, positional differences 321; target retains asynchronous global reloads that current nonvolatile C definitions eliminate.
|
||||
src/BS2/BS2Mach BS2Tick: 3 compiled attempts; 74.78608%; instructions 1905/1940, positional differences 1765; remaining control flow, reloads, or temporary storage differ.
|
||||
src/BS2/BS2Update BS2UpdateInit: 3 compiled attempts; 79.875%; instructions 71/72, positional differences 65; target retains shared BSS base across flags and thread setup; source uses separate symbol addressing.
|
||||
src/BS2/BS2Update UpdateThread: 3 compiled attempts; 84.05586%; instructions 863/913, positional differences 867; remaining control flow, reloads, or temporary storage differ.
|
||||
196
tools/decomp-assist/sol-high-round3-attempts.md
Normal file
196
tools/decomp-assist/sol-high-round3-attempts.md
Normal file
@@ -0,0 +1,196 @@
|
||||
# Matching round 3
|
||||
|
||||
Baseline 91e65d76. Data already 100% in the three priority units; preserve all pools. Closest functions first within NWC24Download, then tiCellPhone, then pf_dir.
|
||||
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 1-wide-entry-index | objdiff 99.523810% | insns 147/147 | positional diffs 3 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 2-late-task-view | objdiff 99.727890% | insns 147/147 | positional diffs 8 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 3-distinct-entry-id | objdiff 99.897960% | insns 147/147 | positional diffs 3 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 1-independent-reload-result | objdiff 99.051094% | insns 138/137 | positional diffs 18 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 2-split-write-result | objdiff 96.934300% | insns 141/137 | positional diffs 20 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 3-loop-countdown-condition | objdiff 98.905110% | insns 138/137 | positional diffs 20 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 1-read-operation-scope | objdiff 99.728264% | insns 92/92 | positional diffs 5 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 2-independent-close-status | objdiff 99.728264% | insns 92/92 | positional diffs 5 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 3-task-id-wide-seek-view | objdiff 99.130430% | insns 92/92 | positional diffs 5 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 1-typed-size-and-clear-cursor | objdiff 99.624060% | insns 133/133 | positional diffs 10 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 2-countdown-loop | objdiff 95.781950% | insns 136/133 | positional diffs 130 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 3-inner-header-initialization | objdiff 99.624060% | insns 133/133 | positional diffs 10 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24InitDlTask | 1-id-pair-array | objdiff 98.923615% | insns 144/144 | positional diffs 31 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24InitDlTask | 2-type-flag-before-fields | objdiff 89.090280% | insns 144/144 | positional diffs 61 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24InitDlTask | 3-direct-typed-task-lifetime | objdiff 98.923615% | insns 144/144 | positional diffs 31 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 1-task-view-before-parameter-aliases | objdiff 98.773580% | insns 212/212 | positional diffs 3 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 2-task-storage-lifetime-nested | objdiff 98.679245% | insns 212/212 | positional diffs 7 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 3-unsigned-repair-cursor | objdiff 94.830185% | insns 206/212 | positional diffs 204 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTaskEx | 1-reversed-comparison-operands | objdiff 98.034485% | insns 145/145 | positional diffs 17 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTaskEx | 2-found-before-entry-output | objdiff 98.034485% | insns 145/145 | positional diffs 17 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTaskEx | 3-signed-sort-direction | objdiff 98.034485% | insns 145/145 | positional diffs 17 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 1-cached-entry-limits | objdiff 97.552444% | insns 146/143 | positional diffs 140 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 2-universal-time-success-scope | objdiff 96.783220% | insns 145/143 | positional diffs 139 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 3-header-check-expanded-with-status | objdiff 96.538460% | insns 146/143 | positional diffs 140 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 1-top-tested-entry-loop | objdiff 93.544304% | insns 79/79 | positional diffs 20 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 2-loop-check-helper-header-reload | objdiff 93.544304% | insns 79/79 | positional diffs 20 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 3-increment-loop-condition | objdiff 92.531650% | insns 78/79 | positional diffs 50 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ManageDlTaskListForMenu | 1-read-task-unaliased-removal | objdiff 96.743420% | insns 150/152 | positional diffs 36 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ManageDlTaskListForMenu | 2-positive-read-status-scope | objdiff 89.486840% | insns 150/152 | positional diffs 147 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ManageDlTaskListForMenu | 3-max-count-load-expanded | objdiff 94.736840% | insns 151/152 | positional diffs 137 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24UpdateDlTask | 1-retry-status-before-loop | objdiff 74.865616% | insns 295/253 | positional diffs 291 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24UpdateDlTask | 2-separate-access-status-after-time | objdiff 93.877470% | insns 249/253 | positional diffs 249 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24UpdateDlTask | 3-retry-result-do-loop | objdiff 91.090910% | insns 248/253 | positional diffs 250 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 1-retry-allocation-until-task-assigned | objdiff 71.753120% | insns 398/401 | positional diffs 319 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 2-find-status-success-or-full | objdiff 93.578550% | insns 397/401 | positional diffs 328 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 3-explicit-task-null-validation | objdiff 70.316710% | insns 401/401 | positional diffs 383 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24PurgeOldestDlTask | 1-candidate-check-with-in-loop-call | objdiff 84.312500% | insns 167/176 | positional diffs 86 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24PurgeOldestDlTask | 2-read-positive-result-branch | objdiff 85.204544% | insns 170/176 | positional diffs 166 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24PurgeOldestDlTask | 3-initialize-bounds-before-flags | objdiff 84.363640% | insns 171/176 | positional diffs 166 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 4-entry-pointer-spans-division | objdiff 96.122450% | insns 142/147 | positional diffs 33 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 1-pane-record-pointer | objdiff 99.819820% | insns 333/333 | positional diffs 11 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 2-pane-record-before-construction | objdiff 91.141140% | insns 329/333 | positional diffs 281 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 3-inner-animation-record | BUILD FAILED; see saved build output
|
||||
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 1-retain-event-record-through-trigger | objdiff 99.670090% | insns 682/682 | positional diffs 37 | regressions 0
|
||||
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 2-trigger-state-before-name | objdiff 99.384160% | insns 682/682 | positional diffs 38 | regressions 0
|
||||
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 3-scoped-keyset-pointer | objdiff 99.670090% | insns 682/682 | positional diffs 37 | regressions 0
|
||||
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 1-label-before-name-lifetime | objdiff 98.526120% | insns 536/536 | positional diffs 155 | regressions 0
|
||||
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 2-retain-current-keyset-for-label | objdiff 97.460820% | insns 533/536 | positional diffs 411 | regressions 0
|
||||
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 3-toggle-name-loop-cursor | objdiff 98.522385% | insns 536/536 | positional diffs 155 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 3-inner-animation-record | objdiff 97.897896% | insns 333/333 | positional diffs 18 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 1-index-advance-before-countdown | objdiff 99.710144% | insns 69/69 | positional diffs 2 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 2-next-entry-lifetime | objdiff 99.681160% | insns 69/69 | positional diffs 2 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 3-two-typed-cursors | objdiff 88.608696% | insns 64/69 | positional diffs 67 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 1-scope-cluster-write-index | objdiff 99.649470% | insns 562/562 | positional diffs 36 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 2-dot-record-fields-explicit | objdiff 99.455510% | insns 562/562 | positional diffs 58 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 3-separate-long-name-count-value | objdiff 98.108540% | insns 564/562 | positional diffs 220 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 1-shared-update-return | objdiff 98.336000% | insns 625/625 | positional diffs 264 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 2-narrow-entry-offset-arithmetic | objdiff 97.808000% | insns 628/625 | positional diffs 540 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 3-directory-open-loop-field-cursor | objdiff 97.476800% | insns 628/625 | positional diffs 539 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 1-ancestry-top-check-and-shared-stop | objdiff 97.218704% | insns 629/631 | positional diffs 558 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 2-byte-long-name-offset | objdiff 97.226620% | insns 639/631 | positional diffs 563 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 3-directory-record-pointer-for-ancestry | objdiff 96.890650% | insns 629/631 | positional diffs 558 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 4-parameter-order-and-post-repair-success | objdiff 98.773580% | insns 212/212 | positional diffs 3 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 4-count-conversion-scoped-around-legacy-header | objdiff 95.454544% | insns 145/143 | positional diffs 84 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 4-positive-allocation-status-first | objdiff 93.024940% | insns 397/401 | positional diffs 328 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 4-ancestry-shared-bottom-test | objdiff 96.973060% | insns 636/631 | positional diffs 563 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 5-ancestry-loop-with-explicit-top-exit | BUILD FAILED; see saved build output
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 6-restore-ancestry-to-top-loop-with-byte-offset | objdiff 96.973060% | insns 636/631 | positional diffs 563 | regressions 0
|
||||
|
||||
Audit: PFDIR_p_move trials 1 and 3 removed the initial root check and are excluded from the attempt count. Only equivalent ancestry variants retained; trial 2 restores the root check. Revisited functions now measure the current source before selecting a better result.
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 7-explicit-root-exit-before-search | objdiff 98.510300% | insns 635/631 | positional diffs 562 | regressions 0
|
||||
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 8-cached-ancestry-next-cluster | objdiff 97.028530% | insns 635/631 | positional diffs 563 | regressions 0
|
||||
|
||||
Priority-unit review: pools and every data section remain 100%; all twenty open functions have at least three successful body variants (failed builds and non-equivalent ancestry trials excluded). Changes retained: iterator tie comparison, unaliased menu removal, shared rename return, equivalent move root-exit loop. Next: MsgCommit pool first.
|
||||
libs/RevoEX/src/nwc24/NWC24MsgCommit | NWC24CommitMsgInternal | 1-board-flags-local-lifetimes | objdiff 99.891174% | insns 827/827 | positional diffs 18 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgCommit | NWC24CommitMsgInternal | 2-plain-text-error-positive-scope | objdiff 99.891174% | insns 827/827 | positional diffs 18 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgCommit | NWC24CommitMsgInternal | 3-separate-body-result-and-board-values | objdiff 99.915360% | insns 827/827 | positional diffs 14 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgCommit | WriteMIMEAttachHeader | 1-order-capacity-sum-left-to-right | objdiff 94.673910% | insns 92/92 | positional diffs 14 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgCommit | WriteMIMEAttachHeader | 2-separate-header-capacity-local | objdiff 97.500000% | insns 92/92 | positional diffs 5 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgCommit | WriteMIMEAttachHeader | 3-balanced-length-sum | objdiff 97.282610% | insns 92/92 | positional diffs 8 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgCommit | CheckMsgBoxSpace | 1-combine-base64-size-increment-last | objdiff 85.573990% | insns 223/223 | positional diffs 73 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgCommit | CheckMsgBoxSpace | 2-retain-attachment-base64-and-lines | objdiff 79.372200% | insns 223/223 | positional diffs 103 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgCommit | CheckMsgBoxSpace | 3-unsigned-attachment-cursor | objdiff 78.573990% | insns 214/223 | positional diffs 213 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgCommit | NWC24CommitMsgInternal | data1-global-loopback-definition-after-functions | objdiff 99.915360% | insns 827/827 | positional diffs 14 | regressions 0
|
||||
data1-global-loopback-definition-after-functions sections: [{'name': '.bss', 'size': '64', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.data', 'size': '680', 'metadata': {}}, {'name': '.sbss', 'size': '8', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata', 'size': '152', 'fuzzy_match_percent': 18.765432, 'metadata': {}}, {'name': '.text', 'size': '8532', 'fuzzy_match_percent': 98.442566, 'metadata': {}}]
|
||||
libs/RevoEX/src/nwc24/NWC24MsgCommit | NWC24CommitMsgInternal | data2-content-format-definitions-after-writers | objdiff 99.915360% | insns 827/827 | positional diffs 14 | regressions 0
|
||||
data2-content-format-definitions-after-writers sections: [{'name': '.bss', 'size': '64', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.data', 'size': '680', 'metadata': {}}, {'name': '.sbss', 'size': '8', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata', 'size': '152', 'fuzzy_match_percent': 11.358025, 'metadata': {}}, {'name': '.text', 'size': '8532', 'fuzzy_match_percent': 98.442566, 'metadata': {}}]
|
||||
libs/RevoEX/src/nwc24/NWC24MsgCommit | NWC24CommitMsgInternal | data3-subject-field-owned-line-ending | objdiff 99.915360% | insns 827/827 | positional diffs 14 | regressions 0
|
||||
data3-subject-field-owned-line-ending sections: [{'name': '.bss', 'size': '64', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.data', 'size': '680', 'metadata': {}}, {'name': '.sbss', 'size': '8', 'fuzzy_match_percent': 100.0, 'metadata': {}}, {'name': '.sdata', 'size': '152', 'fuzzy_match_percent': 18.765432, 'metadata': {}}, {'name': '.text', 'size': '8532', 'fuzzy_match_percent': 98.442566, 'metadata': {}}]
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | CopyWithoutLinearWhiteSpaces | 1-hoist-capacity-limit | objdiff 100.000000% | insns 73/73 | positional diffs 0 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | CopyWithoutLinearWhiteSpaces | 2-loop-character-with-output-length-scope | objdiff 99.109590% | insns 73/73 | positional diffs 13 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | CopyWithoutLinearWhiteSpaces | 3-signed-output-offset | objdiff 98.561646% | insns 73/73 | positional diffs 17 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | ExtractEncodedText | 1-split-null-guards-and-consumed-pointer-check | objdiff 94.296295% | insns 134/135 | positional diffs 102 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | ExtractEncodedText | 2-preserve-leading-marker-pointer | objdiff 94.148150% | insns 133/135 | positional diffs 102 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | ExtractEncodedText | 3-second-marker-index-result | objdiff 86.703705% | insns 137/135 | positional diffs 104 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 1-signed-remaining-size-and-byte-terminator | objdiff 88.423910% | insns 95/92 | positional diffs 89 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 2-retain-input-and-output-size-values | objdiff 92.500000% | insns 95/92 | positional diffs 74 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 3-removed-redundant-null-check-with-signed-remaining | objdiff 91.576090% | insns 92/92 | positional diffs 59 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | QDecode | 1-byte-result-and-independent-hex-validity | objdiff 92.609590% | insns 147/146 | positional diffs 113 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | QDecode | 2-whitespace-next-byte-cursor | objdiff 94.130135% | insns 146/146 | positional diffs 59 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | QDecode | 3-advance-main-input-during-decode | objdiff 92.609590% | insns 147/146 | positional diffs 113 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 1-leading-marker-kept-through-second-scan | objdiff 81.190475% | insns 81/84 | positional diffs 61 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 2-second-marker-pointer-advancing-loop | objdiff 79.095240% | insns 85/84 | positional diffs 59 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 3-copy-positive-size-branch | objdiff 92.380950% | insns 83/84 | positional diffs 56 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | DecodeWord | 1-use-real-marker-pointer | objdiff 79.188890% | insns 178/180 | positional diffs 168 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | DecodeWord | 2-delimiter-derived-from-offset | objdiff 79.661110% | insns 179/180 | positional diffs 168 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | DecodeWord | 3-signed-whitespace-prefix-capacity | BUILD FAILED; see saved build output
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 1-charset-length-before-capacity-test | objdiff 71.681816% | insns 176/198 | positional diffs 168 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 2-delimiter-character-lived-through-word | objdiff 71.681816% | insns 176/198 | positional diffs 168 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 3-overflow-result-restore-at-end | objdiff 69.363640% | insns 176/198 | positional diffs 156 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | DecodeWord | 4-native-int-whitespace-capacity | objdiff 79.661110% | insns 179/180 | positional diffs 168 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectQP | 1-signed-second-buffer-capacity | objdiff 99.548615% | insns 144/144 | positional diffs 12 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectQP | 2-scope-source-offset-after-encoding | BUILD FAILED; see saved build output
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectQP | 3-loop-offset-increment-after-length | objdiff 98.020836% | insns 144/144 | positional diffs 16 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24SetMsgSubjectAndTextPublic | 1-scoped-private-message-for-protection | objdiff 97.210526% | insns 190/190 | positional diffs 65 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24SetMsgSubjectAndTextPublic | 2-char-work-address-view | objdiff 98.236840% | insns 190/190 | positional diffs 65 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24SetMsgSubjectAndTextPublic | 3-output-subject-allocation-size-lived-after-conversion | objdiff 97.210526% | insns 190/190 | positional diffs 65 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgTextPublic | 1-read-result-switch | objdiff 94.142860% | insns 70/70 | positional diffs 5 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgTextPublic | 2-scoped-read-result-switch | objdiff 94.142860% | insns 70/70 | positional diffs 5 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgTextPublic | 3-switch-and-original-capacity-after-charset-load | objdiff 93.857140% | insns 70/70 | positional diffs 9 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgSubjectPublic | 1-two-read-result-switches | objdiff 92.115390% | insns 104/104 | positional diffs 10 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgSubjectPublic | 2-switched-read-results-and-signed-text-loop | objdiff 92.115390% | insns 104/104 | positional diffs 10 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgSubjectPublic | 3-switched-read-results-and-positive-conversion-status | BUILD FAILED; see saved build output
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectBase64 | 1-explicit-conversion-and-encode-switches | objdiff 84.257355% | insns 137/136 | positional diffs 121 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectBase64 | 2-signed-total-excluding-terminator | objdiff 93.433820% | insns 139/136 | positional diffs 130 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectBase64 | 3-output-capacity-scoped-per-conversion | objdiff 93.455880% | insns 139/136 | positional diffs 130 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectQP | 4-offset-only-in-encoded-word-case | objdiff 98.715280% | insns 144/144 | positional diffs 29 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgTextPublic | 4-single-case-switch-with-overflow-in-default | objdiff 97.142860% | insns 68/70 | positional diffs 28 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgSubjectPublic | 4-read-overflow-tests-in-default-switch-arms | objdiff 96.153850% | insns 100/104 | positional diffs 64 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgSubjectPublic | 5-switch-results-and-signed-source-loop | objdiff 96.153850% | insns 100/104 | positional diffs 64 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgField | 1-scope-mailbox-selection-after-protection | objdiff 98.921570% | insns 101/102 | positional diffs 84 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgField | 2-result-qualified-protection-check | objdiff 97.843140% | insns 102/102 | positional diffs 6 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgField | 3-selector-expanded-with-status-return | objdiff 96.892160% | insns 101/102 | positional diffs 81 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgFromAddr | 1-scoped-selector-view | objdiff 98.804344% | insns 91/92 | positional diffs 66 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgFromAddr | 2-sender-address-typed-flags-local | objdiff 97.500000% | insns 92/92 | positional diffs 56 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgFromAddr | 3-supported-type-switch | objdiff 97.608696% | insns 92/92 | positional diffs 6 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgSubject | 1-private-message-view-before-read-only-loads | objdiff 98.658540% | insns 81/82 | positional diffs 65 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgSubject | 2-protection-status-switch | objdiff 97.317070% | insns 82/82 | positional diffs 6 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgSubject | 3-close-result-separate-scope | objdiff 97.195120% | insns 80/82 | positional diffs 65 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgAttached | 1-decoded-size-success-switch | objdiff 96.373630% | insns 90/91 | positional diffs 75 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgAttached | 2-attachment-record-after-mailbox-open | objdiff 96.043950% | insns 89/91 | positional diffs 75 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgRead | NWC24ReadMsgAttached | 3-independent-read-and-close-lifetimes | objdiff 94.890110% | insns 88/91 | positional diffs 75 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgRead | ReadMsgTextInternal | 1-success-switch-in-header-reads | objdiff 91.516850% | insns 180/178 | positional diffs 158 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgRead | ReadMsgTextInternal | 2-capacity-limit-and-overflow-scope | objdiff 91.516850% | insns 175/178 | positional diffs 163 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgRead | ReadMsgTextInternal | 3-output-encoding-initialize-before-buffer | objdiff 93.089890% | insns 178/178 | positional diffs 152 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgTextPublic | 5-nested-single-status-switches | objdiff 95.571430% | insns 69/70 | positional diffs 29 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgSubjectPublic | 6-nested-single-status-switches | objdiff 94.038460% | insns 102/104 | positional diffs 64 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgTextPublic | 6-overflow-if-else-inside-default | objdiff 97.142860% | insns 68/70 | positional diffs 28 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24ReadMsgSubjectPublic | 7-overflow-if-else-inside-default | objdiff 96.153850% | insns 100/104 | positional diffs 64 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectBase64 | 4-only-zero-case-with-overflow-default | objdiff 93.308820% | insns 135/136 | positional diffs 77 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectBase64 | 5-overflow-before-default-switch | objdiff 93.308820% | insns 135/136 | positional diffs 77 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24MsgSubject | NWC24iSetMsgSubjectBase64 | 6-distinct-available-and-encoded-lengths | objdiff 93.286766% | insns 135/136 | positional diffs 79 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 4-read-helper-inlined-at-public-entry | objdiff 99.728264% | insns 92/92 | positional diffs 5 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 4-header-at-initialization-block-only | objdiff 99.624060% | insns 133/133 | positional diffs 10 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 4-wide-index-for-entry-clearing | objdiff 99.087590% | insns 136/137 | positional diffs 48 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 4-rederive-all-concatenation-and-failure-blocks | objdiff 95.626260% | insns 192/198 | positional diffs 155 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 5-failure-return-with-scoped-character | objdiff 95.626260% | insns 192/198 | positional diffs 155 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 6-final-success-test-through-switch | objdiff 95.626260% | insns 192/198 | positional diffs 155 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 7-real-concatenation-helpers-with-status-returns | objdiff 95.126260% | insns 202/198 | positional diffs 184 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 8-encoding-helper-inline-character-validity | objdiff 95.126260% | insns 202/198 | positional diffs 184 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 9-spell-out-final-overflow-precedence | objdiff 95.126260% | insns 202/198 | positional diffs 184 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | EncodeWord | 10-format-specific-prefix-separator-suffix-helpers | objdiff 100.000000% | insns 198/198 | positional diffs 0 | regressions 0
|
||||
|
||||
EncodeWord control-flow evidence: rederived the prefix, charset, separator, encoding, text, suffix, and final overflow blocks from build/43U/asm/libs/RevoEX/src/nwc24/NWC24Mime.s. Each append helper has independent success/overflow returns. Generic literal arguments survived strlen in a saved register, adding four pointer moves; format-specific helpers emit the same ordinary literals at their uses and remove those moves. Attempt 10 is 198/198 instructions, zero ctxdiff differences, objdiff 100%; data remains 88/88. The target unconditionally writes decodedSizeOut on the final text/suffix errors and encodedSize on final success; preserved those target operations. Quick gate: /tmp/sol-high-round3-encode-gate.txt, GATE PASS, regressions/forbidden/readability all zero.
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 4-remove-duplicate-validation-and-use-signed-input-bytes | objdiff 99.130430% | insns 92/92 | positional diffs 10 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 5-signed-input-with-input-size-before-capacity-in-loop | objdiff 99.456520% | insns 92/92 | positional diffs 8 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 6-signed-char-input-output-and-result-type | objdiff 99.130430% | insns 92/92 | positional diffs 10 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 4-second-marker-cursor-with-prefix-preserved | objdiff 90.833336% | insns 83/84 | positional diffs 62 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 5-second-marker-cursor-with-prefix-preserved | objdiff 91.071430% | insns 83/84 | positional diffs 61 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 6-second-marker-cursor-with-prefix-preserved | objdiff 90.833336% | insns 83/84 | positional diffs 62 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | ExtractEncodedText | 4-second-marker-search-with-recomputed-found-position | objdiff 93.925930% | insns 134/135 | positional diffs 99 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | ExtractEncodedText | 5-second-marker-search-with-recomputed-found-position | objdiff 94.000000% | insns 134/135 | positional diffs 98 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | ExtractEncodedText | 6-second-marker-search-with-recomputed-found-position | objdiff 94.370370% | insns 134/135 | positional diffs 100 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 7-output-initialized-before-input-and-length | objdiff 99.293480% | insns 92/92 | positional diffs 9 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 8-output-char-view-before-input-length | objdiff 99.293480% | insns 92/92 | positional diffs 9 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | NWC24DecodeMIMEHeaderFieldBody | 9-capacity-before-input-length | objdiff 99.239130% | insns 92/92 | positional diffs 10 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 7-marker-helper-with-prefix-and-separate-success-return | objdiff 97.261900% | insns 84/84 | positional diffs 35 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 8-caller-increments-prefix-after-marker-helper | objdiff 97.261900% | insns 84/84 | positional diffs 35 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | ExtractCharset | 9-copy-output-length-reuse-after-scan | objdiff 94.404760% | insns 85/84 | positional diffs 47 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | ExtractEncodedText | 7-marker-offset-helper-with-independent-success-return | objdiff 98.148150% | insns 135/135 | positional diffs 44 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | DecodeWord | 4-rederive-marker-encoding-and-success-output-blocks | objdiff 97.694440% | insns 180/180 | positional diffs 67 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | DecodeWord | 5-decode-lengths-before-marker-local | objdiff 97.694440% | insns 180/180 | positional diffs 67 | regressions 0
|
||||
libs/RevoEX/src/nwc24/NWC24Mime | DecodeWord | 6-unsigned-consumed-and-prefix-length | objdiff 97.694440% | insns 180/180 | positional diffs 67 | regressions 0
|
||||
|
||||
DecodeWord control-flow evidence: target marker search retains the marker literal across strlen/strncmp, returns NULL only after exhausting the inclusive bound, and uses an encoding extraction helper with explicit invalid/success status. Replaced the integer pointer representation with char*, separated that helper, preserved output initialization and unconditional final decodedSize store from the target. The plain prefix branch calculates length before initializing its copy capacity. Current DecodeWord: 180/180, register-normalized instruction sequence identical, 67 register differences. ExtractCharset and ExtractEncodedText now reproduce the second search's recomputed found position and separate exhaustion return through real marker helpers; instruction counts 84/84 and 135/135, normalized sequences identical. Header body now has the single target NULL guard and signed char input; 92/92, only eight saved-register differences. Quick MIME gate /tmp/sol-high-round3-decode-gate.txt: GATE PASS; exact code 3576/6124, fuzzy 98.82299, data 88/88, regressions/forbidden/readability zero.
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 4-load-animation-key-from-table-at-attachment | objdiff 99.789790% | insns 333/333 | positional diffs 12 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 5-retain-animation-presence-as-bool | objdiff 95.240240% | insns 339/333 | positional diffs 277 | regressions 0
|
||||
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 6-inner-animation-type-enum-before-resource-creation | objdiff 96.396390% | insns 335/333 | positional diffs 209 | regressions 0
|
||||
|
||||
Final audit excludes failed builds, PFDIR_p_move ancestry trials 1/3, data-only trials, and three source bodies already tried in round 2 (keyboard create trial 3, AddDlTask trial 2, AddTaskInternal trial 1). New keyboard create trials 4/5/6 cover that duplicate. Every one of the forty initially open functions has at least three distinct successful NEW body variants, measured from saved sources with whitespace normalized; none remains untried. Keyboard source and all shared-header guard sides are unchanged this round. Matching sibling libs/RevoEX/src/vf/fatfs/pf_dir.c was diffed again against the owned file; its later traversal/layout differences do not resolve the four remaining bodies. Six units retain 100% data; MsgCommit data remains open with raw CRLF and alignment differences recorded above, without added padding or storage-size tricks.
|
||||
|
||||
Final full (non-quick) gate over all seven units: /tmp/sol-high-round3-final-gate.txt, GATE PASS. Fresh clean build and expected DOL SHA1; no regressions, forbidden additions or readability warnings. MIME gained two instruction-exact functions, 9/16 -> 11/16, exact code 2492 -> 3576/6124, fuzzy 90.243630 -> 98.822990. Priority exact counts remain 17/30, 83/86, 34/38; Download and pf_dir fuzzy improved. Every gate block, before/after metrics, all 38 remaining functions with measured counts/causes, data uncertainty, files and code commits are preserved in sol-high-round3-report.md. Post-build ctxdiff verified both new exact functions at zero differences. ReadMsgTextInternal's final clean-build count is 176/178, superseding the earlier positional-count note.
|
||||
575
tools/decomp-assist/sol-high-round3-report.md
Normal file
575
tools/decomp-assist/sol-high-round3-report.md
Normal file
@@ -0,0 +1,575 @@
|
||||
# Matching round 3
|
||||
|
||||
Baseline: 91e65d76. Final source: e26ea8f1. Seven owned units; no Matching flags or shared headers changed.
|
||||
|
||||
| Unit | Instruction-exact functions | Fuzzy % | Exact code bytes | Exact data bytes |
|
||||
|---|---:|---:|---:|---:|
|
||||
| libs/RevoEX/src/nwc24/NWC24Download | 17 -> 17/30 | 97.146930 -> 97.249360 | 3640 -> 3640/12496 | 80 -> 80/80 |
|
||||
| src/keyboard/tiCellPhone | 83 -> 83/86 | 99.774020 -> 99.774020 | 12824 -> 12824/19028 | 3860 -> 3860/3860 |
|
||||
| libs/RVL_SDK/src/fa/pf_dir | 34 -> 34/38 | 99.262856 -> 99.536890 | 11428 -> 11428/18976 | 40 -> 40/40 |
|
||||
| libs/RevoEX/src/nwc24/NWC24MsgCommit | 15 -> 15/18 | 98.433190 -> 98.442566 | 3964 -> 3964/8532 | 72 -> 72/904 |
|
||||
| libs/RevoEX/src/nwc24/NWC24Mime | 9 -> 11/16 | 90.243630 -> 98.822990 | 2492 -> 3576/6124 | 88 -> 88/88 |
|
||||
| libs/RevoEX/src/nwc24/NWC24MsgSubject | 7 -> 7/12 | 97.417786 -> 98.587440 | 2776 -> 2776/5352 | 232 -> 232/232 |
|
||||
| libs/RevoEX/src/nwc24/NWC24MsgRead | 11 -> 11/16 | 98.450645 -> 98.476395 | 2480 -> 2480/4660 | 128 -> 128/128 |
|
||||
|
||||
Two new exact functions: CopyWithoutLinearWhiteSpaces (73/73 instructions, ctxdiff 0) and EncodeWord (198/198, ctxdiff 0). MIME gained 1084 exact code bytes. The three priority units have no new exact functions this round; their remaining bodies received the required new attempts. Six units retain 100% data. This is partial matching progress; 38 functions and MsgCommit data remain open.
|
||||
|
||||
## Remaining functions
|
||||
|
||||
NWC24InitDlTask | 98.923615% | 144/144 instructions | saved-register allocation only (31 differences)
|
||||
NWC24SetDlInterval | 99.897960% | 147/147 instructions | final task-ID saved register only (3 differences)
|
||||
NWC24IterateDlTask | 95.000000% | 78/79 instructions | one missing loop-entry branch; induction increment scheduling
|
||||
NWC24IterateDlTaskEx | 98.034485% | 145/145 instructions | task-ID load scheduled across the flag store and saved registers
|
||||
NWC24UpdateDlTask | 94.173910% | 247/253 instructions | retry/validation blocks and saved-register frame; six instructions missing
|
||||
NWC24AddDlTask | 97.552444% | 146/143 instructions | extra saved-register pair and time-validation status branch; three extra instructions
|
||||
NWC24GetDlTask | 99.728264% | 92/92 instructions | destination/task-ID saved registers only (5 differences)
|
||||
NWC24PurgeOldestDlTask | 85.829544% | 171/176 instructions | iterator initialization, candidate deletion/error blocks; five instructions missing
|
||||
NWC24ManageDlTaskListForMenu | 96.743420% | 150/152 instructions | inlined removal-result copies and task-pointer lifetime; two instructions missing
|
||||
NWC24ExtendDlTaskList | 99.854010% | 137/137 instructions | final reload-result saved register only (4 differences)
|
||||
NWC24iCheckDlHeaderConsistency | 98.773580% | 212/212 instructions | task-pointer prologue initialization scheduled before parameter moves
|
||||
NWC24iCreateDlTaskList | 99.624060% | 133/133 instructions | header-pointer saved register only (10 differences)
|
||||
AddTaskInternal | 93.578550% | 397/401 instructions | URL checks and slot/purge/update status blocks; four instructions missing
|
||||
onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 99.670090% | 682/682 instructions | saved-register allocation only (37 differences)
|
||||
create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 99.819820% | 333/333 instructions | pane-record/animation-key and animation-table saved registers only (11 differences)
|
||||
init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 98.526120% | 536/536 instructions | saved-register allocation only (155 differences)
|
||||
PFDIR_GetSDD | 99.710144% | 69/69 instructions | two induction-register assignments differ (2 differences)
|
||||
PFDIR_p_mkdir | 99.649470% | 562/562 instructions | dot-entry constant ordering and saved-register allocation (36 differences)
|
||||
PFDIR_p_rename | 98.336000% | 625/625 instructions | current-directory traversal loads, zero-cluster branch, long-name masking, and final return; instruction counts agree
|
||||
PFDIR_p_move | 98.510300% | 635/631 instructions | current-directory traversal loads, ancestry tests and long-name masking; four extra instructions
|
||||
NWC24CommitMsgInternal | 99.915360% | 827/827 instructions | saved-register allocation only (14 differences)
|
||||
CheckMsgBoxSpace | 85.573990% | 223/223 instructions | attachment-size arithmetic operand/load scheduling and saved-register allocation (73 differences)
|
||||
WriteMIMEAttachHeader | 99.619570% | 92/92 instructions | capacity-sum operand registers only (5 differences)
|
||||
QDecode | 94.130135% | 146/146 instructions | input cursor lifetime/update addressing, decode-bound branch direction and saved registers (59 differences)
|
||||
DecodeWord | 97.694440% | 180/180 instructions | saved-register allocation only (67 differences)
|
||||
NWC24DecodeMIMEHeaderFieldBody | 99.456520% | 92/92 instructions | working input/output saved registers swapped (8 differences)
|
||||
ExtractCharset | 97.261900% | 84/84 instructions | saved-register allocation only (35 differences)
|
||||
ExtractEncodedText | 98.148150% | 135/135 instructions | saved-register allocation only (44 differences)
|
||||
NWC24ReadMsgSubjectPublic | 96.153850% | 100/104 instructions | four missing status-dispatch branches
|
||||
NWC24ReadMsgTextPublic | 97.142860% | 68/70 instructions | two missing status-dispatch branches
|
||||
NWC24SetMsgSubjectAndTextPublic | 98.236840% | 190/190 instructions | saved-register allocation only (65 differences)
|
||||
NWC24iSetMsgSubjectQP | 99.548615% | 144/144 instructions | source-offset/output-buffer saved registers only (12 differences)
|
||||
NWC24iSetMsgSubjectBase64 | 93.455880% | 139/136 instructions | two extra switch-dispatch branches, initial stack-store lifetime and loop arithmetic scheduling; three extra instructions
|
||||
NWC24ReadMsgField | 98.921570% | 101/102 instructions | one missing mailbox-type reload after protection validation
|
||||
NWC24ReadMsgFromAddr | 98.804344% | 91/92 instructions | one missing mailbox-type reload after supported-type validation
|
||||
NWC24ReadMsgSubject | 98.658540% | 81/82 instructions | one missing mailbox-type reload after protection validation
|
||||
ReadMsgTextInternal | 93.735954% | 176/178 instructions | type/encoding initialization, status branches and close-result precedence; two instructions missing
|
||||
NWC24ReadMsgAttached | 96.373630% | 90/91 instructions | one missing type reload plus decoded-size error branch/address ordering
|
||||
|
||||
## Data and uncertainty
|
||||
|
||||
All owned .data/.rodata/.sdata/.sdata2/.ctors sections are exact in the six units other than MsgCommit. Keyboard source and shared headers are unchanged. Every existing keyboard guard side is intact.
|
||||
|
||||
MsgCommit remains 72/904 exact data bytes. Raw ELF sections: .data 678/680 bytes, .sdata 140/152, .sbss 4/8 (objdiff treats .sbss as 100%). The 24 ordinary .data literals have the same offsets; the target section includes two additional trailing bytes and different symbol grouping. The .sdata differences include spacing after LoopBackEnable, a separately emitted CRLF, and trailing alignment. The gate pool extractor ignores short/control-only strings, so its IDENTICAL result does not prove these CRLF sections identical. Declaration-order and literal-ownership trials were reverted after no data improvement. No padding, storage-size changes, packed string blobs or address shims were added. The original source forms behind the spacing and duplicate literal remain unresolved.
|
||||
|
||||
Compiler allocation remains unresolved where register-normalized streams agree. Purge iterator-initialization status branches and public subject/text status-dispatch branches remain uncertain; no known-false or unreachable dummy branches were inserted.
|
||||
|
||||
## Attempts and assembly evidence
|
||||
|
||||
Successful new body variants only. Failed builds, non-equivalent move ancestry trials 1/3, data-only trials, and source bodies already tested in round 2 are excluded. Saved sources were compared with whitespace normalized. Every one of the 40 initially open functions has at least three new distinct attempts; no initially open function was skipped.
|
||||
|
||||
onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 3 distinct successful new source bodies
|
||||
create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 5 distinct successful new source bodies
|
||||
init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 3 distinct successful new source bodies
|
||||
QDecode | 3 distinct successful new source bodies
|
||||
EncodeWord | 10 distinct successful new source bodies
|
||||
CopyWithoutLinearWhiteSpaces | 3 distinct successful new source bodies
|
||||
DecodeWord | 6 distinct successful new source bodies
|
||||
NWC24DecodeMIMEHeaderFieldBody | 9 distinct successful new source bodies
|
||||
ExtractCharset | 9 distinct successful new source bodies
|
||||
ExtractEncodedText | 7 distinct successful new source bodies
|
||||
NWC24CommitMsgInternal | 3 distinct successful new source bodies
|
||||
CheckMsgBoxSpace | 3 distinct successful new source bodies
|
||||
WriteMIMEAttachHeader | 3 distinct successful new source bodies
|
||||
NWC24ReadMsgField | 3 distinct successful new source bodies
|
||||
NWC24ReadMsgFromAddr | 3 distinct successful new source bodies
|
||||
NWC24ReadMsgSubject | 3 distinct successful new source bodies
|
||||
ReadMsgTextInternal | 3 distinct successful new source bodies
|
||||
NWC24ReadMsgAttached | 3 distinct successful new source bodies
|
||||
NWC24ReadMsgSubjectPublic | 6 distinct successful new source bodies
|
||||
NWC24ReadMsgTextPublic | 6 distinct successful new source bodies
|
||||
NWC24SetMsgSubjectAndTextPublic | 3 distinct successful new source bodies
|
||||
NWC24iSetMsgSubjectQP | 3 distinct successful new source bodies
|
||||
NWC24iSetMsgSubjectBase64 | 6 distinct successful new source bodies
|
||||
NWC24InitDlTask | 3 distinct successful new source bodies
|
||||
NWC24SetDlInterval | 4 distinct successful new source bodies
|
||||
NWC24IterateDlTask | 3 distinct successful new source bodies
|
||||
NWC24IterateDlTaskEx | 3 distinct successful new source bodies
|
||||
NWC24UpdateDlTask | 3 distinct successful new source bodies
|
||||
NWC24AddDlTask | 3 distinct successful new source bodies
|
||||
NWC24GetDlTask | 4 distinct successful new source bodies
|
||||
NWC24PurgeOldestDlTask | 3 distinct successful new source bodies
|
||||
NWC24ManageDlTaskListForMenu | 3 distinct successful new source bodies
|
||||
NWC24ExtendDlTaskList | 4 distinct successful new source bodies
|
||||
NWC24iCheckDlHeaderConsistency | 4 distinct successful new source bodies
|
||||
NWC24iCreateDlTaskList | 4 distinct successful new source bodies
|
||||
AddTaskInternal | 3 distinct successful new source bodies
|
||||
PFDIR_GetSDD | 3 distinct successful new source bodies
|
||||
PFDIR_p_mkdir | 3 distinct successful new source bodies
|
||||
PFDIR_p_rename | 3 distinct successful new source bodies
|
||||
PFDIR_p_move | 5 distinct successful new source bodies
|
||||
|
||||
The attempt log records each source change, resulting objdiff percentage, instruction counts and positional differences. Data trials are logged separately.
|
||||
|
||||
For instruction-count differences, target control-flow comparisons cover: Download iterator entry/increment; update retry checks; add time validation; purge initialization and candidate removal; menu removal status; AddTaskInternal URL and slot/purge/update stages; pf_dir ancestry and rollback; public subject/text status dispatch; Base64 conversion/encoding and CRLF folding; mailbox selection/type reloads, text decoding and close-result precedence. The final per-function ctxdiff and register-normalized differences were reread after the full clean build. Equal instruction counts do not imply an exact function. MIME construction and decoding were rederived through marker/append helper blocks; remaining MIME search/DecodeWord/header streams agree after register normalization.
|
||||
|
||||
The Matching pf_dir sibling at libs/RevoEX/src/vf/fatfs/pf_dir.c was diffed against the owned unit again. Its source remains unchanged.
|
||||
|
||||
## Files and commits
|
||||
|
||||
Changed source: libs/RVL_SDK/src/fa/pf_dir.c; libs/RevoEX/src/nwc24/NWC24Download.c; libs/RevoEX/src/nwc24/NWC24Mime.c; libs/RevoEX/src/nwc24/NWC24MsgCommit.c; libs/RevoEX/src/nwc24/NWC24MsgRead.c; libs/RevoEX/src/nwc24/NWC24MsgSubject.c.
|
||||
|
||||
Changed evidence: tools/decomp-assist/sol-high-round3-attempts.md; tools/decomp-assist/sol-high-round3-report.md.
|
||||
|
||||
3746c42d refine download and directory control flow
|
||||
c1f5e02f match mime whitespace copying and refine message handling
|
||||
632d1ebf match mime encoded word construction
|
||||
e26ea8f1 rederive mime decoding and marker searches
|
||||
|
||||
Every source commit followed a passing gate with zero regressions, forbidden additions and readability warnings. Final non-quick gate rebuilt all seven units together and the complete 43U build; expected DOL SHA1 remained 26116613f624061ba99c8d1a299aaa6efa85670d. No link investigation, upstream interaction or unit status changes were performed.
|
||||
|
||||
## Every gate block
|
||||
|
||||
### sol-high-round3-before-gate.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3640/12496 data 80/80 functions 17/30 fuzzy 97.1469 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 17/30
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 97.14693
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 95.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 97.93104
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 94.17391
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 85.829544
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 94.73684
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 3640/12496 data 80 functions 17 fuzzy 97.1469
|
||||
[src/keyboard/tiCellPhone] pool: IDENTICAL
|
||||
[src/keyboard/tiCellPhone] objdiff: code 12824/19028 data 3860/3860 functions 83/86 fuzzy 99.7740 linked code 0
|
||||
[src/keyboard/tiCellPhone] instruction-exact functions: 83/86
|
||||
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .data size 2416 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .sdata size 112 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .text size 19028 match 99.77402
|
||||
[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009
|
||||
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.81982
|
||||
[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612
|
||||
[src/keyboard/tiCellPhone] baseline: code 12824/19028 data 3860 functions 83 fuzzy 99.7740
|
||||
[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 40/40 functions 34/38 fuzzy 99.2629 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 99.262856
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 99.64947
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 97.808
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 96.97306
|
||||
[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11428/18976 data 40 functions 34 fuzzy 99.2629
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.71820 -> 83.71820
|
||||
global fuzzy_match_percent: 97.60807 -> 97.60807
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.15434 -> 90.15434
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-high-round3-priority-gate.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3640/12496 data 80/80 functions 17/30 fuzzy 97.2494 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 17/30
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 97.24936
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 95.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 98.034485
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 94.17391
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 85.829544
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 96.74342
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 3640/12496 data 80 functions 17 fuzzy 97.1469
|
||||
[src/keyboard/tiCellPhone] pool: IDENTICAL
|
||||
[src/keyboard/tiCellPhone] objdiff: code 12824/19028 data 3860/3860 functions 83/86 fuzzy 99.7740 linked code 0
|
||||
[src/keyboard/tiCellPhone] instruction-exact functions: 83/86
|
||||
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .data size 2416 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .sdata size 112 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .text size 19028 match 99.77402
|
||||
[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009
|
||||
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.81982
|
||||
[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612
|
||||
[src/keyboard/tiCellPhone] baseline: code 12824/19028 data 3860 functions 83 fuzzy 99.7740
|
||||
[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 40/40 functions 34/38 fuzzy 99.3324 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 99.33242
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 99.64947
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 98.336
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 96.97306
|
||||
[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11428/18976 data 40 functions 34 fuzzy 99.2629
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.71820 -> 83.71820
|
||||
global fuzzy_match_percent: 97.60807 -> 97.60895
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.15434 -> 90.15434
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-high-round3-priority-improved-gate.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3640/12496 data 80/80 functions 17/30 fuzzy 97.2494 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 17/30
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 97.24936
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 95.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 98.034485
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 94.17391
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 85.829544
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 96.74342
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 3640/12496 data 80 functions 17 fuzzy 97.1469
|
||||
[src/keyboard/tiCellPhone] pool: IDENTICAL
|
||||
[src/keyboard/tiCellPhone] objdiff: code 12824/19028 data 3860/3860 functions 83/86 fuzzy 99.7740 linked code 0
|
||||
[src/keyboard/tiCellPhone] instruction-exact functions: 83/86
|
||||
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .data size 2416 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .sdata size 112 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .text size 19028 match 99.77402
|
||||
[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009
|
||||
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.81982
|
||||
[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612
|
||||
[src/keyboard/tiCellPhone] baseline: code 12824/19028 data 3860 functions 83 fuzzy 99.7740
|
||||
[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 40/40 functions 34/38 fuzzy 99.5369 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 99.53689
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 99.64947
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 98.336
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 98.5103
|
||||
[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11428/18976 data 40 functions 34 fuzzy 99.2629
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.71820 -> 83.71820
|
||||
global fuzzy_match_percent: 97.60807 -> 97.61025
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.15434 -> 90.15434
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-high-round3-mime-gate.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] objdiff: code 3964/8532 data 72/904 functions 15/18 fuzzy 98.4426 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] instruction-exact functions: 15/18
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .bss size 64 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .data size 680 match None
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .sdata size 152 match 18.765432
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .text size 8532 match 98.442566
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: NWC24CommitMsgInternal 99.91536
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: CheckMsgBoxSpace 85.57399
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: WriteMIMEAttachHeader 99.61957
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] baseline: code 3964/8532 data 72 functions 15 fuzzy 98.4332
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] objdiff: code 2784/6124 data 88/88 functions 10/16 fuzzy 92.0150 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] instruction-exact functions: 10/16
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .data size 72 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .text size 6124 match 92.01502
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: QDecode 94.130135
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: EncodeWord 71.681816
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: DecodeWord 79.66111
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: NWC24DecodeMIMEHeaderFieldBody 92.5
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractCharset 92.38095
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractEncodedText 94.296295
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] baseline: code 2492/6124 data 88 functions 9 fuzzy 90.2436
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.71820 -> 83.72794
|
||||
global fuzzy_match_percent: 97.60807 -> 97.61391
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.15434 -> 90.15434
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-high-round3-extras-gate.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] objdiff: code 3964/8532 data 72/904 functions 15/18 fuzzy 98.4426 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] instruction-exact functions: 15/18
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .bss size 64 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .data size 680 match None
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .sdata size 152 match 18.765432
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .text size 8532 match 98.442566
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: NWC24CommitMsgInternal 99.91536
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: CheckMsgBoxSpace 85.57399
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: WriteMIMEAttachHeader 99.61957
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] baseline: code 3964/8532 data 72 functions 15 fuzzy 98.4332
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] objdiff: code 2784/6124 data 88/88 functions 10/16 fuzzy 92.0150 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] instruction-exact functions: 10/16
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .data size 72 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .text size 6124 match 92.01502
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: QDecode 94.130135
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: EncodeWord 71.681816
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: DecodeWord 79.66111
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: NWC24DecodeMIMEHeaderFieldBody 92.5
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractCharset 92.38095
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractEncodedText 94.296295
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] baseline: code 2492/6124 data 88 functions 9 fuzzy 90.2436
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] objdiff: code 2776/5352 data 232/232 functions 7/12 fuzzy 98.5874 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] instruction-exact functions: 7/12
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] section .data size 184 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] section .sdata size 48 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] section .text size 5352 match 98.58744
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24ReadMsgSubjectPublic 96.15385
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24ReadMsgTextPublic 97.14286
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24SetMsgSubjectAndTextPublic 98.23684
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24iSetMsgSubjectQP 99.548615
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24iSetMsgSubjectBase64 93.45588
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] baseline: code 2776/5352 data 232 functions 7 fuzzy 97.4178
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] objdiff: code 2480/4660 data 128/128 functions 11/16 fuzzy 98.4764 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] instruction-exact functions: 11/16
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] section .data size 128 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] section .text size 4660 match 98.476395
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgField 98.92157
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgFromAddr 98.804344
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgSubject 98.65854
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: ReadMsgTextInternal 93.735954
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgAttached 96.37363
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] baseline: code 2480/4660 data 128 functions 11 fuzzy 98.4506
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.71820 -> 83.72794
|
||||
global fuzzy_match_percent: 97.60807 -> 97.61602
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.15434 -> 90.15434
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-high-round3-encode-gate.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] objdiff: code 3576/6124 data 88/88 functions 11/16 fuzzy 95.6773 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] instruction-exact functions: 11/16
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .data size 72 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .text size 6124 match 95.67734
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: QDecode 94.130135
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: DecodeWord 79.66111
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: NWC24DecodeMIMEHeaderFieldBody 92.5
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractCharset 92.38095
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractEncodedText 94.296295
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] baseline: code 2492/6124 data 88 functions 9 fuzzy 90.2436
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.71820 -> 83.75439
|
||||
global fuzzy_match_percent: 97.60807 -> 97.62350
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.15434 -> 90.15434
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-high-round3-decode-gate.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] objdiff: code 3576/6124 data 88/88 functions 11/16 fuzzy 98.8230 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] instruction-exact functions: 11/16
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .data size 72 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .text size 6124 match 98.82299
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: QDecode 94.130135
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: DecodeWord 97.69444
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: NWC24DecodeMIMEHeaderFieldBody 99.45652
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractCharset 97.2619
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractEncodedText 98.14815
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] baseline: code 2492/6124 data 88 functions 9 fuzzy 90.2436
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.71820 -> 83.75439
|
||||
global fuzzy_match_percent: 97.60807 -> 97.62993
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.15434 -> 90.15434
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-high-round3-final-gate.txt
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3640/12496 data 80/80 functions 17/30 fuzzy 97.2494 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 17/30
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 97.24936
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 95.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 98.034485
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 94.17391
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 85.829544
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 96.74342
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 3640/12496 data 80 functions 17 fuzzy 97.1469
|
||||
[src/keyboard/tiCellPhone] pool: IDENTICAL
|
||||
[src/keyboard/tiCellPhone] objdiff: code 12824/19028 data 3860/3860 functions 83/86 fuzzy 99.7740 linked code 0
|
||||
[src/keyboard/tiCellPhone] instruction-exact functions: 83/86
|
||||
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .data size 2416 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .rodata size 1320 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .sdata size 112 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 100.0
|
||||
[src/keyboard/tiCellPhone] section .text size 19028 match 99.77402
|
||||
[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 99.67009
|
||||
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 99.81982
|
||||
[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 98.52612
|
||||
[src/keyboard/tiCellPhone] baseline: code 12824/19028 data 3860 functions 83 fuzzy 99.7740
|
||||
[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 40/40 functions 34/38 fuzzy 99.5369 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0
|
||||
[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 99.53689
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 99.64947
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 98.336
|
||||
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 98.5103
|
||||
[libs/RVL_SDK/src/fa/pf_dir] baseline: code 11428/18976 data 40 functions 34 fuzzy 99.2629
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] objdiff: code 3964/8532 data 72/904 functions 15/18 fuzzy 98.4426 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] instruction-exact functions: 15/18
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .bss size 64 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .data size 680 match None
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .sdata size 152 match 18.765432
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] section .text size 8532 match 98.442566
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: NWC24CommitMsgInternal 99.91536
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: CheckMsgBoxSpace 85.57399
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] below 100: WriteMIMEAttachHeader 99.61957
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgCommit] baseline: code 3964/8532 data 72 functions 15 fuzzy 98.4332
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] objdiff: code 3576/6124 data 88/88 functions 11/16 fuzzy 98.8230 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] instruction-exact functions: 11/16
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .data size 72 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] section .text size 6124 match 98.82299
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: QDecode 94.130135
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: DecodeWord 97.69444
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: NWC24DecodeMIMEHeaderFieldBody 99.45652
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractCharset 97.2619
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] below 100: ExtractEncodedText 98.14815
|
||||
[libs/RevoEX/src/nwc24/NWC24Mime] baseline: code 2492/6124 data 88 functions 9 fuzzy 90.2436
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] objdiff: code 2776/5352 data 232/232 functions 7/12 fuzzy 98.5874 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] instruction-exact functions: 7/12
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] section .data size 184 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] section .sdata size 48 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] section .text size 5352 match 98.58744
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24ReadMsgSubjectPublic 96.15385
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24ReadMsgTextPublic 97.14286
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24SetMsgSubjectAndTextPublic 98.23684
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24iSetMsgSubjectQP 99.548615
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] below 100: NWC24iSetMsgSubjectBase64 93.45588
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgSubject] baseline: code 2776/5352 data 232 functions 7 fuzzy 97.4178
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] objdiff: code 2480/4660 data 128/128 functions 11/16 fuzzy 98.4764 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] instruction-exact functions: 11/16
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] section .data size 128 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] section .text size 4660 match 98.476395
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgField 98.92157
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgFromAddr 98.804344
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgSubject 98.65854
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: ReadMsgTextInternal 93.735954
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] below 100: NWC24ReadMsgAttached 96.37363
|
||||
[libs/RevoEX/src/nwc24/NWC24MsgRead] baseline: code 2480/4660 data 128 functions 11 fuzzy 98.4506
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 83.71820 -> 83.75439
|
||||
global fuzzy_match_percent: 97.60807 -> 97.62993
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.15434 -> 90.15434
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
718
tools/decomp-assist/sol-high-sdk-attempts.md
Normal file
718
tools/decomp-assist/sol-high-sdk-attempts.md
Normal file
@@ -0,0 +1,718 @@
|
||||
# SDK matching attempts
|
||||
|
||||
Baseline commit: c4f51491. Last matching source commit: 4c68814c629631198beb515e9747a8622f5145bd.
|
||||
|
||||
All four units remain NonMatching. This is partial matching progress, not a completion or linking claim.
|
||||
All target function bodies are present in target address order. The NUP boot-version mangled-name discrepancy remains open. Both pool_diff.py and the gate report identical string sequences for every unit. A stricter offset audit finds all seven VI literals 184 bytes earlier than the target; the other three units match offsets too. VI pool placement therefore remains open.
|
||||
The final full gate rebuilt 43U from scratch, checked the target DOL hash, found zero baseline-exact regressions and zero forbidden/readability additions. The full captured output is in sol-high-sdk-gate.txt.
|
||||
|
||||
Instruction-exact counts use the gate normalized instruction comparison; code/data bytes and fuzzy percentages use exact-name objdiff. Missing matched_data measures are displayed as zero.
|
||||
|
||||
## libs/RVL_SDK/src/fa/driver/sd_drv
|
||||
|
||||
sd_drv: exact 10 -> 10; code 2100 -> 2100/11752; data 408 -> 408/3592; fuzzy 70.5225 -> 94.6276.
|
||||
|
||||
### pfd_st_inter_callback
|
||||
|
||||
pfd_st_inter_callback: 93.840576%; instructions 65/69, diffs 55; inlined drive lookup and callback register assignment.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. explicit driver retrieval in callback rather than shared helper: objdiff 93.840576 -> 93.840576; instructions [65, 69] -> [65, 69]; diffs 55 -> 55; restored.
|
||||
2. device presence tested as unsigned pointer: objdiff 93.840576 -> 93.840576; instructions [65, 69] -> [65, 69]; diffs 55 -> 55; restored.
|
||||
3. split drive-present and callback-present checks: objdiff 93.840576 -> 93.840576; instructions [65, 69] -> [65, 69]; diffs 55 -> 55; restored.
|
||||
|
||||
### pfd_st_removal_callback
|
||||
|
||||
pfd_st_removal_callback: 90.303030%; instructions 62/66, diffs 53; inlined drive lookup and callback scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. explicit driver retrieval in callback rather than shared helper: objdiff 90.303030 -> 90.303030; instructions [62, 66] -> [62, 66]; diffs 53 -> 53; restored.
|
||||
2. device presence tested as unsigned pointer: objdiff 90.303030 -> 90.303030; instructions [62, 66] -> [62, 66]; diffs 53 -> 53; restored.
|
||||
3. split drive-present and callback-present checks: objdiff 90.303030 -> 90.303030; instructions [62, 66] -> [62, 66]; diffs 53 -> 53; restored.
|
||||
|
||||
### pfd_sddrv_init
|
||||
|
||||
pfd_sddrv_init: 86.104164%; instructions 143/144, diffs 138; mount-status branches and callback registration register allocation.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. unsigned pointer comparisons and inverted already-initialized disk branch from asm: objdiff 86.104164 -> 86.104164; instructions [143, 144] -> [143, 144]; diffs 138 -> 138; restored.
|
||||
2. exact flag equality instead of nonzero mask: objdiff 86.104164 -> 84.993060; instructions [143, 144] -> [145, 144]; diffs 138 -> 137; restored.
|
||||
3. store mounted device before insertion flag test as target order: objdiff 86.104164 -> 81.909720; instructions [143, 144] -> [143, 144]; diffs 138 -> 138; restored.
|
||||
|
||||
### pfd_sddrv_unmount
|
||||
|
||||
pfd_sddrv_unmount: 90.000000%; instructions 12/13, diffs 9; mount-bit helper load and mask allocation.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. explicit flag equals mount bit: objdiff 90.000000 -> 81.538460; instructions [12, 13] -> [13, 13]; diffs 9 -> 7; restored.
|
||||
2. inline mount bit clear expanded: objdiff 90.000000 -> 90.000000; instructions [12, 13] -> [12, 13]; diffs 9 -> 9; restored.
|
||||
3. conditional mount-bit clear through local driver pointer: compile rejected; compile failed, restored.
|
||||
4. separate inline mounted-flag query from bit update: objdiff 90.000000 -> 90.000000; instructions [12, 13] -> [12, 13]; diffs 9 -> 9; restored.
|
||||
|
||||
### pfd_sddrv_finalize
|
||||
|
||||
pfd_sddrv_finalize: 92.877190%; instructions 58/57, diffs 19; inlined mount-bit clearing and error-return scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. explicit flag equals mount bit: objdiff 92.263160 -> 92.877190; instructions [57, 57] -> [58, 57]; diffs 43 -> 19; kept.
|
||||
2. inline mount bit clear expanded: objdiff 92.877190 -> 92.877190; instructions [58, 57] -> [58, 57]; diffs 19 -> 19; restored.
|
||||
3. finalize preserves ejected flag as target and uses bit-equal initialized test: objdiff 92.877190 -> 91.491230; instructions [58, 57] -> [58, 57]; diffs 19 -> 50; restored.
|
||||
|
||||
### pfd_sddrv_get_disk_info
|
||||
|
||||
pfd_sddrv_get_disk_info: 97.916664%; instructions 98/96, diffs 2; original symbol ends before final two epilogue instructions; config unchanged.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. combine mounted/ejected checks; metadata ends original symbol before final two epilogue instructions: objdiff 97.916664 -> 95.104164; instructions [98, 96] -> [96, 96]; diffs 2 -> 79; restored.
|
||||
2. explicit return result after geometry success; metadata ends original symbol before final two epilogue instructions: objdiff 97.916664 -> 96.875000; instructions [98, 96] -> [97, 96]; diffs 2 -> 20; restored.
|
||||
3. geometry zero assignments in chained expression; metadata ends original symbol before final two epilogue instructions: objdiff 97.916664 -> 97.895836; instructions [98, 96] -> [98, 96]; diffs 2 -> 4; restored.
|
||||
|
||||
### pfd_sddrv_physical_read
|
||||
|
||||
pfd_sddrv_physical_read: 99.921260%; instructions 127/127, diffs 2; two register-allocation differences in aligned read arguments.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. aligned path uses input sector, current sector initialized only for unaligned loop: objdiff 99.921260 -> 98.346460; instructions [127, 127] -> [127, 127]; diffs 2 -> 43; restored.
|
||||
2. aligned single-block call uses literal block count: objdiff 99.921260 -> 99.448820; instructions [127, 127] -> [127, 127]; diffs 2 -> 3; restored.
|
||||
3. unaligned loop explicitly advances sector before buffer: objdiff 99.921260 -> 99.763780; instructions [127, 127] -> [127, 127]; diffs 2 -> 4; restored.
|
||||
|
||||
### pfd_sddrv_physical_write
|
||||
|
||||
pfd_sddrv_physical_write: 99.921260%; instructions 127/127, diffs 2; two register-allocation differences in aligned write arguments.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. aligned path uses input sector, current sector initialized only for unaligned loop: objdiff 99.921260 -> 98.346460; instructions [127, 127] -> [127, 127]; diffs 2 -> 43; restored.
|
||||
2. aligned single-block call uses literal block count: objdiff 99.921260 -> 99.448820; instructions [127, 127] -> [127, 127]; diffs 2 -> 3; restored.
|
||||
3. unaligned loop explicitly advances sector before buffer: objdiff 99.921260 -> 99.763780; instructions [127, 127] -> [127, 127]; diffs 2 -> 4; restored.
|
||||
|
||||
### pfd_sddrv_get_total_sectors
|
||||
|
||||
pfd_sddrv_get_total_sectors: 90.937500%; instructions 79/80, diffs 43; CSD multiplier truncation and min/max scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. CSD read-block multiplier held in u32 until min/max truncation: objdiff 90.937500 -> 90.937500; instructions [79, 80] -> [79, 80]; diffs 43 -> 43; restored.
|
||||
2. explicit casts on each min/max intermediate: objdiff 90.937500 -> 90.437500; instructions [79, 80] -> [79, 80]; diffs 43 -> 46; restored.
|
||||
3. CSD size assembly uses high bits as first operand: objdiff 90.937500 -> 87.375000; instructions [79, 80] -> [79, 80]; diffs 43 -> 42; restored.
|
||||
|
||||
### pfd_sddrv_calc_mbr_bpb
|
||||
|
||||
pfd_sddrv_calc_mbr_bpb: 91.768780%; instructions 171/173, diffs 85; nested reserved-sector convergence loops and register lifetimes.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived 32-bit arithmetic, FAT classification before rounding, skip forbidden cluster interval: objdiff 20.606936 -> 91.433525; instructions [239, 173] -> [172, 173]; diffs 237 -> 126; kept.
|
||||
2. reverse bounds comparison and pointer increment order; cache cluster size: objdiff 91.433525 -> 91.768780; instructions [172, 173] -> [171, 173]; diffs 126 -> 85; kept.
|
||||
3. explicit outer-loop continuation and partition sector temporary: objdiff 91.768780 -> 90.265900; instructions [171, 173] -> [169, 173]; diffs 85 -> 85; restored.
|
||||
|
||||
### pfd_sddrv_store_bpb_buf
|
||||
|
||||
pfd_sddrv_store_bpb_buf: 99.342510%; instructions 327/327, diffs 8; serial-field aligned store instruction selection and literal-copy scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived copy-before-fields control flow, guarded inline copies, endian macros preserve source reloads: objdiff 37.935780 -> 94.217125; instructions [244, 327] -> [327, 327]; diffs 316 -> 72; kept.
|
||||
2. endian expression instead of intrinsic gives constant stores and byte-swap recognition: objdiff 94.217125 -> 97.088684; instructions [327, 327] -> [327, 327]; diffs 72 -> 27; kept.
|
||||
3. initialize table pointer after memset and reverse comparison/increment order: objdiff 97.088684 -> 98.654434; instructions [327, 327] -> [327, 327]; diffs 27 -> 14; kept.
|
||||
|
||||
### pfd_sddrv_store_mbr_buf
|
||||
|
||||
pfd_sddrv_store_mbr_buf: 94.366330%; instructions 202/202, diffs 42; CHS arithmetic scheduling and byte-store grouping.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived lookup error, typed CHS and partition type before memset, endian CHS stores: objdiff 51.099010 -> 94.183170; instructions [163, 202] -> [202, 202]; diffs 196 -> 46; kept.
|
||||
2. pointer-first table iteration and reverse upper comparison: objdiff 94.183170 -> 94.366330; instructions [202, 202] -> [202, 202]; diffs 46 -> 42; kept.
|
||||
3. compute CHS heads before sectors as target block: objdiff 94.366330 -> 94.366330; instructions [202, 202] -> [202, 202]; diffs 42 -> 44; restored.
|
||||
|
||||
### pfd_sddrv_calc_fat32_mbr_bpb
|
||||
|
||||
pfd_sddrv_calc_fat32_mbr_bpb: 89.909775%; instructions 132/133, diffs 55; FAT convergence loop countdown and sector reload scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. reload total sectors after table helper and multiply cluster bits for remainder test: objdiff 85.571430 -> 89.909775; instructions [131, 133] -> [132, 133]; diffs 96 -> 55; kept.
|
||||
2. load sectors after size lookup instead of before: objdiff 89.909775 -> 88.360900; instructions [132, 133] -> [132, 133]; diffs 55 -> 58; restored.
|
||||
3. fat-sector countdown uses calculated count rather than separate attempts: objdiff 89.909775 -> 89.909775; instructions [132, 133] -> [132, 133]; diffs 55 -> 55; restored.
|
||||
|
||||
### pfd_sddrv_store_fat32_mbr_buf
|
||||
|
||||
pfd_sddrv_store_fat32_mbr_buf: 77.507250%; instructions 208/207, diffs 196; CHS widths and endian-store scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. typed CHS cylinder/sector/head widths from clrlwi and fixed lookup status: objdiff 64.159424 -> 67.280190; instructions [193, 207] -> [202, 207]; diffs 167 -> 197; kept.
|
||||
2. reverse range comparison and remove premature u16 truncation on CHS encoding: objdiff 67.280190 -> 77.507250; instructions [202, 207] -> [208, 207]; diffs 197 -> 196; kept.
|
||||
3. end-of-partition local separate from type initialization: objdiff 77.507250 -> 77.507250; instructions [208, 207] -> [208, 207]; diffs 196 -> 196; restored.
|
||||
|
||||
### pfd_sddrv_store_fat32_bpb_buf
|
||||
|
||||
pfd_sddrv_store_fat32_bpb_buf: 96.494600%; instructions 374/370, diffs 353; four excess instructions in endian and literal-copy blocks.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived FAT32 BPB flow: copy literals first, inline source-value stores and lookup error: objdiff 69.167564 -> 95.583786; instructions [311, 370] -> [374, 370]; diffs 347 -> 353; kept.
|
||||
2. table upper bound first operand and pointer-first increment: objdiff 95.583786 -> 95.683784; instructions [374, 370] -> [374, 370]; diffs 353 -> 353; kept.
|
||||
3. 32-bit endian expression high byte before third byte: objdiff 95.683784 -> 96.494600; instructions [374, 370] -> [374, 370]; diffs 353 -> 353; kept.
|
||||
|
||||
### pfd_sddrv_build_fat32_mbr_bpb
|
||||
|
||||
pfd_sddrv_build_fat32_mbr_bpb: 94.752250%; instructions 230/222, diffs 122; media-state checks and inlined reserved-sector helper branches.
|
||||
Compiled source-level attempts: 4.
|
||||
|
||||
1. reload partition start after calls as original block flow: objdiff 75.148650 -> 90.490990; instructions [222, 222] -> [230, 222]; diffs 211 -> 122; kept.
|
||||
2. reserved boot buffer error moved into positive return branch: objdiff 90.490990 -> 90.490990; instructions [230, 222] -> [230, 222]; diffs 122 -> 122; restored.
|
||||
3. reserved buffer writes unaligned branch first: objdiff 90.490990 -> 94.752250; instructions [230, 222] -> [230, 222]; diffs 122 -> 122; kept.
|
||||
4. combine media-present and ejected failure blocks at each completed formatting stage: objdiff 94.752250 -> 90.968470; instructions [230, 222] -> [222, 222]; diffs 122 -> 149; restored.
|
||||
|
||||
## libs/RVL_SDK/src/wad/wad
|
||||
|
||||
wad: exact 21 -> 23; code 6680 -> 7080/24500; data 0 -> 0/528; fuzzy 77.3980 -> 80.8216.
|
||||
|
||||
### WADImportGetBlocks
|
||||
|
||||
WADImportGetBlocks: 76.553690%; instructions 263/298, diffs 288; inlined mask traversal, block arithmetic and stack-local layout.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. separate real workspace locals in target order instead of aligned wrapper: objdiff 76.553690 -> 76.486580; instructions [263, 298] -> [263, 298]; diffs 288 -> 289; restored.
|
||||
2. preserve 64-bit content rounding until final block-count conversion: objdiff 76.553690 -> 72.657715; instructions [263, 298] -> [275, 298]; diffs 288 -> 287; restored.
|
||||
3. selected content pointer recalculated from incremented index: objdiff 76.553690 -> 75.795300; instructions [263, 298] -> [266, 298]; diffs 288 -> 287; restored.
|
||||
|
||||
### WAD_815BFFA8
|
||||
|
||||
WAD_815BFFA8: 97.177420%; instructions 62/62, diffs 30; thread-loop callee-saved register allocation.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. declare thread-loop locals in target lifetime order: compile rejected; compile failed, restored.
|
||||
2. loop exits test result before remaining bytes: compile rejected; compile failed, restored.
|
||||
3. conditional minimum declared in one expression: compile rejected; compile failed, restored.
|
||||
4. declare thread-loop locals in target lifetime order: objdiff 97.177420 -> 96.290320; instructions [62, 62] -> [62, 62]; diffs 30 -> 36; restored.
|
||||
5. loop exits test result before remaining bytes: objdiff 97.177420 -> 97.016130; instructions [62, 62] -> [62, 62]; diffs 30 -> 32; restored.
|
||||
6. conditional minimum declared in one expression: objdiff 97.177420 -> 96.854836; instructions [62, 62] -> [62, 62]; diffs 30 -> 33; restored.
|
||||
|
||||
### WADImportEx
|
||||
|
||||
WADImportEx: 71.913610%; instructions 1147/1146, diffs 1121; stream/unpack stack offsets, inlined mask traversal and cleanup scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived prologue workspace: separate stream and unpack info, remove duplicate transfer initialization: objdiff 70.807150 -> 71.912740; instructions [1151, 1146] -> [1147, 1146]; diffs 1119 -> 1120; kept.
|
||||
2. separate stream/unpack local declaration order: objdiff 71.912740 -> 71.912740; instructions [1147, 1146] -> [1147, 1146]; diffs 1120 -> 1120; restored.
|
||||
3. initial cleanup flags assigned after input buffers instead of grouped declarations: objdiff 71.912740 -> 71.913610; instructions [1147, 1146] -> [1147, 1146]; diffs 1120 -> 1121; kept.
|
||||
|
||||
### WAD_815C1288
|
||||
|
||||
WAD_815C1288: 96.393440%; instructions 61/61, diffs 34; thread-loop register allocation and result scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. declare thread-loop locals in target lifetime order: compile rejected; compile failed, restored.
|
||||
2. loop exits test result before remaining bytes: compile rejected; compile failed, restored.
|
||||
3. conditional minimum declared in one expression: compile rejected; compile failed, restored.
|
||||
4. declare thread-loop locals in target lifetime order: objdiff 96.311480 -> 96.393440; instructions [61, 61] -> [61, 61]; diffs 35 -> 34; kept.
|
||||
5. loop exits test result before remaining bytes: objdiff 96.393440 -> 96.229510; instructions [61, 61] -> [61, 61]; diffs 34 -> 36; restored.
|
||||
6. conditional minimum declared in one expression: objdiff 96.393440 -> 96.311480; instructions [61, 61] -> [61, 61]; diffs 34 -> 35; restored.
|
||||
|
||||
### WADBackupEx
|
||||
|
||||
WADBackupEx: 59.089455%; instructions 909/1062, diffs 1049; export stack layout and nested content/file control flow.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived export prologue and call sequence; _WADCheckContents owns content-ID enumeration: objdiff 55.484936 -> 59.645950; instructions [933, 1062] -> [906, 1062]; diffs 1040 -> 1041; kept.
|
||||
2. SHA1 context correct storage size and 64-byte DMA alignment: objdiff 59.645950 -> 59.669490; instructions [906, 1062] -> [906, 1062]; diffs 1041 -> 1040; kept.
|
||||
3. file encryption IV initialized from file header for each encrypted file: objdiff 59.669490 -> 59.669490; instructions [906, 1062] -> [906, 1062]; diffs 1040 -> 1040; restored.
|
||||
|
||||
### _WADCheckContents
|
||||
|
||||
_WADCheckContents: 96.705880%; instructions 85/85, diffs 19; nested content search register assignment.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. cache per-content metadata pointer for nested search: compile rejected; compile failed, restored.
|
||||
2. compare installed content ID with metadata operand first: compile rejected; compile failed, restored.
|
||||
3. signed content counter preserves target comparisons: compile rejected; compile failed, restored.
|
||||
4. cache per-content metadata pointer for nested search: compile rejected; compile failed, restored.
|
||||
5. compare installed content ID with metadata operand first: objdiff 96.705880 -> 94.294120; instructions [85, 85] -> [85, 85]; diffs 19 -> 21; restored.
|
||||
6. signed content counter preserves target comparisons: objdiff 96.705880 -> 95.294120; instructions [85, 85] -> [85, 85]; diffs 19 -> 21; restored.
|
||||
7. target result reset only at end of each private-content search: objdiff 96.705880 -> 96.647060; instructions [85, 85] -> [85, 85]; diffs 19 -> 20; restored.
|
||||
|
||||
### WADOpenStream
|
||||
|
||||
WADOpenStream: 87.354680%; instructions 200/203, diffs 173; NAND extension loop, return scheduling and handle addressing.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived NAND extension branch rejects existing length at or beyond requested offset: objdiff 85.310350 -> 85.334980; instructions [200, 203] -> [200, 203]; diffs 173 -> 173; kept.
|
||||
2. NAND read-open explicit error return instead of conditional expression: objdiff 85.334980 -> 85.802956; instructions [200, 203] -> [199, 203]; diffs 173 -> 173; kept.
|
||||
3. NAND extension chunk selected from constant-first branch: objdiff 85.802956 -> 87.354680; instructions [199, 203] -> [200, 203]; diffs 173 -> 173; kept.
|
||||
|
||||
### WADWriteStream
|
||||
|
||||
100.000000%; instructions 47/47, diffs 0.
|
||||
|
||||
1. re-derived sparse switch dispatch retaining shared result register: compile rejected; compile failed, restored.
|
||||
2. re-derived sparse switch dispatch retaining shared result register: objdiff 62.936170 -> 95.723404; instructions [43, 47] -> [45, 47]; diffs 35 -> 33; kept.
|
||||
3. explicit unsupported stream cases preserve source switch decision tree: objdiff 95.723404 -> 100.000000; instructions [45, 47] -> [47, 47]; diffs 33 -> 0; kept.
|
||||
4. stream dispatch returns early on invalid arguments before shared switch result: objdiff 100.000000 -> 100.000000; instructions [47, 47] -> [47, 47]; diffs 0 -> 0; restored.
|
||||
|
||||
### WADSeekStream
|
||||
|
||||
100.000000%; instructions 53/53, diffs 0.
|
||||
|
||||
1. re-derived switch dispatch and FAFinfo failure return: compile rejected; compile failed, restored.
|
||||
2. re-derived switch dispatch and FAFinfo failure return: objdiff 51.226414 -> 94.113205; instructions [56, 53] -> [54, 53]; diffs 51 -> 40; kept.
|
||||
3. explicit unsupported stream cases preserve source switch decision tree: objdiff 94.113205 -> 100.000000; instructions [54, 53] -> [53, 53]; diffs 40 -> 0; kept.
|
||||
4. stream dispatch returns early on invalid arguments before shared switch result: objdiff 100.000000 -> 100.000000; instructions [53, 53] -> [53, 53]; diffs 0 -> 0; restored.
|
||||
|
||||
### _WADUnpackBackup
|
||||
|
||||
_WADUnpackBackup: 94.867256%; instructions 116/113, diffs 89; section-size reloads and allocation ordering.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. cache TMD size before flags branch for original source load order: compile rejected; compile failed, restored.
|
||||
2. set size and aligned temporary before recording section offset: compile rejected; compile failed, restored.
|
||||
3. backup content-index availability uses copied version field: compile rejected; compile failed, restored.
|
||||
4. cache TMD size before flags branch for original source load order: objdiff 87.831856 -> 92.212390; instructions [118, 113] -> [117, 113]; diffs 91 -> 92; kept.
|
||||
5. set size and aligned temporary before recording section offset: objdiff 92.212390 -> 92.212390; instructions [117, 113] -> [117, 113]; diffs 92 -> 92; restored.
|
||||
6. backup content-index availability uses copied version field: objdiff 92.212390 -> 94.867256; instructions [117, 113] -> [116, 113]; diffs 92 -> 89; kept.
|
||||
|
||||
### _WADGetCidxCount
|
||||
|
||||
_WADGetCidxCount: 95.050000%; instructions 40/40, diffs 25; four-bit unrolled mask traversal register allocation; retained to preserve inlined consumers.
|
||||
Compiled source-level attempts: 4.
|
||||
|
||||
1. ordinary bit loop permits compiler unrolling with cumulative index: compile rejected; compile failed, restored.
|
||||
2. loop counter preincrement instead of postincrement: compile rejected; compile failed, restored.
|
||||
3. mask first argument in bitwise test: compile rejected; compile failed, restored.
|
||||
4. ordinary bit loop permits compiler unrolling with cumulative index: objdiff 95.050000 -> 96.625000; instructions [40, 40] -> [40, 40]; diffs 25 -> 19; kept.
|
||||
5. loop counter preincrement instead of postincrement: objdiff 96.625000 -> 96.625000; instructions [40, 40] -> [40, 40]; diffs 19 -> 19; restored.
|
||||
6. mask first argument in bitwise test: objdiff 96.625000 -> 96.625000; instructions [40, 40] -> [40, 40]; diffs 19 -> 19; restored.
|
||||
7. restore four-bit unrolled mask traversal to preserve inlined consumers; compare whole-unit code score: unit fuzzy 78.282936 -> 80.821550; kept.
|
||||
|
||||
### _WADGetCidx
|
||||
|
||||
_WADGetCidx: 99.142860%; instructions 56/56, diffs 8; four-bit cumulative index register assignment.
|
||||
Compiled source-level attempts: 4.
|
||||
|
||||
1. ordinary bit loop permits compiler unrolling with cumulative index: compile rejected; compile failed, restored.
|
||||
2. loop counter preincrement instead of postincrement: compile rejected; compile failed, restored.
|
||||
3. mask first argument in bitwise test: compile rejected; compile failed, restored.
|
||||
4. ordinary bit loop permits compiler unrolling with cumulative index: objdiff 99.142860 -> 96.964290; instructions [56, 56] -> [56, 56]; diffs 8 -> 26; restored.
|
||||
5. loop counter preincrement instead of postincrement: objdiff 99.142860 -> 99.142860; instructions [56, 56] -> [56, 56]; diffs 8 -> 8; restored.
|
||||
6. mask first argument in bitwise test: objdiff 99.142860 -> 99.142860; instructions [56, 56] -> [56, 56]; diffs 8 -> 8; restored.
|
||||
7. re-derived four-bit unroll uses one cumulative signed index as original blocks: objdiff 99.142860 -> 92.892860; instructions [56, 56] -> [56, 56]; diffs 8 -> 32; restored.
|
||||
|
||||
### _WADBackupGetFiles
|
||||
|
||||
_WADBackupGetFiles: 46.195583%; instructions 291/317, diffs 296; directory path buffers and deferred inline string comparisons.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. stack path arrays use ordinary NAND local alignment rather than DMA alignment: objdiff 46.195583 -> 43.823345; instructions [291, 317] -> [286, 317]; diffs 296 -> 310; restored.
|
||||
2. single path buffer reused for nocopy and banner comparisons in object block order: objdiff 46.195583 -> 44.567820; instructions [291, 317] -> [291, 317]; diffs 296 -> 295; restored.
|
||||
3. file enumeration advances fixed-size NAND name slots: objdiff 46.195583 -> 44.274450; instructions [291, 317] -> [288, 317]; diffs 296 -> 296; restored.
|
||||
|
||||
### _WADBackupGetSize
|
||||
|
||||
_WADBackupGetSize: 86.774190%; instructions 161/155, diffs 155; content loop arithmetic and output-pointer scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived TMD content size uses view contents and low 32-bit size: objdiff 68.554840 -> 86.774190; instructions [166, 155] -> [161, 155]; diffs 162 -> 155; kept.
|
||||
2. selected count and output title pointer retained separately across contents loop: objdiff 86.774190 -> 86.774190; instructions [161, 155] -> [161, 155]; diffs 155 -> 155; restored.
|
||||
3. pointer traversal for backup-file size accumulation: objdiff 86.774190 -> 84.419360; instructions [161, 155] -> [158, 155]; diffs 155 -> 147; restored.
|
||||
|
||||
### _WADRandPad
|
||||
|
||||
_WADRandPad: 87.307690%; instructions 89/91, diffs 62; partial-word byte-copy loop and random-expression scheduling.
|
||||
Compiled source-level attempts: 5.
|
||||
|
||||
1. re-derived advancing word and byte pointers with original random call ordering: compile rejected; compile failed, restored.
|
||||
2. assign random partial word to same wordCount storage as target: compile rejected; compile failed, restored.
|
||||
3. explicit random OR accumulation before low two bits: compile rejected; compile failed, restored.
|
||||
4. re-derived advancing word and byte pointers with original random call ordering: objdiff 62.461540 -> 78.802200; instructions [88, 91] -> [83, 91]; diffs 82 -> 88; kept.
|
||||
5. assign random partial word to same wordCount storage as target: compile rejected; compile failed, restored.
|
||||
6. explicit random OR accumulation before low two bits: objdiff 78.802200 -> 79.021980; instructions [83, 91] -> [83, 91]; diffs 88 -> 88; kept.
|
||||
7. restore sequential random calls with low-bit shift first: objdiff 79.021980 -> 78.802200; instructions [83, 91] -> [83, 91]; diffs 88 -> 88; restored.
|
||||
8. reuse completed word count for partial random word after declarations: objdiff 79.021980 -> 83.780220; instructions [83, 91] -> [92, 91]; diffs 88 -> 75; kept.
|
||||
9. consistent partial and complete random word expressions preserve observed call evaluation order: objdiff 83.780220 -> 83.890110; instructions [92, 91] -> [92, 91]; diffs 75 -> 75; kept.
|
||||
|
||||
### WAD_815C43E0
|
||||
|
||||
WAD_815C43E0: 97.177420%; instructions 62/62, diffs 30; thread-loop callee-saved register allocation.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. declare thread-loop locals in target lifetime order: compile rejected; compile failed, restored.
|
||||
2. loop exits test result before remaining bytes: compile rejected; compile failed, restored.
|
||||
3. conditional minimum declared in one expression: compile rejected; compile failed, restored.
|
||||
4. declare thread-loop locals in target lifetime order: objdiff 97.177420 -> 96.290320; instructions [62, 62] -> [62, 62]; diffs 30 -> 36; restored.
|
||||
5. loop exits test result before remaining bytes: objdiff 97.177420 -> 97.016130; instructions [62, 62] -> [62, 62]; diffs 30 -> 32; restored.
|
||||
6. conditional minimum declared in one expression: objdiff 97.177420 -> 96.854836; instructions [62, 62] -> [62, 62]; diffs 30 -> 33; restored.
|
||||
|
||||
### _WADHash
|
||||
|
||||
_WADHash: 71.103096%; instructions 205/194, diffs 193; threaded/sequential hash control flow and cleanup locals.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived shared result and read buffer; cancel path directly reaches common return: compile rejected; compile failed, restored.
|
||||
2. byte completion variable shared across threaded and sequential paths: compile rejected; compile failed, restored.
|
||||
3. choose chunk from remaining-first comparison: objdiff 71.000000 -> 71.103096; instructions [205, 194] -> [205, 194]; diffs 193 -> 193; kept.
|
||||
4. sequential completion offset declared at function scope: objdiff 71.103096 -> 69.654640; instructions [205, 194] -> [204, 194]; diffs 193 -> 194; restored.
|
||||
5. sequential read pointer retained across repeated reads: objdiff 71.103096 -> 69.731960; instructions [205, 194] -> [204, 194]; diffs 193 -> 193; restored.
|
||||
|
||||
### WADVerify
|
||||
|
||||
WADVerify: 86.863945%; instructions 133/147, diffs 131; hash/digest workspace offsets and original dormant cleanup blocks.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived workspace: DMA-aligned pointer, digest and real SHA1 context locals: objdiff 51.312923 -> 52.068027; instructions [130, 147] -> [131, 147]; diffs 136 -> 131; kept.
|
||||
2. certificate source pointer reloaded after each memcpy: objdiff 52.068027 -> 56.027210; instructions [131, 147] -> [132, 147]; diffs 131 -> 128; kept.
|
||||
3. signature stream offset computed before hashing as target local: objdiff 56.027210 -> 86.863945; instructions [132, 147] -> [133, 147]; diffs 128 -> 131; kept.
|
||||
|
||||
### WADImportDVDExForBS
|
||||
|
||||
WADImportDVDExForBS: 89.330795%; instructions 259/263, diffs 245; inlined mask traversal and boot-import workspace offsets.
|
||||
Compiled source-level attempts: 6.
|
||||
|
||||
1. DVD read length unsigned comparison following cmplwi target: objdiff 75.908745 -> 75.908745; instructions [295, 263] -> [295, 263]; diffs 280 -> 280; restored.
|
||||
2. DVD section offset initialized before result writes: objdiff 75.908745 -> 75.908745; instructions [295, 263] -> [295, 263]; diffs 280 -> 280; restored.
|
||||
3. boot-import header and DVD info declaration order: objdiff 75.908745 -> 75.908745; instructions [295, 263] -> [295, 263]; diffs 280 -> 280; restored.
|
||||
4. header parser workspace declared before file handle as original stack blocks: objdiff 75.908745 -> 75.806080; instructions [295, 263] -> [295, 263]; diffs 280 -> 281; restored.
|
||||
5. re-derived constant-first content chunk selection: objdiff 75.908745 -> 75.889730; instructions [295, 263] -> [295, 263]; diffs 280 -> 280; restored.
|
||||
6. content count iteration ordinary for-loop and explicit result initialization after open: objdiff 75.908745 -> 75.908745; instructions [295, 263] -> [295, 263]; diffs 280 -> 280; restored.
|
||||
|
||||
## libs/RVL_SDK/src/vi/vi
|
||||
|
||||
vi: exact 18 -> 18; code 2084 -> 2084/11296; data 400 -> 400/1944; fuzzy 83.3782 -> 85.1516.
|
||||
|
||||
### OnShutdown
|
||||
|
||||
OnShutdown: 81.039604%; instructions 97/101, diffs 44; four missing instructions in leading-zero/mask loop and return scheduling.
|
||||
Compiled source-level attempts: 7.
|
||||
|
||||
1. re-derived leading-zero helper keeps low mask as 64-bit intermediate: objdiff 80.633670 -> 80.633670; instructions [96, 101] -> [96, 101]; diffs 84 -> 84; restored.
|
||||
2. explicit else in leading-zero helper preserves original block boundary: objdiff 80.633670 -> 79.544556; instructions [96, 101] -> [95, 101]; diffs 84 -> 86; restored.
|
||||
3. natural 64-bit shift for clearing transferred register bit: objdiff 80.633670 -> 68.148510; instructions [96, 101] -> [90, 101]; diffs 84 -> 89; restored.
|
||||
4. re-derived shutdown event switch: only events one through three begin shutdown: objdiff 80.633670 -> 72.366330; instructions [96, 101] -> [101, 101]; diffs 84 -> 86; restored.
|
||||
5. re-derived signed event tree: event 4 through 6 succeeds; out-of-range returns unchanged false final argument: objdiff 80.633670 -> 80.841580; instructions [96, 101] -> [97, 101]; diffs 84 -> 48; kept.
|
||||
6. separate immediate final-success return from ordinary event-success label: objdiff 80.841580 -> 79.643560; instructions [97, 101] -> [99, 101]; diffs 48 -> 90; restored.
|
||||
7. capture retrace counter before first-shutdown state is stored: objdiff 80.841580 -> 81.039604; instructions [97, 101] -> [97, 101]; diffs 48 -> 44; kept.
|
||||
|
||||
### __VIRetraceHandler
|
||||
|
||||
__VIRetraceHandler: 88.813960%; instructions 501/516, diffs 407; interrupt context stack frame and vertical polling/acknowledgement scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived vertical stability loops and retrace phase error test from individual interrupt blocks: objdiff 87.544570 -> 88.813960; instructions [502, 516] -> [501, 516]; diffs 443 -> 407; kept.
|
||||
2. interrupt flags updated before hardware acknowledgement stores: objdiff 88.813960 -> 88.813960; instructions [501, 516] -> [501, 516]; diffs 407 -> 407; restored.
|
||||
3. exception context placed after output pixel locals in interrupt stack frame: objdiff 88.813960 -> 88.813960; instructions [501, 516] -> [501, 516]; diffs 407 -> 407; restored.
|
||||
|
||||
### __VIInit
|
||||
|
||||
__VIInit: 87.469696%; instructions 121/132, diffs 122; original stack-backed TV initialization loop and scan register scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived standard encoder TV reset by explicit enum switch: objdiff 86.446970 -> 87.431816; instructions [119, 132] -> [121, 132]; diffs 122 -> 122; kept.
|
||||
2. re-derived progressive branch tests scan mode above one: objdiff 87.431816 -> 87.469696; instructions [121, 132] -> [121, 132]; diffs 122 -> 122; kept.
|
||||
3. initial blanking register arithmetic grouped as original loads: objdiff 87.469696 -> 87.469696; instructions [121, 132] -> [121, 132]; diffs 122 -> 122; restored.
|
||||
|
||||
### VIInit
|
||||
|
||||
VIInit: 85.062130%; instructions 332/338, diffs 168; scan/field locals and hardware initialization scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived scan mode held locally until interrupt restore: objdiff 82.547340 -> 85.062130; instructions [333, 338] -> [332, 338]; diffs 229 -> 168; kept.
|
||||
2. framebuffer and pan heights reload current timing after adjusting display: objdiff 85.062130 -> 85.062130; instructions [332, 338] -> [332, 338]; diffs 168 -> 168; restored.
|
||||
3. getTiming TV-mode argument sums shifted TV type and scan code: objdiff 85.062130 -> 85.062130; instructions [332, 338] -> [332, 338]; diffs 168 -> 168; restored.
|
||||
|
||||
### VIWaitForRetrace
|
||||
|
||||
VIWaitForRetrace: 90.476190%; instructions 21/21, diffs 2; two save/load instructions scheduled in the opposite order.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. declare saved interrupt state with initializer: objdiff 90.476190 -> 90.476190; instructions [21, 21] -> [21, 21]; diffs 2 -> 2; restored.
|
||||
2. retrace wait expressed as do while: objdiff 90.476190 -> 90.476190; instructions [21, 21] -> [21, 21]; diffs 2 -> 2; restored.
|
||||
3. inline wait helper gives interrupt state independent lifetime: objdiff 90.476190 -> 90.476190; instructions [21, 21] -> [21, 21]; diffs 2 -> 2; restored.
|
||||
|
||||
### setFbbRegs
|
||||
|
||||
setFbbRegs: 79.419540%; instructions 160/174, diffs 74; inlined framebuffer parity/address control flow and alias-dependent reloads.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived signed parity and explicit field-mode branches in framebuffer helper: objdiff 79.419540 -> 72.954025; instructions [160, 174] -> [164, 174]; diffs 74 -> 160; restored.
|
||||
2. re-derived byte line stride computed before horizontal word offset: objdiff 79.419540 -> 79.419540; instructions [160, 174] -> [160, 174]; diffs 74 -> 74; restored.
|
||||
3. top framebuffer sum grouped in target multiplication and address order: objdiff 79.419540 -> 71.942530; instructions [160, 174] -> [160, 174]; diffs 74 -> 98; restored.
|
||||
|
||||
### setHorizontalRegs
|
||||
|
||||
setHorizontalRegs: 62.232143%; instructions 49/56, diffs 55; compiler merges repeated changed-mask load/store pairs.
|
||||
Compiled source-level attempts: 4.
|
||||
|
||||
1. inline changed-mask helper preserves independent register writes: objdiff 62.232143 -> 10.339286; instructions [49, 56] -> [61, 56]; diffs 55 -> 61; restored.
|
||||
2. inline pointer-based changed mask handles register-write aliasing: objdiff 62.232143 -> 0.000000; instructions [49, 56] -> [65, 56]; diffs 55 -> 65; restored.
|
||||
3. explicit assignment for changed mask: objdiff 62.232143 -> 62.232143; instructions [49, 56] -> [49, 56]; diffs 55 -> 55; restored.
|
||||
4. inline mask OR helper instead of runtime-index shift: objdiff 62.232143 -> 1.607143; instructions [49, 56] -> [65, 56]; diffs 55 -> 65; restored.
|
||||
|
||||
### setVerticalRegs
|
||||
|
||||
setVerticalRegs: 57.950497%; instructions 81/101, diffs 89; compiler merges repeated changed-mask stores and blanking arithmetic.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived scan coefficients and signed display-position and size arithmetic: objdiff 48.237625 -> 57.900990; instructions [77, 101] -> [81, 101]; diffs 99 -> 89; kept.
|
||||
2. re-derived changed-mark and vertical register source order: objdiff 57.900990 -> 57.950497; instructions [81, 101] -> [81, 101]; diffs 89 -> 89; kept.
|
||||
3. cache shared blanking intervals within each parity branch: objdiff 57.950497 -> 53.049503; instructions [81, 101] -> [76, 101]; diffs 89 -> 92; restored.
|
||||
|
||||
### VIConfigure
|
||||
|
||||
VIConfigure: 74.807260%; instructions 423/441, diffs 367; inlined register helpers and scan/TV decision scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived boot TV compatibility test in original short-circuit branch order: objdiff 74.034010 -> 74.124720; instructions [430, 441] -> [430, 441]; diffs 384 -> 376; kept.
|
||||
2. re-derived progressive scan register uses cached non-interlace mode: objdiff 74.124720 -> 74.807260; instructions [430, 441] -> [423, 441]; diffs 376 -> 367; kept.
|
||||
3. store scan mode before changed-mode flag and use summed TV mode argument: objdiff 74.807260 -> 74.807260; instructions [423, 441] -> [423, 441]; diffs 367 -> 367; restored.
|
||||
|
||||
### VIConfigurePan
|
||||
|
||||
VIConfigurePan: 88.807510%; instructions 208/213, diffs 194; inlined register helpers and timing-pointer scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived single-field height branch using full original scan decision tree: objdiff 88.807510 -> 85.868546; instructions [208, 213] -> [211, 213]; diffs 194 -> 195; restored.
|
||||
2. current timing retained before pan dimensions are written: objdiff 88.807510 -> 87.868546; instructions [208, 213] -> [208, 213]; diffs 194 -> 196; restored.
|
||||
3. picture configuration updated before scaling registers: objdiff 88.807510 -> 46.004696; instructions [208, 213] -> [208, 213]; diffs 194 -> 192; restored.
|
||||
|
||||
### VIFlush
|
||||
|
||||
VIFlush: 78.913040%; instructions 69/69, diffs 20; leading-zero/mask-loop register allocation and initial state scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived leading-zero helper keeps low mask as 64-bit intermediate: objdiff 78.913040 -> 78.913040; instructions [69, 69] -> [69, 69]; diffs 20 -> 20; restored.
|
||||
2. explicit else in leading-zero helper preserves original block boundary: objdiff 78.913040 -> 77.318840; instructions [69, 69] -> [68, 69]; diffs 20 -> 51; restored.
|
||||
3. natural 64-bit shift for clearing transferred register bit: objdiff 78.913040 -> 62.362320; instructions [69, 69] -> [63, 69]; diffs 20 -> 62; restored.
|
||||
|
||||
### __VIDisplayPositionToXY
|
||||
|
||||
__VIDisplayPositionToXY: 82.624115%; instructions 140/141, diffs 109; one missing instruction plus half-line bound scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived each interlace and progressive bound block and pixel half-line masks: objdiff 68.404260 -> 82.517730; instructions [121, 141] -> [140, 141]; diffs 128 -> 112; kept.
|
||||
2. single-scan branch reloads timing pointer after wrapping half-line: objdiff 82.517730 -> 81.780140; instructions [140, 141] -> [142, 141]; diffs 112 -> 125; restored.
|
||||
3. express three equalization half-lines with shift and subtraction: objdiff 82.517730 -> 82.624115; instructions [140, 141] -> [140, 141]; diffs 112 -> 109; kept.
|
||||
|
||||
## libs/RVL_SDK/src/nup/nup
|
||||
|
||||
nup: exact 11 -> 13; code 2536 -> 2840/10764; data 128 -> 1720/1720; fuzzy 55.2887 -> 82.3081.
|
||||
|
||||
### __nupParseServerInfo__FP14NUPContextInfoPcPcUx
|
||||
|
||||
__nupParseServerInfo__FP14NUPContextInfoPcPcUx: 62.537610%; instructions 461/452, diffs 432; tag-helper inlining and parsed-title stack/register allocation.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived parser extraction blocks and both title passes through ordinary inline tag helper: objdiff 0.000000 -> 62.537610; instructions [431, 452] -> [461, 452]; diffs 442 -> 432; kept.
|
||||
2. upload audit validation preserves separate value comparisons before storing state: objdiff 62.537610 -> 58.984512; instructions [461, 452] -> [468, 452]; diffs 432 -> 442; restored.
|
||||
3. signed title counting loop counter mirrors target signed comparisons: objdiff 62.537610 -> 62.537610; instructions [461, 452] -> [461, 452]; diffs 432 -> 432; restored.
|
||||
|
||||
### __nupGetServerInfo__FPcPcUxPcPcUlPcUsUsUxUsPPc
|
||||
|
||||
__nupGetServerInfo__FPcPcUxPcPcUlPcUsUsUxUsPPc: 96.758620%; instructions 147/145, diffs 116; request-size arithmetic and response allocation scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. request allocation sum follows region country and message evaluation order: objdiff 95.200000 -> 95.131035; instructions [147, 145] -> [147, 145]; diffs 116 -> 116; restored.
|
||||
2. response copy stored and reloaded through caller output: objdiff 95.200000 -> 96.758620; instructions [147, 145] -> [147, 145]; diffs 116 -> 116; kept.
|
||||
3. endpoint declared before request pointer: objdiff 96.758620 -> 96.448270; instructions [147, 145] -> [147, 145]; diffs 116 -> 116; restored.
|
||||
|
||||
### __nupSetAuditState__FUc
|
||||
|
||||
100.000000%; instructions 31/31, diffs 0.
|
||||
|
||||
1. re-derived delete success bypasses error conversion; create existing-dir uses conditional expression: objdiff 53.838710 -> 78.548386; instructions [32, 31] -> [33, 31]; diffs 26 -> 24; kept.
|
||||
2. share the ordinary audit pathname literal before branch dispatch: objdiff 78.548386 -> 100.000000; instructions [33, 31] -> [31, 31]; diffs 24 -> 0; kept.
|
||||
|
||||
### __nupBase64Encode__FPUcPUcUl
|
||||
|
||||
__nupBase64Encode__FPUcPUcUl: 71.619050%; instructions 59/63, diffs 41; alphabet reloads and partial-group output control flow.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived input step separated from bit accumulator update: objdiff 71.619050 -> 71.619050; instructions [59, 63] -> [59, 63]; diffs 41 -> 41; restored.
|
||||
2. declare accumulator before alphabet lifetime: objdiff 71.619050 -> 70.111115; instructions [59, 63] -> [59, 63]; diffs 41 -> 51; restored.
|
||||
3. advance individual output bytes through ordinary pointers: objdiff 71.619050 -> 71.619050; instructions [59, 63] -> [59, 63]; diffs 41 -> 41; restored.
|
||||
|
||||
### __nupGetAuditData__FP14NUPContextInfoPPc
|
||||
|
||||
__nupGetAuditData__FP14NUPContextInfoPPc: 91.741806%; instructions 236/244, diffs 160; encoded-length helper inlining and audit stack/register scheduling.
|
||||
Compiled source-level attempts: 5.
|
||||
|
||||
1. re-derived audit format word, product code terminator and selected-title search order: objdiff 27.905737 -> 91.741806; instructions [243, 244] -> [236, 244]; diffs 223 -> 160; kept.
|
||||
2. encoded audit size derived from complete signed-record bytes: objdiff 91.741806 -> 91.741806; instructions [236, 244] -> [236, 244]; diffs 160 -> 160; restored.
|
||||
3. typed record allocation and memcpy arguments preserve explicit field layout: objdiff 91.741806 -> 91.741806; instructions [236, 244] -> [236, 244]; diffs 160 -> 160; restored.
|
||||
4. re-derived failed serial-number fallback copies empty string at original sdata offset 0x10, not unknown status text: objdiff 91.741806 -> 91.741806; instructions [236, 244] -> [236, 244]; diffs 160 -> 160; restored.
|
||||
5. retain assembly-proven empty serial fallback: code unchanged, matched data improves 1688 to 1720 bytes: objdiff 91.741806 -> 91.741806; instructions [236, 244] -> [236, 244]; diffs 160 -> 160; kept.
|
||||
|
||||
### __nupGetTmdView__FUxPP9ESTmdView
|
||||
|
||||
100.000000%; instructions 45/45, diffs 0.
|
||||
|
||||
1. query-only ES_GetTmdView fills its size output before allocation: objdiff 95.555560 -> 0.000000; instructions [47, 45] -> [0, 0]; diffs 42 -> -1; restored.
|
||||
2. successful size query tested before absent-title case: objdiff 95.555560 -> 95.288890; instructions [47, 45] -> [47, 45]; diffs 42 -> 42; restored.
|
||||
3. allocated view pointer assigned through caller field: objdiff 95.555560 -> 95.555560; instructions [47, 45] -> [47, 45]; diffs 42 -> 42; restored.
|
||||
4. retain original out-of-line query helper while using API-written size output: objdiff 95.555560 -> 100.000000; instructions [47, 45] -> [45, 45]; diffs 42 -> 0; kept.
|
||||
|
||||
### __nupGetBootVersion__FP14ESTitleVersion
|
||||
|
||||
__nupGetBootVersion__FP14ESTitleVersion: unscored; instructions 153/163, diffs 101; original mangled name says one argument but target uses two; ABI retained; content-search scheduling also differs.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived boot TMD guard and successful enumeration blocks; retains observed two-argument ABI: objdiff 0.000000 -> 0.000000; instructions [152, 163] -> [153, 163]; diffs 108 -> 101; kept.
|
||||
2. boot version range check tests failure first as target: objdiff 0.000000 -> 0.000000; instructions [153, 163] -> [153, 163]; diffs 101 -> 101; restored.
|
||||
3. content loop signed counter and installed count compared through unsigned lower bound: objdiff 0.000000 -> 0.000000; instructions [153, 163] -> [153, 163]; diffs 101 -> 101; restored.
|
||||
|
||||
### __nupGetTitleSize__FP12NUPTitleInfo
|
||||
|
||||
__nupGetTitleSize__FP12NUPTitleInfo: 73.942444%; instructions 133/139, diffs 114; inlined installed-content search and 64-bit block rounding scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived title storage allocation adds each real NAND block separately: objdiff 69.856120 -> 70.064750; instructions [123, 139] -> [132, 139]; diffs 133 -> 132; kept.
|
||||
2. re-derived content loop signed counter and reloads TMD from title metadata: objdiff 70.064750 -> 73.942444; instructions [132, 139] -> [133, 139]; diffs 132 -> 114; kept.
|
||||
3. progress step stored before rounded installed-content addition: objdiff 73.942444 -> 72.892090; instructions [133, 139] -> [133, 139]; diffs 114 -> 114; restored.
|
||||
|
||||
### __nupGetContentFull__FP14NUPContextInfoP12NUPTitleInfoPcUl
|
||||
|
||||
__nupGetContentFull__FP14NUPContextInfoP12NUPTitleInfoPcUl: 94.204544%; instructions 88/88, diffs 25; equal instruction count; register assignment and response-allocation scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived signed content-index search and full-width alignment addition: objdiff 86.318184 -> 93.193184; instructions [85, 88] -> [87, 88]; diffs 79 -> 80; kept.
|
||||
2. response byte count recorded before returned allocation pointer: objdiff 93.193184 -> 93.238640; instructions [87, 88] -> [87, 88]; diffs 80 -> 80; kept.
|
||||
3. response locals declared before URL pointer and index search: objdiff 93.238640 -> 94.204544; instructions [87, 88] -> [88, 88]; diffs 80 -> 25; kept.
|
||||
|
||||
### __nupGetContentIncr__FP14NUPContextInfoP12NUPTitleInfoPc
|
||||
|
||||
__nupGetContentIncr__FP14NUPContextInfoP12NUPTitleInfoPc: 90.421050%; instructions 109/114, diffs 105; installed-content helper inlining and import-error cleanup scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived shared installed-content search helper returns membership with pointer traversal: objdiff 80.026310 -> 87.307014; instructions [106, 114] -> [109, 114]; diffs 103 -> 105; kept.
|
||||
2. incremental content loop signed count and 64-bit round before import begin: objdiff 87.307014 -> 78.894740; instructions [109, 114] -> [111, 114]; diffs 105 -> 80; restored.
|
||||
3. import file result captured before begin-error cleanup call: objdiff 87.307014 -> 90.421050; instructions [109, 114] -> [109, 114]; diffs 105 -> 105; kept.
|
||||
|
||||
### __nupUpdateTitle__FP14NUPContextInfoP12NUPTitleInfoPcPc
|
||||
|
||||
__nupUpdateTitle__FP14NUPContextInfoP12NUPTitleInfoPcPc: 94.962960%; instructions 133/135, diffs 88; NAND free-block comparison and shared error-return scheduling.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived boot content fetch uses uncached content URL: objdiff 85.355550 -> 86.985180; instructions [135, 135] -> [135, 135]; diffs 100 -> 76; kept.
|
||||
2. re-derived update-title control flow with common error return after every import block: objdiff 86.985180 -> 94.837036; instructions [135, 135] -> [133, 135]; diffs 76 -> 88; kept.
|
||||
3. inode capacity condition places title progress operand first as original comparison: objdiff 94.837036 -> 94.962960; instructions [133, 135] -> [133, 135]; diffs 88 -> 88; kept.
|
||||
|
||||
### __nupOp
|
||||
|
||||
__nupOp: 90.413240%; instructions 422/438, diffs 391; boot/IOS/menu search and update loop scheduling; 16 target instructions remain unmatched.
|
||||
Compiled source-level attempts: 3.
|
||||
|
||||
1. re-derived every operation block, server ABI values, boot/IOS/menu update order and shared cleanup from target assembly: objdiff 47.045662 -> 90.150690; instructions [332, 438] -> [423, 438]; diffs 428 -> 267; kept.
|
||||
2. capture validated boot version in 16-bit local before server call: objdiff 90.150690 -> 90.641556; instructions [423, 438] -> [421, 438]; diffs 267 -> 414; kept.
|
||||
3. unsigned offset loop for final update pass preserves pointer traversal and title reloads: objdiff 90.641556 -> 90.175800; instructions [421, 438] -> [421, 438]; diffs 414 -> 414; restored.
|
||||
|
||||
## Source-order audit
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"unit": "libs/RVL_SDK/src/fa/driver/sd_drv",
|
||||
"target_functions": 26,
|
||||
"source_functions_found": 26,
|
||||
"missing": [],
|
||||
"source_order_matches_object": true
|
||||
},
|
||||
{
|
||||
"unit": "libs/RVL_SDK/src/wad/wad",
|
||||
"target_functions": 40,
|
||||
"source_functions_found": 40,
|
||||
"missing": [],
|
||||
"source_order_matches_object": true
|
||||
},
|
||||
{
|
||||
"unit": "libs/RVL_SDK/src/vi/vi",
|
||||
"target_functions": 30,
|
||||
"source_functions_found": 30,
|
||||
"missing": [],
|
||||
"source_order_matches_object": true
|
||||
},
|
||||
{
|
||||
"unit": "libs/RVL_SDK/src/nup/nup",
|
||||
"target_functions": 23,
|
||||
"source_functions_found": 23,
|
||||
"missing": [],
|
||||
"source_order_matches_object": true
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
## String offset audit
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"unit": "libs/RVL_SDK/src/fa/driver/sd_drv",
|
||||
"strings": 46,
|
||||
"sequence_matches": true,
|
||||
"offset_divergences": []
|
||||
},
|
||||
{
|
||||
"unit": "libs/RVL_SDK/src/wad/wad",
|
||||
"strings": 18,
|
||||
"sequence_matches": true,
|
||||
"offset_divergences": []
|
||||
},
|
||||
{
|
||||
"unit": "libs/RVL_SDK/src/vi/vi",
|
||||
"strings": 7,
|
||||
"sequence_matches": true,
|
||||
"offset_divergences": [
|
||||
{
|
||||
"string_index": 0,
|
||||
"source_offset": 772,
|
||||
"original_offset": 956
|
||||
},
|
||||
{
|
||||
"string_index": 1,
|
||||
"source_offset": 816,
|
||||
"original_offset": 1000
|
||||
},
|
||||
{
|
||||
"string_index": 2,
|
||||
"source_offset": 860,
|
||||
"original_offset": 1044
|
||||
},
|
||||
{
|
||||
"string_index": 3,
|
||||
"source_offset": 904,
|
||||
"original_offset": 1088
|
||||
},
|
||||
{
|
||||
"string_index": 4,
|
||||
"source_offset": 948,
|
||||
"original_offset": 1132
|
||||
},
|
||||
{
|
||||
"string_index": 5,
|
||||
"source_offset": 992,
|
||||
"original_offset": 1176
|
||||
},
|
||||
{
|
||||
"string_index": 6,
|
||||
"source_offset": 1036,
|
||||
"original_offset": 1220
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"unit": "libs/RVL_SDK/src/nup/nup",
|
||||
"strings": 28,
|
||||
"sequence_matches": true,
|
||||
"offset_divergences": []
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
## Review corrections
|
||||
|
||||
- WAD source blocks were reordered to original function address order while preserving effective inlining settings and all baseline exact functions.
|
||||
- The partial random-word path draws one random word; an intermediate unused extra draw was removed during review.
|
||||
- The original four-bit WAD count traversal was restored after whole-unit verification showed that the simple loop worsened its inlined consumers. The final whole-unit fuzzy score is higher.
|
||||
- The NUP boot-version local passed to the server is initialized; size-output locals are consumed only after successful API queries.
|
||||
- The NUP audit header stores a 32-bit format word. Its field name was corrected from titleId to format.
|
||||
- The failed serial-number path copies the empty string identified at target small-data offset 0x10. Removing the duplicate unknown literal restores every NUP data section to 100 percent without changing instruction scores.
|
||||
- VI shutdown event 4 through 6 returns success, and out-of-range events return the false final argument as observed in target assembly.
|
||||
|
||||
## Uncertainties
|
||||
|
||||
- pfd_sddrv_get_disk_info: original symbol size excludes the last addi/blr; no symbol metadata was changed.
|
||||
- __nupGetBootVersion: original symbol name describes one argument, while target instructions and caller pass context in r3 and title in r4. The existing readable two-argument declaration was preserved, so exact-name objdiff cannot associate this function.
|
||||
- Register allocation is an observed remaining difference in several functions, not proof that no source-level solution exists.
|
||||
- WAD data remains zero matched bytes even with an identical string pool; no data placement tricks or linking changes were made.
|
||||
- VI has 184 fewer bytes before its string pool. The original data after the 25 filter taps resembles three GX render-mode records, but no target reference proves their ownership or intended declarations. No unused objects were added merely to move the pool. pool_diff.py and gate.py compare string contents/order, not their offsets; the stricter audit above records this unresolved gap.
|
||||
99
tools/decomp-assist/sol-high-sdk-gate.txt
Normal file
99
tools/decomp-assist/sol-high-sdk-gate.txt
Normal file
@@ -0,0 +1,99 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] objdiff: code 2100/11752 data 408/3592 functions 10/26 fuzzy 94.6276 linked code 0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] instruction-exact functions: 10/26
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .bss size 608 match 97.36842
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .data size 2576 match 99.96117
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .rodata size 368 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .sbss size 40 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .text size 11760 match 94.62764
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_st_inter_callback 93.840576
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_st_removal_callback 90.30303
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_init 86.104164
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_unmount 90.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_finalize 92.87719
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_get_disk_info 97.916664
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_physical_read 99.92126
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_physical_write 99.92126
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_get_total_sectors 90.9375
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_calc_mbr_bpb 91.76878
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_bpb_buf 99.34251
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_mbr_buf 94.36633
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_calc_fat32_mbr_bpb 89.909775
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_fat32_mbr_buf 77.50725
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_fat32_bpb_buf 96.4946
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_build_fat32_mbr_bpb 94.75225
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] baseline: code 2100/11752 data 408 functions 10 fuzzy 70.5225
|
||||
[libs/RVL_SDK/src/wad/wad] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/wad/wad] objdiff: code 7080/24500 data None/528 functions 23/40 fuzzy 80.8216 linked code 0
|
||||
[libs/RVL_SDK/src/wad/wad] instruction-exact functions: 23/40
|
||||
[libs/RVL_SDK/src/wad/wad] section .data size 464 match 99.34924
|
||||
[libs/RVL_SDK/src/wad/wad] section .sdata size 64 match 84.375
|
||||
[libs/RVL_SDK/src/wad/wad] section .text size 24500 match 80.82155
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportGetBlocks 76.55369
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815BFFA8 97.17742
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportEx 71.91361
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815C1288 96.39344
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADBackupEx 59.089455
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADCheckContents 96.70588
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADOpenStream 87.35468
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADUnpackBackup 94.867256
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADGetCidxCount 95.05
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADGetCidx 99.14286
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADBackupGetFiles 46.195583
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADBackupGetSize 86.77419
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADRandPad 87.30769
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815C43E0 97.17742
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADHash 71.103096
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADVerify 86.863945
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportDVDExForBS 89.330795
|
||||
[libs/RVL_SDK/src/wad/wad] baseline: code 6680/24500 data None functions 21 fuzzy 77.3980
|
||||
[libs/RVL_SDK/src/vi/vi] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/vi/vi] objdiff: code 2084/11296 data 400/1944 functions 18/30 fuzzy 85.1516 linked code 0
|
||||
[libs/RVL_SDK/src/vi/vi] instruction-exact functions: 18/30
|
||||
[libs/RVL_SDK/src/vi/vi] section .bss size 368 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .data size 1368 match 3.5053554
|
||||
[libs/RVL_SDK/src/vi/vi] section .sbss size 176 match 90.243904
|
||||
[libs/RVL_SDK/src/vi/vi] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .text size 11296 match 85.15156
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: OnShutdown 81.039604
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: __VIRetraceHandler 88.81396
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: __VIInit 87.469696
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIInit 85.06213
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIWaitForRetrace 90.47619
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: setFbbRegs 79.41954
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: setHorizontalRegs 62.232143
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: setVerticalRegs 57.950497
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIConfigure 74.80726
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIConfigurePan 88.80751
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIFlush 78.91304
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: __VIDisplayPositionToXY 82.624115
|
||||
[libs/RVL_SDK/src/vi/vi] baseline: code 2084/11296 data 400 functions 18 fuzzy 83.3782
|
||||
[libs/RVL_SDK/src/nup/nup] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/nup/nup] objdiff: code 2840/10764 data 1720/1720 functions 13/23 fuzzy 82.3081 linked code 0
|
||||
[libs/RVL_SDK/src/nup/nup] instruction-exact functions: 13/23
|
||||
[libs/RVL_SDK/src/nup/nup] section .data size 1592 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .rodata size 88 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .sbss size 8 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .text size 10764 match 82.30807
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupParseServerInfo__FP14NUPContextInfoPcPcUx 62.53761
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetServerInfo__FPcPcUxPcPcUlPcUsUsUxUsPPc 96.75862
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupBase64Encode__FPUcPUcUl 71.61905
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetAuditData__FP14NUPContextInfoPPc 91.741806
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetBootVersion__FP14ESTitleVersion None
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetTitleSize__FP12NUPTitleInfo 73.942444
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetContentFull__FP14NUPContextInfoP12NUPTitleInfoPcUl 94.204544
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetContentIncr__FP14NUPContextInfoP12NUPTitleInfoPc 90.42105
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupUpdateTitle__FP14NUPContextInfoP12NUPTitleInfoPcPc 94.96296
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupOp 90.41324
|
||||
[libs/RVL_SDK/src/nup/nup] baseline: code 2536/10764 data 128 functions 11 fuzzy 55.2887
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 82.01012 -> 82.03362
|
||||
global fuzzy_match_percent: 93.25916 -> 93.48553
|
||||
global complete_code_percent: 57.20994 -> 57.20994
|
||||
global matched_data_percent: 89.09599 -> 89.18286
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
596
tools/decomp-assist/sol-high-sdk-round2-attempts.md
Normal file
596
tools/decomp-assist/sol-high-sdk-round2-attempts.md
Normal file
@@ -0,0 +1,596 @@
|
||||
# SDK round 2 matching attempts
|
||||
|
||||
Baseline: bc6d67e3. Source remains NonMatching. Full gate output is in sol-high-sdk-round2-gates.txt.
|
||||
|
||||
## VI data
|
||||
|
||||
Target filter payload contains 25 u16 taps and three complete 60-byte PAL progressive GXRenderModeObj records. The records were missing, moving all seven later strings 184 bytes earlier.
|
||||
|
||||
1. Separate static GX mode records: compiler discarded unreferenced records; restored.
|
||||
2. Separate public GX mode records: compiler emitted them after private data; pool offsets unchanged; restored.
|
||||
3. Typed filter/mode aggregate: string offsets corrected; standalone aggregate alignment moved taps four bytes; superseded.
|
||||
4. Array of filter/mode configurations: same aggregate alignment; superseded.
|
||||
5. Hardware configuration groups the eleven timing records with the filter/mode aggregate. Natural member alignment matches all target payload bytes and pool offsets, without explicit padding or forced retention. Retained. VIInit objdiff 85.06213 -> 86.2929; exact count 18/30 unchanged. Raw .data is identical (1368 bytes); objdiff .data symbol association remains below 100%. Other raw VI data sections match their common bytes; source small sections omit natural trailing zero alignment.
|
||||
|
||||
## WAD small-data pool and file enumeration
|
||||
|
||||
WADOpenStream now visits the write branch first, pooling r+ before r. _WADBackupGetFiles was rebuilt block by block from its 317 target instructions: path construction uses strcmp against dot, absolute/relative branches pool %s/%s before %s, filters precede file opening, failures take per-name cleanup, and recursion advances a real header cursor. Instructions now 317/317; objdiff 46.195583 -> 96.01893. _WADCleanTmpDir target extension is app, not tmp. Raw .data/.sdata bytes now match, with only natural .data trailing alignment shorter in source. The full gate preserves all 23 exact functions and raises WAD fuzzy 80.82155 -> 83.43771.
|
||||
|
||||
VIFlush retains an explicit local register mask (78.91304 -> 81.23189); setHorizontalRegs caches the pending mask (62.232143 -> 67.14286). SD finalize chained media-state clearing improves 92.87719 -> 92.89474. Full three-unit gate passes with zero regressions; exact counts unchanged. Detailed per-function trials are recorded below when the round finishes.
|
||||
|
||||
SD CSD multiplier selection uses conditional expressions (90.9375 -> 96.9875, instructions 80/80). VI shutdown uses the same explicit shift-mask temporary as the flush path (81.039604 -> 82.623764). Full two-unit gate passes; no exact regression.
|
||||
|
||||
NUP reuses the existing installed-content helper for size calculation, initializes response outputs before loading the TMD view, accumulates request lengths in target call order, uses a signed content index, and checks boot import errors before common cleanup. Full NUP gate passes, fuzzy 82.30807 -> 82.932365; data remains 1720/1720 and exact remains 13/23.
|
||||
|
||||
SD format lookup blocks retain cached requested sector counts where they improve the target load schedule. Initialization compares the stored insertion boolean to one, matching the target branch. Full gate raises SD fuzzy 94.79272 -> 95.27297, exact remains 10/26.
|
||||
|
||||
WADBackupEx header and final signature blocks now follow the target: write a placeholder header, fill savedata identity and transfer MAC, call export with real metadata arguments, use aligned typed heap certificate records, validate stream size and seek before signing output. Target out-of-line transfer initializer boundary is preserved. Full WAD gate passes; fuzzy 83.43771 -> 85.42286. The gate review note at backupAreaLen != totalSize + 0x340 is integer size arithmetic, not a pointer offset. Copied-file-header/encryption-buffer reconstruction was compiled but restored after a fuzzy decrease and remains open.
|
||||
|
||||
NUP __nupGetContentFull reaches instruction-exact 100%, 88/88 instructions, diffs 0, after declaring the persistent URL before response outputs and separating URL/alignment declarations from assignments. __nupGetServerInfo reaches 99.793106%, 145/145, four call-scheduling/register differences; XML title arguments now match boot/system-menu/current-title order. Full NUP gate: 13 -> 14 exact, code 2840 -> 3192, data 1720/1720.
|
||||
|
||||
## Final round verification
|
||||
|
||||
Final full gate rebuilt all four units from scratch: PASS, zero baseline-exact regressions, zero forbidden additions, zero readability additions. All four units remain NonMatching; code/data are still partial. Every original function body exists in object order (26 SD, 40 WAD, 30 VI, 23 NUP); no order inversions.
|
||||
|
||||
Strict pool audit includes both string contents and offsets: SD 46/46, WAD 18/18, VI 7/7, NUP 28/28 identical. VI no longer has the 184-byte offset gap. NUP __nupGetContentFull is objdiff 100%, ctxdiff instructions 88/88 and diffs 0.
|
||||
|
||||
Final changes also advance WAD file offsets past the real WADFileHeader, use the target signed content index, converge unpack/hash errors on the target return blocks, and separate the NUP version parse-end/range branches. Transfer-ID helper reads 32 bytes, so its actual stack buffer is 32 bytes and only the six-byte MAC field is copied. This correctness fix compiled to the same aligned stack layout; it is retained despite no score change.
|
||||
|
||||
179 compiled trials are preserved below, including data experiments; three build failures are recorded separately. Every one of the 55 baseline nonmatching functions has at least three distinct compiled source-level attempts in this round. One is now exact; 54 remain open. Restored trials do not appear in the source diff. Scores are objdiff percentages; instruction counts/diffs are relocation-resolved normalized comparisons.
|
||||
|
||||
## Data audit and limits
|
||||
|
||||
| Unit | Section | Source / original bytes | Common byte differences | Remaining issue |
|
||||
| --- | --- | ---: | ---: | --- |
|
||||
| SD | .data | 2574 / 2576 | 0 | Trailing alignment and symbol association; objdiff 99.96117% |
|
||||
| SD | .rodata | 368 / 368 | 0 | Objdiff 100% |
|
||||
| SD | .bss | 608 / 608 | 0 | Driver-info symbol 28 vs 32 bytes, following globals already at target offsets; objdiff 97.36842% |
|
||||
| SD | .sbss | 12 / 40 | 0 | Zero storage/order/gaps differ; objdiff 100% |
|
||||
| WAD | .data | 458 / 464 | 0 | Natural trailing alignment and symbol association; objdiff 99.34924% |
|
||||
| WAD | .sdata | 64 / 64 | 0 | Objdiff 100% |
|
||||
| VI | .data | 1368 / 1368 | 0 | Raw payload exact; aggregate/original-label association gives objdiff 3.5053554% |
|
||||
| VI | .sdata | 29 / 32 | 0 | Trailing zero alignment; objdiff 100% |
|
||||
| VI | .sbss | 168 / 176 | 0 | Zero-storage symbol order/gaps differ; objdiff 90.243904% |
|
||||
| VI | .bss | 368 / 368 | 0 | Objdiff 100% |
|
||||
| NUP | .data | 1592 / 1592 | 0 | Objdiff 100% |
|
||||
| NUP | .rodata | 86 / 88 | 0 | Trailing zero alignment; objdiff 100% |
|
||||
| NUP | .sdata | 25 / 32 | 0 | Trailing zero alignment; objdiff 100% |
|
||||
| NUP | .sbss | 4 / 8 | 0 | Trailing zero storage; objdiff 100% |
|
||||
|
||||
Raw common-byte comparisons are an additional check, not a claim that every section is instruction/data-exact in objdiff. No padding, force-active entry, new address label, symbol-size/config change, or shared-header change was added.
|
||||
|
||||
VI target bytes decode as three complete PAL progressive GX render modes. The hardware aggregate is a source-level reconstruction with natural field alignment, not proof of the original declaration grouping. Individual unreferenced static definitions were discarded and separate public definitions landed later; those experiments were restored. Original declaration ownership/grouping and small-zero-storage ordering remain uncertain.
|
||||
|
||||
Gate review note at backupAreaLen != totalSize + 0x340 refers to integer lengths; it is not pointer arithmetic into a blob. Certificate access uses a typed record after the runtime alignment present in the target, then named fields.
|
||||
|
||||
## Unit results
|
||||
|
||||
libs/RVL_SDK/src/fa/driver/sd_drv: exact 10 -> 10; code 2100 -> 2100/11752; data 408 -> 408/3592; fuzzy 94.627640 -> 95.272970.
|
||||
libs/RVL_SDK/src/wad/wad: exact 23 -> 23; code 7080 -> 7080/24500; data 0 -> 64/528; fuzzy 80.821550 -> 85.703674.
|
||||
libs/RVL_SDK/src/vi/vi: exact 18 -> 18; code 2084 -> 2084/11296; data 400 -> 400/1944; fuzzy 85.151560 -> 85.512390.
|
||||
libs/RVL_SDK/src/nup/nup: exact 13 -> 14; code 2840 -> 3192/10764; data 1720 -> 1720/1720; fuzzy 82.308070 -> 83.114456.
|
||||
|
||||
## Remaining functions
|
||||
|
||||
pfd_st_inter_callback: 93.840576%; instructions 65/69, diffs 55; inlined drive lookup and callback register assignment.
|
||||
pfd_st_removal_callback: 90.303030%; instructions 62/66, diffs 53; inlined drive lookup and callback scheduling.
|
||||
pfd_sddrv_init: 90.277780%; instructions 144/144, diffs 86; callback argument registers and media-status branch scheduling.
|
||||
pfd_sddrv_unmount: 90.000000%; instructions 12/13, diffs 9; mount-bit helper load and mask allocation.
|
||||
pfd_sddrv_finalize: 92.894740%; instructions 58/57, diffs 19; inlined mount-bit clearing and error-return scheduling.
|
||||
pfd_sddrv_get_disk_info: 97.916664%; instructions 98/96, diffs 2; original symbol ends before final two epilogue instructions; config unchanged.
|
||||
pfd_sddrv_physical_read: 99.921260%; instructions 127/127, diffs 2; two register-allocation differences in aligned read arguments.
|
||||
pfd_sddrv_physical_write: 99.921260%; instructions 127/127, diffs 2; two register-allocation differences in aligned write arguments.
|
||||
pfd_sddrv_get_total_sectors: 96.987500%; instructions 80/80, diffs 10; CSD multiplier min/max registers and conditional selection scheduling.
|
||||
pfd_sddrv_calc_mbr_bpb: 92.699425%; instructions 171/173, diffs 89; nested reserved-sector convergence loops and register lifetimes.
|
||||
pfd_sddrv_store_bpb_buf: 99.834860%; instructions 327/327, diffs 12; serial-field aligned store instruction selection and literal-copy scheduling.
|
||||
pfd_sddrv_store_mbr_buf: 95.163370%; instructions 202/202, diffs 46; CHS arithmetic scheduling and byte-store grouping.
|
||||
pfd_sddrv_calc_fat32_mbr_bpb: 89.947365%; instructions 132/133, diffs 54; FAT convergence loop countdown and sector reload scheduling.
|
||||
pfd_sddrv_store_fat32_mbr_buf: 78.285030%; instructions 208/207, diffs 197; CHS widths and endian-store scheduling.
|
||||
pfd_sddrv_store_fat32_bpb_buf: 96.929730%; instructions 374/370, diffs 354; endian and literal-copy blocks still emit excess instructions.
|
||||
pfd_sddrv_build_fat32_mbr_bpb: 94.752250%; instructions 230/222, diffs 122; media-state checks and inlined reserved-sector helper branches.
|
||||
WADImportGetBlocks: 76.889260%; instructions 262/298, diffs 288; inlined mask traversal, block arithmetic and stack-local layout.
|
||||
WAD_815BFFA8: 97.177420%; instructions 62/62, diffs 30; thread-loop callee-saved register allocation.
|
||||
WADImportEx: 72.739970%; instructions 1131/1146, diffs 1110; stream/unpack stack offsets, inlined mask traversal and cleanup scheduling.
|
||||
WAD_815C1288: 96.393440%; instructions 61/61, diffs 34; thread-loop register allocation and result scheduling.
|
||||
WADBackupEx: 67.812614%; instructions 896/1062, diffs 1042; copied-file-header/encryption blocks, export stack layout and cleanup paths remain different.
|
||||
_WADCheckContents: 96.705880%; instructions 85/85, diffs 19; nested content search register assignment.
|
||||
WADOpenStream: 88.522170%; instructions 199/203, diffs 173; NAND extension loop, return scheduling and handle addressing.
|
||||
_WADUnpackBackup: 95.840706%; instructions 115/113, diffs 57; section-size reloads and allocation ordering.
|
||||
_WADGetCidxCount: 95.050000%; instructions 40/40, diffs 25; four-bit unrolled mask traversal register allocation; retained to preserve inlined consumers.
|
||||
_WADGetCidx: 99.142860%; instructions 56/56, diffs 8; four-bit cumulative index register assignment.
|
||||
_WADBackupGetFiles: 96.018930%; instructions 317/317, diffs 99; same target instruction count; directory cursor, frame locals and callee-saved registers differ.
|
||||
_WADBackupGetSize: 86.774190%; instructions 161/155, diffs 155; content loop arithmetic and output-pointer scheduling.
|
||||
_WADRandPad: 87.307690%; instructions 89/91, diffs 62; partial-word byte-copy loop and random-expression scheduling.
|
||||
WAD_815C43E0: 97.177420%; instructions 62/62, diffs 30; thread-loop callee-saved register allocation.
|
||||
_WADHash: 88.891754%; instructions 193/194, diffs 166; one missing instruction; threaded buffer ownership and result-join register lifetimes differ.
|
||||
WADVerify: 86.863945%; instructions 133/147, diffs 131; hash/digest workspace offsets and original dormant cleanup blocks.
|
||||
WADImportDVDExForBS: 89.330795%; instructions 259/263, diffs 245; inlined mask traversal and boot-import workspace offsets.
|
||||
OnShutdown: 82.623764%; instructions 97/101, diffs 48; shift-mask loop and shutdown-return scheduling still differ.
|
||||
__VIRetraceHandler: 88.813960%; instructions 501/516, diffs 407; interrupt context stack frame and vertical polling/acknowledgement scheduling.
|
||||
__VIInit: 87.469696%; instructions 121/132, diffs 122; original stack-backed TV initialization loop and scan register scheduling.
|
||||
VIInit: 86.292900%; instructions 332/338, diffs 193; hardware payload now correct; scan/field locals and hardware initialization scheduling differ.
|
||||
VIWaitForRetrace: 90.476190%; instructions 21/21, diffs 2; two save/load instructions scheduled in the opposite order.
|
||||
setFbbRegs: 79.419540%; instructions 160/174, diffs 74; inlined framebuffer parity/address control flow and alias-dependent reloads.
|
||||
setHorizontalRegs: 67.142860%; instructions 47/56, diffs 55; compiler merges repeated changed-mask load/store pairs.
|
||||
setVerticalRegs: 57.950497%; instructions 81/101, diffs 89; compiler merges repeated changed-mask stores and blanking arithmetic.
|
||||
VIConfigure: 74.825390%; instructions 423/441, diffs 367; inlined register helpers and scan/TV decision scheduling.
|
||||
VIConfigurePan: 88.807510%; instructions 208/213, diffs 194; inlined register helpers and timing-pointer scheduling.
|
||||
VIFlush: 81.231890%; instructions 69/69, diffs 24; leading-zero/mask-loop register allocation and initial state scheduling.
|
||||
__VIDisplayPositionToXY: 82.624115%; instructions 140/141, diffs 109; one missing instruction plus half-line bound scheduling.
|
||||
__nupParseServerInfo__FP14NUPContextInfoPcPcUx: 62.991150%; instructions 463/452, diffs 434; tag-helper inlining and parsed-title stack/register allocation.
|
||||
__nupGetServerInfo__FPcPcUxPcPcUlPcUsUsUxUsPPc: 99.793106%; instructions 145/145, diffs 4; four register/call scheduling differences; instruction count and title arguments match.
|
||||
__nupBase64Encode__FPUcPUcUl: 71.619050%; instructions 59/63, diffs 41; alphabet reloads and partial-group output control flow.
|
||||
__nupGetAuditData__FP14NUPContextInfoPPc: 91.741806%; instructions 236/244, diffs 160; encoded-length helper inlining and audit stack/register scheduling.
|
||||
__nupGetBootVersion__FP14ESTitleVersion: unscored; instructions 153/163, diffs 101; unscored original one-argument symbol metadata versus observed two-argument ABI; content-search instructions also differ.
|
||||
__nupGetTitleSize__FP12NUPTitleInfo: 79.410070%; instructions 134/139, diffs 114; installed-content search and 64-bit block rounding scheduling.
|
||||
__nupGetContentIncr__FP14NUPContextInfoP12NUPTitleInfoPc: 90.903510%; instructions 109/114, diffs 105; installed-content helper inlining and import-error cleanup scheduling.
|
||||
__nupUpdateTitle__FP14NUPContextInfoP12NUPTitleInfoPcPc: 96.444440%; instructions 135/135, diffs 23; NAND free-block comparison and shared error-return scheduling.
|
||||
__nupOp: 90.413240%; instructions 422/438, diffs 391; boot/IOS/menu search and update loop scheduling; 16 target instructions remain unmatched.
|
||||
|
||||
## Per-function attempts
|
||||
|
||||
### pfd_st_inter_callback
|
||||
|
||||
Unit: libs/RVL_SDK/src/fa/driver/sd_drv. Final objdiff: 93.840576; instructions 65/69, diffs 55. inlined drive lookup and callback register assignment.
|
||||
|
||||
1. take positive status branch and let callback fall through common zero return: objdiff 93.840576 -> 85.91304; instructions [65, 69] -> [62, 69]; diffs 55 -> 66; restored.
|
||||
2. save media notification disk locally after drive update: objdiff 93.840576 -> 93.840576; instructions [65, 69] -> [65, 69]; diffs 55 -> 55; restored.
|
||||
3. callback drive char widened to signed int before user callback: objdiff 93.840576 -> 93.840576; instructions [65, 69] -> [65, 69]; diffs 55 -> 55; restored.
|
||||
|
||||
### pfd_st_removal_callback
|
||||
|
||||
Unit: libs/RVL_SDK/src/fa/driver/sd_drv. Final objdiff: 90.30303; instructions 62/66, diffs 53. inlined drive lookup and callback scheduling.
|
||||
|
||||
1. take positive status branch and let callback fall through common zero return: objdiff 90.30303 -> 82.257576; instructions [62, 66] -> [59, 66]; diffs 53 -> 63; restored.
|
||||
2. save media notification disk locally after drive update: objdiff 90.30303 -> 90.30303; instructions [62, 66] -> [62, 66]; diffs 53 -> 53; restored.
|
||||
3. callback drive char widened to signed int before user callback: objdiff 90.30303 -> 90.30303; instructions [62, 66] -> [62, 66]; diffs 53 -> 53; restored.
|
||||
|
||||
### pfd_sddrv_init
|
||||
|
||||
Unit: libs/RVL_SDK/src/fa/driver/sd_drv. Final objdiff: 90.27778; instructions 144/144, diffs 86. callback argument registers and media-status branch scheduling.
|
||||
|
||||
1. mounted device local is reloaded from driver before handler registration: objdiff 86.104164 -> 86.104164; instructions [143, 144] -> [143, 144]; diffs 138 -> 138; restored.
|
||||
2. already-initialized disk result is selected by conditional expression: objdiff 86.104164 -> 86.104164; instructions [143, 144] -> [143, 144]; diffs 138 -> 138; restored.
|
||||
3. test insertion flag explicitly equals one after device status read: objdiff 86.104164 -> 90.27778; instructions [143, 144] -> [144, 144]; diffs 138 -> 86; retained at that checkpoint.
|
||||
|
||||
### pfd_sddrv_unmount
|
||||
|
||||
Unit: libs/RVL_SDK/src/fa/driver/sd_drv. Final objdiff: 90.0; instructions 12/13, diffs 9. mount-bit helper load and mask allocation.
|
||||
|
||||
1. test mount bit after right shift as target condition block: objdiff 90.0 -> 85.76923; instructions [12, 13] -> [12, 13]; diffs 9 -> 9; restored.
|
||||
2. clear mounted state through explicit flag subtraction on mounted path: objdiff 90.0 -> 85.76923; instructions [12, 13] -> [12, 13]; diffs 9 -> 9; restored.
|
||||
3. unsigned flag shift comparison in early no-mount return: objdiff 90.0 -> 65.0; instructions [12, 13] -> [14, 13]; diffs 9 -> 9; restored.
|
||||
|
||||
### pfd_sddrv_finalize
|
||||
|
||||
Unit: libs/RVL_SDK/src/fa/driver/sd_drv. Final objdiff: 92.89474; instructions 58/57, diffs 19. inlined mount-bit clearing and error-return scheduling.
|
||||
|
||||
1. clear mount flag by decrement within mounted branch: objdiff 92.87719 -> 91.91228; instructions [58, 57] -> [58, 57]; diffs 19 -> 19; restored.
|
||||
2. zero initialization expressed as chained media and disk state assignments: objdiff 92.87719 -> 92.89474; instructions [58, 57] -> [58, 57]; diffs 19 -> 19; retained at that checkpoint.
|
||||
3. initialized flag explicitly equals one rather than truthy bit test: objdiff 92.89474 -> 90.96491; instructions [58, 57] -> [59, 57]; diffs 19 -> 51; restored.
|
||||
|
||||
### pfd_sddrv_get_disk_info
|
||||
|
||||
Unit: libs/RVL_SDK/src/fa/driver/sd_drv. Final objdiff: 97.916664; instructions 98/96, diffs 2. original symbol ends before final two epilogue instructions; config unchanged.
|
||||
|
||||
1. return successful geometry helper result instead of new zero constant: objdiff 97.916664 -> 96.875; instructions [98, 96] -> [97, 96]; diffs 2 -> 20; restored.
|
||||
2. group geometry halfword zeros separately from format pointer: objdiff 97.916664 -> 93.75; instructions [98, 96] -> [98, 96]; diffs 2 -> 4; restored.
|
||||
3. media type check factors both memory-card status bits into one mask: objdiff 97.916664 -> 95.208336; instructions [98, 96] -> [96, 96]; diffs 2 -> 45; restored.
|
||||
|
||||
### pfd_sddrv_physical_read
|
||||
|
||||
Unit: libs/RVL_SDK/src/fa/driver/sd_drv. Final objdiff: 99.92126; instructions 127/127, diffs 2. two register-allocation differences in aligned read arguments.
|
||||
|
||||
1. initialize current sector with loop variables and use original sector for aligned calls: objdiff 99.92126 -> 98.34646; instructions [127, 127] -> [127, 127]; diffs 2 -> 43; restored.
|
||||
2. use additive sector advance with independent completion index: objdiff 99.92126 -> 99.92126; instructions [127, 127] -> [127, 127]; diffs 2 -> 2; restored.
|
||||
3. descending outstanding-block loop preserves current-sector call argument lifetime: objdiff 99.92126 -> 95.90551; instructions [127, 127] -> [129, 127]; diffs 2 -> 84; restored.
|
||||
|
||||
### pfd_sddrv_physical_write
|
||||
|
||||
Unit: libs/RVL_SDK/src/fa/driver/sd_drv. Final objdiff: 99.92126; instructions 127/127, diffs 2. two register-allocation differences in aligned write arguments.
|
||||
|
||||
1. initialize current sector with loop variables and use original sector for aligned calls: objdiff 99.92126 -> 98.34646; instructions [127, 127] -> [127, 127]; diffs 2 -> 43; restored.
|
||||
2. use additive sector advance with independent completion index: objdiff 99.92126 -> 99.92126; instructions [127, 127] -> [127, 127]; diffs 2 -> 2; restored.
|
||||
3. descending outstanding-block loop preserves current-sector call argument lifetime: objdiff 99.92126 -> 95.90551; instructions [127, 127] -> [129, 127]; diffs 2 -> 84; restored.
|
||||
|
||||
### pfd_sddrv_get_total_sectors
|
||||
|
||||
Unit: libs/RVL_SDK/src/fa/driver/sd_drv. Final objdiff: 96.9875; instructions 80/80, diffs 10. CSD multiplier min/max registers and conditional selection scheduling.
|
||||
|
||||
1. conditional maximum/minimum expressions mirror two multiplier selection blocks: objdiff 90.9375 -> 96.9875; instructions [79, 80] -> [80, 80]; diffs 43 -> 10; retained at that checkpoint.
|
||||
2. store shifted CSD block length as unsigned halfword before multiplying: objdiff 96.9875 -> 94.2375; instructions [80, 80] -> [81, 80]; diffs 10 -> 39; restored.
|
||||
3. compute final CSD multiplier by shift instead of multiplication: objdiff 96.9875 -> 95.25; instructions [80, 80] -> [77, 80]; diffs 10 -> 26; restored.
|
||||
|
||||
### pfd_sddrv_calc_mbr_bpb
|
||||
|
||||
Unit: libs/RVL_SDK/src/fa/driver/sd_drv. Final objdiff: 92.699425; instructions 171/173, diffs 89. nested reserved-sector convergence loops and register lifetimes.
|
||||
|
||||
1. target lookup block caches total sector count before loop initialization: objdiff 91.76878 -> 92.699425; instructions [171, 173] -> [171, 173]; diffs 85 -> 89; retained at that checkpoint.
|
||||
2. copy settings from selected table record pointer rather than recalculated array index: objdiff 92.699425 -> 90.47399; instructions [171, 173] -> [167, 173]; diffs 89 -> 151; restored.
|
||||
3. lookup error dispatch returns literal failure directly as target status block: objdiff 92.699425 -> 87.93642; instructions [171, 173] -> [164, 173]; diffs 89 -> 165; restored.
|
||||
|
||||
### pfd_sddrv_store_bpb_buf
|
||||
|
||||
Unit: libs/RVL_SDK/src/fa/driver/sd_drv. Final objdiff: 99.83486; instructions 327/327, diffs 12. serial-field aligned store instruction selection and literal-copy scheduling.
|
||||
|
||||
1. target lookup block caches total sector count before loop initialization: objdiff 99.34251 -> 99.83486; instructions [327, 327] -> [327, 327]; diffs 8 -> 12; retained at that checkpoint.
|
||||
2. copy settings from selected table record pointer rather than recalculated array index: objdiff 99.83486 -> 98.65749; instructions [327, 327] -> [323, 327]; diffs 12 -> 304; restored.
|
||||
3. lookup error dispatch returns literal failure directly as target status block: objdiff 99.83486 -> 97.923546; instructions [327, 327] -> [322, 327]; diffs 12 -> 289; restored.
|
||||
|
||||
### pfd_sddrv_store_mbr_buf
|
||||
|
||||
Unit: libs/RVL_SDK/src/fa/driver/sd_drv. Final objdiff: 95.16337; instructions 202/202, diffs 46. CHS arithmetic scheduling and byte-store grouping.
|
||||
|
||||
1. target lookup block caches total sector count before loop initialization: objdiff 94.36633 -> 95.16337; instructions [202, 202] -> [202, 202]; diffs 42 -> 46; retained at that checkpoint.
|
||||
2. copy settings from selected table record pointer rather than recalculated array index: objdiff 95.16337 -> 93.25742; instructions [202, 202] -> [198, 202]; diffs 46 -> 181; restored.
|
||||
3. lookup error dispatch returns literal failure directly as target status block: objdiff 95.16337 -> 91.40099; instructions [202, 202] -> [197, 202]; diffs 46 -> 166; restored.
|
||||
|
||||
### pfd_sddrv_calc_fat32_mbr_bpb
|
||||
|
||||
Unit: libs/RVL_SDK/src/fa/driver/sd_drv. Final objdiff: 89.947365; instructions 132/133, diffs 54. FAT convergence loop countdown and sector reload scheduling.
|
||||
|
||||
1. target lookup block caches total sector count before loop initialization: objdiff 89.909775 -> 89.947365; instructions [132, 133] -> [132, 133]; diffs 55 -> 54; retained at that checkpoint.
|
||||
2. copy settings from selected table record pointer rather than recalculated array index: objdiff 89.947365 -> 86.33835; instructions [132, 133] -> [128, 133]; diffs 54 -> 113; restored.
|
||||
3. lookup error dispatch returns literal failure directly as target status block: objdiff 89.947365 -> 83.827065; instructions [132, 133] -> [125, 133]; diffs 54 -> 125; restored.
|
||||
|
||||
### pfd_sddrv_store_fat32_mbr_buf
|
||||
|
||||
Unit: libs/RVL_SDK/src/fa/driver/sd_drv. Final objdiff: 78.28503; instructions 208/207, diffs 197. CHS widths and endian-store scheduling.
|
||||
|
||||
1. target lookup block caches total sector count before loop initialization: objdiff 77.50725 -> 78.28503; instructions [208, 207] -> [208, 207]; diffs 196 -> 197; retained at that checkpoint.
|
||||
2. copy settings from selected table record pointer rather than recalculated array index: objdiff 78.28503 -> 76.42512; instructions [208, 207] -> [204, 207]; diffs 197 -> 199; restored.
|
||||
3. lookup error dispatch returns literal failure directly as target status block: objdiff 78.28503 -> 73.85507; instructions [208, 207] -> [203, 207]; diffs 197 -> 199; restored.
|
||||
|
||||
### pfd_sddrv_store_fat32_bpb_buf
|
||||
|
||||
Unit: libs/RVL_SDK/src/fa/driver/sd_drv. Final objdiff: 96.92973; instructions 374/370, diffs 354. endian and literal-copy blocks still emit excess instructions.
|
||||
|
||||
1. target lookup block caches total sector count before loop initialization: objdiff 96.4946 -> 96.92973; instructions [374, 370] -> [374, 370]; diffs 353 -> 354; retained at that checkpoint.
|
||||
2. copy settings from selected table record pointer rather than recalculated array index: objdiff 96.92973 -> 95.88919; instructions [374, 370] -> [370, 370]; diffs 354 -> 345; restored.
|
||||
3. lookup error dispatch returns literal failure directly as target status block: objdiff 96.92973 -> 94.9973; instructions [374, 370] -> [367, 370]; diffs 354 -> 355; restored.
|
||||
|
||||
### pfd_sddrv_build_fat32_mbr_bpb
|
||||
|
||||
Unit: libs/RVL_SDK/src/fa/driver/sd_drv. Final objdiff: 94.75225; instructions 230/222, diffs 122. media-state checks and inlined reserved-sector helper branches.
|
||||
|
||||
1. format workspace initialized by its actual typed size: objdiff 94.75225 -> 94.75225; instructions [230, 222] -> [230, 222]; diffs 122 -> 122; restored.
|
||||
2. boot and duplicate sector writes compute sector through one advancing local: objdiff 94.75225 -> 94.75225; instructions [230, 222] -> [230, 222]; diffs 122 -> 122; restored.
|
||||
3. inverted ejected state branch returns failure before missing-media test: objdiff 94.75225 -> 94.53603; instructions [230, 222] -> [230, 222]; diffs 122 -> 130; restored.
|
||||
|
||||
### WADImportGetBlocks
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 76.88926; instructions 262/298, diffs 288. inlined mask traversal, block arithmetic and stack-local layout.
|
||||
|
||||
1. selected content pointer indexed through real metadata array member: objdiff 76.55369 -> 76.55369; instructions [263, 298] -> [263, 298]; diffs 288 -> 288; restored.
|
||||
2. file offset advances over actual 128-byte file header before aligned payload: objdiff 76.55369 -> 76.88926; instructions [263, 298] -> [262, 298]; diffs 288 -> 288; retained at that checkpoint.
|
||||
3. header reader initializes buffer pointer immediately before stream use: objdiff 76.88926 -> 75.85235; instructions [262, 298] -> [262, 298]; diffs 288 -> 290; restored.
|
||||
|
||||
### WAD_815BFFA8
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 97.17742; instructions 62/62, diffs 30. thread-loop callee-saved register allocation.
|
||||
|
||||
1. increment ring index with modulo two instead of xor: objdiff 97.17742 -> 94.91936; instructions [62, 62] -> [63, 62]; diffs 30 -> 40; restored.
|
||||
2. decrement remaining transfer bytes before condition signal: objdiff 97.17742 -> 90.72581; instructions [62, 62] -> [62, 62]; diffs 30 -> 32; restored.
|
||||
3. outer loop explicit breaks retain producer-consumer wait blocks: compiler rejected; restored.
|
||||
4. explicit break after loop locals retains transfer producer-consumer blocks: objdiff 97.17742 -> 82.5; instructions [62, 62] -> [62, 62]; diffs 30 -> 47; restored.
|
||||
|
||||
### WADImportEx
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 72.73997; instructions 1131/1146, diffs 1110. stream/unpack stack offsets, inlined mask traversal and cleanup scheduling.
|
||||
|
||||
1. use signed metadata content count for per-title content traversal: objdiff 72.73386 -> 72.73997; instructions [1131, 1146] -> [1131, 1146]; diffs 1110 -> 1110; retained at that checkpoint.
|
||||
2. installed-content count declaration zeroed after import workspace setup: objdiff 72.73997 -> 72.71466; instructions [1131, 1146] -> [1132, 1146]; diffs 1110 -> 1124; restored.
|
||||
3. chunk upper bound initializes to available transfer chunk then caps by remaining data: objdiff 72.73997 -> 72.534904; instructions [1131, 1146] -> [1130, 1146]; diffs 1110 -> 1116; restored.
|
||||
|
||||
### WAD_815C1288
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 96.39344; instructions 61/61, diffs 34. thread-loop register allocation and result scheduling.
|
||||
|
||||
1. increment ring index with modulo two instead of xor: objdiff 96.39344 -> 93.85246; instructions [61, 61] -> [62, 61]; diffs 34 -> 45; restored.
|
||||
2. decrement remaining transfer bytes before condition signal: objdiff 96.39344 -> 89.83607; instructions [61, 61] -> [61, 61]; diffs 34 -> 36; restored.
|
||||
3. outer loop explicit breaks retain producer-consumer wait blocks: compiler rejected; restored.
|
||||
4. explicit break after loop locals retains transfer producer-consumer blocks: objdiff 96.39344 -> 81.55738; instructions [61, 61] -> [61, 61]; diffs 34 -> 48; restored.
|
||||
|
||||
### WADBackupEx
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 67.812614; instructions 896/1062, diffs 1042. copied-file-header/encryption blocks, export stack layout and cleanup paths remain different.
|
||||
|
||||
1. re-derived placeholder/header blocks 2050-22ec: transfer MAC and savedata title, export ABI, random seed and metadata padding: objdiff 59.089455 -> 66.38795; instructions [909, 1062] -> [896, 1062]; diffs 1049 -> 1043; retained at that checkpoint.
|
||||
2. re-derived file blocks 2708-2890: real copied file header, header IV and source/destination encryption buffers: objdiff 66.38795 -> 66.0951; instructions [896, 1062] -> [900, 1062]; diffs 1043 -> 1042; restored.
|
||||
3. re-derived final blocks 2a3c-2bf4: heap certificate records aligned to 64 bytes, size validation, signature seek and output size: objdiff 66.38795 -> 66.801315; instructions [896, 1062] -> [910, 1062]; diffs 1043 -> 1043; retained at that checkpoint.
|
||||
4. retain target out-of-line transfer initializer boundary instead of six inlined OS initializer calls: objdiff 66.801315 -> 67.812614; instructions [910, 1062] -> [896, 1062]; diffs 1043 -> 1042; retained at that checkpoint.
|
||||
5. transfer-ID buffer uses the 32-byte size read by the real helper; copy only six MAC bytes into header: objdiff 67.812614 -> 67.812614; instructions [896, 1062] -> [896, 1062]; diffs 1042 -> 1042; restored.
|
||||
|
||||
### _WADCheckContents
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 96.70588; instructions 85/85, diffs 19. nested content search register assignment.
|
||||
|
||||
1. count installed IDs down while pointer advances in each private-content search: objdiff 96.70588 -> 91.29412; instructions [85, 85] -> [84, 85]; diffs 19 -> 60; restored.
|
||||
2. separate missing required-content condition into nested type check: objdiff 96.70588 -> 96.70588; instructions [85, 85] -> [85, 85]; diffs 19 -> 19; restored.
|
||||
3. explicit content-mask byte pointer for selected private contents: objdiff 96.70588 -> 96.70588; instructions [85, 85] -> [85, 85]; diffs 19 -> 19; restored.
|
||||
|
||||
### WADOpenStream
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 88.52217; instructions 199/203, diffs 173. NAND extension loop, return scheduling and handle addressing.
|
||||
|
||||
1. write branch first as target; r+ before r in small-data pool: objdiff 87.35468 -> 88.487686; instructions [200, 203] -> [199, 203]; diffs 173 -> 173; retained at that checkpoint.
|
||||
2. NAND seek completion selects failure on inequality before zero success: objdiff 88.487686 -> 88.52217; instructions [199, 203] -> [199, 203]; diffs 173 -> 173; retained at that checkpoint.
|
||||
3. SD stream open returns through explicit null-handle validation: objdiff 88.52217 -> 88.52217; instructions [199, 203] -> [199, 203]; diffs 173 -> 173; restored.
|
||||
|
||||
### _WADUnpackBackup
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 95.840706; instructions 115/113, diffs 57. section-size reloads and allocation ordering.
|
||||
|
||||
1. backup header version and size failure checks share validation branch: objdiff 94.867256 -> 93.00885; instructions [116, 113] -> [114, 113]; diffs 89 -> 79; restored.
|
||||
2. nonzero device-read status branches directly to shared return label: objdiff 94.867256 -> 95.840706; instructions [116, 113] -> [115, 113]; diffs 89 -> 57; retained at that checkpoint.
|
||||
3. initialize successful verification status before final file-section branch: objdiff 95.840706 -> 95.840706; instructions [115, 113] -> [115, 113]; diffs 57 -> 57; restored.
|
||||
|
||||
### _WADGetCidxCount
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 95.05; instructions 40/40, diffs 25. four-bit unrolled mask traversal register allocation; retained to preserve inlined consumers.
|
||||
|
||||
1. single-bit count loop tests natural compiler four-way unrolling: objdiff 95.05 -> 96.625; instructions [40, 40] -> [40, 40]; diffs 25 -> 19; restored.
|
||||
2. signed bit counter gives target arithmetic right shift in count blocks: objdiff 95.05 -> 89.175; instructions [40, 40] -> [40, 40]; diffs 25 -> 28; restored.
|
||||
3. count each selected bit with unsigned mask inequality rather than truth test: objdiff 95.05 -> 95.05; instructions [40, 40] -> [40, 40]; diffs 25 -> 25; restored.
|
||||
|
||||
### _WADGetCidx
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 99.14286; instructions 56/56, diffs 8. four-bit cumulative index register assignment.
|
||||
|
||||
1. constant-first remaining counter tests in each unrolled bit block: objdiff 99.14286 -> 99.14286; instructions [56, 56] -> [56, 56]; diffs 8 -> 8; restored.
|
||||
2. signed remaining count follows target zero-only termination: objdiff 99.14286 -> 99.14286; instructions [56, 56] -> [56, 56]; diffs 8 -> 8; restored.
|
||||
3. return explicit base-relative bit index at unrolled early returns: objdiff 99.14286 -> 99.14286; instructions [56, 56] -> [56, 56]; diffs 8 -> 8; restored.
|
||||
4. natural single-bit loop lets compiler unroll increments exactly as target: objdiff 99.14286 -> 96.96429; instructions [56, 56] -> [56, 56]; diffs 8 -> 26; restored.
|
||||
5. four target bit blocks increment a single bit index between tests rather than separate base offsets: objdiff 99.14286 -> 92.89286; instructions [56, 56] -> [56, 56]; diffs 8 -> 32; restored.
|
||||
|
||||
### _WADBackupGetFiles
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 96.01893; instructions 317/317, diffs 99. same target instruction count; directory cursor, frame locals and callee-saved registers differ.
|
||||
|
||||
1. re-derived all 317 target instructions: absolute/relative path blocks, filters before open, continuation cleanup, recursive paths and output cursor: objdiff 46.195583 -> 96.01893; instructions [291, 317] -> [317, 317]; diffs 296 -> 99; retained at that checkpoint.
|
||||
2. declare path workspace in ascending target stack order: objdiff 96.01893 -> 95.943214; instructions [317, 317] -> [317, 317]; diffs 99 -> 122; restored.
|
||||
3. initialize relative/absolute selection directly from flags after directory read: objdiff 96.01893 -> 94.37855; instructions [317, 317] -> [315, 317]; diffs 99 -> 309; restored.
|
||||
|
||||
### _WADBackupGetSize
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 86.77419; instructions 161/155, diffs 155. content loop arithmetic and output-pointer scheduling.
|
||||
|
||||
1. content alignment performed at full metadata size width before byte-count conversion: objdiff 86.77419 -> 84.69678; instructions [161, 155] -> [163, 155]; diffs 155 -> 157; restored.
|
||||
2. signed selected-content loop bound uses content-mask count return type: objdiff 86.77419 -> 86.451614; instructions [161, 155] -> [161, 155]; diffs 155 -> 155; restored.
|
||||
3. real file-header pointer advances with file count traversal: objdiff 86.77419 -> 84.41936; instructions [161, 155] -> [158, 155]; diffs 155 -> 147; restored.
|
||||
|
||||
### _WADRandPad
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 87.30769; instructions 89/91, diffs 62. partial-word byte-copy loop and random-expression scheduling.
|
||||
|
||||
1. combine random word through xor of disjoint bit ranges: objdiff 87.30769 -> 85.0; instructions [89, 91] -> [89, 91]; diffs 62 -> 62; restored.
|
||||
2. count complete-word loop down to zero following target mtctr block: objdiff 87.30769 -> 85.57143; instructions [89, 91] -> [87, 91]; diffs 62 -> 86; restored.
|
||||
3. advance destination word pointer separately after complete random word store: objdiff 87.30769 -> 87.30769; instructions [89, 91] -> [89, 91]; diffs 62 -> 62; restored.
|
||||
|
||||
### WAD_815C43E0
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 97.17742; instructions 62/62, diffs 30. thread-loop callee-saved register allocation.
|
||||
|
||||
1. increment ring index with modulo two instead of xor: objdiff 97.17742 -> 94.91936; instructions [62, 62] -> [63, 62]; diffs 30 -> 40; restored.
|
||||
2. decrement remaining transfer bytes before condition signal: objdiff 97.17742 -> 90.72581; instructions [62, 62] -> [62, 62]; diffs 30 -> 32; restored.
|
||||
3. outer loop explicit breaks retain producer-consumer wait blocks: compiler rejected; restored.
|
||||
4. explicit break after loop locals retains transfer producer-consumer blocks: objdiff 97.17742 -> 82.5; instructions [62, 62] -> [62, 62]; diffs 30 -> 47; restored.
|
||||
|
||||
### _WADHash
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 88.891754; instructions 193/194, diffs 166. one missing instruction; threaded buffer ownership and result-join register lifetimes differ.
|
||||
|
||||
1. re-derived all 194 target instructions: shared read pointer/result slots, synchronous cleanup and threaded cancellation/join returns: objdiff 81.18041 -> 88.891754; instructions [192, 194] -> [193, 194]; diffs 185 -> 166; retained at that checkpoint.
|
||||
2. advance stream offset directly after each hash chunk rather than extra completed counter: objdiff 88.891754 -> 87.04124; instructions [193, 194] -> [192, 194]; diffs 166 -> 183; restored.
|
||||
3. alignment validity compares rounded size with input in target operand order: objdiff 88.891754 -> 88.78866; instructions [193, 194] -> [193, 194]; diffs 166 -> 166; restored.
|
||||
|
||||
### WADVerify
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 86.863945; instructions 133/147, diffs 131. hash/digest workspace offsets and original dormant cleanup blocks.
|
||||
|
||||
1. use selected backup signature record for both certificate copy sources: objdiff 86.863945 -> 82.37415; instructions [133, 147] -> [132, 147]; diffs 131 -> 122; restored.
|
||||
2. hash input and digest completion result tested through separate blocks: objdiff 86.863945 -> 86.863945; instructions [133, 147] -> [133, 147]; diffs 131 -> 131; restored.
|
||||
3. minimum signature size validated before aligned total length: objdiff 86.863945 -> 72.9864; instructions [133, 147] -> [133, 147]; diffs 131 -> 137; restored.
|
||||
|
||||
### WADImportDVDExForBS
|
||||
|
||||
Unit: libs/RVL_SDK/src/wad/wad. Final objdiff: 89.330795; instructions 259/263, diffs 245. inlined mask traversal and boot-import workspace offsets.
|
||||
|
||||
1. content selection pointer held before chosen content-ID branch: objdiff 89.330795 -> 88.57034; instructions [259, 263] -> [259, 263]; diffs 245 -> 245; restored.
|
||||
2. content transfer size retains metadata 64-bit rounding until DVD count conversion: objdiff 89.330795 -> 87.6616; instructions [259, 263] -> [261, 263]; diffs 245 -> 231; restored.
|
||||
3. minimum transfer chunk chooses available buffer first with explicit branch: objdiff 89.330795 -> 89.31179; instructions [259, 263] -> [259, 263]; diffs 245 -> 245; restored.
|
||||
|
||||
### OnShutdown
|
||||
|
||||
Unit: libs/RVL_SDK/src/vi/vi. Final objdiff: 82.623764; instructions 97/101, diffs 48. shift-mask loop and shutdown-return scheduling still differ.
|
||||
|
||||
1. shutdown event switch re-derived from target signed event dispatch blocks: objdiff 81.039604 -> 80.88119; instructions [97, 101] -> [98, 101]; diffs 44 -> 84; restored.
|
||||
2. local shift mask follows each changed-register copy in shutdown flush: objdiff 81.039604 -> 82.623764; instructions [97, 101] -> [97, 101]; diffs 44 -> 48; retained at that checkpoint.
|
||||
3. last shutdown stage returns explicit retrace counter inequality: objdiff 82.623764 -> 81.28713; instructions [97, 101] -> [98, 101]; diffs 48 -> 52; restored.
|
||||
|
||||
### __VIRetraceHandler
|
||||
|
||||
Unit: libs/RVL_SDK/src/vi/vi. Final objdiff: 88.81396; instructions 501/516, diffs 407. interrupt context stack frame and vertical polling/acknowledgement scheduling.
|
||||
|
||||
1. position interrupt bits share one dispatch to target position callback block: objdiff 88.81396 -> 88.14535; instructions [501, 516] -> [498, 516]; diffs 407 -> 476; restored.
|
||||
2. signed dimming-device loop index follows target counter comparisons: objdiff 88.81396 -> 88.81396; instructions [501, 516] -> [501, 516]; diffs 407 -> 407; restored.
|
||||
3. position callback outputs share top-level workspace declaration before context: objdiff 88.81396 -> 88.81396; instructions [501, 516] -> [501, 516]; diffs 407 -> 407; restored.
|
||||
|
||||
### __VIInit
|
||||
|
||||
Unit: libs/RVL_SDK/src/vi/vi. Final objdiff: 87.469696; instructions 121/132, diffs 122. original stack-backed TV initialization loop and scan register scheduling.
|
||||
|
||||
1. while-loop spin count follows reset-to-release delay block: objdiff 87.469696 -> 87.469696; instructions [121, 132] -> [121, 132]; diffs 122 -> 122; restored.
|
||||
2. countdown spin count tests compiler retention of original delay: objdiff 87.469696 -> 87.469696; instructions [121, 132] -> [121, 132]; diffs 122 -> 122; restored.
|
||||
3. spin exits on equality after prefix counter increment: objdiff 87.469696 -> 87.469696; instructions [121, 132] -> [121, 132]; diffs 122 -> 122; restored.
|
||||
|
||||
### VIInit
|
||||
|
||||
Unit: libs/RVL_SDK/src/vi/vi. Final objdiff: 86.2929; instructions 332/338, diffs 193. hardware payload now correct; scan/field locals and hardware initialization scheduling differ.
|
||||
|
||||
1. local filter-tap pointer addresses actual hardware configuration member: objdiff 86.2929 -> 82.49113; instructions [332, 338] -> [335, 338]; diffs 193 -> 303; restored.
|
||||
2. scan-mode bit directly converted from current display configuration: objdiff 86.2929 -> 85.40533; instructions [332, 338] -> [329, 338]; diffs 193 -> 256; restored.
|
||||
3. framebuffer and pan heights double active lines using natural halfword assignment truncation: objdiff 86.2929 -> 86.2929; instructions [332, 338] -> [332, 338]; diffs 193 -> 193; restored.
|
||||
|
||||
### VIWaitForRetrace
|
||||
|
||||
Unit: libs/RVL_SDK/src/vi/vi. Final objdiff: 90.47619; instructions 21/21, diffs 2. two save/load instructions scheduled in the opposite order.
|
||||
|
||||
1. do-while retrace wait follows target sleep-before-counter-test block: objdiff 90.47619 -> 90.47619; instructions [21, 21] -> [21, 21]; diffs 2 -> 2; restored.
|
||||
2. interrupt state declaration initialized by call before counter declaration: objdiff 90.47619 -> 90.47619; instructions [21, 21] -> [21, 21]; diffs 2 -> 2; restored.
|
||||
3. compare unsigned retrace delta to zero in wait termination: objdiff 90.47619 -> 87.61905; instructions [21, 21] -> [21, 21]; diffs 2 -> 3; restored.
|
||||
|
||||
### setFbbRegs
|
||||
|
||||
Unit: libs/RVL_SDK/src/vi/vi. Final objdiff: 79.41954; instructions 160/174, diffs 74. inlined framebuffer parity/address control flow and alias-dependent reloads.
|
||||
|
||||
1. shifted framebuffer indicator uses Boolean hardware enable type: objdiff 79.41954 -> 79.41954; instructions [160, 174] -> [160, 174]; diffs 74 -> 74; restored.
|
||||
2. cache top framebuffer word before low and high register packing: objdiff 79.41954 -> 75.51724; instructions [160, 174] -> [159, 174]; diffs 74 -> 75; restored.
|
||||
3. hardware high-address decision tests each framebuffer word by shifted high byte: objdiff 79.41954 -> 76.545975; instructions [160, 174] -> [159, 174]; diffs 74 -> 103; restored.
|
||||
|
||||
### setHorizontalRegs
|
||||
|
||||
Unit: libs/RVL_SDK/src/vi/vi. Final objdiff: 67.14286; instructions 47/56, diffs 55. compiler merges repeated changed-mask load/store pairs.
|
||||
|
||||
1. re-derived register-mask boundaries with local changes committed after each register pair: objdiff 62.232143 -> 67.14286; instructions [49, 56] -> [47, 56]; diffs 55 -> 55; retained at that checkpoint.
|
||||
2. precompute horizontal offset before PAL special-mode split: objdiff 67.14286 -> 59.464287; instructions [47, 56] -> [47, 56]; diffs 55 -> 55; restored.
|
||||
3. hold split horizontal blanking values in 16-bit hardware widths: objdiff 67.14286 -> 66.42857; instructions [47, 56] -> [47, 56]; diffs 55 -> 55; restored.
|
||||
|
||||
### setVerticalRegs
|
||||
|
||||
Unit: libs/RVL_SDK/src/vi/vi. Final objdiff: 57.950497; instructions 81/101, diffs 89. compiler merges repeated changed-mask stores and blanking arithmetic.
|
||||
|
||||
1. re-derived parity blocks 16d8-1744: compute trailing blanking before leading blanking and assign hardware widths: objdiff 57.950497 -> 53.396038; instructions [81, 101] -> [76, 101]; diffs 89 -> 92; restored.
|
||||
2. scan-mode range comparison follows target subtract-two and unsigned bound: objdiff 57.950497 -> 57.950497; instructions [81, 101] -> [81, 101]; diffs 89 -> 89; restored.
|
||||
3. black-screen extension shared between odd and even fields: objdiff 57.950497 -> 57.950497; instructions [81, 101] -> [81, 101]; diffs 89 -> 89; restored.
|
||||
|
||||
### VIConfigure
|
||||
|
||||
Unit: libs/RVL_SDK/src/vi/vi. Final objdiff: 74.82539; instructions 423/441, diffs 367. inlined register helpers and scan/TV decision scheduling.
|
||||
|
||||
1. pan height selected by explicit single-field framebuffer branch before scan check: objdiff 74.82539 -> 74.78685; instructions [423, 441] -> [421, 441]; diffs 367 -> 359; restored.
|
||||
2. display Y origin uses explicit non-interlaced branch and hardware truncation: objdiff 74.82539 -> 74.433105; instructions [423, 441] -> [424, 441]; diffs 367 -> 373; restored.
|
||||
3. three-dimensional enable uses direct scan-mode equality: objdiff 74.82539 -> 74.82539; instructions [423, 441] -> [423, 441]; diffs 367 -> 367; restored.
|
||||
|
||||
### VIConfigurePan
|
||||
|
||||
Unit: libs/RVL_SDK/src/vi/vi. Final objdiff: 88.80751; instructions 208/213, diffs 194. inlined register helpers and timing-pointer scheduling.
|
||||
|
||||
1. framebuffer mode checked before scan mode in height-doubling decision: objdiff 88.80751 -> 87.95305; instructions [208, 213] -> [208, 213]; diffs 194 -> 196; restored.
|
||||
2. local VI mode pointer groups panning member assignments: objdiff 88.80751 -> 72.22535; instructions [208, 213] -> [204, 213]; diffs 194 -> 210; restored.
|
||||
3. height calculation stores doubled value directly before position adjustment: objdiff 88.80751 -> 85.66197; instructions [208, 213] -> [212, 213]; diffs 194 -> 192; restored.
|
||||
|
||||
### VIFlush
|
||||
|
||||
Unit: libs/RVL_SDK/src/vi/vi. Final objdiff: 81.23189; instructions 69/69, diffs 24. leading-zero/mask-loop register allocation and initial state scheduling.
|
||||
|
||||
1. compound shadow assignments preserve target separate changed-mask update blocks: objdiff 78.91304 -> 78.91304; instructions [69, 69] -> [69, 69]; diffs 20 -> 20; restored.
|
||||
2. changed-register mask computed in local after copying register: objdiff 78.91304 -> 81.23189; instructions [69, 69] -> [69, 69]; diffs 20 -> 24; retained at that checkpoint.
|
||||
3. changed loop exits explicitly before selecting count-leading-zero register: objdiff 81.23189 -> 70.49275; instructions [69, 69] -> [67, 69]; diffs 24 -> 57; restored.
|
||||
|
||||
### __VIDisplayPositionToXY
|
||||
|
||||
Unit: libs/RVL_SDK/src/vi/vi. Final objdiff: 82.624115; instructions 140/141, diffs 109. one missing instruction plus half-line bound scheduling.
|
||||
|
||||
1. equatorial half-line start expressed as three times equalization lines: objdiff 82.624115 -> 82.51773; instructions [140, 141] -> [140, 141]; diffs 109 -> 112; restored.
|
||||
2. combine lower and upper active-field rejection tests in each field block: objdiff 82.624115 -> 71.6312; instructions [140, 141] -> [125, 141]; diffs 109 -> 129; restored.
|
||||
3. explicit signed output conversion at horizontal pixel assignment: objdiff 82.624115 -> 82.624115; instructions [140, 141] -> [140, 141]; diffs 109 -> 109; restored.
|
||||
|
||||
### __nupParseServerInfo__FP14NUPContextInfoPcPcUx
|
||||
|
||||
Unit: libs/RVL_SDK/src/nup/nup. Final objdiff: 62.99115; instructions 463/452, diffs 434. tag-helper inlining and parsed-title stack/register allocation.
|
||||
|
||||
1. separate version parse-end and halfword range checks as target validation blocks: objdiff 62.53761 -> 62.99115; instructions [461, 452] -> [463, 452]; diffs 432 -> 434; retained at that checkpoint.
|
||||
2. explicit unsigned-halfword maximum check follows numeric version conversion: objdiff 62.99115 -> 0; instructions [463, 452] -> [462, 452]; diffs 434 -> 433; restored.
|
||||
3. selected title record pointer groups parsed identity and version stores: objdiff 62.99115 -> 62.457966; instructions [463, 452] -> [459, 452]; diffs 434 -> 430; restored.
|
||||
|
||||
### __nupGetServerInfo__FPcPcUxPcPcUlPcUsUsUxUsPPc
|
||||
|
||||
Unit: libs/RVL_SDK/src/nup/nup. Final objdiff: 99.793106; instructions 145/145, diffs 4. four register/call scheduling differences; instruction count and title arguments match.
|
||||
|
||||
1. request size accumulated by sequential argument string lengths: objdiff 96.75862 -> 98.86207; instructions [147, 145] -> [146, 145]; diffs 116 -> 115; retained at that checkpoint.
|
||||
2. initialize endpoint pointer from allocator call after computing endpoint size: objdiff 98.86207 -> 98.86207; instructions [146, 145] -> [146, 145]; diffs 115 -> 115; restored.
|
||||
3. use explicit response copy destination before allocating reply: objdiff 98.86207 -> 98.86207; instructions [146, 145] -> [146, 145]; diffs 115 -> 115; restored.
|
||||
4. declare persistent request cleanup pointer before response output initializers: objdiff 98.86207 -> 99.655174; instructions [146, 145] -> [145, 145]; diffs 115 -> 8; retained at that checkpoint.
|
||||
5. restore XML title argument order from target: boot, system menu, current requested title: objdiff 99.655174 -> 99.793106; instructions [145, 145] -> [145, 145]; diffs 8 -> 4; retained at that checkpoint.
|
||||
6. request size uses product area before message ID and constant as first final operand: objdiff 99.793106 -> 99.13793; instructions [145, 145] -> [145, 145]; diffs 4 -> 22; restored.
|
||||
|
||||
### __nupBase64Encode__FPUcPUcUl
|
||||
|
||||
Unit: libs/RVL_SDK/src/nup/nup. Final objdiff: 71.61905; instructions 59/63, diffs 41. alphabet reloads and partial-group output control flow.
|
||||
|
||||
1. countdown of input bytes derives mtctr/bdnz traversal from target blocks: objdiff 71.61905 -> 67.4127; instructions [59, 63] -> [57, 63]; diffs 41 -> 62; restored.
|
||||
2. for-loop input advancement after encoding as target loop-tail block: objdiff 71.61905 -> 69.52381; instructions [59, 63] -> [59, 63]; diffs 41 -> 49; restored.
|
||||
3. explicit index temporaries separate alphabet loads before output stores: objdiff 71.61905 -> 67.06349; instructions [59, 63] -> [59, 63]; diffs 41 -> 48; restored.
|
||||
|
||||
### __nupGetAuditData__FP14NUPContextInfoPPc
|
||||
|
||||
Unit: libs/RVL_SDK/src/nup/nup. Final objdiff: 91.741806; instructions 236/244, diffs 160. encoded-length helper inlining and audit stack/register scheduling.
|
||||
|
||||
1. unsigned loop counter compares owned-title count before selected flag: objdiff 91.741806 -> 90.06148; instructions [236, 244] -> [236, 244]; diffs 160 -> 160; restored.
|
||||
2. type audit record pointer as its actual record throughout signing and copies: objdiff 91.741806 -> 91.741806; instructions [236, 244] -> [236, 244]; diffs 160 -> 160; restored.
|
||||
3. audit format copied by ordinary typed field assignment before record assembly: objdiff 91.741806 -> 89.909836; instructions [236, 244] -> [234, 244]; diffs 160 -> 187; restored.
|
||||
|
||||
### __nupGetBootVersion__FP14ESTitleVersion
|
||||
|
||||
Unit: libs/RVL_SDK/src/nup/nup. Final objdiff: unscored; instructions 153/163, diffs 101. unscored original one-argument symbol metadata versus observed two-argument ABI; content-search instructions also differ.
|
||||
|
||||
1. boot version uses explicit unsigned-halfword upper limit comparison: objdiff 0 -> 0; instructions [153, 163] -> [152, 163]; diffs 101 -> 143; restored.
|
||||
2. installed-title ID search compares source title before saved ID: objdiff 0 -> 0; instructions [153, 163] -> [153, 163]; diffs 101 -> 101; restored.
|
||||
3. early null TMD guard joins shared cleanup before content enumeration: objdiff 0 -> 0; instructions [153, 163] -> [153, 163]; diffs 101 -> 101; restored.
|
||||
|
||||
### __nupGetTitleSize__FP12NUPTitleInfo
|
||||
|
||||
Unit: libs/RVL_SDK/src/nup/nup. Final objdiff: 79.41007; instructions 134/139, diffs 114. installed-content search and 64-bit block rounding scheduling.
|
||||
|
||||
1. re-derived installed-content membership block shares existing pointer-traversal helper in definition order: objdiff 73.942444 -> 79.41007; instructions [133, 139] -> [134, 139]; diffs 114 -> 114; retained at that checkpoint.
|
||||
2. schedule progress-step increment before final installed-block addition as target: objdiff 79.41007 -> 78.28777; instructions [134, 139] -> [134, 139]; diffs 114 -> 112; restored.
|
||||
3. reload selected content size after updating title progress as target storage block: objdiff 79.41007 -> 75.258995; instructions [134, 139] -> [136, 139]; diffs 114 -> 113; restored.
|
||||
|
||||
### __nupGetContentFull__FP14NUPContextInfoP12NUPTitleInfoPcUl
|
||||
|
||||
Unit: libs/RVL_SDK/src/nup/nup. Final objdiff: 100.0; instructions 88/88, diffs 0. instruction-exact, no remaining differences.
|
||||
|
||||
1. initialize response buffers before loading TMD pointer as target entry block: objdiff 94.204544 -> 96.59091; instructions [88, 88] -> [88, 88]; diffs 25 -> 22; retained at that checkpoint.
|
||||
2. content ID search uses base-relative content indexing as target search block: objdiff 96.59091 -> 98.295456; instructions [88, 88] -> [89, 88]; diffs 22 -> 80; retained at that checkpoint.
|
||||
3. declare URL length before aligned content transfer length: objdiff 98.295456 -> 89.943184; instructions [89, 88] -> [89, 88]; diffs 80 -> 80; restored.
|
||||
4. declare persistent URL cleanup pointer before zero-initialized response outputs: objdiff 98.295456 -> 99.71591; instructions [89, 88] -> [88, 88]; diffs 80 -> 5; retained at that checkpoint.
|
||||
5. declare URL and alignment lengths together before their target-order assignments: objdiff 99.71591 -> 100.0; instructions [88, 88] -> [88, 88]; diffs 5 -> 0; retained at that checkpoint.
|
||||
6. use 32-bit selected content length for HTTP transfer alignment: objdiff 100.0 -> 93.52273; instructions [88, 88] -> [86, 88]; diffs 0 -> 72; restored.
|
||||
|
||||
### __nupGetContentIncr__FP14NUPContextInfoP12NUPTitleInfoPc
|
||||
|
||||
Unit: libs/RVL_SDK/src/nup/nup. Final objdiff: 90.90351; instructions 109/114, diffs 105. installed-content helper inlining and import-error cleanup scheduling.
|
||||
|
||||
1. signed metadata content index follows target signed numContents loop comparison: objdiff 90.42105 -> 90.90351; instructions [109, 114] -> [109, 114]; diffs 105 -> 105; retained at that checkpoint.
|
||||
2. content alignment remains full 64-bit addition until HTTP length conversion: objdiff 90.90351 -> 78.89474; instructions [109, 114] -> [111, 114]; diffs 105 -> 81; restored.
|
||||
3. one content error cleanup block handles begin and download failures: objdiff 90.90351 -> 89.0614; instructions [109, 114] -> [107, 114]; diffs 105 -> 106; restored.
|
||||
|
||||
### __nupUpdateTitle__FP14NUPContextInfoP12NUPTitleInfoPcPc
|
||||
|
||||
Unit: libs/RVL_SDK/src/nup/nup. Final objdiff: 96.44444; instructions 135/135, diffs 23. NAND free-block comparison and shared error-return scheduling.
|
||||
|
||||
1. import boot result tested before shared successful cleanup as target branch: objdiff 94.96296 -> 96.44444; instructions [133, 135] -> [135, 135]; diffs 88 -> 23; retained at that checkpoint.
|
||||
2. stats success block computes storage fit separately before import path: objdiff 96.44444 -> 94.85185; instructions [135, 135] -> [135, 135]; diffs 23 -> 66; restored.
|
||||
3. inverted zero result branch separates successful title cleanup: objdiff 96.44444 -> 96.44444; instructions [135, 135] -> [135, 135]; diffs 23 -> 23; restored.
|
||||
|
||||
### __nupOp
|
||||
|
||||
Unit: libs/RVL_SDK/src/nup/nup. Final objdiff: 90.41324; instructions 422/438, diffs 391. boot/IOS/menu search and update loop scheduling; 16 target instructions remain unmatched.
|
||||
|
||||
1. boot version validated before storing the halfword service version: objdiff 90.41324 -> 89.69406; instructions [422, 438] -> [424, 438]; diffs 391 -> 422; restored.
|
||||
2. progress total copied from context inside the mutex-protected update block: objdiff 90.41324 -> 89.24429; instructions [422, 438] -> [422, 438]; diffs 391 -> 391; restored.
|
||||
3. cache per-title required flag before checking update status: objdiff 90.41324 -> 90.401825; instructions [422, 438] -> [422, 438]; diffs 391 -> 392; restored.
|
||||
|
||||
## Source commits
|
||||
|
||||
2dc3c119 restore vi hardware mode tables and string offsets
|
||||
f4c2b966 match wad path traversal and small data literals
|
||||
92989130 improve vi register masks and sd finalization
|
||||
bfdde76d improve sd capacity selection and vi shutdown mask
|
||||
c4fab96b improve nup content searches and request sizing
|
||||
80e9873f improve sd format table loads and insertion branch
|
||||
a533b150 restore wad export header and signature flow
|
||||
ff9cce21 match nup full content fetch and server title arguments
|
||||
|
||||
The final commit contains the last WAD/NUP improvements and the complete round log/gate capture.
|
||||
437
tools/decomp-assist/sol-high-sdk-round2-gates.txt
Normal file
437
tools/decomp-assist/sol-high-sdk-round2-gates.txt
Normal file
@@ -0,0 +1,437 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/vi/vi] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/vi/vi] objdiff: code 2084/11296 data 400/1944 functions 18/30 fuzzy 85.3017 linked code 0
|
||||
[libs/RVL_SDK/src/vi/vi] instruction-exact functions: 18/30
|
||||
[libs/RVL_SDK/src/vi/vi] section .bss size 368 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .data size 1368 match 3.5053554
|
||||
[libs/RVL_SDK/src/vi/vi] section .sbss size 176 match 90.243904
|
||||
[libs/RVL_SDK/src/vi/vi] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .text size 11296 match 85.3017
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: OnShutdown 81.039604
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: __VIRetraceHandler 88.81396
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: __VIInit 87.469696
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIInit 86.2929
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIWaitForRetrace 90.47619
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: setFbbRegs 79.41954
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: setHorizontalRegs 62.232143
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: setVerticalRegs 57.950497
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIConfigure 74.82539
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIConfigurePan 88.80751
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIFlush 78.91304
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: __VIDisplayPositionToXY 82.624115
|
||||
[libs/RVL_SDK/src/vi/vi] baseline: code 2084/11296 data 400 functions 18 fuzzy 85.1516
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 82.28763 -> 82.28763
|
||||
global fuzzy_match_percent: 94.28385 -> 94.28443
|
||||
global complete_code_percent: 58.19218 -> 58.19218
|
||||
global matched_data_percent: 89.44041 -> 89.44041
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/wad/wad] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/wad/wad] objdiff: code 7080/24500 data 64/528 functions 23/40 fuzzy 83.4377 linked code 0
|
||||
[libs/RVL_SDK/src/wad/wad] instruction-exact functions: 23/40
|
||||
[libs/RVL_SDK/src/wad/wad] section .data size 464 match 99.34924
|
||||
[libs/RVL_SDK/src/wad/wad] section .sdata size 64 match 100.0
|
||||
[libs/RVL_SDK/src/wad/wad] section .text size 24500 match 83.43771
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportGetBlocks 76.55369
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815BFFA8 97.17742
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportEx 71.91361
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815C1288 96.39344
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADBackupEx 59.089455
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADCheckContents 96.70588
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADOpenStream 88.487686
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADUnpackBackup 94.867256
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADGetCidxCount 95.05
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADGetCidx 99.14286
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADBackupGetFiles 96.01893
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADBackupGetSize 86.77419
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADRandPad 87.30769
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815C43E0 97.17742
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADHash 71.103096
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADVerify 86.863945
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportDVDExForBS 89.330795
|
||||
[libs/RVL_SDK/src/wad/wad] baseline: code 7080/24500 data None functions 23 fuzzy 80.8216
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 82.28763 -> 82.28763
|
||||
global fuzzy_match_percent: 94.28385 -> 94.30582
|
||||
global complete_code_percent: 58.19218 -> 58.19218
|
||||
global matched_data_percent: 89.44041 -> 89.44390
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] objdiff: code 2100/11752 data 408/3592 functions 10/26 fuzzy 94.6280 linked code 0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] instruction-exact functions: 10/26
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .bss size 608 match 97.36842
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .data size 2576 match 99.96117
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .rodata size 368 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .sbss size 40 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .text size 11760 match 94.627975
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_st_inter_callback 93.840576
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_st_removal_callback 90.30303
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_init 86.104164
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_unmount 90.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_finalize 92.89474
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_get_disk_info 97.916664
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_physical_read 99.92126
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_physical_write 99.92126
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_get_total_sectors 90.9375
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_calc_mbr_bpb 91.76878
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_bpb_buf 99.34251
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_mbr_buf 94.36633
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_calc_fat32_mbr_bpb 89.909775
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_fat32_mbr_buf 77.50725
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_fat32_bpb_buf 96.4946
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_build_fat32_mbr_bpb 94.75225
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] baseline: code 2100/11752 data 408 functions 10 fuzzy 94.6276
|
||||
[libs/RVL_SDK/src/vi/vi] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/vi/vi] objdiff: code 2084/11296 data 400/1944 functions 18/30 fuzzy 85.4557 linked code 0
|
||||
[libs/RVL_SDK/src/vi/vi] instruction-exact functions: 18/30
|
||||
[libs/RVL_SDK/src/vi/vi] section .bss size 368 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .data size 1368 match 3.5053554
|
||||
[libs/RVL_SDK/src/vi/vi] section .sbss size 176 match 90.243904
|
||||
[libs/RVL_SDK/src/vi/vi] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .text size 11296 match 85.455734
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: OnShutdown 81.039604
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: __VIRetraceHandler 88.81396
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: __VIInit 87.469696
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIInit 86.2929
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIWaitForRetrace 90.47619
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: setFbbRegs 79.41954
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: setHorizontalRegs 67.14286
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: setVerticalRegs 57.950497
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIConfigure 74.82539
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIConfigurePan 88.80751
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIFlush 81.23189
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: __VIDisplayPositionToXY 82.624115
|
||||
[libs/RVL_SDK/src/vi/vi] baseline: code 2084/11296 data 400 functions 18 fuzzy 85.1516
|
||||
[libs/RVL_SDK/src/wad/wad] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/wad/wad] objdiff: code 7080/24500 data 64/528 functions 23/40 fuzzy 83.4377 linked code 0
|
||||
[libs/RVL_SDK/src/wad/wad] instruction-exact functions: 23/40
|
||||
[libs/RVL_SDK/src/wad/wad] section .data size 464 match 99.34924
|
||||
[libs/RVL_SDK/src/wad/wad] section .sdata size 64 match 100.0
|
||||
[libs/RVL_SDK/src/wad/wad] section .text size 24500 match 83.43771
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportGetBlocks 76.55369
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815BFFA8 97.17742
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportEx 71.91361
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815C1288 96.39344
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADBackupEx 59.089455
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADCheckContents 96.70588
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADOpenStream 88.487686
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADUnpackBackup 94.867256
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADGetCidxCount 95.05
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADGetCidx 99.14286
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADBackupGetFiles 96.01893
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADBackupGetSize 86.77419
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADRandPad 87.30769
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815C43E0 97.17742
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADHash 71.103096
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADVerify 86.863945
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportDVDExForBS 89.330795
|
||||
[libs/RVL_SDK/src/wad/wad] baseline: code 7080/24500 data None functions 23 fuzzy 80.8216
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 82.28763 -> 82.28763
|
||||
global fuzzy_match_percent: 94.28385 -> 94.30642
|
||||
global complete_code_percent: 58.19218 -> 58.19218
|
||||
global matched_data_percent: 89.44041 -> 89.44390
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] objdiff: code 2100/11752 data 408/3592 functions 10/26 fuzzy 94.7927 linked code 0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] instruction-exact functions: 10/26
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .bss size 608 match 97.36842
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .data size 2576 match 99.96117
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .rodata size 368 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .sbss size 40 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .text size 11760 match 94.79272
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_st_inter_callback 93.840576
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_st_removal_callback 90.30303
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_init 86.104164
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_unmount 90.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_finalize 92.89474
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_get_disk_info 97.916664
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_physical_read 99.92126
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_physical_write 99.92126
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_get_total_sectors 96.9875
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_calc_mbr_bpb 91.76878
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_bpb_buf 99.34251
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_mbr_buf 94.36633
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_calc_fat32_mbr_bpb 89.909775
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_fat32_mbr_buf 77.50725
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_fat32_bpb_buf 96.4946
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_build_fat32_mbr_bpb 94.75225
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] baseline: code 2100/11752 data 408 functions 10 fuzzy 94.6276
|
||||
[libs/RVL_SDK/src/vi/vi] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/vi/vi] objdiff: code 2084/11296 data 400/1944 functions 18/30 fuzzy 85.5124 linked code 0
|
||||
[libs/RVL_SDK/src/vi/vi] instruction-exact functions: 18/30
|
||||
[libs/RVL_SDK/src/vi/vi] section .bss size 368 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .data size 1368 match 3.5053554
|
||||
[libs/RVL_SDK/src/vi/vi] section .sbss size 176 match 90.243904
|
||||
[libs/RVL_SDK/src/vi/vi] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .text size 11296 match 85.51239
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: OnShutdown 82.623764
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: __VIRetraceHandler 88.81396
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: __VIInit 87.469696
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIInit 86.2929
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIWaitForRetrace 90.47619
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: setFbbRegs 79.41954
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: setHorizontalRegs 67.14286
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: setVerticalRegs 57.950497
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIConfigure 74.82539
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIConfigurePan 88.80751
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIFlush 81.23189
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: __VIDisplayPositionToXY 82.624115
|
||||
[libs/RVL_SDK/src/vi/vi] baseline: code 2084/11296 data 400 functions 18 fuzzy 85.1516
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 82.28763 -> 82.28763
|
||||
global fuzzy_match_percent: 94.28385 -> 94.30727
|
||||
global complete_code_percent: 58.19218 -> 58.19218
|
||||
global matched_data_percent: 89.44041 -> 89.44390
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/nup/nup] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/nup/nup] objdiff: code 2840/10764 data 1720/1720 functions 13/23 fuzzy 82.9324 linked code 0
|
||||
[libs/RVL_SDK/src/nup/nup] instruction-exact functions: 13/23
|
||||
[libs/RVL_SDK/src/nup/nup] section .data size 1592 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .rodata size 88 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .sbss size 8 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .text size 10764 match 82.932365
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupParseServerInfo__FP14NUPContextInfoPcPcUx 62.53761
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetServerInfo__FPcPcUxPcPcUlPcUsUsUxUsPPc 98.86207
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupBase64Encode__FPUcPUcUl 71.61905
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetAuditData__FP14NUPContextInfoPPc 91.741806
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetBootVersion__FP14ESTitleVersion None
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetTitleSize__FP12NUPTitleInfo 79.41007
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetContentFull__FP14NUPContextInfoP12NUPTitleInfoPcUl 98.295456
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetContentIncr__FP14NUPContextInfoP12NUPTitleInfoPc 90.90351
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupUpdateTitle__FP14NUPContextInfoP12NUPTitleInfoPcPc 96.44444
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupOp 90.41324
|
||||
[libs/RVL_SDK/src/nup/nup] baseline: code 2840/10764 data 1720 functions 13 fuzzy 82.3081
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 82.28763 -> 82.28763
|
||||
global fuzzy_match_percent: 94.28385 -> 94.30952
|
||||
global complete_code_percent: 58.19218 -> 58.19218
|
||||
global matched_data_percent: 89.44041 -> 89.44390
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] objdiff: code 2100/11752 data 408/3592 functions 10/26 fuzzy 95.2730 linked code 0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] instruction-exact functions: 10/26
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .bss size 608 match 97.36842
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .data size 2576 match 99.96117
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .rodata size 368 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .sbss size 40 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .text size 11760 match 95.27297
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_st_inter_callback 93.840576
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_st_removal_callback 90.30303
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_init 90.27778
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_unmount 90.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_finalize 92.89474
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_get_disk_info 97.916664
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_physical_read 99.92126
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_physical_write 99.92126
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_get_total_sectors 96.9875
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_calc_mbr_bpb 92.699425
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_bpb_buf 99.83486
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_mbr_buf 95.16337
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_calc_fat32_mbr_bpb 89.947365
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_fat32_mbr_buf 78.28503
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_fat32_bpb_buf 96.92973
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_build_fat32_mbr_bpb 94.75225
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] baseline: code 2100/11752 data 408 functions 10 fuzzy 94.6276
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 82.28763 -> 82.28763
|
||||
global fuzzy_match_percent: 94.28385 -> 94.31139
|
||||
global complete_code_percent: 58.19218 -> 58.19218
|
||||
global matched_data_percent: 89.44041 -> 89.44390
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/wad/wad] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/wad/wad] objdiff: code 7080/24500 data 64/528 functions 23/40 fuzzy 85.4229 linked code 0
|
||||
[libs/RVL_SDK/src/wad/wad] instruction-exact functions: 23/40
|
||||
[libs/RVL_SDK/src/wad/wad] section .data size 464 match 99.34924
|
||||
[libs/RVL_SDK/src/wad/wad] section .sdata size 64 match 100.0
|
||||
[libs/RVL_SDK/src/wad/wad] section .text size 24500 match 85.42286
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportGetBlocks 76.55369
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815BFFA8 97.17742
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportEx 72.73386
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815C1288 96.39344
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADBackupEx 67.812614
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADCheckContents 96.70588
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADOpenStream 88.487686
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADUnpackBackup 94.867256
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADGetCidxCount 95.05
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADGetCidx 99.14286
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADBackupGetFiles 96.01893
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADBackupGetSize 86.77419
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADRandPad 87.30769
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815C43E0 97.17742
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADHash 81.18041
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADVerify 86.863945
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportDVDExForBS 89.330795
|
||||
[libs/RVL_SDK/src/wad/wad] baseline: code 7080/24500 data None functions 23 fuzzy 80.8216
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 82.28763 -> 82.28763
|
||||
global fuzzy_match_percent: 94.28385 -> 94.32764
|
||||
global complete_code_percent: 58.19218 -> 58.19218
|
||||
global matched_data_percent: 89.44041 -> 89.44390
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
review note: libs/RVL_SDK/src/wad/wad.c: possible pointer+offset into a blob (orchestrator reviews) (+1 net), e.g. headerBlock.header.backupAreaLen != totalSize + 0x340) {
|
||||
GATE PASS
|
||||
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/nup/nup] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/nup/nup] objdiff: code 3192/10764 data 1720/1720 functions 14/23 fuzzy 83.0383 linked code 0
|
||||
[libs/RVL_SDK/src/nup/nup] instruction-exact functions: 14/23
|
||||
[libs/RVL_SDK/src/nup/nup] section .data size 1592 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .rodata size 88 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .sbss size 8 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .text size 10764 match 83.03828
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupParseServerInfo__FP14NUPContextInfoPcPcUx 62.53761
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetServerInfo__FPcPcUxPcPcUlPcUsUsUxUsPPc 99.793106
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupBase64Encode__FPUcPUcUl 71.61905
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetAuditData__FP14NUPContextInfoPPc 91.741806
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetBootVersion__FP14ESTitleVersion None
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetTitleSize__FP12NUPTitleInfo 79.41007
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetContentIncr__FP14NUPContextInfoP12NUPTitleInfoPc 90.90351
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupUpdateTitle__FP14NUPContextInfoP12NUPTitleInfoPcPc 96.44444
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupOp 90.41324
|
||||
[libs/RVL_SDK/src/nup/nup] baseline: code 2840/10764 data 1720 functions 13 fuzzy 82.3081
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 82.28763 -> 82.29939
|
||||
global fuzzy_match_percent: 94.28385 -> 94.32802
|
||||
global complete_code_percent: 58.19218 -> 58.19218
|
||||
global matched_data_percent: 89.44041 -> 89.44390
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
review note: libs/RVL_SDK/src/wad/wad.c: possible pointer+offset into a blob (orchestrator reviews) (+1 net), e.g. headerBlock.header.backupAreaLen != totalSize + 0x340) {
|
||||
GATE PASS
|
||||
|
||||
final full gate: all four SDK units
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] objdiff: code 2100/11752 data 408/3592 functions 10/26 fuzzy 95.2730 linked code 0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] instruction-exact functions: 10/26
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .bss size 608 match 97.36842
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .data size 2576 match 99.96117
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .rodata size 368 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .sbss size 40 match 100.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] section .text size 11760 match 95.27297
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_st_inter_callback 93.840576
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_st_removal_callback 90.30303
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_init 90.27778
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_unmount 90.0
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_finalize 92.89474
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_get_disk_info 97.916664
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_physical_read 99.92126
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_physical_write 99.92126
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_get_total_sectors 96.9875
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_calc_mbr_bpb 92.699425
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_bpb_buf 99.83486
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_mbr_buf 95.16337
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_calc_fat32_mbr_bpb 89.947365
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_fat32_mbr_buf 78.28503
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_store_fat32_bpb_buf 96.92973
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] below 100: pfd_sddrv_build_fat32_mbr_bpb 94.75225
|
||||
[libs/RVL_SDK/src/fa/driver/sd_drv] baseline: code 2100/11752 data 408 functions 10 fuzzy 94.6276
|
||||
[libs/RVL_SDK/src/wad/wad] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/wad/wad] objdiff: code 7080/24500 data 64/528 functions 23/40 fuzzy 85.7037 linked code 0
|
||||
[libs/RVL_SDK/src/wad/wad] instruction-exact functions: 23/40
|
||||
[libs/RVL_SDK/src/wad/wad] section .data size 464 match 99.34924
|
||||
[libs/RVL_SDK/src/wad/wad] section .sdata size 64 match 100.0
|
||||
[libs/RVL_SDK/src/wad/wad] section .text size 24500 match 85.703674
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportGetBlocks 76.88926
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815BFFA8 97.17742
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportEx 72.73997
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815C1288 96.39344
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADBackupEx 67.812614
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADCheckContents 96.70588
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADOpenStream 88.52217
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADUnpackBackup 95.840706
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADGetCidxCount 95.05
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADGetCidx 99.14286
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADBackupGetFiles 96.01893
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADBackupGetSize 86.77419
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADRandPad 87.30769
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815C43E0 97.17742
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADHash 88.891754
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADVerify 86.863945
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportDVDExForBS 89.330795
|
||||
[libs/RVL_SDK/src/wad/wad] baseline: code 7080/24500 data None functions 23 fuzzy 80.8216
|
||||
[libs/RVL_SDK/src/vi/vi] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/vi/vi] objdiff: code 2084/11296 data 400/1944 functions 18/30 fuzzy 85.5124 linked code 0
|
||||
[libs/RVL_SDK/src/vi/vi] instruction-exact functions: 18/30
|
||||
[libs/RVL_SDK/src/vi/vi] section .bss size 368 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .data size 1368 match 3.5053554
|
||||
[libs/RVL_SDK/src/vi/vi] section .sbss size 176 match 90.243904
|
||||
[libs/RVL_SDK/src/vi/vi] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/vi/vi] section .text size 11296 match 85.51239
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: OnShutdown 82.623764
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: __VIRetraceHandler 88.81396
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: __VIInit 87.469696
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIInit 86.2929
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIWaitForRetrace 90.47619
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: setFbbRegs 79.41954
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: setHorizontalRegs 67.14286
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: setVerticalRegs 57.950497
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIConfigure 74.82539
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIConfigurePan 88.80751
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: VIFlush 81.23189
|
||||
[libs/RVL_SDK/src/vi/vi] below 100: __VIDisplayPositionToXY 82.624115
|
||||
[libs/RVL_SDK/src/vi/vi] baseline: code 2084/11296 data 400 functions 18 fuzzy 85.1516
|
||||
[libs/RVL_SDK/src/nup/nup] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/nup/nup] objdiff: code 3192/10764 data 1720/1720 functions 14/23 fuzzy 83.1145 linked code 0
|
||||
[libs/RVL_SDK/src/nup/nup] instruction-exact functions: 14/23
|
||||
[libs/RVL_SDK/src/nup/nup] section .data size 1592 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .rodata size 88 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .sbss size 8 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .text size 10764 match 83.114456
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupParseServerInfo__FP14NUPContextInfoPcPcUx 62.99115
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetServerInfo__FPcPcUxPcPcUlPcUsUsUxUsPPc 99.793106
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupBase64Encode__FPUcPUcUl 71.61905
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetAuditData__FP14NUPContextInfoPPc 91.741806
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetBootVersion__FP14ESTitleVersion None
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetTitleSize__FP12NUPTitleInfo 79.41007
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetContentIncr__FP14NUPContextInfoP12NUPTitleInfoPc 90.90351
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupUpdateTitle__FP14NUPContextInfoP12NUPTitleInfoPcPc 96.44444
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupOp 90.41324
|
||||
[libs/RVL_SDK/src/nup/nup] baseline: code 2840/10764 data 1720 functions 13 fuzzy 82.3081
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 82.28763 -> 82.29939
|
||||
global fuzzy_match_percent: 94.28385 -> 94.33058
|
||||
global complete_code_percent: 58.19218 -> 58.19218
|
||||
global matched_data_percent: 89.44041 -> 89.44390
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
review note: libs/RVL_SDK/src/wad/wad.c: possible pointer+offset into a blob (orchestrator reviews) (+1 net), e.g. headerBlock.header.backupAreaLen != totalSize + 0x340) {
|
||||
GATE PASS
|
||||
@@ -85,4 +85,130 @@ Seven functions have exact instructions after using a byte for the initializatio
|
||||
2. Initialize fallbacks after the single-character case and load the second character inside the matching condition: 91/90.
|
||||
3. A moving mapping pointer: 91/90 with more register differences. Restored variant two. The original reads an unset fallback register on invalid input; this source deliberately initializes that fallback rather than adding an uninitialized value to obtain a match.
|
||||
|
||||
Not attempted: vi/i2c, nup/nup_nhttp, axfx/AXFXChorusExp, and all eight requested eZiText units. This is a partial batch, not completion.
|
||||
The continuation below attempts the eleven previously skipped units.
|
||||
|
||||
## Continuation at dcc384b7
|
||||
|
||||
vi/i2c, sendSlaveAddr and __VISendI2CData:
|
||||
1. Inlined clock/data/delay helpers, signed flags and combined ACK condition: 236/237 and 371/372 instructions; initial data polarity and ACK shifts differed.
|
||||
2. Correct initial polarity, unsigned flags and explicit ACK bit shift: same counts; only ACK flag reuse and its dependent branches remain.
|
||||
3. Nested ACK condition: same counts and differences.
|
||||
4. Expanded data helper into source blocks: same counts and differences; restored readable helper.
|
||||
5. Signed flag with unsigned ACK comparison: same counts; original reloads the flag after GPIO sampling, compiler retains it. No artificial volatile/barrier added. Pools identical; data 16/16.
|
||||
|
||||
nup/nup_nhttp:
|
||||
- BufFull: direct nested translation 94/97; invert limit branch and use explicit valid-request branch 94/97; nested overflow test 94/97. Residual redundant branches, comparison orientation and error-zero store.
|
||||
- Op: direct cleanup-label translation 341/348; correct NHTTPCreateRequestEx to ten actual arguments and preserve OpString call 339/348; reorder status/state declarations 339/348, stack locals and register/control-flow differences remain. Pool identical.
|
||||
- StringFlush: direct growth calculation 55/56; invert capacity/growth comparisons 55/56; reverse sum operand order 55/56, extra target branch and registers remain.
|
||||
- OpString: direct else produced 55/56; preserve call with NO_INLINE; separate error if gives 56/56 exact. GetFull and PostFull also exact after preserving the call. BufFree, ReqDone and GetIncr exact.
|
||||
|
||||
axfx/AXFXChorusExp:
|
||||
- Init and Settings: inline shutdown helper initially swapped saved mask/counter; change shutdown declaration order fixes Init; OR-before-AND active bits fixes Settings, both exact. GetMemSize exact; the declaration change leaves Shutdown with a register permutation.
|
||||
- Callback: direct three-channel implementation 216/216, 78 differences; reverse array declarations and unsigned distance shift 216/216, 70 differences; unsigned distance variable 216/216, same remaining allocation/scheduling differences.
|
||||
- InitParams: direct formulas 126/126, 56 differences; invert depth comparison and initialize LFO state before conversion formulas 126/126, 55 differences; explicit rateStep temporary leaves floating scheduling/register differences. No data placement: ordinary literal constants yield all 48 data bytes exact.
|
||||
- CalcLFO: signed 64-bit shift 51/65; explicit high/low shift expression 51/65; union product words 57/65 adds stack stores, worse; restore scalar product, invert phase branch and derive table index from masked phase 51/65. Target uses generic signed multiply corrections; ours uses mulhw. All real algorithms retained.
|
||||
|
||||
## eZiText continuation
|
||||
|
||||
All eight expected source paths were absent and have now been implemented. These units use the existing unoptimized compiler settings. The following are distinct source experiments, not exact-match claims.
|
||||
|
||||
zoemdata:
|
||||
- MatchOEMdata: structured early returns produced 196/192 instructions; decrement the capacity parameter rather than a maximum temporary produced 194/192; share the no-match exit produced 189/192. Pointer-zero comparisons retained that count. Remaining stack, register and branch differences. Attach and Detach exact after inverting the detach rejection condition.
|
||||
|
||||
zidawg1:
|
||||
- GetChild: u16 header and separate offset expression 68/68; u32 header with combined offset 65/68; restore u16 and reorder long offset 68/68, 93.29 percent.
|
||||
- GetSibling: u16 header and zero-bit outer branch 127/131; u32 header changed masks and reduced instructions; restore u16 and reverse outer cases 127/131, 81.58 percent.
|
||||
- GetCHAR: combined attributes 59/60; reverse key/attribute declarations and mask 60/60; sequential OR/add 60/60, 95.5 percent, remaining registers.
|
||||
- GetGraphInfo: original field translation 134/134; reorder declarations 134/134; typed context and combined pair shift 134/134, 80.77 percent, remaining stack/register differences.
|
||||
- EOW: nonzero expression, explicit repeated mask and local mask differed; positive mask test exact. Graph: direct offset, local table and reordered table variants differed; addition grouped with the table base exact.
|
||||
|
||||
ziswordw:
|
||||
- IsWordW: aggregate search initialization and packed byte fields introduced a frame pointer; explicit six-word initialization removed aggregate copying; move the unmatched counter to function scope produced 423/416, 71.03 percent. Removed an unused seventh search-state field after checking the original six initialized words; the final full gate gives 71.08414 percent. Default format array corrected to the original ordinary eight bytes.
|
||||
- ConvertUC2UserKey: initial pointer/character tests 88/91; zero-pointer tests and explicit halfword character casts 89/91; inclusive key bounds 89/91, 97.69 percent. Remaining branches/registers.
|
||||
|
||||
zi8pud2:
|
||||
- SetPDremoveOpt: initialized byte previous option 21/21; separate declaration/assignment unchanged; word previous option added a return mask. Restored byte, 98.57 percent, saved-register assignment differs.
|
||||
- MatchPUDdata_ZHS: direct typed dictionary traversal 72.45 percent; split normalization and reverse threshold branch 72.16 percent; word return type with explicit final byte-length conversion removes an implicit caller mask. Remaining control-flow and register differences.
|
||||
- MatchPUDdata: byte return with early exit 52/50; break and next-dictionary block 53/50; word return and function-scope locals 53/50; assignment condition instead of next-dictionary temporary 52/50. Remaining redundant branches and masks.
|
||||
- Phonetic helper: positive branch, negative branch and word return type; final exact. Word-size helper: combined loop, explicit inner test, function-scope cursor and for initialization; final exact. Copy helper: divided index, shifted index, typed cursor and positive size branch; final exact. Dictionary-length helper exact.
|
||||
|
||||
zconvert:
|
||||
- UC2WC: native dynamic halfword fields 101/124; serialized byte fields and reversed default branch 123/124; capture default unicode pointer before error call 124/124, 99.68 percent. Remaining cyclic saved-register assignment.
|
||||
- WC2UC: native dynamic fields and pointer-entry default test 179/199; byte fields and branch inversion 201/199; recovered default header address check and range snapshot 189/199, 77.70 percent. Remaining control flow and scheduling.
|
||||
- UC2Key: initial dynamic fields 186/207; serialized fields and branch inversion 207/207; recovered default header address and captured range pointer 200/207, 83.90 percent. Original empty default header exists even when its entries pointer is zero.
|
||||
- WC2Key: temporary conversion added instructions; nested conversion call gives 22/22 exact. All conversion tables are ordinary typed zero initializers.
|
||||
|
||||
zmtkey:
|
||||
- GetKeyLayout: byte tables and halfword count 182/182, four differences; word count eliminates sth but introduces stw/mask and regresses two exact functions; reuse the character count retains four differences. Restored the halfword-count version and all three exact functions. Remaining count storage/register choice.
|
||||
|
||||
zi8uwd:
|
||||
- Attach: early rejection and combined comparison loop 116/116, 90.47 percent; reordered position, bounded length and explicit inner break 117/116; split insertion counter updates 117/116, 97.24 percent. Remaining extra comparison and saved registers.
|
||||
- MatchUWDdata: typed ring traversal 61.84 percent; capture visited index before filtering and reverse fallback 60.95 percent; segment endpoint conditional in ring loop remains 60.95 percent. Remaining shared-return control flow and stack/register differences.
|
||||
- Pop: zero-first branch differed; reverse count branch exact. Clear: byte memset fill added mask; word fill exact.
|
||||
|
||||
zprepare:
|
||||
- PrepareMatch: typed request/match translation 1062/940, 58 percent, missing switch table; word memset argument, native component stores and wildcard loop with break 1047/940; explicit dense gap cases and word computational nibble count 1019/940, 64.76 percent. Compiler now emits the ordinary 48-byte switch table. Remaining stack, loop, branch and register differences.
|
||||
|
||||
## Fresh attempts on the first eight units
|
||||
|
||||
USBAPThread::Init:
|
||||
1. Unsigned priority: 32/32, the same two immediate-load differences.
|
||||
2. Separate current-thread pointer and priority increment: unchanged.
|
||||
3. Named null callback argument: unchanged. Restored the existing source, 99.6875 percent.
|
||||
|
||||
USBAP::DoRegistration:
|
||||
1. Declare failed before found: 161/161, 35 differences.
|
||||
2. Use the existing registered pointer for insertion: 159/161.
|
||||
3. While-form address lookup: 161/161, 35 differences. Restored the existing source, 98.72671 percent; remaining registers and scheduling.
|
||||
|
||||
SensitivityDrawing::draw constant data:
|
||||
1. Move background initialization after scales: 278/278, 41 differences; colors still precede floating constants.
|
||||
2. Compute both texture scales once from the projection before background: 277/278, floats partly reorder but colors still first.
|
||||
3. Compute horizontal texture scale first: 277/278 and different float ordering. Restored exact instructions; the original 56-byte constant section still differs from the compiler's 48-byte section. No placement objects added.
|
||||
|
||||
RakuRakuThread::start:
|
||||
1. Declare socket config before interrupt mask: 97/96.
|
||||
2. Explicit progress pointer: 97/96.
|
||||
3. Separate thread and priority locals: 97/96. Restored existing source, 88.635414 percent; additional global address generation remains.
|
||||
|
||||
RakuRakuThread::finish:
|
||||
1. Direct terminal-state tests: 138/133.
|
||||
2. Unsigned key-loop counters: 135/133.
|
||||
3. Advance typed WEP source pointers: 133/133, 116 differences, 81.1203 percent. Restored the better existing 86.56391 percent source; global address generation and register allocation remain.
|
||||
|
||||
AOSSi_WLANGetBSSList:
|
||||
1. Reverse scan/info declaration order: 227/227, 202 differences.
|
||||
2. Separate retry increment from comparison: unchanged.
|
||||
3. Traverse rates using a typed rate pointer: initially rejected for a C89 declaration after statements; moving it to the block declarations gives 225/227. Restored the existing 81.14978 percent source, with stack/register and scheduling differences.
|
||||
|
||||
AOSSi_WLANConnect:
|
||||
1. Declare result before retries: 156/155.
|
||||
2. Reuse interface pointer for NCDSetIfConfig: 155/155, 98 differences, 95.090324 percent.
|
||||
3. Combine cancellation and timeout rejection: 154/155. Restored existing 96.12258 percent source; pointer lifetimes and branches remain.
|
||||
|
||||
nup_mem::__nupRegisterAllocator:
|
||||
1. Early null return: 17/19.
|
||||
2. Positive validity branch: 19/19, 14 differences; compiler emits a Boolean value rather than repeated magic loads.
|
||||
3. Typed heap and early invalid return: 14/19. Restored existing 89.47369 percent source; target repeats the magic load that this compiler removes.
|
||||
|
||||
KPRProcessAltKeypad:
|
||||
1. Leading flag before accumulator: 96/96, 15 differences, improves from 25.
|
||||
2. Explicit digit temporary: initially rejected for C89 declaration placement; function-block declaration gives 96/96, 25 differences.
|
||||
3. While insertion loop: 96/96, 25 differences.
|
||||
4. Derive high flag after masking through a raw value: 96/96, 25 differences.
|
||||
5. Declare insertion pointer before index: 96/96, seven differences, 99.635414 percent; retained with the leading-flag variation.
|
||||
6. Combine raw mask ordering with insertion ordering: 96/96, 21 differences. Remaining seven differences are register assignments.
|
||||
|
||||
KPRProcessDeadKeys:
|
||||
1. Initialize fallback declarations before single-character branch: 92/90.
|
||||
2. Capture the second character per iteration: 88/90.
|
||||
3. Typed current mapping entry: 87/90. Restored existing 97.388885 percent source, with its safe fallback initialization and one extra instruction. No uninitialized matching trick introduced.
|
||||
|
||||
kbd_lib_map_us has no non-exact functions; its one function and all 3240 data bytes remain exact.
|
||||
|
||||
AXFXChorusExpShutdown additional attempts:
|
||||
1. Signed channel index: 36/36, five register differences.
|
||||
2. Clear via a typed channel pointer: 36/36, same five differences.
|
||||
3. Explicit null/free branches: 38/36. Restored the variant that preserves exact Init and Settings; Shutdown remains 99.166664 percent.
|
||||
|
||||
All nineteen requested units now have implementations and measured attempts. Remaining functions and data are partial matches, not completion.
|
||||
|
||||
156
tools/decomp-assist/sol-low-scenes-attempts.md
Normal file
156
tools/decomp-assist/sol-low-scenes-attempts.md
Normal file
@@ -0,0 +1,156 @@
|
||||
# Scene matching attempts
|
||||
|
||||
43U only. Failed experiments were reverted. Retained improvements passed the full gate before their final handoff. No configure.py linking changes.
|
||||
|
||||
All 112/129/66 original function symbols are present. String sequences are identical in all three units. No asm bodies remain in these source files. Compiler-emitted helper placement still differs from the extracted object; emitted text order is not claimed identical.
|
||||
|
||||
Starting instruction-exact counts: Setting 88/112, SDChannelSelect 90/129, SDMemory 49/66. Starting objdiff function counts: 89/112, 90/129, 49/66. These are different measurements.
|
||||
|
||||
Retained work: EULA/USB/network dispatch, Setting input and fadeout flow, missing Rect constructor, SD worker dispatch, SD memory dialog/transfer/progress/scroll flow and SD channel notice iteration. Each matching improvement has a local commit. Shared-header changes are guarded by macros defined only by the owning .cpp.
|
||||
|
||||
## Remaining functions and attempts
|
||||
|
||||
Counts below are current objdiff percentages. Each row records distinct source variations. Identical compiler output is recorded as no gain; it is not accepted as a match. Some larger functions still need deeper block-by-block reconstruction.
|
||||
|
||||
### src/scene/setting/iplSetting
|
||||
|
||||
- ipl::scene::Setting::createBrowser() | 89.86711% | 301/301 instructions; diffs 143 in registers, scheduling, branches or relocations.
|
||||
Attempts: name first branch condition: 305/301 instructions; for loop with explicit while and increment: 301/301 instructions, diffs 143; invert first complete if/else: 301/301 instructions, diffs 142.
|
||||
- ipl::scene::Setting::calcNormal() | 67.91796% | 1096/1158 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 1096/1158 instructions; invert first complete if/else: 1096/1158 instructions; string-pool divergence, reverted; nested short-circuit branch guards: 1096/1158 instructions.
|
||||
- ipl::scene::Setting::calcFadeout() | 99.96988% | 166/166 instructions; diffs 0 in registers, scheduling, branches or relocations; instruction diff is zero but objdiff remains below 100, relocation/data reference still open.
|
||||
Attempts: name first branch condition: 167/166 instructions; for loop with explicit while and increment: 166/166 instructions, diffs 0; invert first complete if/else: 166/166 instructions, diffs 15.
|
||||
- ipl::scene::Setting::draw() | 37.54272% | 276/632 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 276/632 instructions; nested short-circuit branch guards: 276/632 instructions; reverse constant comparison operands: 276/632 instructions.
|
||||
- ipl::scene::Setting::initKeyboard(const char*) | 65.976524% | 210/213 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 212/213 instructions; invert first complete if/else: 210/213 instructions; nested short-circuit branch guards: 210/213 instructions.
|
||||
- ipl::scene::Setting::calcKeyboard() | 75.62414% | 293/290 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 293/290 instructions; while loop as for loop: 293/290 instructions; invert first complete if/else: 293/290 instructions.
|
||||
- ipl::scene::Setting::convertRevIP(unsigned char*, const char*) | 98.15069% | 73/73 instructions; diffs 21 in registers, scheduling, branches or relocations.
|
||||
Attempts: initialize output pointer earlier: 73/73 instructions, diffs 27; while loop: 73/73 instructions, diffs 14; advance pointer before count: 73/73 instructions, diffs 21.
|
||||
- ipl::scene::Setting::checkIPString(const wchar_t*) | 76.210526% | 35/38 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: explicit return branches: 32/38 instructions; named validation result: 31/38 instructions; member function pointer call: 47/38 instructions.
|
||||
- ipl::scene::Setting::scanAP() | 81.21691% | 265/272 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 265/272 instructions; invert first complete if/else: 265/272 instructions; reverse constant comparison operands: 265/272 instructions.
|
||||
- ipl::scene::Setting::initScroll() | 50.104694% | 272/277 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 272/277 instructions; for loop with explicit while and increment: 272/277 instructions; invert first complete if/else: 272/277 instructions.
|
||||
- ipl::scene::Setting::updateScroll() | 94.46928% | 183/179 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 183/179 instructions; for loop with explicit while and increment: 183/179 instructions; invert first complete if/else: 183/179 instructions.
|
||||
- ipl::scene::Setting::setAPDraw() | 62.204678% | 148/171 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 148/171 instructions; for loop with explicit while and increment: 148/171 instructions; invert first complete if/else: 148/171 instructions.
|
||||
- ipl::scene::Setting::validateEULA_() | 64.414894% | 93/94 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: result-not-zero branch and reused result: 94/94 instructions, 56 diffs; declare valid flag before calls: 94/94, 56 diffs; cache application heap: 94/94, 58 diffs.
|
||||
- ipl::scene::Setting::makeSupportCode() | 99.07895% | 76/76 instructions; diffs 10 in registers, scheduling, branches or relocations.
|
||||
Attempts: separate appended length: 76/76 instructions, 13 diffs; reuse chunk length for title and label: 76/76, 3 register diffs; signed final code length: 76/76, 3 register diffs.
|
||||
- ipl::scene::Setting::setUSBAP() | 78.42105% | 55/57 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: state switch plus positive owner-result branch: 56/57 instructions; early status-zero break: 56/57 instructions; status switch: 56/57 instructions; target reloads status.
|
||||
|
||||
### src/scene/sdChannelSelect/iplSDChannelSelect
|
||||
|
||||
- ipl::scene::SDChannelSelect::create() | 94.23972% | 146/146 instructions; diffs 84 in registers, scheduling, branches or relocations.
|
||||
Attempts: name first branch condition: 146/146 instructions, diffs 84; while loop as for loop: 146/146 instructions, diffs 84; reverse constant comparison operands: 146/146 instructions, diffs 84.
|
||||
- ipl::scene::SDChannelSelect::enqueueStartNotice() | 94.117645% | 18/17 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: fully initialized argument aggregate: 21/17 instructions; zero aggregate then nonzero fields: 19/17 instructions; memset then nonzero fields: 19/17 instructions.
|
||||
- ipl::scene::SDChannelSelect::enqueueFinishNotice() | 94.44444% | 19/18 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: fully initialized argument aggregate: 22/18 instructions; zero aggregate then nonzero fields: 20/18 instructions; memset then nonzero fields: 20/18 instructions.
|
||||
- ipl::scene::SDChannelSelect::enqueueNotice(unsigned long, unsigned long, unsigned long) | 97.51111% | 46/45 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: fully initialized argument aggregate: 54/45 instructions; zero aggregate then nonzero fields: 52/45 instructions; memset then nonzero fields: 52/45 instructions.
|
||||
- ipl::scene::SDChannelSelect::enqueueLoadNotice() | 95.652176% | 24/23 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: fully initialized argument aggregate: 27/23 instructions; zero aggregate then nonzero fields: 25/23 instructions; memset then nonzero fields: 25/23 instructions.
|
||||
- ipl::scene::SDChannelSelect::enqueuePageNotice() | 95.652176% | 24/23 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: fully initialized argument aggregate: 27/23 instructions; zero aggregate then nonzero fields: 25/23 instructions; memset then nonzero fields: 25/23 instructions.
|
||||
- ipl::scene::SDChannelSelect::enqueueResultNotice(unsigned long) | 95.652176% | 24/23 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: fully initialized argument aggregate: 30/23 instructions; zero aggregate then nonzero fields: 28/23 instructions; memset then nonzero fields: 31/23 instructions.
|
||||
- ipl::scene::SDChannelSelect::enqueueChannelNotice(unsigned long, unsigned long, unsigned long, unsigned long) | 90.86957% | 25/23 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: fully initialized argument aggregate: 32/23 instructions; zero aggregate then nonzero fields: 30/23 instructions; memset then nonzero fields: 35/23 instructions.
|
||||
- ipl::scene::SDChannelSelect::enqueueMoveNotice(unsigned long, unsigned long, unsigned long) | 95.652176% | 24/23 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: fully initialized argument aggregate: 29/23 instructions; zero aggregate then nonzero fields: 27/23 instructions; memset then nonzero fields: 31/23 instructions.
|
||||
- ipl::scene::SDChannelSelect::enqueueStateNotice(unsigned long, unsigned long, unsigned long, unsigned long) | 95.13043% | 24/23 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: fully initialized argument aggregate: 30/23 instructions; zero aggregate then nonzero fields: 28/23 instructions; memset then nonzero fields: 33/23 instructions.
|
||||
- ipl::scene::SDChannelSelect::enqueueErrorNotice(unsigned long, unsigned long) | 95.652176% | 24/23 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: fully initialized argument aggregate: 29/23 instructions; zero aggregate then nonzero fields: 27/23 instructions; memset then nonzero fields: 31/23 instructions.
|
||||
- ipl::scene::SDChannelSelect::processWorkerCommands() | 83.055214% | 327/326 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 327/326 instructions; for loop with explicit while and increment: 327/326 instructions; invert first complete if/else: 327/326 instructions.
|
||||
- ipl::scene::SDChannelSelect::handleSDTitleListResult() | 99.15205% | 170/171 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 171/171 instructions, diffs 30; for loop with explicit while and increment: 170/171 instructions; invert first complete if/else: 169/171 instructions.
|
||||
- ipl::scene::SDChannelSelect::handleSDChannelUpdateComplete() | 86.82407% | 105/108 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 106/108 instructions; invert first complete if/else: 105/108 instructions; reverse constant comparison operands: 105/108 instructions.
|
||||
- ipl::scene::SDChannelSelect::updateDialogAnimation() | 77.24719% | 263/267 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 263/267 instructions; invert first complete if/else: 263/267 instructions; nested short-circuit branch guards: 263/267 instructions.
|
||||
- ipl::scene::SDChannelSelect::isCurrentTitleUsageEnough(const long*) const | 93.07843% | 50/51 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: bytes before blocks and explicit return: 51/51 instructions, diffs 9; separate negative guards: 52/51 instructions; named sufficient result: 50/51 instructions.
|
||||
- ipl::scene::SDChannelSelect::getCurrentTitleUsage(long*, long*) const | 86.82353% | 49/51 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: explicit sums: 49/51 instructions; entry first in sums: 49/51 instructions; initialize blocks before bytes: 49/51 instructions.
|
||||
- ipl::scene::SDChannelSelect::collectTitlesByUsage(const long*, const long*, unsigned long long*, char*, unsigned long*) | 97.81188% | 101/101 instructions; diffs 4 in registers, scheduling, branches or relocations.
|
||||
Attempts: name first branch condition: 101/101 instructions, diffs 4; nested short-circuit branch guards: 101/101 instructions, diffs 4; increment output count directly: 101/101 instructions, diffs 4; assign output count from expression: 101/101 instructions, diffs 4; positive enough-usage conjunction: 101/101 instructions, diffs 4.
|
||||
- ipl::scene::SDChannelSelect::collectTitlesFromNandUsage(const long*, const long*, unsigned long long*, char*, unsigned long*) | 97.833336% | 102/102 instructions; diffs 4 in registers, scheduling, branches or relocations.
|
||||
Attempts: name first branch condition: 102/102 instructions, diffs 4; nested short-circuit branch guards: 102/102 instructions, diffs 4; assign output count from expression: 102/102 instructions, diffs 4; named next output count: 102/102 instructions, diffs 4; negative remaining-usage guards: 102/102 instructions, diffs 4.
|
||||
- ipl::scene::SDChannelSelect::collectTitlesByChannelOrder(const long*, const long*, unsigned long long*, char*, unsigned long*) | 86.55556% | 118/126 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 119/126 instructions; nested short-circuit branch guards: 118/126 instructions; reverse constant comparison operands: 118/126 instructions.
|
||||
- ipl::scene::SDChannelSelect::collectTitlesBySpecialChannels(const long*, const long*, unsigned long long*, char*, unsigned long*) | 71.63989% | 331/361 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 331/361 instructions; for loop with explicit while and increment: 331/361 instructions; nested short-circuit branch guards: 331/361 instructions.
|
||||
- ipl::scene::SDChannelSelect::findAdjacentChannel(int, int*, int*) const | 48.044445% | 48/45 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: wrap candidate at loop top: 44/45 instructions; initialized found flag: 47/45 instructions; flag assigned on both breaks: 45/45, 12 diffs; step first then wrap: 45/45, 15 diffs; explicit signed direction branch: 45/45, 12 diffs.
|
||||
- ipl::scene::SDChannelSelect::flushSaveDataAndMountSD() | 99.65714% | 35/35 instructions; diffs 2 in registers, scheduling, branches or relocations.
|
||||
Attempts: cache heap and save manager: 35/35 instructions, 2 register diffs; retain manager after setter: 34/35 instructions; reload manager after setter: 35/35, 2 register diffs.
|
||||
- ipl::scene::SDChannelSelect::calcCommon() | 99.07407% | 109/108 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 113/108 instructions; invert first complete if/else: 109/108 instructions; nested short-circuit branch guards: 109/108 instructions.
|
||||
- ipl::scene::SDChannelSelect::destroy() | 95.097565% | 203/205 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 203/205 instructions; while loop as for loop: 203/205 instructions; reverse constant comparison operands: 203/205 instructions.
|
||||
- ipl::scene::SDChannelSelect::drawChannelTransitionObjects() | 94.974846% | 153/159 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 157/159 instructions; while loop as for loop: 153/159 instructions; nested short-circuit branch guards: 153/159 instructions.
|
||||
- ipl::scene::SDChannelSelect::initializeNormalPage() | 98.93617% | 95/94 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 101/94 instructions; invert first complete if/else: 95/94 instructions; reverse constant comparison operands: 95/94 instructions.
|
||||
- ipl::scene::SDChannelSelect::selectChannel(int, int) | 98.305084% | 60/59 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 60/59 instructions; named page-position value: 60/59 instructions; componentwise page-position value: 62/59 instructions.
|
||||
- ipl::scene::SDChannelSelect::startPageTransition(int, int) | 99.888885% | 45/45 instructions; diffs 5 in registers, scheduling, branches or relocations.
|
||||
Attempts: implicit position copy: 45/45 instructions, 6 diffs; const copy initialization: 45/45, 5 stack-offset diffs; const direct copy: 45/45, 5 stack-offset diffs.
|
||||
- ipl::scene::SDChannelSelect::setChannelScissor(const ipl::scene::SDChannelObj*) const | 93.48498% | 233/233 instructions; diffs 67 in registers, scheduling, branches or relocations.
|
||||
Attempts: name first branch condition: 238/233 instructions; invert first complete if/else: 233/233 instructions, diffs 128; reverse constant comparison operands: 233/233 instructions, diffs 67.
|
||||
- ipl::scene::SDChannelSelect::updatePageTransform() | 76.60645% | 151/155 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: for loop with explicit while and increment: 151/155 instructions; named position and scale geometry: 151/155 instructions; componentwise position and scale assignment: 146/155 instructions.
|
||||
- ipl::scene::SDChannelSelect::applyChannelMove() | 94.66923% | 130/130 instructions; diffs 61 in registers, scheduling, branches or relocations.
|
||||
Attempts: name first branch condition: 130/130 instructions, diffs 61; invert first complete if/else: 130/130 instructions, diffs 70; nested short-circuit branch guards: 130/130 instructions, diffs 61.
|
||||
- ipl::scene::SDChannelSelect::onEventDerived(const char*, unsigned long, ipl::controller::Interface*) | 94.08572% | 103/105 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 107/105 instructions; nested short-circuit branch guards: 103/105 instructions; reverse constant comparison operands: 103/105 instructions.
|
||||
- ipl::scene::SDChannelSelect::onButtonEvent(const char*, unsigned long, const ipl::controller::Interface*) | 93.73627% | 87/91 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 91/91 instructions, diffs 65; nested short-circuit branch guards: 87/91 instructions; reverse constant comparison operands: 87/91 instructions.
|
||||
- ipl::scene::@unnamed@iplSDChannelSelect_cpp@::SDChannelSelectButtonEventHandler::onEventDerived(unsigned long, unsigned long, const ipl::controller::Interface*) | 95.68056% | 140/144 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: name first branch condition: 140/144 instructions; invert first complete if/else: 140/144 instructions; nested short-circuit branch guards: 140/144 instructions.
|
||||
|
||||
### src/scene/sdChannelMemory/iplSDMemory
|
||||
|
||||
- ipl::scene::SDMemory::create(EGG::Heap*, ipl::nand::LayoutFile*, ipl::scene::SDChannelSelect*) | 88.6062% | 1001/1064 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: static text-box casts: 986/1064 instructions; unsigned pane indexes: 1001/1064 instructions; pane lookup temporary before trigger call: 1001/1064 instructions.
|
||||
- ipl::scene::SDMemory::setScrollLimit() | 98.888885% | 81/81 instructions; diffs 11 in registers, scheduling, branches or relocations.
|
||||
Attempts: item height then content and viewport: 81/81 instructions, 11 diffs; single geometry expression: 81/81, 12 diffs; content and viewport before items: 81/81, 12 diffs.
|
||||
- ipl::scene::SDMemory::onDialogState8() | 99.77848% | 158/158 instructions; diffs 6 in registers, scheduling, branches or relocations.
|
||||
Attempts: signed elapsed-time comparison: 158/158 instructions, 6 register diffs; retained; retrieve message before pane lookups: 157/158 instructions; reverted; direct pane SetString: 157/158; reverted; TextBox local and direct ceil conversion: 157/158, missing frsp; reverted.
|
||||
- ipl::scene::SDMemory::onDialogState21() | 90.060974% | 79/82 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: wcsncpy initialization: 81/82 instructions; reverted; wmemset initialization: unresolved instruction/branch differences; reverted; wcscpy initialization: unresolved instruction/branch differences; reverted.
|
||||
- ipl::scene::SDMemory::drawTransferTitles() | 66.3969% | 376/451 instructions; instruction count/control-flow or inlining differs.
|
||||
Attempts: target-derived memo position, alpha, NAND-title cursor and separate text/background rows: 419/451 instructions; componentwise memo translation and signed line length: 438/451 instructions; guarded newline-count do loop: 420/451 instructions.
|
||||
|
||||
## Measurement uncertainty
|
||||
|
||||
SDMemory::updateState has objdiff 100.0 and identical raw 1228-byte function bodies. SHA256: f6d214c0c43ea01b29a036f0056c89759db994a876e5131f0f1d3c5a8f24228c. ctxdiff/gate still report two differences: conditional CR1 branch operands are decoded using operand zero as an immediate, even though operand zero is the CR register. Subtracting the different source/target symbol addresses creates false branch differences. Gate tooling was not edited. Thus the reported instruction-exact count is 60/66 while objdiff reports 61/66.
|
||||
|
||||
Data scores remain partial, including None for SDMemory .data. The original objects contain zero-filled deduplicated weak data. No padding, forced placement or artificial data was added. The full DOL hash is the gate authority; none of these units was changed to Matching.
|
||||
|
||||
Notice argument initialization remains complete: target appears to omit a copied word, but removing its initialization would introduce an uninitialized read. SDButton callers still supply the declared unused second event-handler parameter; target omits its setup. No mismangled one-argument alias was introduced.
|
||||
|
||||
Failed compile variants were reverted and excluded from the successful-attempt counts. Three compile-valid source attempts exist for every function listed above. The units remain partial.
|
||||
|
||||
## Final full gate
|
||||
|
||||
```text
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/scene/setting/iplSetting] objdiff: code 21896/37884 data 472/5696 functions 97/112 fuzzy 86.6897 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 97/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 144/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13528/20872 data None/3344 functions 61/66 fuzzy 94.5922 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 60/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
719
tools/decomp-assist/sol-low-scenes-round2.md
Normal file
719
tools/decomp-assist/sol-low-scenes-round2.md
Normal file
@@ -0,0 +1,719 @@
|
||||
# Scenes round 2 attempts
|
||||
|
||||
Baseline: merged main `4f78910f`. Original function symbols present: Setting 112/112, SDChannelSelect 129/129, SDMemory 66/66; no missing functions or assembly bodies.
|
||||
|
||||
## Retained changes
|
||||
|
||||
- `checkIPString`: NO_INLINE alone produced 38/38 instructions and 28 register differences. Explicit conditional returns produced 38/38, diffs 0, objdiff 100%.
|
||||
- `calcFadeout`: restored the actual `hoge` OSReport argument. Raw instructions were already identical; the relocation was wrong. Objdiff now 100%.
|
||||
- Setting vtable: removed an undefined calc override from the owner-only header branch; original vtable uses inherited FaderSceneBase::calc.
|
||||
- SDMemory create: restored cache-count branching, N_Btn_3/N_Btn_4 visibility, display mode and button label. Trial 1:1085/1064 instructions; ordinary new trial 2:1078/1064; advancing cache pointer trial 3:1076/1064. Retained ordinary typed new and indexed cache loop.
|
||||
- SDMemory setScrollLimit: original pane is N_Body and offset is 160.0. Direct arithmetic trial matched 81/81 with diffs 0; named item-height trial had 12 differences; loading heights before count had 9. Retained direct arithmetic.
|
||||
- SDMemory drawTransferTitles: target-derived rewrite 419/451 instructions; componentwise memo translation, VEC2 out-of-line declaration, actual color helper, and corrected 500/40/79.5 literals:422/451. Its subsequent three condition-lifetime trials are below. All small data sections now match.
|
||||
- SDChannelSelect: moved existing functions to original object order, preserved isChannelReady dont_inline pair; .sdata2 first 80 bytes became identical. Replaced three local const title-ID objects with their ordinary comparison literals; section is now exactly 80 bytes and 100%.
|
||||
- Setting createBrowser: restored separator/path/separator reporting and RSO reporting after ICInvalidateRange.
|
||||
- Setting draw: restored N_Tra0 and Tex0/Tex1/Tex2 material lookups, texture assignments and transition restart. Replaced opaque animation structure with actual FrameController pointers under IPL_SETTING_IMPLEMENTATION. Corrected opaque and fade colors and centered screen rectangle from integer absolute dimensions.
|
||||
- Setting initScroll: re-derived all 277 instructions block by block: show AP2..AP7; switch 0/1/2/3 falls through hide calls; initialize animation; hide arrow and AP1; <= count branch first; indexed visibility loops; final state stores. 277/277, diffs 0, objdiff 100%.
|
||||
- Setting scanAP: restored actual N_AP1/N_AP6/N_AP0/N_AP7 pane literals. validateEULA error tag is ES. Error-dialog spacing is 78.0, not 46.0. Used ordinary wide format literals. Both .sdata and .sdata2 now match.
|
||||
- SDMemory: placed onDialogState7 before 8 and transfer-drawing helpers immediately after drawTransferTitles.
|
||||
|
||||
## Remaining functions and new attempts
|
||||
|
||||
Every remaining objdiff function has at least three distinct successful source builds this round. Trials were restored unless recorded above. Counts below come from the final retained source. Compiler-folded condition/temporary changes are explicitly recorded without claiming progress.
|
||||
|
||||
### src/scene/setting/iplSetting
|
||||
|
||||
- `makeSupportCode` 99.078950%: 76/76 instructions; register allocation or operand scheduling differs.
|
||||
- retain title length separately from appended length: build 0; src 0x130 base 0x130 insns 76/76; diffs 13: [30, 32, 35, 38, 40, 46, 49, 51, 54, 56, 58, 61, 63]; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- measure support code before appending label: build 0; src 0x130 base 0x130 insns 76/76; diffs 19: [6, 17, 38, 40, 42, 46, 47, 48, 49, 50, 51, 52, 54, 56, 57, 58, 59, 61, 63]; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- use named append cursors: build 0; src 0x12c base 0x130 insns 75/76; --- replace mine 38:39 base 38:39; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- `convertRevIP` 98.150690%: 73/73 instructions; register allocation or operand scheduling differs.
|
||||
- name branch condition 6: build 0; src 0x124 base 0x124 insns 73/73; diffs 21: [6, 8, 12, 15, 16, 17, 18, 19, 21, 28, 29, 30, 36, 38, 45, 46, 47, 48, 50, 64]; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 5: build 0; src 0x134 base 0x124 insns 77/73; --- replace mine 6:7 base 6:7; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 4: build 0; src 0x124 base 0x124 insns 73/73; diffs 21: [6, 8, 12, 15, 16, 17, 18, 19, 21, 28, 29, 30, 36, 38, 45, 46, 47, 48, 50, 64]; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- `updateScroll` 94.469280%: 183/179 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 5: build 0; src 0x2dc base 0x2cc insns 183/179; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 4: build 0; src 0x2dc base 0x2cc insns 183/179; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 3: build 0; src 0x2dc base 0x2cc insns 183/179; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- Target/source block differences: replace mine 8:9 target 8:9, replace mine 12:13 target 12:13, replace mine 17:18 target 17:18, delete mine 20:22 target 20:20, insert mine 23:23 target 21:22, replace mine 24:25 target 23:24.
|
||||
- `createBrowser` 93.687706%: 308/301 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 6: build 0; src 0x4b8 base 0x4b4 insns 302/301; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 5: build 0; src 0x4b4 base 0x4b4 insns 301/301; diffs 143: [0, 2, 3, 16, 18, 20, 45, 65, 67, 69, 71, 135, 136, 137, 138, 139, 140, 141, 142, 143]; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 4: build 0; src 0x4b4 base 0x4b4 insns 301/301; diffs 143: [0, 2, 3, 16, 18, 20, 45, 65, 67, 69, 71, 135, 136, 137, 138, 139, 140, 141, 142, 143]; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- Target/source block differences: replace mine 0:1 target 0:1, replace mine 2:4 target 2:4, replace mine 16:17 target 16:17, replace mine 18:19 target 18:19, replace mine 20:21 target 20:21, replace mine 45:46 target 45:46.
|
||||
- `scanAP` 88.106620%: 255/272 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 9: build 0; src 0x424 base 0x440 insns 265/272; --- delete mine 5:6 base 5:5; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 8: build 0; src 0x424 base 0x440 insns 265/272; --- delete mine 5:6 base 5:5; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 7: build 0; src 0x424 base 0x440 insns 265/272; --- delete mine 5:6 base 5:5; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- Target/source block differences: replace mine 7:8 target 7:8, replace mine 38:39 target 38:39, replace mine 49:50 target 49:50, replace mine 90:91 target 90:91, replace mine 94:95 target 94:95, replace mine 99:100 target 99:100.
|
||||
- `setUSBAP` 78.421050%: 55/57 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 5: build 0; src 0xdc base 0xe4 insns 55/57; --- replace mine 7:9 base 7:9; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 4: build 0; src 0xdc base 0xe4 insns 55/57; --- replace mine 7:9 base 7:9; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 3: build 0; src 0xdc base 0xe4 insns 55/57; --- replace mine 7:9 base 7:9; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- Target/source block differences: replace mine 7:9 target 7:9, replace mine 10:11 target 10:12, replace mine 14:15 target 15:16, replace mine 19:25 target 20:21, replace mine 39:40 target 35:44, delete mine 41:43 target 45:45.
|
||||
- `calcKeyboard` 75.624140%: 293/290 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 6: build 0; src 0x494 base 0x488 insns 293/290; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 5: build 0; src 0x4ac base 0x488 insns 299/290; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 4: build 0; src 0x494 base 0x488 insns 293/290; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- Target/source block differences: replace mine 0:1 target 0:1, replace mine 2:5 target 2:6, delete mine 6:7 target 7:7, replace mine 8:9 target 8:18, replace mine 11:12 target 20:21, replace mine 13:17 target 22:25.
|
||||
- `calcNormal` 67.917960%: 1096/1158 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 63: build 0; src 0x1120 base 0x1218 insns 1096/1158; --- replace mine 36:37 base 36:37; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 62: build 0; src 0x1130 base 0x1218 insns 1100/1158; --- replace mine 36:37 base 36:37; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 61: build 0; src 0x1120 base 0x1218 insns 1096/1158; --- replace mine 36:37 base 36:37; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- Target/source block differences: replace mine 36:37 target 36:37, replace mine 125:127 target 125:127, replace mine 166:167 target 166:167, delete mine 173:176 target 173:173, replace mine 181:182 target 178:179, replace mine 187:188 target 184:185.
|
||||
- `initKeyboard` 67.309860%: 211/213 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 6: build 0; src 0x34c base 0x354 insns 211/213; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 5: build 0; src 0x34c base 0x354 insns 211/213; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 4: build 0; src 0x34c base 0x354 insns 211/213; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- Target/source block differences: replace mine 8:9 target 8:9, delete mine 17:18 target 17:17, delete mine 19:20 target 18:18, replace mine 26:27 target 24:25, replace mine 33:34 target 31:32, replace mine 35:44 target 33:40.
|
||||
- `validateEULA_` 64.414894%: 93/94 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 3: build 0; src 0x174 base 0x178 insns 93/94; --- replace mine 5:6 base 5:8; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 2: build 0; src 0x188 base 0x178 insns 98/94; --- replace mine 6:7 base 6:7; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 1: build 0; src 0x188 base 0x178 insns 98/94; --- replace mine 5:6 base 5:8; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- Target/source block differences: replace mine 5:6 target 5:8, replace mine 7:10 target 9:10, replace mine 11:12 target 11:12, insert mine 16:16 target 16:17, delete mine 17:18 target 18:18, replace mine 37:38 target 37:53.
|
||||
- `setAPDraw` 62.204678%: 148/171 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 3: build 0; src 0x250 base 0x2ac insns 148/171; --- replace mine 6:7 base 6:7; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 2: build 0; src 0x260 base 0x2ac insns 152/171; --- replace mine 6:7 base 6:7; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 1: build 0; src 0x250 base 0x2ac insns 148/171; --- replace mine 6:7 base 6:7; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- Target/source block differences: replace mine 6:7 target 6:7, replace mine 8:22 target 8:23, replace mine 25:26 target 26:27, replace mine 27:28 target 28:29, replace mine 30:32 target 31:33, insert mine 33:33 target 34:35.
|
||||
- `draw` 49.120255%: 412/632 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 10: build 0; src 0x460 base 0x9e0 insns 280/632; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 9: build 0; src 0x450 base 0x9e0 insns 276/632; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- name branch condition 8: build 0; src 0x460 base 0x9e0 insns 280/632; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 108 (mine=108 base=108).
|
||||
- Target/source block differences: replace mine 0:1 target 0:1, replace mine 2:4 target 2:8, replace mine 8:9 target 12:13, replace mine 10:12 target 14:16, replace mine 14:15 target 18:19, replace mine 21:22 target 25:26.
|
||||
|
||||
### src/scene/sdChannelSelect/iplSDChannelSelect
|
||||
|
||||
- `startPageTransition` 99.888885%: 45/45 instructions; two vector stack slots are reversed, 5 operand differences.
|
||||
- initialize transform input by components: build 0; src 0xb0 base 0xb4 insns 44/45; --- replace mine 16:17 base 16:21; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- resolve channel pane before constructing transform input: build 0; src 0xb8 base 0xb4 insns 46/45; --- insert mine 16:16 base 16:21; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- copy through vector base reference: build 0; src 0xb4 base 0xb4 insns 45/45; diffs 5: [17, 24, 28, 29, 32]; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- `flushSaveDataAndMountSD` 99.657140%: 35/35 instructions; heap/manager loads are reversed, 2 instruction differences.
|
||||
- name branch condition 1: build 0; src 0x8c base 0x8c insns 35/35; diffs 2: [20, 21]; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- cache flush heap before looking up manager: build 0; src 0x8c base 0x8c insns 35/35; diffs 2: [20, 21]; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- retain save manager across flag update and flush: build 0; src 0x88 base 0x8c insns 34/35; --- replace mine 11:12 base 11:12; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- use manager and heap references for flush: build 0; src 0x8c base 0x8c insns 35/35; diffs 2: [20, 21]; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- `handleSDTitleListResult` 99.152050%: 170/171 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 15: build 0; src 0x2a8 base 0x2ac insns 170/171; --- replace mine 9:10 base 9:10; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 14: build 0; src 0x2a8 base 0x2ac insns 170/171; --- replace mine 9:10 base 9:10; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 13: build 0; src 0x2a8 base 0x2ac insns 170/171; --- replace mine 9:10 base 9:10; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 9:10 target 9:10, replace mine 14:15 target 14:15, replace mine 30:31 target 30:32, replace mine 115:116 target 116:117, replace mine 121:123 target 122:124, replace mine 126:128 target 127:129.
|
||||
- `calcCommon` 99.074070%: 109/108 instructions; unused SDButton event-handler second argument emits an extra li r5,0.
|
||||
- name branch condition 6: build 0; src 0x1b4 base 0x1b0 insns 109/108; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 5: build 0; src 0x1cc base 0x1b0 insns 115/108; --- delete mine 4:5 base 4:4; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 4: build 0; src 0x1c4 base 0x1b0 insns 113/108; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 8:9 target 8:9, replace mine 13:14 target 13:14, replace mine 21:22 target 21:22, delete mine 23:24 target 23:23.
|
||||
- `initializeNormalPage` 98.936170%: 95/94 instructions; unused SDButton event-handler second argument emits an extra li r5,0.
|
||||
- name branch condition 3: build 0; src 0x18c base 0x178 insns 99/94; --- replace mine 9:10 base 9:10; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 2: build 0; src 0x17c base 0x178 insns 95/94; --- replace mine 9:10 base 9:10; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 1: build 0; src 0x194 base 0x178 insns 101/94; --- delete mine 4:5 base 4:4; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 9:10 target 9:10, replace mine 16:17 target 16:17, delete mine 50:51 target 50:50.
|
||||
- `selectChannel` 98.305084%: 60/59 instructions; unused SDButton event-handler second argument emits an extra li r5,0.
|
||||
- name branch condition 2: build 0; src 0xf0 base 0xec insns 60/59; --- delete mine 41:42 base 41:41; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 1: build 0; src 0xf0 base 0xec insns 60/59; --- delete mine 41:42 base 41:41; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- cache base pane translation before animation setup: build 0; src 0xf0 base 0xec insns 60/59; --- delete mine 41:42 base 41:41; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- resolve button before updating selected channel: build 0; src 0xf4 base 0xec insns 61/59; --- replace mine 5:7 base 5:7; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- compare arrow visibility explicitly: build 0; src 0xf0 base 0xec insns 60/59; --- delete mine 41:42 base 41:41; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: delete mine 41:42 target 41:41.
|
||||
- `collectTitlesFromNandUsage` 97.833336%: 102/102 instructions; output-count increment and usage loads are scheduled differently, 4 differences.
|
||||
- name branch condition 4: build 0; src 0x194 base 0x198 insns 101/102; --- insert mine 69:69 base 69:72; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 3: build 0; src 0x1a8 base 0x198 insns 106/102; --- replace mine 23:24 base 23:24; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 2: build 0; src 0x1a0 base 0x198 insns 104/102; --- replace mine 23:24 base 23:24; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- `collectTitlesByUsage` 97.811880%: 101/101 instructions; output-count increment and usage loads are scheduled differently, 4 differences.
|
||||
- name branch condition 4: build 0; src 0x190 base 0x194 insns 100/101; --- insert mine 67:67 base 67:70; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 3: build 0; src 0x1a4 base 0x194 insns 105/101; --- replace mine 21:22 base 21:22; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 2: build 0; src 0x19c base 0x194 insns 103/101; --- replace mine 21:22 base 21:22; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- `enqueueNotice` 97.511110%: 46/45 instructions; command stores and zero/type registers differ.
|
||||
- initialize command payload in reverse order: build 0; src 0xb8 base 0xb4 insns 46/45; --- replace mine 10:11 base 10:12; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in payload first order: build 0; src 0xb8 base 0xb4 insns 46/45; --- replace mine 10:11 base 10:12; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in title before flags order: build 0; src 0xb8 base 0xb4 insns 46/45; --- replace mine 10:11 base 10:12; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 10:11 target 10:12, delete mine 12:13 target 13:13, delete mine 18:19 target 18:18.
|
||||
- `onEventDerived` 95.680560%: 140/144 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 10: build 0; src 0x240 base 0x240 insns 144/144; diffs 110: [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39]; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 9: build 0; src 0x230 base 0x240 insns 140/144; --- insert mine 20:20 base 20:27; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 8: build 0; src 0x234 base 0x240 insns 141/144; --- insert mine 20:20 base 20:27; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: insert mine 20:20 target 20:27, replace mine 21:25 target 28:29, replace mine 32:33 target 36:38, replace mine 34:35 target 39:40, replace mine 43:44 target 48:49, replace mine 45:46 target 50:51.
|
||||
- `enqueueLoadNotice` 95.652176%: 24/23 instructions; command stores and zero/type registers differ.
|
||||
- initialize command payload in reverse order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:11 base 7:11; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in payload first order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:11 base 7:11; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in title before flags order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:8 base 7:8; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 7:8 target 7:8, delete mine 17:18 target 17:17.
|
||||
- `enqueuePageNotice` 95.652176%: 24/23 instructions; command stores and zero/type registers differ.
|
||||
- initialize command payload in reverse order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:11 base 7:11; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in payload first order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:11 base 7:11; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in title before flags order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:8 base 7:8; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 7:8 target 7:8, delete mine 17:18 target 17:17.
|
||||
- `enqueueResultNotice` 95.652176%: 24/23 instructions; command stores and zero/type registers differ.
|
||||
- initialize command payload in reverse order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:10 base 7:10; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in payload first order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:10 base 7:10; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in title before flags order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:8 base 7:8; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 7:8 target 7:8, delete mine 17:18 target 17:17.
|
||||
- `enqueueMoveNotice` 95.652176%: 24/23 instructions; command stores and zero/type registers differ.
|
||||
- initialize command payload in reverse order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:11 base 7:11; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in payload first order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:11 base 7:11; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in title before flags order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:8 base 7:8; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 7:8 target 7:8, delete mine 17:18 target 17:17.
|
||||
- `enqueueErrorNotice` 95.652176%: 24/23 instructions; command stores and zero/type registers differ.
|
||||
- initialize command payload in reverse order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:10 base 7:10; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in payload first order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:10 base 7:10; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in title before flags order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:8 base 7:8; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 7:8 target 7:8, delete mine 17:18 target 17:17.
|
||||
- `enqueueStateNotice` 95.130430%: 24/23 instructions; command stores and zero/type registers differ.
|
||||
- initialize command payload in reverse order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:11 base 7:11; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in payload first order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:11 base 7:11; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in title before flags order: build 0; src 0x60 base 0x5c insns 24/23; --- replace mine 7:8 base 7:9; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 7:8 target 7:9, delete mine 9:10 target 10:10, delete mine 17:18 target 17:17.
|
||||
- `destroy` 95.097565%: 203/205 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 7: build 0; src 0x32c base 0x334 insns 203/205; --- insert mine 11:11 base 11:12; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 6: build 0; src 0x32c base 0x334 insns 203/205; --- insert mine 11:11 base 11:12; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 5: build 0; src 0x32c base 0x334 insns 203/205; --- insert mine 11:11 base 11:12; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: insert mine 11:11 target 11:12, replace mine 13:14 target 14:15, insert mine 20:20 target 21:22, delete mine 21:22 target 23:23, replace mine 61:62 target 62:63, insert mine 98:98 target 99:101.
|
||||
- `drawChannelTransitionObjects` 94.974846%: 153/159 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 5: build 0; src 0x294 base 0x27c insns 165/159; --- replace mine 6:10 base 6:20; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 4: build 0; src 0x274 base 0x27c insns 157/159; --- replace mine 6:10 base 6:20; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 3: build 0; src 0x294 base 0x27c insns 165/159; --- replace mine 6:10 base 6:20; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 6:10 target 6:20, replace mine 12:13 target 22:26, replace mine 15:29 target 28:29, replace mine 31:32 target 31:32, replace mine 33:34 target 33:35, replace mine 35:36 target 36:37.
|
||||
- `applyChannelMove` 94.669230%: 130/130 instructions; register allocation or operand scheduling differs.
|
||||
- name branch condition 4: build 0; src 0x208 base 0x208 insns 130/130; diffs 61: [41, 43, 46, 50, 51, 52, 57, 61, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74]; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 3: build 0; src 0x208 base 0x208 insns 130/130; diffs 61: [41, 43, 46, 50, 51, 52, 57, 61, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74]; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 2: build 0; src 0x218 base 0x208 insns 134/130; --- replace mine 12:13 base 12:13; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- `enqueueFinishNotice` 94.444440%: 19/18 instructions; command stores and zero/type registers differ.
|
||||
- initialize command payload in reverse order: build 0; src 0x4c base 0x48 insns 19/18; --- replace mine 2:3 base 2:3; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in payload first order: build 0; src 0x4c base 0x48 insns 19/18; --- replace mine 2:3 base 2:3; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in title before flags order: build 0; src 0x4c base 0x48 insns 19/18; --- insert mine 8:8 base 8:10; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: delete mine 12:13 target 12:12.
|
||||
- `create` 94.239720%: 146/146 instructions; register allocation or operand scheduling differs.
|
||||
- name branch condition 3: build 0; src 0x248 base 0x248 insns 146/146; diffs 84: [30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49]; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 2: build 0; src 0x248 base 0x248 insns 146/146; diffs 84: [30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49]; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 1: build 0; src 0x248 base 0x248 insns 146/146; diffs 84: [30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49]; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- `enqueueStartNotice` 94.117645%: 18/17 instructions; command stores and zero/type registers differ.
|
||||
- initialize command payload in reverse order: build 0; src 0x48 base 0x44 insns 18/17; --- replace mine 2:3 base 2:3; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in payload first order: build 0; src 0x48 base 0x44 insns 18/17; --- replace mine 2:3 base 2:3; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in title before flags order: build 0; src 0x48 base 0x44 insns 18/17; --- insert mine 8:8 base 8:10; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: delete mine 12:13 target 12:12.
|
||||
- `onEventDerived` 94.085720%: 103/105 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 6: build 0; src 0x1ac base 0x1a4 insns 107/105; --- replace mine 7:10 base 7:10; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 5: build 0; src 0x1ac base 0x1a4 insns 107/105; --- replace mine 7:10 base 7:10; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 4: build 0; src 0x19c base 0x1a4 insns 103/105; --- replace mine 19:20 base 19:20; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 19:20 target 19:20, replace mine 25:26 target 25:26, replace mine 27:29 target 27:32, replace mine 30:31 target 33:35, replace mine 37:38 target 41:42, replace mine 43:46 target 47:48.
|
||||
- `onButtonEvent` 93.736270%: 87/91 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 7: build 0; src 0x16c base 0x16c insns 91/91; diffs 50: [22, 24, 26, 27, 33, 37, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52]; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 6: build 0; src 0x16c base 0x16c insns 91/91; diffs 39: [22, 24, 26, 27, 33, 37, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52]; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 5: build 0; src 0x160 base 0x16c insns 88/91; --- replace mine 17:18 base 17:18; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 17:18 target 17:18, replace mine 20:21 target 20:21, replace mine 22:25 target 22:25, replace mine 26:28 target 26:28, replace mine 33:34 target 33:34, replace mine 36:38 target 36:38.
|
||||
- `setChannelScissor` 93.484980%: 233/233 instructions; register allocation or operand scheduling differs.
|
||||
- name branch condition 6: build 0; src 0x3ac base 0x3a4 insns 235/233; --- replace mine 38:42 base 38:42; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 5: build 0; src 0x3ac base 0x3a4 insns 235/233; --- replace mine 38:42 base 38:42; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 4: build 0; src 0x3ac base 0x3a4 insns 235/233; --- replace mine 38:42 base 38:42; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- `isCurrentTitleUsageEnough` 93.078430%: 50/51 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 2: build 0; src 0xc8 base 0xcc insns 50/51; --- replace mine 5:6 base 5:6; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 1: build 0; src 0xc8 base 0xcc insns 50/51; --- replace mine 5:6 base 5:6; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- for loop with explicit while and increment: build 0; src 0xc8 base 0xcc insns 50/51; --- replace mine 5:6 base 5:6; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 5:6 target 5:6, replace mine 7:9 target 7:9, replace mine 35:37 target 35:44, delete mine 38:44 target 45:45.
|
||||
- `enqueueChannelNotice` 90.869570%: 25/23 instructions; command stores and zero/type registers differ.
|
||||
- initialize command payload in reverse order: build 0; src 0x64 base 0x5c insns 25/23; --- replace mine 7:12 base 7:11; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in payload first order: build 0; src 0x64 base 0x5c insns 25/23; --- replace mine 7:12 base 7:11; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- initialize command payload in title before flags order: build 0; src 0x64 base 0x5c insns 25/23; --- replace mine 7:8 base 7:8; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 7:9 target 7:9, delete mine 10:11 target 10:10, replace mine 15:16 target 14:15, delete mine 18:19 target 17:17.
|
||||
- `handleSDChannelUpdateComplete` 86.824070%: 105/108 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 5: build 0; src 0x1a4 base 0x1b0 insns 105/108; --- replace mine 9:10 base 9:10; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 4: build 0; src 0x1a4 base 0x1b0 insns 105/108; --- replace mine 9:10 base 9:10; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 3: build 0; src 0x1ac base 0x1b0 insns 107/108; --- replace mine 9:10 base 9:10; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 9:10 target 9:10, replace mine 11:12 target 11:12, replace mine 15:19 target 15:19, insert mine 26:26 target 26:27, delete mine 27:28 target 28:28, replace mine 33:34 target 33:34.
|
||||
- `getCurrentTitleUsage` 86.823530%: 49/51 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 2: build 0; src 0xc4 base 0xcc insns 49/51; --- replace mine 5:6 base 5:6; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 1: build 0; src 0xc4 base 0xcc insns 49/51; --- replace mine 5:6 base 5:6; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- for loop with explicit while and increment: build 0; src 0xc4 base 0xcc insns 49/51; --- replace mine 5:6 base 5:6; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 5:6 target 5:6, insert mine 7:7 target 7:10, delete mine 8:11 target 11:11, replace mine 31:32 target 31:32, replace mine 33:38 target 33:38, replace mine 39:42 target 39:44.
|
||||
- `collectTitlesByChannelOrder` 86.555560%: 118/126 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 5: build 0; src 0x1d4 base 0x1f8 insns 117/126; --- replace mine 5:11 base 5:11; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 4: build 0; src 0x1e8 base 0x1f8 insns 122/126; --- replace mine 5:11 base 5:11; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 3: build 0; src 0x1d8 base 0x1f8 insns 118/126; --- replace mine 5:11 base 5:11; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 5:11 target 5:11, replace mine 15:30 target 15:30, replace mine 32:34 target 32:34, replace mine 35:38 target 35:41, replace mine 39:56 target 42:59, replace mine 57:59 target 60:62.
|
||||
- `processWorkerCommands` 83.055214%: 327/326 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 11: build 0; src 0x52c base 0x518 insns 331/326; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 10: build 0; src 0x51c base 0x518 insns 327/326; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 9: build 0; src 0x51c base 0x518 insns 327/326; --- replace mine 8:9 base 8:9; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 8:9 target 8:9, replace mine 17:18 target 17:18, replace mine 26:27 target 26:27, replace mine 28:29 target 28:29, replace mine 33:34 target 33:34, replace mine 36:37 target 36:37.
|
||||
- `updateDialogAnimation` 77.247190%: 263/267 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 9: build 0; src 0x41c base 0x42c insns 263/267; --- replace mine 15:16 base 15:16; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 8: build 0; src 0x41c base 0x42c insns 263/267; --- replace mine 15:16 base 15:16; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 7: build 0; src 0x41c base 0x42c insns 263/267; --- replace mine 15:16 base 15:16; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 15:16 target 15:16, delete mine 44:47 target 44:44, replace mine 48:54 target 45:46, replace mine 56:58 target 48:50, replace mine 59:60 target 51:53, replace mine 62:63 target 55:56.
|
||||
- `updatePageTransform` 76.606450%: 151/155 instructions; instruction count and block scheduling/control flow differ.
|
||||
- for loop with explicit while and increment: build 0; src 0x25c base 0x26c insns 151/155; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name channel frame center coordinates: build 0; src 0x25c base 0x26c insns 151/155; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- sample three frame animations explicitly: build 0; src 0x108 base 0x26c insns 66/155; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- cache projection dimensions before computing transform: build 0; src 0x25c base 0x26c insns 151/155; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 0:1 target 0:1, replace mine 2:15 target 2:13, replace mine 25:26 target 23:24, replace mine 41:43 target 39:40, replace mine 44:46 target 41:44, insert mine 47:47 target 45:55.
|
||||
- `collectTitlesBySpecialChannels` 71.639890%: 331/361 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 13: build 0; src 0x528 base 0x5a4 insns 330/361; --- replace mine 5:20 base 5:13; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 12: build 0; src 0x53c base 0x5a4 insns 335/361; --- replace mine 5:20 base 5:13; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 11: build 0; src 0x52c base 0x5a4 insns 331/361; --- replace mine 5:20 base 5:13; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: replace mine 5:20 target 5:13, insert mine 21:21 target 14:35, replace mine 22:43 target 36:43, replace mine 44:47 target 44:49, replace mine 50:51 target 52:96, delete mine 52:93 target 97:97.
|
||||
- `findAdjacentChannel` 48.044445%: 48/45 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 5: build 0; src 0xc0 base 0xb4 insns 48/45; --- delete mine 2:3 base 2:2; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 4: build 0; src 0xc0 base 0xb4 insns 48/45; --- delete mine 2:3 base 2:2; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- name branch condition 3: build 0; src 0xc0 base 0xb4 insns 48/45; --- delete mine 2:3 base 2:2; POOL IDENTICAL up to 101 (mine=101 base=101).
|
||||
- Target/source block differences: delete mine 2:3 target 2:2, replace mine 5:9 target 4:8, replace mine 12:14 target 11:15, replace mine 15:17 target 16:18, replace mine 18:22 target 19:28, replace mine 23:24 target 29:30.
|
||||
|
||||
### src/scene/sdChannelMemory/iplSDMemory
|
||||
|
||||
- `onDialogState8` 99.778480%: 158/158 instructions; header pointer and row-count registers differ, 6 differences.
|
||||
- name branch condition 5: build 0; src 0x27c base 0x278 insns 159/158; --- replace mine 49:50 base 49:50; POOL IDENTICAL up to 90 (mine=90 base=90).
|
||||
- name branch condition 4: build 0; src 0x278 base 0x278 insns 158/158; diffs 6: [83, 89, 91, 137, 142, 143]; POOL IDENTICAL up to 90 (mine=90 base=90).
|
||||
- name branch condition 3: build 0; src 0x284 base 0x278 insns 161/158; --- replace mine 11:12 base 11:12; POOL IDENTICAL up to 90 (mine=90 base=90).
|
||||
- `create` 95.456764%: 1078/1064 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 3: build 0; src 0x10d8 base 0x10a0 insns 1078/1064; --- replace mine 5:6 base 5:6; POOL IDENTICAL up to 90 (mine=90 base=90).
|
||||
- name branch condition 2: build 0; src 0x10d8 base 0x10a0 insns 1078/1064; --- replace mine 5:6 base 5:6; POOL IDENTICAL up to 90 (mine=90 base=90).
|
||||
- name branch condition 1: build 0; src 0x10d8 base 0x10a0 insns 1078/1064; --- replace mine 5:6 base 5:6; POOL IDENTICAL up to 90 (mine=90 base=90).
|
||||
- Target/source block differences: replace mine 5:6 target 5:6, replace mine 10:11 target 10:11, replace mine 17:18 target 17:18, replace mine 21:22 target 21:22, replace mine 27:28 target 27:28, replace mine 33:35 target 33:35.
|
||||
- `onDialogState21` 90.060974%: 79/82 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 2: build 0; src 0x13c base 0x148 insns 79/82; --- replace mine 5:8 base 5:8; POOL IDENTICAL up to 90 (mine=90 base=90).
|
||||
- name branch condition 1: build 0; src 0x14c base 0x148 insns 83/82; --- replace mine 5:8 base 5:8; POOL IDENTICAL up to 90 (mine=90 base=90).
|
||||
- nested short-circuit branch guards: build 0; src 0x13c base 0x148 insns 79/82; --- replace mine 5:8 base 5:8; POOL IDENTICAL up to 90 (mine=90 base=90).
|
||||
- Target/source block differences: replace mine 5:8 target 5:8, replace mine 9:10 target 9:10, replace mine 13:14 target 13:14, replace mine 16:17 target 16:22, replace mine 21:25 target 26:36, replace mine 26:38 target 37:41.
|
||||
- `drawTransferTitles` 85.421290%: 422/451 instructions; instruction count and block scheduling/control flow differ.
|
||||
- name branch condition 8: build 0; src 0x6a0 base 0x70c insns 424/451; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 90 (mine=90 base=90).
|
||||
- name branch condition 7: build 0; src 0x6a8 base 0x70c insns 426/451; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 90 (mine=90 base=90).
|
||||
- name branch condition 6: build 0; src 0x6a8 base 0x70c insns 426/451; --- replace mine 0:1 base 0:1; POOL IDENTICAL up to 90 (mine=90 base=90).
|
||||
- Target/source block differences: replace mine 0:1 target 0:1, replace mine 2:20 target 2:20, replace mine 23:24 target 23:24, replace mine 26:27 target 26:27, replace mine 33:35 target 33:35, replace mine 36:38 target 36:38.
|
||||
|
||||
## Data limits and measurement uncertainty
|
||||
|
||||
- Setting: .sdata 504 bytes and .sdata2 64 bytes 100%; .bss/.sbss 100%. Original .rodata includes two trailing 20-byte UTF-16 digit maps with no object-code references. They were not fabricated as unused padding. Animation bindings and pointer tables are present; original symbol scAnmTable aggregates adjoining tables.
|
||||
- SDChannelSelect: .rodata 64 bytes, .sdata 80 bytes, .sdata2 80 bytes 100%.
|
||||
- SDMemory: .sdata 152 bytes and .sdata2 48 bytes 100%.
|
||||
- Remaining .data differences include original zero-filled deduplicated weak vtables versus compiler-emitted vtable relocations, symbol grouping and layout. No replacement zero arrays, force-active entries or linker changes were used.
|
||||
- Gate instruction counts differ from objdiff counts by one in Setting and SDMemory. Raw relocation handling and the conditional CR1 decoder affect these counts; objdiff 100% remains the function authority. The pre-existing SDMemory updateState discrepancy was not hidden by changing tooling.
|
||||
|
||||
## Gate blocks
|
||||
|
||||
All captured gate blocks are copied below, including rejected trial states. Only gate-passing retained source was committed. The final block is a full clean gate over all three units.
|
||||
|
||||
### sol-r2-baseline-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 21896/37884 data 472/5696 functions 97/112 fuzzy 86.6897 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 97/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 144/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13528/20872 data None/3344 functions 61/66 fuzzy 94.5922 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 60/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-vtable-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 21896/37884 data 472/5696 functions 97/112 fuzzy 86.6897 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 97/112
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-input-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 21896/37884 data 472/5696 functions 97/112 fuzzy 86.6331 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 97/112
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-input2-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22048/37884 data 472/5696 functions 98/112 fuzzy 86.8151 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-gate1.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22048/37884 data 472/5696 functions 98/112 fuzzy 86.8151 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 144/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13528/20872 data None/3344 functions 61/66 fuzzy 94.5922 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 60/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-fade-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.8157 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-gate2.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.8157 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 144/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13528/20872 data None/3344 functions 61/66 fuzzy 94.5922 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 60/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-create-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.8157 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 144/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13528/20872 data None/3344 functions 61/66 fuzzy 95.8476 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 60/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-data-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.8157 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 144/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13528/20872 data None/3344 functions 61/66 fuzzy 95.9891 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 60/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-draw-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.8157 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 144/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13528/20872 data None/3344 functions 61/66 fuzzy 97.5115 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 60/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-draw2-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.8157 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 144/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13528/20872 data 48/3344 functions 61/66 fuzzy 97.6334 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 60/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-gate3.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.8157 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 144/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13528/20872 data 48/3344 functions 61/66 fuzzy 97.6334 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 60/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-gate4.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.8157 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 144/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-reorder-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.8157 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 144/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-reorder2-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.8157 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 144/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-reorder3-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.8157 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 144/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-reorder4-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.8157 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 144/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE FAIL: full build failed
|
||||
```
|
||||
|
||||
### sol-r2-reorder5-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.8157 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 144/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-select-data-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.8157 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 224/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-gate5.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.8157 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 224/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-setting-data-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.9371 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 224/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-setting-material-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 86.9371 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 224/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE FAIL: full build failed
|
||||
```
|
||||
|
||||
### sol-r2-setting-material2-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 87.6831 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 224/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-gate6.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 22712/37884 data 472/5696 functions 99/112 fuzzy 87.6831 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 98/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 224/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-init-scroll-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 23820/37884 data 472/5696 functions 100/112 fuzzy 89.3403 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 99/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 224/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-gate7.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 23820/37884 data 976/5696 functions 100/112 fuzzy 89.3403 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 99/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 224/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-setting-colors-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 23820/37884 data 976/5696 functions 100/112 fuzzy 89.3669 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 99/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 224/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-gate8.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 23820/37884 data 976/5696 functions 100/112 fuzzy 89.3669 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 99/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 224/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-setting-rect-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 23820/37884 data 976/5696 functions 100/112 fuzzy 89.3669 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 99/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 224/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE FAIL: full build failed
|
||||
```
|
||||
|
||||
### sol-r2-setting-rect2-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 23820/37884 data 976/5696 functions 100/112 fuzzy 89.3669 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 99/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 224/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE FAIL: full build failed
|
||||
```
|
||||
|
||||
### sol-r2-setting-rect3-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 23820/37884 data 1040/5696 functions 100/112 fuzzy 89.3668 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 99/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 224/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-gate9.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 23820/37884 data 1040/5696 functions 100/112 fuzzy 89.3668 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 99/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 224/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-memory-order-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 23820/37884 data 1040/5696 functions 100/112 fuzzy 89.3668 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 99/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 224/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
### sol-r2-final-gate.txt
|
||||
|
||||
```
|
||||
[src/scene/setting/iplSetting] objdiff: code 23820/37884 data 1040/5696 functions 100/112 fuzzy 89.3668 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 99/112
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] objdiff: code 19192/33828 data 224/2960 functions 94/129 fuzzy 95.1933 linked code 0
|
||||
[src/scene/sdChannelSelect/iplSDChannelSelect] instruction-exact functions: 94/129
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 13852/20872 data 200/3344 functions 62/66 fuzzy 97.6506 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 61/66
|
||||
regressions vs baseline: 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
1031
tools/decomp-assist/sol-low-scenes-round3.md
Normal file
1031
tools/decomp-assist/sol-low-scenes-round3.md
Normal file
File diff suppressed because it is too large
Load Diff
1361
tools/decomp-assist/sol-low-scenes-round4.md
Normal file
1361
tools/decomp-assist/sol-low-scenes-round4.md
Normal file
File diff suppressed because it is too large
Load Diff
1133
tools/decomp-assist/sol-low-scenes-round5.md
Normal file
1133
tools/decomp-assist/sol-low-scenes-round5.md
Normal file
File diff suppressed because it is too large
Load Diff
7338
tools/decomp-assist/sol-med-attempts.md
Normal file
7338
tools/decomp-assist/sol-med-attempts.md
Normal file
File diff suppressed because it is too large
Load Diff
87
tools/decomp-assist/sol-med-bs2-kpad-wad-gate.txt
Normal file
87
tools/decomp-assist/sol-med-bs2-kpad-wad-gate.txt
Normal file
@@ -0,0 +1,87 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/BS2/BS2Mach] pool: IDENTICAL
|
||||
[src/BS2/BS2Mach] objdiff: code 4052/16980 data 155504/158528 functions 21/29 fuzzy 84.6464 linked code 0
|
||||
[src/BS2/BS2Mach] instruction-exact functions: 21/29
|
||||
[src/BS2/BS2Mach] section .bss size 155232 match 100.0
|
||||
[src/BS2/BS2Mach] section .data size 3024 match None
|
||||
[src/BS2/BS2Mach] section .sbss size 240 match 100.0
|
||||
[src/BS2/BS2Mach] section .sdata size 32 match 100.0
|
||||
[src/BS2/BS2Mach] section .text size 16980 match 84.64641
|
||||
[src/BS2/BS2Mach] below 100: Run 0.88372093
|
||||
[src/BS2/BS2Mach] below 100: BS2StartGame 95.496185
|
||||
[src/BS2/BS2Mach] below 100: BS2StartGCGame 98.24561
|
||||
[src/BS2/BS2Mach] below 100: BS2NANDDivideCallback 85.03906
|
||||
[src/BS2/BS2Mach] below 100: BS2NANDDivideReadAsync 60.31915
|
||||
[src/BS2/BS2Mach] below 100: BS2NANDDivideWriteAsync 60.31915
|
||||
[src/BS2/BS2Mach] below 100: CheckBS2CommandStatus 80.697044
|
||||
[src/BS2/BS2Mach] below 100: BS2Tick 76.669075
|
||||
[src/BS2/BS2Mach] baseline: code 4052/16980 data 155504 functions 21 fuzzy 83.7230
|
||||
[libs/RVL_SDK/src/kpad/KPAD] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/kpad/KPAD] objdiff: code 2404/13056 data 7712/8032 functions 14/29 fuzzy 84.0867 linked code 0
|
||||
[libs/RVL_SDK/src/kpad/KPAD] instruction-exact functions: 14/29
|
||||
[libs/RVL_SDK/src/kpad/KPAD] section .bss size 7680 match 100.0
|
||||
[libs/RVL_SDK/src/kpad/KPAD] section .data size 88 match None
|
||||
[libs/RVL_SDK/src/kpad/KPAD] section .sbss size 32 match 100.0
|
||||
[libs/RVL_SDK/src/kpad/KPAD] section .sdata size 112 match 94.545456
|
||||
[libs/RVL_SDK/src/kpad/KPAD] section .sdata2 size 120 match 85.71429
|
||||
[libs/RVL_SDK/src/kpad/KPAD] section .text size 13056 match 84.0867
|
||||
[libs/RVL_SDK/src/kpad/KPAD] below 100: reset_kpad 69.37607
|
||||
[libs/RVL_SDK/src/kpad/KPAD] below 100: KPADGetProjectionPos 96.57895
|
||||
[libs/RVL_SDK/src/kpad/KPAD] below 100: KPADSetSensorHeight 99.23077
|
||||
[libs/RVL_SDK/src/kpad/KPAD] below 100: calc_acc_horizon 96.9802
|
||||
[libs/RVL_SDK/src/kpad/KPAD] below 100: read_kpad_acc 66.565
|
||||
[libs/RVL_SDK/src/kpad/KPAD] below 100: select_2obj_first 76.18033
|
||||
[libs/RVL_SDK/src/kpad/KPAD] below 100: select_2obj_continue 89.391304
|
||||
[libs/RVL_SDK/src/kpad/KPAD] below 100: select_1obj_first 90.83486
|
||||
[libs/RVL_SDK/src/kpad/KPAD] below 100: select_1obj_continue 80.18279
|
||||
[libs/RVL_SDK/src/kpad/KPAD] below 100: calc_dpd_variable 80.024
|
||||
[libs/RVL_SDK/src/kpad/KPAD] below 100: read_kpad_dpd 73.54317
|
||||
[libs/RVL_SDK/src/kpad/KPAD] below 100: read_kpad_stick 97.24683
|
||||
[libs/RVL_SDK/src/kpad/KPAD] below 100: KPADRead 83.57952
|
||||
[libs/RVL_SDK/src/kpad/KPAD] below 100: KPADInit 72.46487
|
||||
[libs/RVL_SDK/src/kpad/KPAD] below 100: KPADiSamplingCallback 89.3022
|
||||
[libs/RVL_SDK/src/kpad/KPAD] baseline: code 2020/13056 data 7712 functions 13 fuzzy 82.4372
|
||||
[src/BS2/BS2Update] pool: IDENTICAL
|
||||
[src/BS2/BS2Update] objdiff: code 112/4052 data None/10488 functions 8/10 fuzzy 84.6150 linked code 0
|
||||
[src/BS2/BS2Update] instruction-exact functions: 8/10
|
||||
[src/BS2/BS2Update] section .bss size 9056 match 72.9682
|
||||
[src/BS2/BS2Update] section .data size 1328 match None
|
||||
[src/BS2/BS2Update] section .sbss size 80 match 78.947365
|
||||
[src/BS2/BS2Update] section .sdata size 24 match 94.117645
|
||||
[src/BS2/BS2Update] section .text size 4052 match 84.615005
|
||||
[src/BS2/BS2Update] below 100: BS2UpdateInit 79.875
|
||||
[src/BS2/BS2Update] below 100: UpdateThread 84.516975
|
||||
[src/BS2/BS2Update] baseline: code 112/4052 data None functions 8 fuzzy 84.1994
|
||||
[libs/RVL_SDK/src/wad/wad] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/wad/wad] objdiff: code 7080/24500 data 64/528 functions 23/40 fuzzy 87.0056 linked code 0
|
||||
[libs/RVL_SDK/src/wad/wad] instruction-exact functions: 23/40
|
||||
[libs/RVL_SDK/src/wad/wad] section .data size 464 match 99.34924
|
||||
[libs/RVL_SDK/src/wad/wad] section .sdata size 64 match 100.0
|
||||
[libs/RVL_SDK/src/wad/wad] section .text size 24500 match 87.005554
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportGetBlocks 83.956375
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815BFFA8 97.17742
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportEx 72.73997
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815C1288 96.39344
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADBackupEx 68.567795
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADCheckContents 96.70588
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADOpenStream 98.891624
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADUnpackBackup 97.34513
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADGetCidxCount 95.05
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADGetCidx 99.14286
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADBackupGetFiles 96.223976
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADBackupGetSize 88.548386
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADRandPad 93.78022
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WAD_815C43E0 97.17742
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: _WADHash 96.08247
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADVerify 89.21769
|
||||
[libs/RVL_SDK/src/wad/wad] below 100: WADImportDVDExForBS 89.79088
|
||||
[libs/RVL_SDK/src/wad/wad] baseline: code 7080/24500 data 64 functions 23 fuzzy 85.7037
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 84.60095 -> 84.61377
|
||||
global fuzzy_match_percent: 97.98296 -> 98.00660
|
||||
global complete_code_percent: 58.20100 -> 58.20100
|
||||
global matched_data_percent: 90.32545 -> 90.32545
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user