mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 22:35:41 +00:00
use bitman.hh
This commit is contained in:
parent
aa28a2e58d
commit
361779211c
2 changed files with 4 additions and 4 deletions
|
|
@ -9,6 +9,7 @@ Copyright 2021 Ahmet Inan <inan@aicodix.de>
|
|||
#include <cmath>
|
||||
#include "complex.hh"
|
||||
#include "utils.hh"
|
||||
#include "bitman.hh"
|
||||
#include "decibel.hh"
|
||||
#include "fft.hh"
|
||||
#include "wav.hh"
|
||||
|
|
@ -150,7 +151,7 @@ struct Encoder
|
|||
value tmp[Mod::BITS];
|
||||
for (int k = 0; k < Mod::BITS; ++k) {
|
||||
int l = Mod::BITS * (data_cols * j + i) + k;
|
||||
tmp[k] = 1 - 2 * ((inp[l/8] >> (l % 8)) & 1);
|
||||
tmp[k] = 1 - 2 * CODE::get_le_bit(inp, l);
|
||||
}
|
||||
fdom[bin(i+data_off)] *= Mod::map(tmp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue