FreeCalypso > hg > gsm-codec-lib
view libgsmefr/memops.h @ 586:b21ea4ab586d
libgsmhr1: update for TW-TS-002 version 1.2.0
The component of libgsmhr1 being changed is RTP input functions;
the change is accepting FT=1 (invalid SID) frames both with and
without payload data bits.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 10 Mar 2025 02:03:31 +0000 |
parents | d285877fc4cc |
children |
line wrap: on
line source
/* * The original code from ETSI uses its own Copy() and Set_zero() * functions, operating on Word16 elements. Here we implement them * as static inline functions wrapping around memcpy and memset. */ #include <string.h> static inline void Copy ( const Word16 x[], /* (i) : input vector */ Word16 y[], /* (o) : output vector */ Word16 L /* (i) : vector length */ ) { memcpy(y, x, L * 2); } static inline void Set_zero ( Word16 x[], /* (o) : vector to clear */ Word16 L /* (i) : length of vector */ ) { memset(x, 0, L * 2); }