// // cocos2d::ccNextPOT from 0x7f7198 to 0x7f71b2 (26 bytes) // // 11 xrefs: // > cocos2d::CCGridBase::initWithSize @ 0x7ce50c // > cocos2d::CCGridBase::initWithSize @ 0x7ce51e // > cocos2d::CCRenderTexture::initWithWidthAndHeight @ 0x7e0626 // > cocos2d::CCRenderTexture::initWithWidthAndHeight @ 0x7e062e // > cocos2d::CCTexture2D::generateMipmap @ 0x7ff52c // > cocos2d::CCTexture2D::generateMipmap @ 0x7ff536 // > cocos2d::CCTexture2D::setTexParameters @ 0x7ff560 // > cocos2d::CCTexture2D::setTexParameters @ 0x7ff574 // > cocos2d::CCTexturePVR::unpackPVRv2Data @ 0x803024 // > cocos2d::CCTexturePVR::unpackPVRv2Data @ 0x803034 // > cocos2d::CCTexturePVR::createGLTexture @ 0x80341e // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:01:10 +0000 // int __fastcall cocos2d::ccNextPOT(cocos2d *this, unsigned int a2) { unsigned int v2; // r0 unsigned int v3; // r0 v2 = ((unsigned int)this - 1) | (((unsigned int)this - 1) >> 1) | ((((unsigned int)this - 1) | (((unsigned int)this - 1) >> 1)) >> 2); v3 = v2 | (v2 >> 4) | ((v2 | (v2 >> 4)) >> 8); return (v3 | HIWORD(v3)) + 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source