Revision dfaf1f93 host/lib/usrp/dboard/db_dbsrx2.cpp
| b/host/lib/usrp/dboard/db_dbsrx2.cpp | ||
|---|---|---|
| 253 | 253 |
|
| 254 | 254 |
N = (target_freq*R*ext_div)/(ref_freq); //actual spec range is (19, 251) |
| 255 | 255 |
intdiv = int(std::floor(N)); // if (intdiv < 19 or intdiv > 251) continue; |
| 256 |
fracdiv = std::floor((N - intdiv)*double(1 << 20));
|
|
| 256 |
fracdiv = boost::math::iround((N - intdiv)*double(1 << 20));
|
|
| 257 | 257 |
|
| 258 | 258 |
//calculate the actual freq from the values above |
| 259 | 259 |
N = double(intdiv) + double(fracdiv)/double(1 << 20); |
Also available in: Unified diff