[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.10369481 [View]
File: 305 KB, 1180x1008, k.jpg [View same] [iqdb] [saucenao] [google]
10369481

>>10369197
Ok, so I asked the code chimps over on /g/ and apparently their IQ wasn't high enough for this:

is it possible to generate 0xFFFFFFFF (32-bit word with 1s at odd positions) using only integer constants 0 through 255 (0xFF) and a limited number of the operations:
! ~ & ^ | + << >>
(where the right shift is arithmetic)

Navigation
View posts[+24][+48][+96]