Skip to content

Commit

Permalink
chanage api crc16() -> rtk_crc16()
Browse files Browse the repository at this point in the history
chanage api crc32() -> rtk_crc32()
chanage api crc24q() -> rtk_crc24q()
  • Loading branch information
tomojitakasu committed Jan 29, 2018
1 parent 451e848 commit 8f8712c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/rtkcmn.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*------------------------------------------------------------------------------
* rtkcmn.c : rtklib common functions
*
* Copyright (C) 2007-2015 by T.TAKASU, All rights reserved.
* Copyright (C) 2007-2018 by T.TAKASU, All rights reserved.
*
* options : -DLAPACK use LAPACK/BLAS
* -DMKL use Intel MKL
Expand Down Expand Up @@ -106,6 +106,9 @@
* add leap second insertion before 2015/07/01 00:00
* add api read_leaps()
* 2017/01/03 1.31 add leap second before 2017/1/1 00:00:00
* 2018/01/29 1.32 chanage api crc16() -> rtk_crc16()
* chanage api crc32() -> rtk_crc32()
* chanage api crc24q() -> rtk_crc24q()
*-----------------------------------------------------------------------------*/
#define _POSIX_C_SOURCE 199309
#include <stdarg.h>
Expand Down Expand Up @@ -646,7 +649,7 @@ extern void setbits(unsigned char *buff, int pos, int len, int data)
* return : crc-32 parity
* notes : see NovAtel OEMV firmware manual 1.7 32-bit CRC
*-----------------------------------------------------------------------------*/
extern unsigned int crc32(const unsigned char *buff, int len)
extern unsigned int rtk_crc32(const unsigned char *buff, int len)
{
unsigned int crc=0;
int i,j;
Expand All @@ -668,7 +671,7 @@ extern unsigned int crc32(const unsigned char *buff, int len)
* return : crc-24Q parity
* notes : see reference [2] A.4.3.3 Parity
*-----------------------------------------------------------------------------*/
extern unsigned int crc24q(const unsigned char *buff, int len)
extern unsigned int rtk_crc24q(const unsigned char *buff, int len)
{
unsigned int crc=0;
int i;
Expand All @@ -685,7 +688,7 @@ extern unsigned int crc24q(const unsigned char *buff, int len)
* return : crc-16 parity
* notes : see reference [10] A.3.
*-----------------------------------------------------------------------------*/
extern unsigned short crc16(const unsigned char *buff, int len)
extern unsigned short rtk_crc16(const unsigned char *buff, int len)
{
unsigned short crc=0;
int i;
Expand Down Expand Up @@ -2338,7 +2341,7 @@ extern int geterp(const erp_t *erp, gtime_t time, double *erpv)
{
const double ep[]={2000,1,1,12,0,0};
double mjd,day,a;
int i=0,j,k;
int i,j,k;

trace(4,"geterp:\n");

Expand Down

0 comments on commit 8f8712c

Please sign in to comment.