|
On a 64-bit machine is the size of an int in Java 32 bits or 64 bits?
Started by jon077 on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
See the....
It's one of the Java language features that the size of the integer does not vary with the underlying computer .
So, the same program will require more memory on a 64 bit JVM32 bits.
Of object references, from 32 bits to 64.
|
|
I'm trying to code a simple, sufficiently accurate filter for validating a piece of hardware in an RTL simulation. We're simulating the randomness inherent in a chip's flip-flops, by randomly initializing all the flip-flops in the design to either 0 or...
Started by Ross Rogers on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Be as simple as multiplying the probabilites;
For 1 bit it is 50%
For 2 bits it is 50%^2 = 25%
For 3 bits that accepts bit patterns of the correct type, and then simulate the pattern for each number of bits is about....
|
|
In gcc, i want to do a 128 bits xor with 2 C variables, via asm code: how?
asm ( "movdqa %1, %%xmm1;" "movdqa %0, %%xmm0;" "pxor %%xmm1,%%xmm0;" "movdqa %%xmm0, %0;" :"=x"(buff) /* output operand */ :"x"(bu), "x"(buff) :"%xmm0","%xmm1" );
but i have a...
Started by roberto15 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Each of those declares a properly-aligned 128 bit value */ print128(a); print128(b); print128(x); }
compile with (gcc, ubuntu 32 bit)
gcc -msse2 -o app 00ff00ff00ff00ff
In the code above....
Alignment by using the __m128 or __m128i data types.
|
Ask your Facebook Friends
|
I am beginning to port a program which is written in C and have several pieces of code written in assembly with instructions for a 32 bit machine - like ljmp - to a 64 bits machine.
Is there a place/document that have the instructions, in assembly, for...
Started by didi on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You haven't offered any background, or even the ....
Then download the instruction set reference here: http://developer.intel.com/products/processor/manuals/index.htm.
Read this first: http://x86asm.net/articles/x86-64-tour-of-intel-manuals/index.html.
|
|
I have a 16 bit value with its bits "interlaced".
I want to get an array of 8 items (values 0 to 3) that stores the bits in this order:
item 0: bits 7 and 15 item 1: bits 6 and 14 item 2: bits 5 and 13 ... item 7: bits 0 and 8 This is a trivial solution...
Started by Pedro Ladaria on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
It was originally 0xef , which....
The addition of slide moves the relevant bits adjacent to each other to treat the low and high order bits symmetrically, with interleaved 0's, shift them off from each other.
Is in reusing the shifted value.
|
|
8 bits representing the number 7 look like this:
111
Three bits are set. What is the best algorithm to determine the number of set bits in a 32-bit integer?
Started by Matt Howells on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
With 128 bit SIMD-in instruction to....
) { // check lower bit count++; } value /= 2; // shift bits, removing lower bit } return count with some small tweaks would come out about even, but count twice as many bits again.
|
|
On Tue, 13 Nov 2007 19:17:35 +0000, Pantor <pantor@painter-decorator.eu> wrote:
Hi,
anybody can tell me how to define is my system 64 bits or 32 bits?
Thanks in advance.
Andrius
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian...
Started by Pantor on
, 13 posts
by 7 people.
Answer Snippets (Read the full thread at omgili):
:)
Andrius
--
To UNSUBSCRIBE, email tell me how to define is my system... .
Get a live 64 CD and try to boot on your system, if it could not then
it is 32 bits.
Me how to define is my system 64 bits or 32 bits?
Thanks in advance.
|
|
Hello quick question regarding bit shifting
I have a value in HEX = new byte[] { 0x56, 0xAF };
which is 0101 0110 1010 1111
i want to the first n bits, example 12
then shift off the remaining 4 (16-12) to get 0000 0101 0110 1010 (1386 dec)
i cant wrap...
Started by Bobby on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Var HEX = new byte[] {0x56, 0xAF}; var bits = new BitArray(HEX); int bitstoShiftRight = 4; for (int i = 0; i < bits.Length; i++) { ....
Http...
You can use a BitArray and then easily copy each bit to the right, starting from the right.
|
|
I want to count the number of set bits in a uint in Specman:
var x: uint; gen x; var x_set_bits: uint; x_set_bits = ?;
What's the best way to do this?
Started by Nathan Fellman on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In this case the condition is that the element....
Count acts on the list and counts all the elements for which the condition holds .
One way I've seen is:
x_set_bits = pack(NULL, x).count(it == 1);
pack(NULL, x) converts x to a list of bits.
|
|
I used to think that each memory location contains 8, 16, 32 or 64 bits. So 0101 would be stored in an 8 bit machine as 101 (sign extended if it was negative). This was all fine and dandy until I wrote a program in java out of curiosity to find out some...
Started by Cobalt on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
It's just that Integer.toBinaryString....
The space has 8 bits too.
Then wouldn't storing a small number in a large bit space waste a lot of bits?
Mathematically speaking, and I'm not certain what memory architecture, if any, it uses.
|