opus/tests/type-test.c
Jean-Marc Valin 30f7f813ea Changed all the celt*int*_t types to remove the _t suffix, which is reserved
by POSIX. The other _t types that are not part of the API are still there
for now. Also, got rid of all that was left of the 64-bit types.
2009-10-17 14:35:13 -04:00

23 lines
373 B
C

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "celt_types.h"
#include <stdio.h>
int main(void)
{
celt_int16 i = 1;
i <<= 14;
if (i>>14 != 1)
{
fprintf(stderr, "celt_int16 isn't 16 bits\n");
return 1;
}
if (sizeof(celt_int16)*2 != sizeof(celt_int32))
{
fprintf(stderr, "16*2 != 32\n");
return 1;
}
return 0;
}