Welcome to mirror list, hosted at ThFree Co, Russian Federation.

type-test.c « tests « libcelt - gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1c3357e993808abb7d6d4702aec3bcfd09e0a097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "opus_types.h"
#include <stdio.h>

int main(void)
{
   opus_int16 i = 1;
   i <<= 14;
   if (i>>14 != 1)
   {
      fprintf(stderr, "opus_int16 isn't 16 bits\n");
      return 1;
   }
   if (sizeof(opus_int16)*2 != sizeof(opus_int32))
   {
      fprintf(stderr, "16*2 != 32\n");
      return 1;
   }
   return 0;
}