Image-Scale
view release on metacpan or search on metacpan
include/common.h view on Meta::CPAN
int _check_buf(PerlIO *infile, Buffer *buf, int size, int min_size);
off_t _file_size(PerlIO *infile);
#ifdef AUDIO_SCAN_DEBUG
void hexdump(unsigned char *data, uint32_t size);
#endif
// Based on code from http://www.agner.org/optimize/
// Test code to count clock cycles of some portion of the code
// Wrap code to be tested with CLOCK_START(n) ... CLOCK_END(n)
// where n is a count of iterations to run. Code must support
// being run more than once.
#ifdef CLOCK_CYCLE_TESTS
// Read time stamp counter
// The return value is the internal clock count
int64_t ReadTSC() {
int res[2]; // store 64 bit result here
#if defined (_LP64) // 64 bit mode
__asm__ __volatile__ ( // serialize (save rbx)
( run in 0.655 second using v1.01-cache-2.11-cpan-71847e10f99 )