Digi XBee(R) ANSI C Host Library
Macros | Functions
#include <stdio.h>
#include <string.h>
#include "xbee/platform.h"

Macros

#define jslo16(a)   ((a) & 0x0000FFFF)
 
#define jshi16(a)   ((uint32_t)(a) >> 16)
 

Functions

void jsll_mul (JSUint64 *rp, JSUint64 a, JSUint64 b)
 
void jsll_mul32 (JSUint64 *rp, JSUint32 a, JSUint32 b)
 
void jsll_udivmod (JSUint64 *qp, JSUint64 *rp, JSUint64 a, JSUint64 b)
 
void jsll_div (JSUint64 *r, const JSUint64 *a, const JSUint64 *b)
 
void jsll_mod (JSUint64 *r, const JSUint64 *a, const JSUint64 *b)
 
void jsll_shl (JSUint64 *r, JSUint64 a, uint_fast8_t b)
 
void jsll_shr (JSInt64 *r, JSInt64 a, uint_fast8_t b)
 
void jsll_ushr (JSInt64 *r, JSInt64 a, uint_fast8_t b)
 
int jsll_decstr (char *buffer, const JSInt64 *v)
 
int jsll_udecstr (char *buffer, const JSUint64 *v)