Search:

Type: Posts; User: Durafei

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,531

    Initilizing global array to all zeroes

    Hi, is it possible to inialize an array of integers(or chars or whatever) declared globally to all zeroes at compile time?

    Ie. Can I write something like this int a[100] = {0} and be sure that all...
  2. Replies
    2
    Views
    1,236

    Well, my performance grows by at least 20% if I...

    Well, my performance grows by at least 20% if I use ints instead of (long long)

    Right now I'm doing the following:
    long long result = (long long)a * (long long) b;
    if (result > MAX_INT) then...
  3. Replies
    2
    Views
    1,236

    Multiplication in GCC 2.953

    Hi, as far as I understand when I multiply two 32 bit integer numbers, the processor produces a 64 bit result, but then the compiler truncates the upper 32 bits to produce a 32 bit value. Is there a...
Results 1 to 3 of 3