Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Conversion of numbers between positional numeral systems. Most common systems are decimal, binary, hexadecimal etc.
16
votes
Convert RGB integer value into RGB values
AVR ABI, 0
Quantities larger than the registers in the AVR's registers are represented with multiple registers. So, when passing in a 32-bit 'n' to a function, it is passed as 4x8-bit registers. Effe …
1
vote
Convert RGB integer value into RGB values
C/C++, 31
int r=n>>16,g=n>>8&255,b=n&255;
Convergently evolved to TheBestOne's answer, with the same size.
C/C++, 31
int c[]={n>>16,n>>8&255,n&255};
This one actually makes a list(array). I'm n …
0
votes
Convert RGB integer value into RGB values
ARM Assembly, 45
UXTB r1, r0, 16
UXTB r2, r0, 8
UXTB r3, r0, 0
Assuming N is passed in to R0, R1 contains Red, R2 contains Blue, and R3 contains Green. The result list is stored in r1,r2,r3.
Assemble …