text
stringlengths
0
2.2M
bool ofApp::backPressed(){
return false;
}
//--------------------------------------------------------------
void ofApp::okPressed(){
}
//--------------------------------------------------------------
void ofApp::cancelPressed(){
}
#include "PrecompiledHeaders.h"
// //////////////////////////////////////////////////////////
// Crc32.cpp
// Copyright (c) 2011-2015 Stephan Brumme. All rights reserved.
// Slicing-by-16 contributed by Bulat Ziganshin
// see http://create.stephan-brumme.com/disclaimer.html
//
// g++ -o Crc32 Crc32.cpp -O3 -lrt -march=native -mtune=native
// if running on an embedded system, you might consider shrinking the
// big Crc32Lookup table:
// - crc32_bitwise doesn't need it at all
// - crc32_halfbyte has its own small lookup table
// - crc32_1byte needs only Crc32Lookup[0]
// - crc32_4bytes needs only Crc32Lookup[0..3]
// - crc32_8bytes needs only Crc32Lookup[0..7]
// - crc32_4x8bytes needs only Crc32Lookup[0..7]
// - crc32_16bytes needs all of Crc32Lookup
#if 0
#define USE 1
#include <stdlib.h>
// define endianess and some integer data types
#ifdef _MSC_VER
typedef unsigned __int8 uint8_t;
typedef unsigned __int32 uint32_t;
typedef signed __int32 int32_t;
#define __LITTLE_ENDIAN 1234
#define __BIG_ENDIAN 4321
#define __BYTE_ORDER __LITTLE_ENDIAN
#include <xmmintrin.h>
#define PREFETCH(location) _mm_prefetch(location, _MM_HINT_T0)
#else
// uint8_t, uint32_t, in32_t
#include <stdint.h>
// defines __BYTE_ORDER as __LITTLE_ENDIAN or __BIG_ENDIAN
#define __LITTLE_ENDIAN 1234
#define __BIG_ENDIAN 4321
#define __BYTE_ORDER __LITTLE_ENDIAN
#ifdef __GNUC__
#define PREFETCH(location) __builtin_prefetch(location)
#else
#define PREFETCH(location) ;
#endif
#endif
/// swap endianess
// Unused function warning
/*
static inline uint32_t swap(uint32_t x)
{
#if defined(__GNUC__) || defined(__clang__)
return __builtin_bswap32(x);
#else
return (x >> 24) |
((x >> 8) & 0x0000FF00) |
((x << 8) & 0x00FF0000) |
(x << 24);
#endif
}
*/
#if USE > 2
/// zlib's CRC32 polynomial
const uint32_t Polynomial = 0xEDB88320
/// Slicing-By-16
const size_t MaxSlice = 16;
/// forward declaration, table is at the end of this file
extern const uint32_t Crc32Lookup[MaxSlice][256]; // extern is needed to keep compiler happey
#endif
/*
/// compute CRC32 (bitwise algorithm)
extern "C" uint32_t crc32_bitwise(const void* data, size_t length, uint32_t previousCrc32 = 0)
{