| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-std=c99 -O3 -fPIC" } */ |
| 3 |
long ZDICT_fillNoise_p, ZDICT_trainFromBuffer_legacy_result; |
| 4 |
unsigned ZDICT_fillNoise_acc; |
| 5 |
int ZDICT_totalSampleSize_nbFiles; |
| 6 |
static void ZDICT_fillNoise(void *buffer, long length) { |
| 7 |
unsigned prime2 = 9; |
| 8 |
for (ZDICT_fillNoise_p = 0; ZDICT_fillNoise_p < length; ZDICT_fillNoise_p++) |
| 9 |
ZDICT_fillNoise_acc *= ((char *)buffer)[ZDICT_fillNoise_p] = prime2; |
| 10 |
} |
| 11 |
long ZDICT_trainFromBuffer_legacy() { |
| 12 |
void *newBuff; |
| 13 |
long total = 0; |
| 14 |
for (; ZDICT_totalSampleSize_nbFiles;) |
| 15 |
total += 0; |
| 16 |
long sBuffSize = total; |
| 17 |
newBuff = 0; |
| 18 |
ZDICT_fillNoise(newBuff + sBuffSize, 32); |
| 19 |
return ZDICT_trainFromBuffer_legacy_result; |
| 20 |
} |