These numbers are larger than 32bit, mark them as ULL to avoid compile
failures on 32bit systems.
}
devc->cur_samplerate = samplerate;
- devc->period_ps = 1000000000000 / samplerate;
+ devc->period_ps = 1000000000000ULL / samplerate;
devc->samples_per_event = 16 / devc->num_probes;
devc->state.state = SIGMA_IDLE;
while (*s == ' ')
s++;
if (!strcmp(s, "fs"))
- r->q = 1000000000000000L;
+ r->q = 1000000000000000ULL;
else if (!strcmp(s, "ps"))
- r->q = 1000000000000L;
+ r->q = 1000000000000ULL;
else if (!strcmp(s, "ns"))
- r->q = 1000000000L;
+ r->q = 1000000000ULL;
else if (!strcmp(s, "us"))
r->q = 1000000;
else if (!strcmp(s, "ms"))