sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
7f127cfdb10b77f4cdbdbcc0d7f97767ab6776539aad87c96d4dc470737616f3
C
6,835
280
#include "plot.h" #include <stdlib.h> /* init.c * * This is where we open and select windows in response to calls to * device(). For simplicity we keep a bunch of other gnarly X code * here (e.g. event handling), leaving only the business of actually * drawing to most of the usual routines. */ #define X_WINDO...
fd0d2caa5cf7b50788ff0fbc32bdd39868342527d460d704b268181bf4470802
C
6,851
245
/* * Copyright (C) 1995,1996,2001,2003,2012,2022 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* read_struct module to read and write structures in an architecture- and * compiler-independent way (byte alignment and big/little-endian order) * -- Bernd Feige 6.08...
8594398a7427ba773e300e04aef33bd76e980bbf71afd561bfb6e69f96c2ec69
C
6,948
163
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <stdint.h> #include <fp16/bitcasts.h> #include <qnnpack/requantization-...
ac1556468feccf7683f8de2817bf18835d42829787b3a2087ecd462f6cd092dd
C
7,041
239
// This file contains an example of writing a wave file. #include <ctype.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <stddef.h> #include "IgorBin.h" #include "CrossPlatformFileIO.h" /* Checksum(data,oldcksum,numbytes) Returns shortwise simpleminded checksum over the data. A...
f15695f6029bba2efe3ca986108bac721e368deec4fe51793a24c036d859a7b0
C
7,042
379
#include "vogl.h" #ifdef TC extern double cos(); extern double sin(); #else #include <math.h> #endif static int nsegs = 32; /* * arcprecision * * sets the number of segments in an arc or circle. * - obsolete function. */ void arcprecision(int noseg) { nsegs = noseg; } /* * circleprecision * * sets the...
10a3c808bd87bd55215bdb4641aa6fa92ac1b4682152f6c1eaff436401988115
C
7,121
215
/* FILE merge.c */ /* Merge stacks and/or tables together. (Use also to renumber 'm) */ #include <stdio.h> /* For diagnostic statements */ #include <stdlib.h> /* atoi() */ extern void Warning(char *string); extern void Exit(char *string, char *name); /* ****************************************************...
56527275d7cac80cce9c25ddcf8c58eb2f37c84265def664664dee29f9c0a750
C
7,136
449
/* * Driver for tekronix 401x or equivalent */ #include <stdio.h> #include <string.h> #include <unistd.h> #ifdef BSD #include <sgtty.h> #else #include <termio.h> #endif #include "vogl.h" static FILE *fp; #define MASK 037 #define BELL '\007' #define FF '\01...
0c51146e286fe635558cca6ac92789504d792822d02570e1ae2bd0d3f61cdd9b
C
7,158
236
#include <stdlib.h> #include <string.h> #include <ctype.h> #include <math.h> // ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz #define TRANS "TVGHEFCDIJMLKNOPQYWAABSXRZ[\\]^_`tvghefcdijmlknopqywaabsxrz" #define TRANS_OFFSET 65 #define TRANS_LEN 57 char* get_revcomp(char *input); char get_char...
0c7b1c33594cac8016360956f092d8b1d67abc034388d9427085499042baf834
C
7,160
220
/* Nelder-Mead simplex optimiser — scipy-compatible implementation. * * Replaces the Numerical Recipes amoeba() with the algorithm used by * scipy.optimize.minimize(..., method='Nelder-Mead'). Key differences * from the NR version: * * 1. Convergence criterion: * OLD (NR): y[ilo] < ftol — stops as soo...
60dc9159ee9bcdae5ddb40911b88b138fd312a2ed7599a3f5059336ce282fc52
C
7,200
228
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <math.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #i...
5b996147c8aaef68368d6a6bd17a48837f464f164a078220191727c458b48e99
C
7,241
200
/* * Copyright (C) 1994,1997,1999,2001 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * This file defines a dipolar source description that can be used with * dip_simulate. * While var_random_dipoles generates a continuous stream ...
b6cea39c28e14223cbdc958cfa16cf5522374834a60a138ee3365b725d817043
C
7,258
227
/* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */ /*========================================================================= Copyright (c) 2008 Thomas Yeo and Mert Sabuncu All rights reserved. Redistribution and use in source and binary forms, with or without modification, are ...
d45f77e292752d134ddd72098182d24124fa5f61dd4638d016ad43bd66b9fefd
C
7,272
210
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <arm_neon.h> #include <qnnpack/q8gavgpool.h> void pytorch_q8gavgpool_...
30a874dbf9d7e4e56f88425de40cdc8b2d4728822a5913f2d75cce4167a75bc4
C
7,295
237
/* * Copyright (C) 2016,2026 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Includes*/ #include <stdio.h> #include <stdlib.h> #ifdef __GNUC__ #include <unistd.h> #endif #include <read_struct.h> #ifndef LITTLE_ENDIAN #include <Intel_compat.h> #endif #...
1981c09f88b2ff5fbf4aa0fd02de1336714790a54b504a52f548a3abce89ee1a
C
7,359
214
/* * Copyright (C) 1997-1999,2001,2003,2009,2011,2013 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * recode is a transform method to linearly map input to output value ranges. * -- Bernd Feige 16.09.1997 */ /*}}} */ /*{{{...
c246b9650a55c2dcfbe25931f84f9dda70e0c9427c83b592162107b588c693df
C
7,397
165
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <stdint.h> #include <psimd.h> #include <fp16/bitcasts.h> #include <qnn...
b3a5cbc2e8e20abe978bcc8192f2cf057466a365ac195a2153b2bd00b9ca5278
C
7,478
235
/* * This file was auto-generated with f2py (version:2_1330) and hand edited by * Pearu for testing purposes. Do not edit this file unless you know what you * are doing!!! */ #ifdef __cplusplus extern "C" { #endif /*********************** See f2py2e/cfuncs.py: includes ***********************/ #define PY_SSIZE_...
3e0671a2138946bc883f7368ed9fbaf773250bc94982389215a9e078c4cdd573
C
7,494
233
/* * Copyright (C) 1996,1998-2000,2003,2007,2011,2013,2022,2026 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ #include <stdlib.h> #include <stdarg.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "growing_buf.h" #define MIN_INITIAL_SIZE 128 voi...
a6d8fbcfb39cb60446dff0749ddec08bfe8384e35a55193abf3cfcff3f35e350
C
7,507
225
/* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */ /*========================================================================= Copyright (c) 2008 Thomas Yeo and Mert Sabuncu All rights reserved. Redistribution and use in source and binary forms, with or without modification, are ...
1c4242621f3f42bbb328aef655cd4999d1bce931550278b2d4278de8541bf53f
C
7,561
222
/* * Copyright (C) 1994,1997,1999,2001,2003,2026 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * This file defines a dipolar source description that can be used with * dip_simulate. Since there are too many possible parameters to b...
de4fc7340e1e2dbb463e5cb39d92ff1f9550200121495ca3aa76847493600789
C
7,605
244
/* FILE ttest */ /* From david */ /* Assumes different variances for each sample */ #include <math.h> #include <stdio.h> #define DEBUG 0 /* FUNCTIONS: * Public * Ttest Do a Student's T test: compare 2 groups * Ttest_short Do a Ttest given 2 means, 2 standard errors * Ttest_vs_zero Do a St...
7090eaba20509ce327760d1503a1e087b839a31efda75396b090af82631399fe
C
7,619
237
/* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */ #include <math.h> #include <float.h> #include <stdio.h> #include "nr_util.h" #include "ad_globl.h" #include "ad_frsnl.h" #include "ad_bound.h" #include "iad_type.h" #include "iad_calc.h" #include "iad_pub.h" #include "iad_util.h" unsigned long g_util_de...
5928c09b697fd984aea2b05ae130577f41a7fc76cef18872f62fa54eaf4fee03
C
7,623
248
/* FILE _macros/field/flash.c */ /* Plot receptive field based on flash responses */ /* Uses stacks 11:18 */ /* Should be run with "grab -at2 -i50:250 -xs10 -o70" */ /* Or, to substract bg: "grab -at2 -i50:150 -B40 -xs10 -o70" */ /* ***************************************************************...
75d272e90e6dd4fcb7cb18aeb83a07573cef2c4b31236cc81aa30a09cbbd4dda
C
7,708
203
/* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */ /*========================================================================= Copyright (c) 2008 Thomas Yeo and Mert Sabuncu All rights reserved. Redistribution and use in source and binary forms, with or without modification, are ...
aa5c99506457806a6de76458e7619ab3f9f93ce30137c6a43590fc18527f80ce
C
7,721
231
/* FILE write_sac.c */ /* Macros 84, 85, 86 */ /* ******************************************************************** */ #include "../Deffs.h" #include "../../event.h" /* ******************************************************************** */ void Write_SacEndpts84() { FILE *file; char Name[80]; int begin = ...
19368d6419a9159add0e855b4fd821b1c7f263f62d6cf11a23b71053451a2c79
C
7,725
206
/* FILE _macros/util.c */ #include "../Deffs.h" /* Some things of generic use to macros */ #define CAN_RETURN_SECOND_BEST 0 /* If best fails, try 2nd best */ /* fine PREF_MINUS_NULL ? * usu 1; see ~/.grab_config */ /* PUBLIC: * MinAndReportDiff Return lesser of 2 values & report if mismatched * Find_Best_Dir...
54a182c0886d3085cb546327fadc8ef1973a6e138ae7e121d6938cd568f8f70f
C
7,756
230
/* FILE _macros/intent.c */ /* Ttest on directional activity */ /* ******************************************************************** */ #include "../Deffs.h" /* ******************************************************************** */ #define VERBOSE 0 static void Test_Against_Zero(FILE *out, int stack, int...
085f1edfbb647df1d82b3f2f4a8cfed2989685f7f9ba491bbc393aaf0c891fc9
C
7,786
213
/* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */ /*========================================================================= Copyright (c) 2008 Thomas Yeo and Mert Sabuncu All rights reserved. Redistribution and use in source and binary forms, with or without modification, are ...
eea205e9b9c0bde07ffab4b20abb25987391d5f5c530dad0621f5dc4fadafc96
C
7,851
204
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <emmintrin.h> #include <qnnpack/q8gavgpool.h> void pytorch_q8gavgpool...
67732b5d012867235644d95611357f326488e57531848deb58583d3e49aa614b
C
7,854
247
/* FILE _macros/field/frame.c */ /* Plot responses assoc'd with cue or saccade as function of e.g., saccade vector */ /* Should be run with "grab -aa$ -i-200:0 -o71" */ /* ******************************************************************** */ #include "../Deffs.h" #include "../../event.h" #include <std...
83a47b4be82012eefa44d9c697e893540b7c9979f44b39ed990e407aba3bd482
C
7,903
115
/* The following is a postscript prologue which defines a set of macros and constants which are used in rendering graphics on the page. This postscirpt prologue was written by John Interrante. For more information see the Interviews distribution on inverviews.stanford.edu. */ char *users_prologue; char ...
7b6d859374f177a1680afacdbd1ba20acbb781ef2ce7e9026434cb5e32a29807
C
7,911
311
/* * Copyright (C) 1998-2000,2003,2006,2007,2010,2015,2021 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * assert: reject_method to test values of various system variables * -- Bernd Feige 11.12.1998 */ /*}}} */ /*{{{ #in...
d32e10615fe0a96e18199c077b5031143b20eeafa40e4bdcb0b09841f3fc1713
C
7,912
226
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <math.h> #include "ad_globl.h" #include "ad_prime.h" #include "ad_cone.h" #include "iad_type.h" #include "mc_lost.h" static void print_usage(void) { fprintf(stderr, "lost \n\n"); fprintf(stderr, "lost finds the lost R and T from optical prope...
01c845c468f01af5a2ab1ed1efdee426cd06ba81996523e12b0a080b9c020931
C
8,037
255
/* FILE ttest */ /* From david bradley, from grab (changed only Exit() & Warning() */ /* Assumes different variances for each sample */ #include <math.h> #include <stdio.h> #define DEBUG 0 /* FUNCTIONS: * Public * Ttest Do a Student's T test: compare 2 groups * Ttest_short Do a Ttest given 2 m...
5917e5addcaaec965461ea7f2dfa2ae9eeb3d3e1bc9a934de679bed9dc4ed1ba
C
8,041
325
#include <zephyr/kernel.h> #include <zephyr/drivers/uart.h> #include <zephyr/logging/log.h> #include <assert.h> #include <zephyr/kernel.h> #include <zephyr/sys/ring_buffer.h> #include <zephyr/types.h> #include <stddef.h> #include <string.h> #include <stdio.h> #include <math.h> #include <stdint.h> #include <stdlib.h> #...
935d19048709b5eeb38a5defeb04b91b39487a6cb68155bc755d1fe81662f251
C
8,041
251
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <arm_neon.h> #include <qnnpack/u8maxpool.h> void pytorch_u8maxpool_uk...
fe3268bee63f76d8e1dfa1e11d835ca59f085dc0bb21d78c9c2744e0869e719b
C
8,104
281
/* FILE gdata.c */ /* Graph arrays received from array.c (tektroknix protocol) */ /* FUNCTIONS: * GraphData: Graph data average (and stdev) */ #include "array.h" /* Get the data! */ #include "graph.h" static void Graph_Shaded_Stderr(int reg); static FRAME *ShadeErrorSegment(FRAME *Begin, FRA...
e360198a7015dc76352817e044abaf67dacc32cc9e59df9f6c26b784c4a644cb
C
8,132
239
/* FILE blink */ /* Find blinks and remove them */ /* I've added "REMOVE_BLINKS" as a possible parameter in .grab_config. * Set it to 1 to (try to) remove blinks from the eye movement data. * It will replace the blink artifact with two straight lines, extending * the initial (pre-blink) eye position to the mid...
291692868cd8d89e6d11fd828de6a724b9c076cb1da101679cf74a3409cf2aca
C
8,233
466
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "vogl.h" extern void polyobj(int n, Token *dp, int fill); typedef struct o { int obno; TokList *tlist; struct o *next; } VObject; static VObject *object_table[MAXENTS]; static long obno = -1, omax = 0; /* * makeobj * * start a new obje...
67f28fcbc2677aaddefbcb8f8476c5843f500e9fe3602bb5355dc04b9e221aec
C
8,240
243
/* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */ /*========================================================================= Copyright (c) 2008 Thomas Yeo and Mert Sabuncu All rights reserved. Redistribution and use in source and binary forms, with or without modification, are ...
c4592522993365477ba0dc68043af98cf54b256223ccb15cf3c1d4acad5209d9
C
8,272
263
/* * Copyright (C) 1995-1998,2001,2003,2011 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* expand_channel_list.c was derived from the channel selection part of * mfx_file. It takes a channel selection string and returns a malloc'ed * list of channel_index+1 values...
66dacc76b37bd27e7c446af2deb52a1f57dbb4091f8683fae036878d08217dbd
C
8,353
200
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <stdint.h> #include <arm_neon.h> #include <fp16/bitcasts.h> #include <...
b64a4cdd63014cf21b1698f4cad4708cb7fa6f36cdacb4310d62025c27a7351a
C
8,358
290
#include <stdio.h> #include <stddef.h> #include <stdlib.h> #include "nr_util.h" #define NR_END 1 #define FREE_ARG char* void nrerror(char error_text[]) { fprintf(stderr, "Numerical Recipes run-time error...\n"); fprintf(stderr, "%s\n", error_text); fprintf(stderr, "...now exiting to system...\n"); exit...
6317bb1ff152617850916dfcf004900e45f5c28790e4a8904a59bee95c5c0cff
C
8,362
242
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <arm_neon.h> #include <qnnpack/q8avgpool.h> void pytorch_q8avgpool_uk...
daea988a1973a7748b30ef0b771613e04af4878a7a250d96a3c44a3d9e8a4d01
C
8,376
413
#include <stdio.h> #include "vogl.h" #include "vodevice.h" /* * qdevice * * enable an input device. */ void qdevice(Device dev) { int i, redraw_enabled; if (!vdevice.initialised) verror("qdevice: vogl not initialised\n"); if (dev > (Device)MAXDEV) verror("qdevice: bad device number passed\n"); switch (d...
7b66ebdbd21ab8aa29a2fbc576bbb4f863e6d3f438cc626b5b486337d9388c20
C
8,387
343
/* * Singular Value Decomposition of an arbitrary matrix of M elements x N * vectors to an orthonormal column matrix U of the same size, a diagonal * matrix w (here: The vector of its diagonal elements, the singular values) * and a square orthogonal matrix v of dimension NxN such that * A=U W V', where ' means tra...
2f4baf9e2ebe6ae5103cfa60e4c10d69898f7f82c20e0b5e105f2e1394054136
C
8,397
268
/* FILE _macros/memory/times.c */ #include "../Deffs.h" #include "../../event.h" #include <stdlib.h> /* system() */ #define LengthLong 15000 /* Write all to this length */ #define DEBUG 0 /* ******************************************************************** */ /* *********************************************...
8b3819a3f66e39dd26cb6fd7032bb86974c759b8f93c69c0ae96bf58b832d9cd
C
8,441
242
// ---------------------------------------------------------------------------- // Numerical diagonalization of 3x3 matrcies // Copyright (C) 2006 Joachim Kopp // ---------------------------------------------------------------------------- // This library is free software; you can redistribute it and/or // modify it u...
7450409cef76667ef15e30f71b45e7d2af29e619a73bcd5aa236c26ea4d50d52
C
8,457
236
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <emmintrin.h> #include <qnnpack/q8avgpool.h> void pytorch_q8avgpool_u...
06e0655de50846eb71a7ead147c64d16298a03174e2c29578452b8e6fcfc1892
C
8,504
252
/* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */ /*========================================================================= Copyright (c) 2008 Thomas Yeo and Mert Sabuncu All rights reserved. Redistribution and use in source and binary forms, with or without modification, are ...
6241af12170f65f30d5500b40c5e82dcaff65f93b8161411e71595b5c59c162f
C
8,548
252
/* * Copyright (C) 2008,2010,2013,2015,2016,2025 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * write_sound.c module to write data to some SOX (SOund eXchange) output format * -- Bernd Feige 16.10.1996 * * If (args[ARGS_OFILE].a...
05cbc13ac5cea72df61a441067b0da5d24c04ab70b0e5086747b06153c99e61e
C
8,597
230
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <immintrin.h> #include <qnnpack/q8gemm.h> #include <requantization/runtime-sse2.h> static ...
8043c54599ccc3f75254bf3223f7dc30a45d5922926efe752232dceee123f347
C
8,645
231
/* FILE output.c */ /* Write data to file.a; apply -x -m -X & limit trial numbers */ #include "deffs.h" #include <fcntl.h> /* Open/close */ #include <string.h> /* strcpy() */ #include <sys/types.h> /* write() */ #include <sys/stat.h> /* chmod() */ #include <unistd.h> /* lseek arg's */ #include...
fd41ded072b74f56420c89ae862a9d066a3d8bc7f0243125cd54e40645c36377
C
8,669
208
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <emmintrin.h> #include <qnnpack/x8zip.h> void pytorch_qnnp_x8zip_xm__sse2( size_t n, ...
bda55ab1143ebc4f6a2077056fd2861e184056aec47a046546b74cfd5616edec
C
8,731
284
/* FILE RewardSort.c */ /* Read a string of units in; normalize each to a single trial and then add to a main register */ #include "../defs.h" #include "../array.h" /* Access registers directly */ #include "../_imports/deffs.h" #include "../_imports/event.h" /* Stack instruction definitions*/ #...
9ec58c62c770a42684ecb4ec6b757a433da863dc6bfb701e52ec95e0d5171163
C
8,751
321
#include <zephyr/kernel.h> #include <zephyr/drivers/uart.h> #include <zephyr/logging/log.h> #include <assert.h> #include <zephyr/kernel.h> #include <zephyr/sys/ring_buffer.h> #include <zephyr/types.h> #include <stddef.h> #include <string.h> #include <stdio.h> #include <math.h> #include <stdint.h> #include <stdlib.h> #...
aa0019eb4d1efc6c414ca378629e1366921fa0f98aabc450cd7a3b153520734a
C
8,797
220
/* * Copyright (C) 1996-2001,2003,2006,2010,2020 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * write_kn.c module to write data to a Konstanz (Patrick Berg) file. * part of this code was taken from Patrick's `3ascimp.c'. * -- Ber...
c5a020a24a3f7822276073a084f0d809b5919eeb15506e47c295d6751bde5401
C
8,825
316
#include <zephyr/kernel.h> #include <zephyr/drivers/uart.h> #include <zephyr/logging/log.h> #include <assert.h> #include <zephyr/kernel.h> #include <zephyr/sys/ring_buffer.h> #include <zephyr/types.h> #include <stddef.h> #include <string.h> #include <stdio.h> #include <math.h> #include <stdint.h> #include <stdlib.h> #...
3c2286b6e22ba689b1cc2ffdaacc601030f816907eab9f05b56238df161b20ef
C
8,837
205
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <emmintrin.h> #include <qnnpack/x8zip.h> void pytorch_qnnp_x8zip_x3__sse2(size_t n, const ...
93f3379c3e9604f8d3019378959f20197dcc89cfc6cebe75d498210dd7709c9e
C
8,855
268
/* * Copyright (C) 1996-1998,2000,2001 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* Definition of `structure member description' arrays for the synamps format * -- Bernd Feige 13.08.1996 */ #include <stdio.h> #include <read_struct.h> #include "neurohdr.h" str...
d955ae2698ecdbd5910a91a8260b8c05324a4ee1f4bb7e6fcaebd3d99a9627fb
C
8,872
224
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <immintrin.h> #include <qnnpack/common.h> #include <qnnpack/q8vadd.h> #include <qnnpack/sca...
fe1731ea01344772842717d9951f960bd4d85b9f3e2cc73775a602ba5b75a4b6
C
8,874
285
/* ALGORITHM AS 217 APPL. STATIST. (1985) VOL.34, NO.3 @article{HarP85, author = {P. M. Hartigan}, title = {Computation of the Dip Statistic to Test for Unimodality}, year = 1985, journal = {Applied Statistics}, pages = {320--325}, volume = 34 } @article{HarJH85, author = {J. A...
60b01ae87cbd2a2fa820bf1635364e331a39acfc4f2db4df3fe0a0ddb848f824
C
8,905
287
/* * Copyright (C) 1996-2003,2006,2007,2010,2012,2013,2017,2026 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Includes*/ #include <stdio.h> #include <stdlib.h> #ifdef __GNUC__ #include <unistd.h> #endif #include <string.h> #include <math.h> #include...
2d3abf544863bc68a4349a727e229508321bb2a4195c46f6a3d5b0962317b423
C
8,939
254
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <emmintrin.h> #include <qnnpack/u8maxpool.h> void pytorch_u8maxpool_u...
c0f72cd1968f1c998b3dc93b1038175c1ca43233e26b3103f0cba5c24d45d49b
C
9,104
268
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <arm_neon.h> #include <qnnpack/sgemm.h> void pytorch_sgemm_ukernel_5x8__neon( size_t m...
040ccc76265131cf6053e37e2de648abf0c78b3a58a3ae194c6d24c6af19a3da
C
9,132
264
/* * Copyright (C) 1996-2001,2003,2010,2013,2020 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * read_kn.c module to read data from Konstanz (Patrick Berg) file. * part of this code was taken from Patrick's `3ascexp.c'. * -- Bernd...
0b9019746d44e29d673f1fd72abc4062b2df28e591b0747c30b6641d5b4214c0
C
9,160
269
/* FILE chg.c */ /* Change various parameters, mostly (?) from graphing routines */ /* FUNCTIONS: * MenuChg Display changables and their values * ChangeParameter Change a variable's value * SetParameter (#define in defs.h that calls ChangeParameter * ChangeColor Set color obta...
25589eb350fc43a9ff2989981ca32fd731290f2979c75f76ab91b2b22adace61
C
9,195
277
/* * Copyright (C) 1996-1999,2001,2003 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * normalize_channelbox 'transform method' setting the main plane of the * channel positions to the x-y plane, with the topmost (max z) channel hig...
2abb8b504d94c6694b0a79b32987c318a8307327969f8c663939ecc063ffe846
C
9,274
266
/* * Copyright (C) 1996-2000,2003,2019 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * histogram.c method to generate a histogram with defined resolution * for all selected channels. * The histogram boundaries are the same for all...
a5001feb2b373f1766e77d4b991bd4c700014bae346b3918d8bb1176709c1cd6
C
9,349
299
/* * Copyright (C) 1996-2004,2007,2015 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Includes*/ #include <stdio.h> #include <stdlib.h> #ifdef __GNUC__ #include <unistd.h> #endif #include <string.h> #include <read_struct.h> #ifndef LITTLE_ENDIAN #inc...
ac73fe9a26b1b9e4a1e99d1d47fe6404fdae6a7f3533c4ef4497e041e07921ad
C
9,443
288
/* FILE kubaneksort.c */ /* Sort trials in current file */ #include "../defs.h" #include "../array.h" /* Access registers directly */ #include "../_imports/deffs.h" #include "../_imports/event.h" /* Stack instruction definitions*/ #define PRINT_REGISTER_NAMES 0 #define ALIGNMENT_TIME 2000 #defi...
6ecd2ec3fadc02ab1a403c1bd44a8537a4c2a0f057912cd6527fb6cadc8eb68c
C
9,454
472
#include "vogl.h" static int ntsegs, tsegs = 10, nusegs, usegs = 10, ntcurves = 10, nucurves = 10, ntiter = 1, nuiter = 1, makeprec_called = 0; static Matrix et, eu, ones = { {1.0, 1.0, 1.0, 1.0}, {1.0, 1.0, 1.0, 1.0}, {1.0, 1.0, 1.0, 1.0}, {1.0, 1.0, 1.0, 1.0} }; static float addem...
b192cc34f331e2045e1e7714cefe8db33aa1c7542c85b26ef14782a09d68b85f
C
9,564
372
/* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */ #include <math.h> #include <float.h> #include <stdio.h> #include <stdlib.h> #include "ad_frsnl.h" #include "ad_globl.h" #include "ad_matrx.h" #include "ad_phase.h" #include "ad_radau.h" #include "ad_start.h" #include "nr_gaulg.h" #include "nr_util.h" ...
5fc8c959cdbd9ebb48aee3d56559aefc9c0f9d86184af81363a6549ad45b8156
C
9,584
290
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <math.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #i...
3e7fbda4492859c732c26090d68d4381e5c16b4cfdc8e8139e6bc84385dcb701
C
9,595
324
#include <zephyr/kernel.h> #include <zephyr/drivers/uart.h> #include <zephyr/logging/log.h> #include <assert.h> #include <zephyr/kernel.h> #include <zephyr/sys/ring_buffer.h> #include <zephyr/types.h> #include <stddef.h> #include <string.h> #include <stdio.h> #include <math.h> #include <stdint.h> #include <stdlib.h> #...
70ca28b0a17888ad9ca57a9a6542c450ce841220e105377335676f0b931496c2
C
9,639
264
/* FILE head.c */ /* Interaction with header */ #include "defs.h" #include "stack.h" /* Stack variables */ #include "_imports/head.h" #define DEBUG 0 /* ******************************************************************** * Read_header: Read in the header (test if header) Call_Load_Data: Call Load_Data...
297218045032f18e2aa3c5e9129627cfdcd150abf3c280c0f20f88163d3c5612
C
9,667
315
/* * Copyright (C) 1997-2001,2003,2004,2006,2010,2011 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * add_value.c method to add a value to each point in the incoming epochs * - either a constant value * - or various calculated val...
47bdae119bc446538ae65c7758c8f254e30ed53726a712e265ca07cbe00a1ba4
C
9,694
291
/* * Copyright (C) 1996-1999,2001,2003,2010,2013,2026 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * collapse_channels collapses all input channels to one output "channel" * -- Bernd Feige 24.11.1993 */ /*}}} */ /*{{{ #i...
c5642c3caade72fb5e29d28ca1fcd159c12e6eb38c1b3c97e8bc069e181f39b5
C
9,829
286
/* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */ /*========================================================================= Copyright (c) 2008 Thomas Yeo and Mert Sabuncu All rights reserved. Redistribution and use in source and binary forms, with or without modification, are ...
e69269e15e3707ca6416f773a51f5eef0ea16bce6b5ae18877840d3989aea8d8
C
9,943
238
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <stdint.h> #include <tmmintrin.h> #include <fp16/bitcasts.h> #include ...
4cf320d61baba14a37f721c43c67711a488c263d031cff42f4fd3507f15f29af
C
9,944
260
/* * Copyright (C) 2022,2026 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Includes*/ #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef __GNUC__ #include <unistd.h> #endif #include <read_struct.h> #ifndef LITTLE_ENDIAN #include <Inte...
dff95e7a06e5766bb7950be0954db7d8bb4d2283543983a9de51194f02d22f9f
C
10,012
303
/* FILE trial */ /* Keep track of trial types */ #include "deffs.h" #include "event.h" #include "trial.h" #include <string.h> #define DEBUG 0 /* Levels 0 thru 2 */ /* ******************************************************************** */ /* *****************************************************************...
6e7ec7e7abfaebb889dc73b20f555d1a97d8900ca9c721eccbd34f8dd54a740a
C
10,115
241
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <stdint.h> #include <emmintrin.h> #include <fp16/bitcasts.h> #include ...
2a6bd385faf1cf6fc681810f1d6d217849b95b062f215706f72a0ca6f5a74b7b
C
10,140
300
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <math.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #i...
e780ddf911869e6944fa172cbc7f290c37b5fc83d20ee3a9592f3c5543af1107
C
10,147
664
#undef VOGLE /* * The next bit is site and UNIX specific... */ #undef LASERWRITER /* * Some more bug fixes from ralf@physik3.gwdg.de (Ralf Fassel) * regarding %%Pages and devname .... 28/03/94 */ #include <stdio.h> #include <string.h> #ifdef VOGLE #include "vogle.h" #else #include "vogl.h" #endif typedef stru...
8f315d2c92186fbf99ff4664f57765d325ffb2a4bf6ab24a4c3bb62f88710e32
C
10,162
282
/* * Copyright (C) 2008,2012,2014,2025 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * read_labview.c module to read data from an hdf file * -- Bernd Feige 26.03.2008 */ /*}}} */ /*{{{ Includes*/ #include <stdio.h> #include <st...
266e0ab3ead365e3ae4e06c857b2062c699e729c56bd9bf0067fdd0a9b3acaaa
C
10,166
260
/* FILE time */ /* Do trial timing stuff */ /* Alignment is a major issue. Here is the sequence: main.c main() calls Set_TrialTypes() trial.c Set_TrialTypes() calls Set_TrialTiming() time.c Set_TrialTiming() calls Set_AlignTime() There is a separate module (align.c) that does actual alignment ...
3dc294f32a41614b40b21998f87661dfac3927255840911eafaca24b831f6842
C
10,237
440
/*2:*/ #line 18 "../src/ad_main.w" #include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <unistd.h> #include <errno.h> #include "ad_globl.h" #include "ad_prime.h" #include "ad_cone.h" #include "version.h" /*10:*/ #line 241 "../src/ad_main.w" static void print_version(void) { ...
d349924e6f186f5d921d41bdddb2ce1344015865ea4f532a72967541639b3e18
C
10,253
298
/* * Copyright (C) 2016,2025 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * read_cfs.c module to read data from Cambridge Electronic Design (tm) CFS files. * -- Bernd Feige 29.02.2016 */ /*}}} */ /*{{{ Includes*/ #include <std...
bd2ba46c89ea1fe94dfb1d4fa054bf8428f833c92ddabb0fa1b89f2cd6c3db24
C
10,254
306
/* FILE filter.c */ /* Filter 'float' input with filter of length n (n is odd) * NOTE: filters only mean, not SD or SE (not sum2) * FOR NEW FILTERS, TRY: * http://www.dsptutor.freeuk.com/remez/RemezFIRFilterDesign.html */ #include "array.h" /* For reg->ptr&datapts */ #include "defs.h" /...
ac5f1f9e1ed1948244d822321b8de338a2c38a6b0b09f7dc96e5be2ec9668c9e
C
10,292
371
/* * Copyright (C) 1994,1995,1997,1998,2004,2011 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /* * Spline gridder: Gridder using surface splines to interpolate the data * input given by a 3-d array of irregular input points z(x, y). * The program determines the co...
4b11c71802ec6f13c78553b51e382f1cdc398441b55587907073f0beeb3d3ca1
C
10,329
295
/* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */ #include <math.h> #include <float.h> #include <stdio.h> #include <stdlib.h> #include "nr_util.h" #include "ad_globl.h" #include "ad_prime.h" #include "ad_matrx.h" #include "ad_prime.h" #include "ad_layers.h" static void PrintTestResults(int test, int c...
5b0cc6f2c20f30307fc22c22b75356b552a31354deefd99719293c054369d162
C
10,457
305
/* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */ /*========================================================================= Copyright (c) 2008 Thomas Yeo and Mert Sabuncu All rights reserved. Redistribution and use in source and binary forms, with or without modification, are ...
e2977876adc2ac309926788278b821cafecfb2e3a699f732d52eb4495fa86445
C
10,573
327
/* * Copyright (C) 1996-1999,2001,2005,2009-2013,2016,2019,2026 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * avg_q(ueue).c batch user interface. * * avg_q reads an input file containing any number of input scripts which * are ...
8a66b086bea7753c0406af0838fcdd9edc4b263c85af1acea956c58f3df14866
C
10,607
317
/* * Copyright (C) 1996-2003,2007,2010,2012,2013,2016,2017,2026 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Includes*/ #include <stdio.h> #include <stdlib.h> #include <limits.h> #ifdef __GNUC__ #include <unistd.h> #endif #include <string.h> #inclu...
a0b87ddbaaf6d6e045459d6f3703a9a789192ed2cb768e8e175a549e6c2acd74
C
10,608
315
/* * Copyright (C) 1996-2001,2003,2010,2011 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * calc is a simple transform method doing elementwise operations on the whole * data set using one of the functions defined below * --...
2207ad4bed135e0d10904f8c3d1978d2aad42db24a42d08c053600aa0b5341eb
C
10,669
307
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <arm_neon.h> #include <qnnpack/sgemm.h> void pytorch_sgemm_ukernel_6x8__neon( size_t m...
a8d20cffdb74f52d4848b4a24dbe967e3639e15f8240c28a9b6515abee9075cf
C
10,719
315
/* * Copyright (C) 1996-2001,2003,2004,2013 Bernd Feige * This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING). */ /*{{{}}}*/ /*{{{ Description*/ /* * remove_channel method to remove one channel from the data. * -- Bernd Feige 25.01.1994 */ /*}}} */ /*{{{ #includes*/ #include <st...
bd901b30c9edc15891e233e49b0e71acfea660fa71b0ff77b77f069d90807354
C
10,836
311
/* Contact ythomas@csail.mit.edu or msabuncu@csail.mit.edu for bugs or questions */ /*========================================================================= Copyright (c) 2008 Thomas Yeo and Mert Sabuncu All rights reserved. Redistribution and use in source and binary forms, with or without modification, are ...
b65a6df55b350c8e095565600d09604bcc595e87d58b21cd92a3a1edd978bf6a
C
10,885
370
/* FILE gainfield.c */ /* Sort trials in current file for gain field experiments */ #include "../defs.h" #include "../array.h" /* Access registers directly */ #include "../_imports/deffs.h" #include "../_imports/event.h" /* Stack instruction definitions*/ #define P_CRITERION (0.05/8) /* Else skip...