Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged Bit

0 votes
638 views
1 answer
    I have a specific C bit-shifting scenario that I do not believe is covered on Stack Overflow yet. (If it is ... far from the entire question.) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
722 views
1 answer
    I am trying to understand how bit-wise operation in JavaScript work, more specifically how the 32 bit number ... converting between the two. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
558 views
1 answer
    We are writing an emulator where we need sign propagating right shift. The emulated system uses 2's complement ... word length is not defined. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
589 views
1 answer
    C++ has a set of functions, ffs(), ffsl(), and ffsll(), that return the least significant bit that ... know of something comparable in Python. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
725 views
1 answer
    Given a two floating point Numbers A and B, which are command line arguments, I must create methods to do bitwise ... 0's. Any idea how? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
567 views
1 answer
    At specified in JLS8 at §JLS-15.19 If the promoted type of the left-hand operand is int, then only the ... . An example is much appreciated. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
688 views
1 answer
    I have a struct of 2-bit bitfields like this: struct MyStruct { unsigned __int32 info0 : 2; unsigned __int32 ... address them as an array? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
561 views
1 answer
    Note my question is not regarding != but |= A usage example is here I assume that x |= y is the ... documentation and wanted to be sure Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
602 views
1 answer
    I just tried with this code: void swapBit(unsigned char* numbA, unsigned char* numbB, short bitPosition)// ... it :) Thanks in advance See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
601 views
1 answer
    I am redeveloping an application and have found this sql statement, what does the | character do in this part (au ... | 8) = au.ExNetBits See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
578 views
1 answer
    In Javascript when I do this var num = 1; ~ num == -2 why does ~num not equal 0 in binary 1 is ... something... can someone clear this up See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
642 views
1 answer
    I have problem with shift operator in Java.I have used following code and not unable to understand how this program ... Output: value of i=4 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
632 views
1 answer
    What is the best way to reverse the significant bits of an integer in python and then get the resulting integer ... solution to a logic puzzle. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
508 views
1 answer
    int a = 1 << 32; int b = 1 << 31 << 1; Why does a == 1? b is 0 as I expected. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
690 views
1 answer
    I'm trying to write kotlin code like: for (byte b : hash) stringBuilder.append(String.format("%02x", b&0xff)); but ... 's ok to use 1 and 0xff See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
610 views
1 answer
    I have a specific C bit-shifting scenario that I do not believe is covered on Stack Overflow yet. (If it is ... far from the entire question.) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
633 views
1 answer
    Can bitfields be used in union? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
627 views
1 answer
    I'm implementing global illumination in my game engine with "reflective shadow maps". RSM has i.a. color texture. To ... (packed << 6) * 64; See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
641 views
1 answer
    How to XOR two doubles in JAVA? simple '^' doesn't work for doubles... Would I have to convert a double to ... ? or is there any other way? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
576 views
1 answer
    I misunderstood a question that said to add two integers using bitwise operations. I did not use any control ... is cancannot be accomplished? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
917 views
1 answer
    I need to extract specific part (no of bits) of a short data type in C. For Example I have a binary of 52504 ... 16 bits and so on so forth. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
586 views
1 answer
    Although I grasp the concept of Bitwise Operators, I can't say that I have come across many use cases ... Bitwise Operators in web languages. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
724 views
1 answer
    There is a variable that holds some flags and I want to remove one of them. But I don't know how to ... the flag. my.emask |= ENABLE_SHOOT; See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
609 views
1 answer
    How would I obtain a specific subset, say bits 5-10, of an int in Java? Looking for a method where one can pass in ... think) int x = num >> 22; See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
598 views
1 answer
    I can think of three ways to do this off the top of my head. I'll outline them real quick. char mask = (1<<top) mask ... 1<<top)-1)^((1<<bot)-1) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
566 views
1 answer
    Say I was to write this: a=01100001 b=01100010 c=01100011 d=01100100 e=01100101 each letter resembles the given numbers now ... 0+0=1) ... e.g See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
876 views
1 answer
    Given a MATLAB uint32 to be interpreted as a bit string, what is an efficient and concise way of counting how ... bitand(w, uint32(65535)); See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
771 views
1 answer
    isPositive - return true if x > 0, otherwise false Example: isPositive(-1) Legal ops: ! ~ & ^ | + << >> ... (int32_t x) { return ???; } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...