Reply to thread
GBAtemp.net - The Independent Video Game Community
Search
Search titles only
By:
Search titles only
By:
Reply to thread
GBAtemp.net - The Independent Video Game Community
Home
Log in
Terms & Rules
Donate
Forums
New posts
Search forums
Groups
Public Events
New
New posts
New resources
New blog entries
New profile posts
New blog entry comments
New threadmarks
Latest activity
Cheats
Cheat Codes Add and Request group
The Legend of Zelda: Tears of the Kingdom cheat codes
Pokémon Legends: Arceus cheat codes
Xenoblade Chronicles 3 cheat codes
Fire Emblem Engage cheat codes
Request a cheat...
Tutorials
Nintendo Switch tutorials
Nintendo 3DS tutorials
Nintendo Wii U tutorials
Reviews
Overview
Official reviews
User reviews
Downloads
Latest reviews
Search resources
Blogs
New entries
New comments
Blog list
Search blogs
Chat
Top chatters
Search
Search titles only
By:
Search titles only
By:
Log in
Register
New posts
Search forums
Log in
Register
Home
Forums
PC, Console & Handheld Discussions
Nintendo DS
Petit Computer Thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="DiscostewSM" data-source="post: 4359443" data-attributes="member: 157500"><p>Scanned a few Japanese sites involved with Petitcom, and I found out something rather interesting</p><p></p><p>[code]FLOOR(I/60)[/code]</p><p>can be reduced to</p><p>[code]0OR I/60[/code]</p><p></p><p>This is just a guess, but since binary operators can't work with floats/fixed-point, the value(s) are automatically converted to integers, and since the result is always the one that isn't 0 (or is if both are 0), it effectively rounds down the values.</p><p></p><p>EDIT:</p><p></p><p>This got me into a realization, that anything that does require an integer <strong>will</strong> will truncate the values to become integers (rounded down) for the operation. This includes not just binary operators, but also arrays. This also made me realize that everything will always be a fixed-point value when stored in a variable, meaning that even if the value is aligned as an integer, it isn't, and certain operations like even 1*2 which are shown as integers will be multiplied as fixed point values, which first have to be converted to that. That creates a decent amount of overhead, and is probably the main culprit in computation slowdown.</p></blockquote><p></p>
[QUOTE="DiscostewSM, post: 4359443, member: 157500"] Scanned a few Japanese sites involved with Petitcom, and I found out something rather interesting [code]FLOOR(I/60)[/code] can be reduced to [code]0OR I/60[/code] This is just a guess, but since binary operators can't work with floats/fixed-point, the value(s) are automatically converted to integers, and since the result is always the one that isn't 0 (or is if both are 0), it effectively rounds down the values. EDIT: This got me into a realization, that anything that does require an integer [b]will[/b] will truncate the values to become integers (rounded down) for the operation. This includes not just binary operators, but also arrays. This also made me realize that everything will always be a fixed-point value when stored in a variable, meaning that even if the value is aligned as an integer, it isn't, and certain operations like even 1*2 which are shown as integers will be multiplied as fixed point values, which first have to be converted to that. That creates a decent amount of overhead, and is probably the main culprit in computation slowdown. [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
PC, Console & Handheld Discussions
Nintendo DS
Petit Computer Thread
General chit-chat
Help
Users
Settings
Notifications
Miscellaneous
Inverse message direction
Display editor on top
Enable maximized mode
Display images as links
Hide bot messages
Hide statuses
Hide chatter list
Show messages from ignored users
Temporarily disable chat
Receive mention alerts
Sound notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Desktop notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Options
Options
View top chatters
Xdqwerty
Loading…
what are you looking at?
AncientBoi
Loading…
@
BakerMan
:
already did
+2
46 minutes ago
@
BakerMan
:
know what? fuck you guys, i've decided to curse you guys with some knowledge: i'm too sexy by right said fred, 7 years by lukas graham, what i've done by linkin park, and du hast by rammstein are all 120 bpm
+1
41 minutes ago
tempBOT:
DragonMals
has joined the room.
38 minutes ago
@
AncientBoi
:
@BakerMan
https://www.youtube.com/watch?v=P5mtclwloEQ
+1
31 minutes ago
@
AncientBoi
:
+1
30 minutes ago
@
SylverReZ
:
Hello. What's going on here?
17 minutes ago
@
AncientBoi
:
irdk
+1
14 minutes ago
@
SylverReZ
:
@AncientBoi
, Ancient still in his gay ol' habitat it seems.
+1
12 minutes ago
@
AncientBoi
:
uh.. duh
+1
11 minutes ago
@
SylverReZ
:
8 minutes ago
@
SylverReZ
:
https://www.youtube.com/watch?v=Tr0BoXe3hH0
+1
7 minutes ago
@
Xdqwerty
:
@SylverReZ
hi, I feel better today
+2
6 minutes ago
@
SylverReZ
:
@Xdqwerty
, Good to know.
+2
5 minutes ago
@
Xdqwerty
:
also
@SylverReZ
I might be pansexual. i mean, if liking femboys isnt a hint that idk what it is
5 minutes ago
@
AncientBoi
:
He's a Dem Nutz
on the YT vid
+1
5 minutes ago
@
Xdqwerty
:
@AncientBoi
, wut
+1
4 minutes ago
@
SylverReZ
:
@Xdqwerty
, I don't see a problem with that. If you like women and men, that's cool.
+2
4 minutes ago
@
SylverReZ
:
@AncientBoi
, There's one clip where he kicks a pigeon.
+1
3 minutes ago
@
Xdqwerty
:
@SylverReZ
, although I still have a preference for women
+2
3 minutes ago
@
AncientBoi
:
Meant for Syl bout the YT
+2
3 minutes ago
@
SylverReZ
:
Mc Devvo is actually getting a revival on TV.
+1
2 minutes ago
@
SylverReZ
:
So this is gonna be interesting.
+1
2 minutes ago
@
SylverReZ
:
https://www.youtube.com/watch?v=1P_8G3CYEHI
Lol this is the one
A moment ago
@
Xdqwerty
:
@SylverReZ
, whats mc devvo?
A moment ago
@
Xdqwerty
:
also brb gonna restart my pc
A moment ago
Submit
@
Xdqwerty
:
also brb gonna restart my pc
A moment ago
Chat
2