repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
olegrok/tarantool
src/box/sql/tarantoolInt.h
<gh_stars>0 /* * Tarantool interface, external linkage. * * Note: functions with "sqlite3" prefix in their names become static in * amalgamated build with the help of a custom preprocessor tool, * that's why we are using a weird naming schema. */ #include <stdint.h> struct fkey_def; /* * Tarantool system spac...
olegrok/tarantool
src/box/replication.h
<gh_stars>0 #ifndef INCLUDES_BOX_REPLICATION_H #define INCLUDES_BOX_REPLICATION_H /* * Copyright 2010-2016, Tarantool AUTHORS, please see AUTHORS file. * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * 1. Red...
olegrok/tarantool
src/box/sql/main.c
<reponame>olegrok/tarantool<filename>src/box/sql/main.c /* * Copyright 2010-2017, Tarantool AUTHORS, please see AUTHORS file. * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * 1. Redistributions of source cod...
olegrok/tarantool
src/box/lua/info.c
/* * Copyright 2010-2016, Tarantool AUTHORS, please see AUTHORS file. * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * 1. Redistributions of source code must retain the above * copyright notice, this lis...
olegrok/tarantool
src/box/sql/trigger.c
<gh_stars>0 /* * Copyright 2010-2017, Tarantool AUTHORS, please see AUTHORS file. * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * 1. Redistributions of source code must retain the above * copyright noti...
olegrok/tarantool
src/box/sql/update.c
/* * Copyright 2010-2017, Tarantool AUTHORS, please see AUTHORS file. * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * 1. Redistributions of source code must retain the above * copyright notice, this lis...
olegrok/tarantool
src/box/sql/alter.c
/* * Copyright 2010-2017, Tarantool AUTHORS, please see AUTHORS file. * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * 1. Redistributions of source code must retain the above * copyright notice, this lis...
mattxlee/sqlitewrap_objc
src/SWObject.h
// // L4SqliteObject.h // life4words // // Created by <NAME> on 16/5/12. // Copyright © 2016年 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import <sqlite3.h> #define CC(__ret__) [self throwOrContinue:__ret__] @interface SWObject : NSObject /** * check sqlite3 result code, throw exceptio...
mattxlee/sqlitewrap_objc
src/SWDatabase.h
#import <Foundation/Foundation.h> #import <sqlite3.h> #import "SWObject.h" @class SWResult; @interface SWDatabase : SWObject /** * initialize database * * @param filename database filename * * @return database object instance */ - (instancetype)initWithFileName:(NSString *)filename; /** * run a sql sta...
mattxlee/sqlitewrap_objc
src/SWResult.h
<reponame>mattxlee/sqlitewrap_objc<gh_stars>0 // // L4SqliteResult.h // life4words // // Created by <NAME> on 16/5/12. // Copyright © 2016年 Cizhen Technology. All rights reserved. // #import <Foundation/Foundation.h> #import <sqlite3.h> #import "SWObject.h" @interface SWResult : SWObject /** * initialize res...
karakuri-products/gs2d-cpp
samples/ubuntu/LinuxSerial.h
<reponame>karakuri-products/gs2d-cpp /* * @file LinuxSerial.h * @author * @date 2019/12/26 * @brief Linux Serial Base Class */ #pragma once /* Includes ------------------------------------------------------------------*/ #include <dirent.h> #include <sys/types.h> #include <linux/serial.h> #include <fcntl.h> #i...
karakuri-products/gs2d-cpp
gs2d/gs2d_b3m.h
<filename>gs2d/gs2d_b3m.h /* * @file gs2d_b3m.h * @author * @date 2021/01/26 * @brief */ #pragma once /* Includes ------------------------------------------------------------------*/ #include "gs2d_driver.h" #include "gs2d_command.h" #include "crc16.h" /* Variables ----------------------------------------------...
karakuri-products/gs2d-cpp
gs2d/gs2d_driver.h
/* * @file gs2d_driver.h * @author * @date 2021/01/26 * @brief */ #pragma once /* Includes ------------------------------------------------------------------*/ #include <inttypes.h> #include <string.h> #include "gs2d_type.h" /* Variables -----------------------------------------------------------------*/ namesp...
karakuri-products/gs2d-cpp
gs2d/gs2d_futaba.h
<gh_stars>0 /* * @file gs2d_futaba.h * @author * @date 2021/01/30 * @brief */ #pragma once /* Includes ------------------------------------------------------------------*/ #include "gs2d_driver.h" #include "gs2d_command.h" #include "crc16.h" /* Variables ---------------------------------------------------------...
karakuri-products/gs2d-cpp
samples/arduino/ArduinoSerial.h
<filename>samples/arduino/ArduinoSerial.h /* * @file WindowsSerial.h * @author * @date 2020/04/05 * @brief Arduino Serial Base Class */ #pragma once /* Includes ------------------------------------------------------------------*/ #include <Arduino.h> /* Variables ----------------------------------------------...
karakuri-products/gs2d-cpp
gs2d/gs2d_type.h
/* * @file gs2d_buffer.h * @author * @date 2021/01/26 * @brief * * マルチスレッド処理を行った際、データ入出力にエラーが起こる場合は * 以下のクラスを環境向けにスレッドセーフに組み直す必要があるかも知れません。 * CircularBuffer, ThreadSafeType * */ #pragma once /* Includes ------------------------------------------------------------------*/ #include <inttypes.h> namespace gs2d { ...
karakuri-products/gs2d-cpp
gs2d/gs2d_command.h
/* * @file gs2d_command.h * @author * @date 2021/01/26 * @brief */ #pragma once /* Includes ------------------------------------------------------------------*/ #include "gs2d_type.h" #include <inttypes.h> namespace gs2d { /* Variables -----------------------------------------------------------------*/ // ...
karakuri-products/gs2d-cpp
samples/windows/WindowsSerial.h
<filename>samples/windows/WindowsSerial.h /* * @file WindowsSerial.h * @author * @date 2019/12/26 * @brief Windows Serial Base Class */ #pragma once /* Includes ------------------------------------------------------------------*/ #include <windows.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h>...
karakuri-products/gs2d-cpp
gs2d/gs2d_robotis.h
/* * @file gs2d_robotis.h * @author * @date 2021/01/26 * @brief */ #pragma once /* Includes ------------------------------------------------------------------*/ #include "gs2d_driver.h" #include "gs2d_command.h" #include "crc16.h" /* Variables -----------------------------------------------------------------*/ ...
karakuri-products/gs2d-cpp
gs2d/gs2d_serial.h
<reponame>karakuri-products/gs2d-cpp<gh_stars>0 /* * @file gs2d_serial.h * @author * @date 2021/01/26 * @brief Serial Base Class */ #pragma once /* Includes ------------------------------------------------------------------*/ /* USER INCLUDE CODE START */ // TODO : シリアル送受信に必要なファイルをインクルードする /* USER INCLUDE CO...
karakuri-products/gs2d-cpp
gs2d/crc16.h
<reponame>karakuri-products/gs2d-cpp #pragma once namespace crc16 { unsigned short calculate(unsigned char* data, unsigned short length) { unsigned short crc = 0; for (unsigned short i = 0; i < length; i++) { crc ^= (data[i] << 8); for (unsigned char j = 0; j < 8; j++) { if (crc & 0x8000) { crc = ...
karakuri-products/gs2d-cpp
gs2d/gs2d_krs.h
<reponame>karakuri-products/gs2d-cpp /* * @file gs2d_krs.h * @author * @date 2021/01/31 * @brief */ #pragma once /* Includes ------------------------------------------------------------------*/ #include "gs2d_driver.h" #include "gs2d_command.h" #include "crc16.h" /* Variables -----------------------------------...
DimitriPapadopoulos/c-blosc2
contrib/shuffle_neon/shuffle16_neon/shuffle16_neon_bucle.c
<reponame>DimitriPapadopoulos/c-blosc2 #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <arm_neon.h> #include <string.h> static void printmem8(uint8x8_t buf) { printf("%x,%x,%x,%x,%x,%x,%x,%x\n", buf[7], buf[6], buf[5], buf[4], buf[3], buf[2], buf[1], buf[0]); } static void pr...
DimitriPapadopoulos/c-blosc2
blosc/shuffle-generic.c
/********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about copyright and rights to use. ***************...
DimitriPapadopoulos/c-blosc2
contrib/shuffle_neon/unshuffle16_neon/unshuffle16_neon_bucle.c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <arm_neon.h> #include <string.h> static void printmem8(uint8x8_t buf) { printf("%x,%x,%x,%x,%x,%x,%x,%x\n", buf[7], buf[6], buf[5], buf[4], buf[3], buf[2], buf[1], buf[0]); } static void printmem16(uint8x16_t r0) { uint8_t buf...
DimitriPapadopoulos/c-blosc2
contrib/bitshuffle_neon/bitunshuffle2_neon/bitunshuffle2_neon_bucle.c
<filename>contrib/bitshuffle_neon/bitunshuffle2_neon/bitunshuffle2_neon_bucle.c #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <arm_neon.h> #include <string.h> #define CHECK_MULT_EIGHT(n) if (n % 8) exit(0); static void printmem8_l(uint8x8_t buf) { printf("%x,%x,%x,%x,%x,%x,%x,%x\n", ...
DimitriPapadopoulos/c-blosc2
contrib/bitshuffle_neon/bitshuffle2_neon/bitshuffle2_neon.c
<reponame>DimitriPapadopoulos/c-blosc2 /* Routine optimized for bit-shuffling a buffer for a type size of 2 bytes. */ static void bitshuffle2_neon(const uint8_t* const src, uint8_t* dest, const size_t nbyte) { const size_t elem_size = 2; uint8x16x2_t x0; size_t i, j, k; uint8x8_t lo_x[2], hi_x[2], lo[2], hi[2]...
DimitriPapadopoulos/c-blosc2
contrib/shuffle_neon/shuffle8_neon/shuffle8_neon_opt_bucle.c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <arm_neon.h> #include <string.h> static void printmem8(uint8x8_t buf) { printf("%x,%x,%x,%x,%x,%x,%x,%x\n", buf[7], buf[6], buf[5], buf[4], buf[3], buf[2], buf[1], buf[0]); } static void printmem16(uint8x16_t r0) { uint8_t buf...
DimitriPapadopoulos/c-blosc2
blosc/shuffle-neon.c
/********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 <NAME> <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about copyright and rights to use. *****************************...
DimitriPapadopoulos/c-blosc2
contrib/bitshuffle_neon/bitunshuffle8_neon/bitunshuffle8_neon.c
/* Routine optimized for bit-unshuffling a buffer for a type size of 8 byte. */ static void bitunshuffle8_neon(const uint8_t* const src, uint8_t* dest, const size_t nbyte) { const size_t elem_size = 8; size_t i, j, k; uint8x8x2_t r0[4], r1[4]; const int8_t __attribute__ ((aligned (16))) xr[8] = {0,1,2,3,4,5,...
DimitriPapadopoulos/c-blosc2
bench/sframe_bench.c
/********************************************************************* Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) Benchmark for testing sframe vs frame. For usage instructions of this benchmark, please see: https://www.blosc.org/pages/synt...
DimitriPapadopoulos/c-blosc2
blosc/bitshuffle-altivec.h
<filename>blosc/bitshuffle-altivec.h /********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about copyrig...
DimitriPapadopoulos/c-blosc2
tests/test_lazychunk_memcpyed.c
<reponame>DimitriPapadopoulos/c-blosc2 /* Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about copyright and rights to use. */ #include <stdio.h> #include "test_common.h" int tests_run = 0; static char* test_lazy_chunk...
DimitriPapadopoulos/c-blosc2
tests/test_fill_special.c
<reponame>DimitriPapadopoulos/c-blosc2 /* Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) Benchmark showing Blosc zero detection capabilities via run-length. */ #include <stdio.h> #include <stdint.h> #include <math.h> #include "blosc2.h" #include ...
DimitriPapadopoulos/c-blosc2
contrib/bitshuffle_neon/bitshuffle16_neon/bitshuffle16_neon.c
<filename>contrib/bitshuffle_neon/bitshuffle16_neon/bitshuffle16_neon.c /* Routine optimized for bit-shuffling a buffer for a type size of 16 bytes. */ static void bitshuffle16_neon(const uint8_t* const src, uint8_t* dest, const size_t nbyte) { const size_t elem_size = 16; size_t i, j, k; uint8x8x2_t r0[8]; ui...
DimitriPapadopoulos/c-blosc2
contrib/bitshuffle_neon/bitunshuffle16_neon/bitunshuffle16_neon.c
/* Routine optimized for bit-unshuffling a buffer for a type size of 16 byte. */ static void bitunshuffle16_neon(const uint8_t* const src, uint8_t* dest, const size_t nbyte) { const size_t elem_size = 16; size_t i, j, k; uint8x8x2_t r0[8], r1[8]; const int8_t __attribute__ ((aligned (16))) xr[8] = {0,1,2,3,4...
DimitriPapadopoulos/c-blosc2
contrib/shuffle_neon/Test/shuffle_unshuffle_test8.c
<reponame>DimitriPapadopoulos/c-blosc2<gh_stars>100-1000 #include <stdlib.h> #include <stdint.h> #include <arm_neon.h> #include <assert.h> /* Routine optimized for shuffling a buffer for a type size of 8 bytes. */ shuffle8_neon(uint8_t* const dest, const uint8_t* const src, const size_t vectorizable_elem...
DimitriPapadopoulos/c-blosc2
blosc/bitshuffle-neon.h
<filename>blosc/bitshuffle-neon.h /********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) Note: Adapted for NEON by <NAME>. See LIC...
DimitriPapadopoulos/c-blosc2
contrib/bitshuffle_neon/bitunshuffle1_neon/bitunshuffle1_neon_bucle.c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <arm_neon.h> #include <string.h> #define CHECK_MULT_EIGHT(n) if (n % 8) exit(0); static void printmem8_l(uint8x8_t buf) { printf("%x,%x,%x,%x,%x,%x,%x,%x\n", buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); } st...
DimitriPapadopoulos/c-blosc2
tests/test_maskout.c
/********************************************************************* Blosc - Blocked Shuffling and Compression Library Unit tests for BLOSC_COMPRESSOR environment variable in Blosc. Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE....
DimitriPapadopoulos/c-blosc2
examples/noinit.c
<reponame>DimitriPapadopoulos/c-blosc2<gh_stars>100-1000 /* Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) Example program demonstrating that from 1.9.0 on, Blosc does not need to be initialized (although it is recommended). To compile this pro...
DimitriPapadopoulos/c-blosc2
contrib/bitshuffle_neon/bitshuffle1_neon/bitshuffle1_neon_bucle.c
<reponame>DimitriPapadopoulos/c-blosc2 #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <arm_neon.h> #include <string.h> #define CHECK_MULT_EIGHT(n) if (n % 8) exit(0); static void printmem8_l(uint8x8_t buf) { printf("%x,%x,%x,%x,%x,%x,%x,%x\n", buf[0], buf[1], buf[2], buf[3], ...
DimitriPapadopoulos/c-blosc2
contrib/shuffle_neon/unshuffle4_neon/unshuffle4_neon.c
<reponame>DimitriPapadopoulos/c-blosc2 /* Routine optimized for unshuffling a buffer for a type size of 4 bytes. */ static void unshuffle4_neon(uint8_t* const dest, const uint8_t* const src, const size_t vectorizable_elements, const size_t total_elements) { size_t i, j, k; static const size_t byteso...
DimitriPapadopoulos/c-blosc2
contrib/shuffle_neon/shuffle16_neon/shuffle16_neon_vtbx_bucle.c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <arm_neon.h> #include <string.h> static void printmem8(uint8x8_t buf) { printf("%x,%x,%x,%x,%x,%x,%x,%x\n", buf[7], buf[6], buf[5], buf[4], buf[3], buf[2], buf[1], buf[0]); } static void printmem16(uint8x16_t r0) { uint8_t buf...
DimitriPapadopoulos/c-blosc2
contrib/shuffle_neon/unshuffle2_neon/unshuffle2_neon.c
<reponame>DimitriPapadopoulos/c-blosc2 /* Routine optimized for unshuffling a buffer for a type size of 2 bytes. */ static void unshuffle2_neon(uint8_t* const dest, const uint8_t* const src, const size_t vectorizable_elements, const size_t total_elements) { size_t i, j, k; static const size_t byteso...
DimitriPapadopoulos/c-blosc2
contrib/bitshuffle_neon/Test/bitshuffle_bitunshuffle_test8.c
<reponame>DimitriPapadopoulos/c-blosc2<filename>contrib/bitshuffle_neon/Test/bitshuffle_bitunshuffle_test8.c<gh_stars>100-1000 #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <arm_neon.h> #include <assert.h> #define CHECK_MULT_EIGHT(n) if (n % 8) exit(0); static void printmem8(uint8x8_t buf) { p...
DimitriPapadopoulos/c-blosc2
blosc/sframe.c
/********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about copyright and rights to use. *******...
DimitriPapadopoulos/c-blosc2
examples/frame_backed_schunk.c
/* Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) Example program demonstrating use of the Blosc filter from C code. To compile this program: $ gcc -O frame_backed_schunk.c -o frame_backed_schunk -lblosc2 To run: $ ./frame_backed_schunk ...
DimitriPapadopoulos/c-blosc2
blosc/shuffle-avx2.h
/********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about copyright and rights to use. ***************...
DimitriPapadopoulos/c-blosc2
tests/test_empty_buffer.c
/********************************************************************* Blosc - Blocked Shuffling and Compression Library Unit tests for the blosc_decompress() function. Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details...
DimitriPapadopoulos/c-blosc2
examples/zstd_dict.c
<reponame>DimitriPapadopoulos/c-blosc2 /* Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) Example program demonstrating use of the Blosc filter from C code. To compile this program: $ gcc -O zstd_dict.c -o zstd_dict -lblosc2 To run: $ ./z...
DimitriPapadopoulos/c-blosc2
contrib/shuffle_neon/shuffle4_neon/shuffle4_neon.c
<filename>contrib/shuffle_neon/shuffle4_neon/shuffle4_neon.c /* Routine optimized for shuffling a buffer for a type size of 4 bytes. */ static void shuffle4_neon(uint8_t* const dest, const uint8_t* const src, const size_t vectorizable_elements, const size_t total_elements) { size_t i, j, k; static con...
DimitriPapadopoulos/c-blosc2
contrib/bitshuffle_neon/bitshuffle4_neon/bitshuffle4_neon.c
/* Routine optimized for bit-shuffling a buffer for a type size of 4 bytes. */ static void bitshuffle4_neon(const uint8_t* const src, uint8_t* dest, const size_t nbyte) { const size_t elem_size = 4; uint8x16x4_t x0; size_t i, j, k; uint8x8_t lo_x[4], hi_x[4], lo[4], hi[4]; const int8_t __attribute__ ((align...
DimitriPapadopoulos/c-blosc2
blosc/stune.c
/********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about copyright and rights to use. ***************...
DimitriPapadopoulos/c-blosc2
contrib/shuffle_neon/Test/shuffle_unshuffle_test4.c
<gh_stars>100-1000 #include <stdlib.h> #include <stdint.h> #include <arm_neon.h> #include <assert.h> /* Routine optimized for shuffling a buffer for a type size of 4 bytes. */ static void shuffle4_neon(uint8_t* const dest, const uint8_t* const src, const size_t vectorizable_elements, const size_t total_e...
DimitriPapadopoulos/c-blosc2
contrib/shuffle_neon/shuffle2_neon/shuffle2_neon.c
/* Routine optimized for shuffling a buffer for a type size of 2 bytes. */ static void shuffle2_neon(uint8_t* const dest, const uint8_t* const src, const size_t vectorizable_elements, const size_t total_elements) { size_t i, j, k; static const size_t bytesoftype = 2; uint8x16x2_t r0; for(i = 0, k...
DimitriPapadopoulos/c-blosc2
include/blosc2/filters-registry.h
<filename>include/blosc2/filters-registry.h /********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about ...
DimitriPapadopoulos/c-blosc2
tests/test_delta.c
/********************************************************************* Blosc - Blocked Shuffling and Compression Library Unit tests for BLOSC_COMPRESSOR environment variable in Blosc. Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE....
DimitriPapadopoulos/c-blosc2
plugins/filters/ndcell/ndcell.h
<gh_stars>100-1000 /********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about copyright and rights to u...
DimitriPapadopoulos/c-blosc2
contrib/bitshuffle_neon/bitunshuffle4_neon/bitunshuffle4_neon_bucle.c
<reponame>DimitriPapadopoulos/c-blosc2 #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <arm_neon.h> #include <string.h> #define CHECK_MULT_EIGHT(n) if (n % 8) exit(0); static void printmem8_l(uint8x8_t buf) { printf("%x,%x,%x,%x,%x,%x,%x,%x\n", buf[0], buf[1], buf[2], buf[3], ...
DimitriPapadopoulos/c-blosc2
blosc/bitshuffle-generic.c
/********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about copyright and rights to use. ***************...
DimitriPapadopoulos/c-blosc2
include/blosc2/codecs-registry.h
/********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about copyright and rights to use. ***************...
DimitriPapadopoulos/c-blosc2
bench/create_frame.c
<filename>bench/create_frame.c /* Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) Simple benchmark for frame creation. To run: $ ./create_frame *** Creating uninitialized *** *** Using fill method! *** *** Creating *contiguous* su...
DimitriPapadopoulos/c-blosc2
tests/test_urfilters.c
<reponame>DimitriPapadopoulos/c-blosc2<filename>tests/test_urfilters.c /* Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) */ #include <stdio.h> #include <stdint.h> #include "blosc2.h" #include "cutest.h" #define KB 1024 #define MB (1024*KB) #defin...
DimitriPapadopoulos/c-blosc2
plugins/codecs/codecs-registry.c
<filename>plugins/codecs/codecs-registry.c /* Copyright (C) 2021 The Blosc Developers http://blosc.org License: BSD 3-Clause (see LICENSE.txt) */ #include <blosc-private.h> #include "blosc2/codecs-registry.h" #include "ndlz/ndlz.h" void register_codecs() { blosc2_codec ndlz; ndlz.compcode = BLOSC_CODEC...
DimitriPapadopoulos/c-blosc2
include/blosc2/blosc2-common.h
/********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about copyright and rights to use. ***************...
DimitriPapadopoulos/c-blosc2
contrib/shuffle_neon/unshuffle8_neon/unshuffle8_neon_vtbx.c
<filename>contrib/shuffle_neon/unshuffle8_neon/unshuffle8_neon_vtbx.c /* Routine for unshuffling a buffer for a type size of 8 bytes. Non-optimized version */ unshuffle8_neon(uint8_t* const dest, const uint8_t* const src, const size_t vectorizable_elements, const size_t total_elements) { size_t i, j, ...
DimitriPapadopoulos/c-blosc2
contrib/bitshuffle_neon/bitunshuffle1_neon/bitunshuffle1_neon.c
/* Routine optimized for bit-unshuffling a buffer for a type size of 1 byte. */ static void bitunshuffle1_neon(const uint8_t* const src, uint8_t* dest, const size_t nbyte) { const size_t elem_size = 1; uint8x8_t lo_x, hi_x, lo, hi; size_t i, j, k; const int8_t __attribute__ ((aligned (16))) xr[8] = {0,1,2,3,4...
DimitriPapadopoulos/c-blosc2
contrib/bitshuffle_neon/Test/bitshuffle_bitunshuffle_test16.c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <arm_neon.h> #include <assert.h> #define CHECK_MULT_EIGHT(n) if (n % 8) exit(0); static void printmem8(uint8x8_t buf) { printf("%x,%x,%x,%x,%x,%x,%x,%x\n", buf[7], buf[6], buf[5], buf[4], buf[3], buf[2], buf[1], buf[0]); } stat...
DimitriPapadopoulos/c-blosc2
contrib/shuffle_neon/shuffle16_neon/shuffle16_neon_vtbx.c
<gh_stars>100-1000 /* Routine for shuffling a buffer for a type size of 16 bytes. Non-optimized version */ shuffle16_neon(uint8_t* const dest, const uint8_t* const src, const size_t vectorizable_elements, const size_t total_elements) { size_t i, j, k, l; static const size_t bytesoftype = 16; uint8x...
DimitriPapadopoulos/c-blosc2
contrib/bitshuffle_neon/bitshuffle8_neon/bitshuffle8_neon.c
<gh_stars>100-1000 /* Routine optimized for bit-shuffling a buffer for a type size of 8 bytes. */ static void bitshuffle8_neon(const uint8_t* const src, uint8_t* dest, const size_t nbyte) { const size_t elem_size = 8; size_t i, j, k; uint8x8x2_t r0[4]; uint16x4x2_t r1[4]; uint32x2x2_t r2[4]; const int8_t ...
DimitriPapadopoulos/c-blosc2
tests/fuzz/generate_inputs_corpus.c
<filename>tests/fuzz/generate_inputs_corpus.c /* Copyright (C) 2021 The Blosc Developers http://blosc.org License: BSD 3-Clause (see LICENSE.txt) Generate inputs for fuzzer corpus To run: $ ./generate_inputs_corpus Blosc version info: 2.0.0.beta.6.dev ($Date:: 2020-04-21 #$) *** Creating simple frame f...
DimitriPapadopoulos/c-blosc2
blosc/sframe.h
<gh_stars>100-1000 /********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about copyright and righ...
DimitriPapadopoulos/c-blosc2
contrib/shuffle_neon/unshuffle2_neon/unshuffle2_neon_bucle.c
<reponame>DimitriPapadopoulos/c-blosc2 #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <arm_neon.h> #include <string.h> static void printmem16(uint8x16_t buf) { printf("%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x,%x\n", buf[15], buf[14], buf[13], buf[12], buf[11], buf[10], bu...
DimitriPapadopoulos/c-blosc2
tests/test_postfilter.c
/* Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) */ #include "test_common.h" int tests_run = 0; #define SIZE (500 * 1000) #define NTHREADS 2 typedef struct { int ninputs; uint8_t *inputs[2]; int32_t input_typesizes[2]; } test_postparam...
DimitriPapadopoulos/c-blosc2
contrib/shuffle_neon/unshuffle8_neon/unshuffle8_neon_bucle.c
<filename>contrib/shuffle_neon/unshuffle8_neon/unshuffle8_neon_bucle.c #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <arm_neon.h> #include <string.h> static void printmem8(uint8x8_t buf) { printf("%x,%x,%x,%x,%x,%x,%x,%x\n", buf[7], buf[6], buf[5], buf[4], buf[3], buf[2], bu...
DimitriPapadopoulos/c-blosc2
plugins/filters/filters-registry.c
<gh_stars>100-1000 /* Copyright (C) 2021 The Blosc Developers http://blosc.org License: BSD 3-Clause (see LICENSE.txt) */ #include <blosc-private.h> #include "blosc2/filters-registry.h" #include "ndmean/ndmean.h" #include "ndcell/ndcell.h" void register_filters() { blosc2_filter ndcell; ndcell.id = BLO...
DimitriPapadopoulos/c-blosc2
tests/fuzz/fuzz_decompress_frame.c
<filename>tests/fuzz/fuzz_decompress_frame.c #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <blosc2.h> #ifdef __cplusplus extern "C" { #endif int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { int32_t i = 0, dsize = 0, filter = BLOSC_BITSHUFFLE; int32_t nchunk = 0; blosc_init(...
DimitriPapadopoulos/c-blosc2
contrib/bitshuffle_neon/bitunshuffle2_neon/bitunshuffle2_neon.c
/* Routine optimized for bit-unshuffling a buffer for a type size of 2 byte. */ static void bitunshuffle2_neon(const uint8_t* const src, uint8_t* dest, const size_t nbyte) { const size_t elem_size = 2; size_t i, j, k; uint8x8_t lo_x[2], hi_x[2], lo[2], hi[2]; const int8_t __attribute__ ((aligned (16))) xr[8] ...
DimitriPapadopoulos/c-blosc2
blosc/fastcopy.h
/********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about copyright and rights to use. ***************...
DimitriPapadopoulos/c-blosc2
blosc/schunk.c
/********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about copyright and rights to use. ***************...
DimitriPapadopoulos/c-blosc2
blosc/trunc-prec.h
<filename>blosc/trunc-prec.h /********************************************************************* Blosc - Blocked Shuffling and Compression Library Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) See LICENSE.txt for details about copyright and r...
DimitriPapadopoulos/c-blosc2
tests/test_zero_runlen.c
/* Copyright (C) 2021 The Blosc Developers <<EMAIL>> https://blosc.org License: BSD 3-Clause (see LICENSE.txt) Benchmark showing Blosc zero detection capabilities via run-length. */ #include <stdio.h> #include <stdint.h> #include <assert.h> #include <math.h> #include "blosc2.h" #include "cutest.h" #define...
DimitriPapadopoulos/c-blosc2
contrib/shuffle_neon/shuffle16_neon/shuffle16_neon.c
/* Routine optimized for shuffling a buffer for a type size of 16 bytes. */ shuffle16_neon(uint8_t* const dest, const uint8_t* const src, const size_t vectorizable_elements, const size_t total_elements) { size_t i, j, k; static const size_t bytesoftype = 16; uint8x8x2_t r0[8]; uint16x4x2_t r1[8];...
red3/HHPullToRefreshWave
HHPullToRefreshWaveDemo/HHPullToRefreshWaveDemo/ViewController.h
<filename>HHPullToRefreshWaveDemo/HHPullToRefreshWaveDemo/ViewController.h // // ViewController.h // HHPullToRefreshWaveDemo // // Created by Herui on 12/26/15. // Copyright © 2015 hirain. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UITableViewController @end
red3/HHPullToRefreshWave
HHPullToRefreshWave/UIScrollView+HHPullToRefreshWaveView.h
<gh_stars>10-100 // // UIScrollView+HHPullToRefreshWaveView.h // HHPullToRefreshWaveView // // Created by Herui on 15/12/24. // Copyright © 2015年 harry. All rights reserved. // #import <UIKit/UIKit.h> @interface UIScrollView (HHPullToRefreshWaveView) - (void)hh_addRefreshViewWithActionHandler:(void (^)())action...
red3/HHPullToRefreshWave
HHPullToRefreshWaveDemo/HHPullToRefreshWaveDemo/AppDelegate.h
<gh_stars>10-100 // // AppDelegate.h // HHPullToRefreshWaveDemo // // Created by Herui on 12/26/15. // Copyright © 2015 hirain. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
red3/HHPullToRefreshWave
HHPullToRefreshWave/HHPullToRefreshWave.h
<gh_stars>10-100 // // HHPullToRefreshWave.h // HHPullToRefreshWaveView // // http://github.com/red3 // Please issue me if you have any question. :) // Copyright © 2015年 hirain. All rights reserved. // #ifndef HHPullToRefreshWave_h #define HHPullToRefreshWave_h #import "UIScrollView+HHPullToRefreshWaveView.h" #...
red3/HHPullToRefreshWave
HHPullToRefreshWave/HHPullToRefreshWaveView.h
// // HHPullToRefrshWaveView.h // HHPullToRefreshWaveView // // Created by Herui on 15/12/24. // Copyright © 2015年 harry. All rights reserved. // #import <UIKit/UIKit.h> @interface HHPullToRefreshWaveView : UIView @property (nonatomic, copy) void (^actionHandler)(); @property (nonatomic, strong) UIColor *topW...
LTD-Beget/nsd
tsig-openssl.c
/* * tsig-openssl.h -- Interface to OpenSSL for TSIG support. * * Copyright (c) 2001-2006, NLnet Labs. All rights reserved. * * See LICENSE for the license. * */ #include "config.h" #if defined(HAVE_SSL) #include "tsig-openssl.h" #include "tsig.h" #include "util.h" static void *create_context(region_type *re...
LTD-Beget/nsd
xfrd-notify.c
/* * xfrd-notify.c - notify sending routines * * Copyright (c) 2006, NLnet Labs. All rights reserved. * * See LICENSE for the license. * */ #include "config.h" #include <assert.h> #include <string.h> #include <unistd.h> #include <errno.h> #include "xfrd-notify.h" #include "xfrd.h" #include "xfrd-tcp.h" #include...
LTD-Beget/nsd
tpkg/cutest/cutest_rrl.c
/* test rrl.h */ #include "config.h" #ifdef HAVE_STRING_H #include <string.h> #endif #include <stdio.h> #include <stdlib.h> #include "tpkg/cutest/cutest.h" #include "rrl.h" #ifdef RATELIMIT static void rrl_1(CuTest *tc); CuSuite* reg_cutest_rrl(void) { CuSuite* suite = CuSuiteNew(); SUITE_ADD_TEST(suite...
LTD-Beget/nsd
nsd-control.c
<gh_stars>0 /* * nsd-control.c - remote control utility for nsd. * * Copyright (c) 2011, NLnet Labs. All rights reserved. * * This software is open source. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * ...
LTD-Beget/nsd
udb.h
/* udb.h - u(micro) data base, stores data and index information in mmap file. * By <NAME> * Copyright 2010, NLnet Labs. * BSD, see LICENSE. */ #ifndef UDB_H #define UDB_H #include <assert.h> /** * The micro data base UDB. * * File data.udb is mmapped and used to lookup and edit. * it contains a header with sp...
LTD-Beget/nsd
dns.c
<filename>dns.c /* * dns.c -- DNS definitions. * * Copyright (c) 2001-2006, NLnet Labs. All rights reserved. * * See LICENSE for the license. * */ #include "config.h" #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <ctype.h> #include <netdb.h> #include <st...
LTD-Beget/nsd
namedb.h
/* * namedb.h -- nsd(8) internal namespace database definitions * * Copyright (c) 2001-2006, NLnet Labs. All rights reserved. * * See LICENSE for the license. * */ #ifndef _NAMEDB_H_ #define _NAMEDB_H_ #include <stdio.h> #include "dname.h" #include "dns.h" #include "radtree.h" #include "rbtree.h" struct zone_...
LTD-Beget/nsd
udbradtree.h
/* * udbradtree -- radix tree for binary strings for in udb file. * * Copyright (c) 2011, NLnet Labs. See LICENSE for license. */ #ifndef UDB_RADTREE_H #define UDB_RADTREE_H #include "udb.h" struct udb_radnode; /** length of the binary string */ typedef uint16_t udb_radstrlen_t; /** * The radix tree * * The e...
LTD-Beget/nsd
netio.h
<filename>netio.h /* * netio.h -- network I/O support. * * Copyright (c) 2001-2006, NLnet Labs. All rights reserved. * * See LICENSE for the license. * * * The netio module implements event based I/O handling using * pselect(2). Multiple event handlers can wait for a certain event * to occur simultaneously. ...
LTD-Beget/nsd
tpkg/cutest/cutest.h
<filename>tpkg/cutest/cutest.h #ifndef CU_TEST_H #define CU_TEST_H #include <setjmp.h> #include <stdarg.h> /* CuString */ char* CuStrAlloc(int size); char* CuStrCopy(const char* old); #define CU_ALLOC(TYPE) ((TYPE*) malloc(sizeof(TYPE))) #define HUGE_STRING_LEN 8192 #define STRING_MAX 256 #define STRING_INC 256...
LTD-Beget/nsd
remote.c
<reponame>LTD-Beget/nsd /* * remote.c - remote control for the NSD daemon. * * Copyright (c) 2008, NLnet Labs. All rights reserved. * * This software is open source. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * ar...