Timeline for Unwise bit operations
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 16, 2015 at 3:54 | history | edited | wolfhammer | CC BY-SA 3.0 | the new function didn't work properly but the adjustments from comments kept the byte size the same, changed to working function |
| Apr 4, 2015 at 20:50 | comment | added | kennytm | ① You could use 4*(1<<30) for 4294967296 and -1>>>0 for 4294967295. ② is the var truly necessary here? ③ you could write (n,m)=>B(n,m,'a') instead of (n,m)=>{return B(n,m,'a')} | |
| Apr 4, 2015 at 0:00 | history | edited | wolfhammer | CC BY-SA 3.0 | cut more off the char count by reusing logic |
| Apr 3, 2015 at 23:24 | history | edited | wolfhammer | CC BY-SA 3.0 | forgot to add y declaration |
| Apr 3, 2015 at 21:07 | comment | added | Alex A. | You can lose the space after for and replace function B(n,m,t) with B=(n,m,t)=>. Likewise for the other functions. | |
| Apr 3, 2015 at 20:28 | comment | added | wolfhammer | Thanks @AlexA. I've added the bytes and golfed it some more. | |
| Apr 3, 2015 at 20:21 | history | edited | wolfhammer | CC BY-SA 3.0 | added not, folloed the rules. changed javascript not to unsigned value |
| Apr 3, 2015 at 0:46 | comment | added | Digital Trauma | You need to provide four public functions - one each for AND, OR. NOT and XOR. (You may also have common/helper private methods/functions that are called by all four public functions). Also, you are missing the NOT - probably the easiest of all of these to do | |
| Apr 3, 2015 at 0:41 | history | answered | wolfhammer | CC BY-SA 3.0 |