Use compat/compat.h for endian-swapping functions in DSP code.
Might fix #128
This commit is contained in:
parent
56625449e8
commit
b3172181d5
|
|
@ -1,10 +1,11 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <endian.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdalign.h>
|
#include <stdalign.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
|
#include "compat/compat.h"
|
||||||
|
|
||||||
#include "dsp/helpers/tables.h"
|
#include "dsp/helpers/tables.h"
|
||||||
|
|
||||||
/* Convert UC8 values to unsigned 16-bit magnitudes */
|
/* Convert UC8 values to unsigned 16-bit magnitudes */
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <endian.h>
|
|
||||||
|
#include "compat/compat.h"
|
||||||
|
|
||||||
/* Convert (little-endian) SC16 values to unsigned 16-bit magnitudes */
|
/* Convert (little-endian) SC16 values to unsigned 16-bit magnitudes */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <endian.h>
|
|
||||||
|
#include "compat/compat.h"
|
||||||
|
|
||||||
#include "dsp/helpers/tables.h"
|
#include "dsp/helpers/tables.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <endian.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdalign.h>
|
#include <stdalign.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
|
#include "compat/compat.h"
|
||||||
|
|
||||||
#include "dsp/helpers/tables.h"
|
#include "dsp/helpers/tables.h"
|
||||||
|
|
||||||
/* Convert UC8 values to unsigned 16-bit magnitudes */
|
/* Convert UC8 values to unsigned 16-bit magnitudes */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue