Questions tagged [32-bit]

In computer architecture, 32-bit integers, memory addresses, or other data units are those that are at most 32 bits (4 octets) wide. Also, 32-bit CPU and ALU architectures are those that are based on registers, address buses, or data buses of that size. 32-bit is also a term given to a generation of computers in which 32-bit processors are the norm.

The range of integer values that can be stored in 32 bits is 0 through 4,294,967,295. Hence, a processor with 32-bit memory addresses can directly access 4 GiB of byte-addressable memory.

The external address and data buses are often wider than 32 bits but both of these are stored and manipulated internally in the processor as 32-bit quantities. For example, the Pentium Pro processor is a 32-bit machine, but the external address bus is 36 bits wide, and the external data bus is 64 bits wide.

Source: Wikipedia (32-bit)

1381 questions
21
votes
7 answers

fast way to check if an array of chars is zero

I have an array of bytes, in memory. What's the fastest way to see if all the bytes in the array are zero?
Claudiu
  • 224,032
  • 165
  • 485
  • 680
21
votes
9 answers

Why is abs(0x80000000) == 0x80000000?

I just started reading Hacker's Delight and it defines abs(-231) as -231. Why is that? I tried printf("%x", abs(0x80000000)) on a few different systems and I get back 0x80000000 on all of them.
sigjuice
  • 28,661
  • 12
  • 68
  • 93
21
votes
3 answers

How to count leading zeros in a 32 bit unsigned integer

Could anyone tell me please what is an efficient algorithm to count the number of leading zeroes in a 32-bit unsigned integer in C programming?
rzmuc
  • 243
  • 1
  • 5
  • 10
21
votes
2 answers

What is the minimum value of a 32-bit signed integer?

What is the minimum value of a 32-bit signed integer, happens to be the security "challenge" question in order to make an account at [this website](edit: link is now malware) (don't judge I'm just curious and bored). I assumed they were talking…
java
  • 1,319
  • 6
  • 15
  • 30
21
votes
4 answers

Can 32-bit application and 64-bit library work together?

Can 64-bit library work in a 32-bit application? For example, my application GUI uses 32-bit Qt. And my business core is a 64-bit library. The OS is 64-bit. Can they work together and how?
user1899020
  • 13,167
  • 21
  • 79
  • 154
20
votes
6 answers

Difference between 32 and 64 bit Eclipse

I have a quick question about the difference between the 32 and 64 bit version of Eclipse. I need to know what the difference is between the actual downloads, not the differences in performance or anything like that. My situation is this: I have set…
codewario
  • 19,553
  • 20
  • 90
  • 159
20
votes
5 answers

16 bit Int vs 32 bit Int vs 64 bit Int

I've been wondering this for a long time since I've never had "formal" education on computer science (I'm in highschool), so please excuse my ignorance on the subject. On a platform that supports the three types of integers listed in the title,…
arturovm
  • 1,215
  • 2
  • 12
  • 28
20
votes
3 answers

Linking 32-bit library to 64-bit program

I have a 32-bit .so binary-only library and I have to generate 64-bit program that uses it. Is there a way to wrap or convert it, so it can be used with 64-bit program?
Krzysiek Goj
  • 1,598
  • 4
  • 16
  • 18
20
votes
2 answers

How do I force a 32-bit build of Boost with GCC?

How do I force a 32-bit build of Boost with GCC? Currently attempting by putting this line in my user-config.jam, but it does not work: using gcc : 4.1.2 : g++ : compileflags="-m32" ;
Crazy Chenz
  • 12,650
  • 12
  • 50
  • 62
17
votes
5 answers

Memory alignment on a 32-bit Intel processor

Intel's 32-bit processors such as Pentium have 64-bit wide data bus and therefore fetch 8 bytes per access. Based on this, I'm assuming that the physical addresses that these processors emit on the address bus are always multiples of 8. Firstly, is…
G S
  • 35,511
  • 22
  • 84
  • 118
16
votes
0 answers

On 32-bit machines, atan2 is nondeterministic when I don't store its result in a variable. Why?

Consider this piece of C code: #include #include #include bool foo(int a, int b, int c, int d) { double P = atan2(a, b); double Q = atan2(c, d); return P < Q; } bool bar(int a, int b, int c, int d) { …
Maya
  • 1,490
  • 12
  • 24
16
votes
8 answers

Does Java 64 bit perform better than the 32-bit version?

I noticed Sun is providing a 64-bit version of Java. Does it perform better than the 32-bit version?
Joshua
  • 26,234
  • 22
  • 77
  • 106
16
votes
2 answers

Is it possible to upgrade a portable Python 32 bit install to a 64 bit install?

I've been working on a single program for a few months now, which now requires some additional functionality. Originally, a 32 bit install was just fine, but since I'm now working with massive matrices in scipy, I simply do not have the required RAM…
TerraCode
  • 203
  • 2
  • 3
  • 8
16
votes
3 answers

Build 32-bit with 64-bit llvm-gcc

I have a 64-bit version of llvm-gcc, but I want to be able to build both 32-bit and 64-bit binaries. Is there a flag for this? I tried passing -m32 (which works on the regular gcc), but I get an error message like this: [jay@andesite]$ llvm-gcc -m32…
Jay Conrod
  • 28,943
  • 19
  • 98
  • 110
15
votes
3 answers

What is the difference between Microsoft.NET\Framework and Microsoft.NET\Framework64?

I would like to know the difference between .NET modes x86 and x64. What is the difference for both modes? Can I compile my libraries for example with .NET x64 and .NET x86? Would it be any difference for me if I choose x64 instead of x86? What is…
truthseeker
  • 2,214
  • 6
  • 30
  • 53