GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
Macros
swift_common.h File Reference

Common definitions used throughout the libswiftnav library. More...

#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Macros

#define ABS(x)   ((x) < 0 ? -(x) : (x))
 
#define MIN(x, y)   (((x) < (y)) ? (x) : (y))
 
#define MAX(x, y)   (((x) > (y)) ? (x) : (y))
 
#define CLAMP_DIFF(a, b)   (MAX((a), (b)) - (b))
 

Detailed Description

Common definitions used throughout the libswiftnav library.

Author
Henry Hallam henry.nosp@m.@swi.nosp@m.ft-na.nosp@m.v.co.nosp@m.m Fergus Noble fergu.nosp@m.s@sw.nosp@m.ift-n.nosp@m.av.c.nosp@m.om
GNSS-SDR is a Global Navigation Satellite System software-defined receiver. This file is part of GNSS-SDR.

This file was originally borrowed from libswiftnav https://github.com/swift-nav/libswiftnav, a portable C library implementing GNSS related functions and algorithms, and then modified by J. Arribas and C. Fernandez

Copyright (C) 2012 Swift Navigation Inc. Contact: Henry Hallam henry.nosp@m.@swi.nosp@m.ft-na.nosp@m.v.co.nosp@m.m Fergus Noble fergu.nosp@m.s@sw.nosp@m.ift-n.nosp@m.av.c.nosp@m.om

SPDX-License-Identifier: LGPL-3.0-only

Definition in file swift_common.h.