MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / detzcode

Function detzcode

src/date.cpp:481–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479 }
480
481 static int_fast32_t detzcode(const char *const codep) {
482 int_fast32_t result = (codep[0] & 0x80) ? -1 : 0;
483 for (int i = 0; i < 4; ++i)
484 result = (result << 8) | (codep[i] & 0xff);
485 return result;
486 }
487
488 static int_fast64_t detzcode64(const char *const codep) {
489 int_fast64_t result = (codep[0] & 0x80) ? -1 : 0;

Callers 1

tzloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected