sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 17k | content stringlengths 1 200k |
|---|---|---|---|---|
142c8999d68dc33fca2b7b7f7d0400466c10e42814539fe74ef75ae4d9aa3c08 | C | 1,126 | 64 | #include "vogl.h"
#define SMALL_CHARS 0
#define LARGE_CHARS 1
static int vega_size = LARGE_CHARS;
extern unsigned _cur_color;
void
vega_string(str)
char *str;
{
char *p;
register int x, y, w;
x = vdevice.cpVx;
y = vdevice.sizeSy - vdevice.cpVy - (int) vdevice.hheight;
w = (int)vdevice.hwidth;
for (p... |
9a915edca208e3f3aba6c2270a31e9a01a076d724611cca8bc0b588aebbfa235 | C | 1,131 | 46 | /*
* 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/x8zip.h>
void pytorch_qnnp_x8zip_x2__neon(size_t n, const v... |
f26e3d9e9770b9c7124b7c6cc26c6d4b1156805b53eb86b836266189df0114f8 | C | 1,131 | 45 | /*
* Solve a linear set of equations using LU decomposition.
* Adapted from the Numerical Recipes (2.0).
* -- Bernd Feige 30.09.1993
*
* Input is the output of array_ludcmp (decomposed array a,
* row permutation array indx) and the inhomogenity vector
* b. On output, b is replaced by the solution vector x.
*... |
7acccf1abdd70bd26cee6414074805c65acd8d0c1fb9c405cff53017234b8deb | C | 1,132 | 30 | #if defined(DETECT_FEATURES) && defined(__INTEL_COMPILER)
/*
* Unlike GCC and CLANG, Intel Compiler exposes all supported intrinsics,
* whether or not the build options for those features are specified.
* Therefore, we must test #definitions of CPU features when option native/host
* is enabled v... |
be672e43d3fa294ee01ebde2e6dadc5c87d256f9c90fabeb35d54b6a21e0f115 | C | 1,134 | 54 | #include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
/*
* the basic test program for a driver if we can draw a line and do
* hardware text we are almost there!
*/
main(argc, argv)
int argc;
char **argv;
{
short val;
winopen("trivial");
if (ar... |
e3289047944397fdf8b477abb6783f8130676565323d34847cef1fff597fd13a | C | 1,137 | 73 | #include <stdio.h>
#include <math.h>
#include <suntool/sunview.h>
#include <suntool/canvas.h>
#include <suntool/panel.h>
#include "vogl.h"
#define SIZE 512
quit()
{
gexit();
exit(0);
}
resize(canvas, w, h)
Canvas canvas;
int w, h;
{
fprintf(stderr, "Resize proc\n");
vo_sunview_canvas_size(w, h);
reshapeviewp... |
794a7bd3d34c4996ae163ff56106a2dbbc30ef58c2314dcc68fd9d6a9bfeb1c4 | C | 1,143 | 36 | /*
* Copyright (C) 2000,2008 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 EDF format
* -- Bernd Feige 3.3.2000 */
#include <stdio.h>
#include <read_struct.h>
#include "RECfile.h"
struct_member_descri... |
349c4f2c0536223dc1fbbfee9568b7071d96aab5d0f165d9817e3622e0f2ed55 | C | 1,148 | 37 | /* FILE _macros/test.c */
#include "../Deffs.h"
/* ******************************************************************** */
/* Test; print name is see or don't see name */
/* (test all combinations against each other */
static int guts();
/* ****************************************************************... |
85ca531614fb63958dccd1650c9eba6b6f74044e7d9cfe85d840308737fa73c4 | C | 1,149 | 66 |
#include "vogl.h"
static long px = -1, py = -1, pxs = -1, pys = -1;
/*
* prefposition
*
* Specify a prefered position for a window that is
* under control of a window manager.
* Position is the location of the upper left corner.
* Should be called before ginit.
*/
void
prefposition(long int x1, long int x2, l... |
34d4fdb073a65a2881ccccdcc99e2cd635eed8b1f66dbb75a9ce3573d548516d | C | 1,151 | 55 | #include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
/*
* the basic test program for a driver if we can draw a line and do
* hardware text we are almost there!
*/
main(argc, argv)
int argc;
char **argv;
{
short val;
vinit("mswin");
winopen("tr... |
02b149e9d9a1e7a8cb8c502e9551d371e6f5aac8f93d3839f39106dcfb2922c5 | C | 1,169 | 30 | /* plot2ps, a utility for converting Unix plot files into postscript.
Copyright (C) 1989 Free Software Foundation, Inc.
Plot2ps is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY. No author or distributor accepts responsibility to anyone for the
consequences of using it or for whether it s... |
73ed0ef52a1cc802a48e08667eaec90a81b9a711b6a5b1758017a6fe7ff221bc | C | 1,171 | 54 | /* rndlcg Linear Congruential Method, the "minimal standard generator"
Park & Miller, 1988, Comm of the ACM, 31(10), pp. 1192-1201
*/
static char rcsid[] __attribute__((unused)) = "@(#)randlcg.c 1.1 15:48:15 11/21/94 EFC";
#include <math.h>
#include <limits.h>
#include "randlcg.h"
... |
ce08e491cde3af90c1b4c7725b7b85067901df1833896f562bce9c8836fbbbd9 | C | 1,173 | 29 | /* plot2ps, a utility for converting Unix plot files into postscript.
Copyright (C) 1989 Free Software Foundation, Inc.
Plot2ps is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY. No author or distributor accepts responsibility to anyone for the
consequences of using it or for whether it s... |
24856338c3277bb6039ec3565d611dfe0403c39a449bb11484a024aa43996d47 | C | 1,194 | 50 | /*
* Copyright (C) 1995,2008,2012,2013 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/* This module provides routines to rearrange the order of various
* binary values within memory between little- and big-endian.
* Two calls to one function will result in the origi... |
4dbda0fadb8aac403f397afe7684fdba1e43b9baf22d8cdc2de7a282e4801d0d | C | 1,194 | 64 | /*
* Copyright (C) 1993,1994 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* complex.c routines for handling of complex numbers
* -- Bernd Feige 4.05.1993
*/
#include <math.h>
#include "transform.h"
#include "bf.h"
GLOBAL double
c_phase(complex cmpl) {
ret... |
abbc8a7fc1dd25248f3bc316cabd7df98983460b43f19a425e107c11fa08db55 | C | 1,202 | 32 | /* Copyright (C) 1989 Free Software Foundation, Inc.
plot is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY. No author or distributor accepts responsibility to
anyone for the consequences of using it or for whether it serves any
particular purpose or works at all, unless he says ... |
e59d28b382f80e5743f4ed56653a2e8f3b9c2fb438606f559af961aa3ed7f947 | C | 1,216 | 68 | #include "Python.h"
/* The following timer code comes from Python 2.5.2's _lsprof.c */
#if !defined(HAVE_LONG_LONG)
#error "This module requires long longs!"
#endif
/*** Selection of a high-precision timer ***/
#ifdef MS_WINDOWS
#include <windows.h>
PY_LONG_LONG
hpTimer(void)
{
LARGE_INTEGER li;
Q... |
123c90a4f4353777ba80fe1ce8550b894441542b58998367febb500f49a01593 | C | 1,222 | 30 | #include "plot.h"
#include "../plot.h"
/*
* Global initialization of function pointers *
*/
int (* openplP) (void) = openplID;
int (* closeplP) (void) = closeplID;
int (* flushplP) (void) = flushplID;
int (* spaceP) (int, int, int, int) = spaceID;
int (* colorP) (int, int, int) = colorID;
int ... |
381d17c8b5e70dd1606bd9ca4e1739fa7c05e959676e6b257b692132c5300dbc | C | 1,223 | 34 | /* plot2ps, a utility for converting Unix plot files into postscript.
Copyright (C) 1989 Free Software Foundation, Inc.
Plot2ps is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY. No author or distributor accepts responsibility to anyone for the
consequences of using it or for whether it s... |
488afbf595b87e205c3817a2a917b0aaeea7b7a4d32d52c122ab40f59fb5cc43 | C | 1,223 | 30 | #include "plot.h"
#include "../plot.h"
/*
* Global initialization of function povoiders *
*/
int (* openplP) (void) = openplID;
int (* closeplP) (void) = closeplID;
int (* flushplP) (void) = flushplID;
int (* spaceP) (int, int, int, int) = spaceID;
int (* colorP) (int, int, int) = colorID;
int... |
05c13e8bcd5e6b55cf1337c5a760257397af92eac43c2fc874a050ac81156c58 | C | 1,230 | 33 | /* plot2ps, a utility for converting Unix plot files into postscript.
Copyright (C) 1989 Free Software Foundation, Inc.
Plot2ps is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY. No author or distributor accepts responsibility to anyone for the
consequences of using it or for whether it s... |
89c44b25def69ebeabe5aca71d9077db0f46477b7cfd92ecb998ca0c38beaf82 | C | 1,230 | 31 | /*
* vgui_hook.c - trampoline for the VGUI device driver in the Windows
* shared-library build of vogl.
*
* drivers.c (compiled with -DVGUI) calls _VGUI_devcpy() to install the VGUI
* device table into the global vdevice. In the static build -- and on ELF,
* where a shared library may leave symbols undefined -- _... |
33f20aebb6e8cf0e342a2e12eb5f6a7c692760735cb8357b94b2bd6d3c21311d | C | 1,241 | 32 | /* Copyright (C) 1989 Free Software Foundation, Inc.
plot is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY. No author or distributor accepts responsibility to
anyone for the consequences of using it or for whether it serves any
particular purpose or works at all, unless he says ... |
407103b070d84e320ac07b37d4cf20e0e67ea90444cf97f554cd01389ce69326 | C | 1,247 | 51 | /*
* 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/x8zip.h>
void pytorch_qnnp_x8zip_x3__neon(size_t n, const v... |
ebd63724b3105056669a7f3858a992e568859a270e114ef007d524278191d767 | C | 1,254 | 30 | /*
* Copyright (C) 1996 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/* Definition of `structure member' arrays for the tucker format
* -- Bernd Feige 16.12.1996 */
#include <stdio.h>
#include <read_struct.h>
#include "tucker.h"
struct_member sm_tucker[]={
{siz... |
0421b4e1d7160258d5d586f6b57e920770c9a1e9bfa1a80e5b44ea93d41e7697 | C | 1,267 | 53 | /*
* array_ranks.c - output the ranks of the numbers within an array.
* -- Bernd Feige 19.10.1993
*
* Ranks start with 1. If there are n equal numbers, they are all assigned
* the rank number that is the average of the rank range they occupy.
* eg [3 2 2] will have the ranks [3 1.5 1.5].
*/
#include <stdio.... |
36a97122d4cd18f96c137cdc0b3b4868cd1184930a6bff9b0da8549094d7b6a8 | C | 1,275 | 29 | /*
* Copyright (C) 1993 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* mfx_errors.c. This module defines the plain text messages corresponding
* to the error numbers defined in mfx_file.h. Bernd Feige 8.02.1993
*/
#include "mfx_file.h"
char *mfx_errors[]={"N... |
40c7d8b941322be9659fbb40188d42bb67d1ce81989579ce4569badeee4c0c83 | C | 1,279 | 30 | /* libtek, a library of functions for tektronics 4010 compatible devices.
Copyright (C) 1989 Free Software Foundation, Inc.
libtek is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY. No author or distributor accepts responsibility to anyone for the
consequences of using it or for whether i... |
bff26f7adc7f2dead8c30eb7829510454aef999aac1e5b631a79ea660cfd70d5 | C | 1,295 | 48 | /*
* 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/u8rmax.h>
uint8_t pytorch_u8rmax_ukern... |
fbb451aea15e0d4c29e14063a400aced205e192830fbcc708aac4056693da3ad | C | 1,298 | 32 | /* plot2ps, a utility for converting Unix plot files into postscript.
Copyright (C) 1989 Free Software Foundation, Inc.
Plot2ps is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY. No author or distributor accepts responsibility to anyone for the
consequences of using it or for whether it s... |
34cc45db1b14938efec300c93355e8eac33e0963cea7d24c38edf5dda63d3950 | C | 1,309 | 37 | /* Copyright (C) 1989 Free Software Foundation, Inc.
plot is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY. No author or distributor accepts responsibility to
anyone for the consequences of using it or for whether it serves any
particular purpose or works at all, unless he says ... |
00e5900bae7bb516de7c96800af65e82c1bcb85556e01fbf674b0eeb7193acf6 | C | 1,312 | 32 | /* plot2ps, a utility for converting Unix plot files into postscript.
Copyright (C) 1989 Free Software Foundation, Inc.
Plot2ps is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY. No author or distributor accepts responsibility to anyone for the
consequences of using it or for whether it s... |
a45ccb94c07a0245b336e7fe88450c6f9085e18eeb6242456beb3c0b52bff217 | C | 1,312 | 47 | /*
* 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/u8rmax.h>
uint8_t pytorch_u8rmax_uker... |
f37cce9c6d03ff7a293ac7c3ee76b719ace27691c0af060c82a9483238495e92 | C | 1,313 | 55 | #include "plot.h"
XPoint Xpl_line_buffer [XPL_BUFFER_SIZE];
int Xpl_nlines = 0;
XPoint Xpl_point_buffer[XPL_BUFFER_SIZE];
int Xpl_npoints = 0;
void Xbuffer_point (int x, int y)
{
if (Xpl_npoints == XPL_BUFFER_SIZE) Xbuffer_flushpl();
Xpl_point_buffer[Xpl_npoints].x = x;
Xpl_point_buffer[Xpl_npoints... |
3898203e3db9d5aede11b70a4696e6809bf1c9a59bbc793b0df099e7f671d4e5 | C | 1,316 | 103 | #include "vogl.h"
/*
* patchbasis_
*/
void
patchbasis_(ubasisid, vbasisid)
int *ubasisid, *vbasisid;
{
patchbasis((long)ubasisid, (long)vbasisid);
}
/*
* patchb_ (same as patchbasis_)
*/
void
patchb_(ubasisid, vbasisid)
int *ubasisid, *vbasisid;
{
patchbasis((long)*ubasisid, (long)*vbasisid);
}
... |
58e29ce1adf754c3cd9a8ad2e5630fbfec4ccef9eec7a5309eada677847d2604 | C | 1,340 | 61 | /*
* Copyright (C) 1999-2018,2020,2024-2026 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <bf.h>
#include <avg_q_config.h>
#ifndef VERSION
#define VERSION "6.x.x"
#endif
#ifndef DATE
#define DATE " UN... |
bebc03e58a09539b51dd50914e1de0c897a4c1db5b5c4d6d5a8f8f3dd6c0b6be | C | 1,343 | 78 | #include "vogl.h"
/*
* polarview_
*/
polarview_(dist, azim, inc, twist)
float *dist;
int *azim, *inc, *twist;
{
polarview(*dist, (Angle)*azim, (Angle)*inc, (Angle)*twist);
}
/*
* polarv_ (same as polarview_)
*/
polarv_(dist, azim, inc, twist)
float *dist;
int *azim, *inc, *twist;
{
polarview(*dist, (Angle)*... |
70a7ebe757bda3ec0c96c06347afa31bb928f311b5e195769422b88e8f70e486 | C | 1,361 | 177 | #include "vogl.h"
/*
* v4f_
*/
void
v4f_(vec)
float vec[4];
{
vcall(vec, 4);
}
/*
* v3f_
*/
void
v3f_(vec)
float vec[3];
{
vcall(vec, 3);
}
/*
* v2f_
*/
void
v2f_(vec)
float vec[2];
{
vcall(vec, 2);
}
/*
* v4d_
*/
void
v4d_(vec)
double vec[4];
{
float v[4];
v[0] = vec[0];
v[1] = vec[1];
v[2] = v... |
05ffe07bd0575bd40cbc67b04d9577cc4917746e86f5a504a98294b171cc854b | C | 1,367 | 36 | /* Copyright (C) 1989 Free Software Foundation, Inc.
plot is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY. No author or distributor accepts responsibility to
anyone for the consequences of using it or for whether it serves any
particular purpose or works at all, unless he says ... |
b6c2b80c7d7d15ad6fadf55bc8778bb653514ec06d03715e847e2c230c93541b | C | 1,367 | 109 | #include "vogl.h"
/*
* pnt
*
* plot a point in x, y, z.
* This is just the old VOGLE routine point.
*
*/
void
pnt(float x, float y, float z)
{
if(!vdevice.initialised)
verror("pnt: vogl not initialised");
move(x, y, z);
draw(x, y, z);
}
/*
* pnts
*
* plot a point (short integer version)
*
*/
voi... |
2d7c405ef3ad2d7cb2f82f600ec7fd73feec819ee190e8f8ea42369fd68735a7 | C | 1,381 | 45 | /* FILE _macros/basic.c */
#include "../Deffs.h"
#include "../../event.h"
/* ******************************************************************** */
/* ******************************************************************** */
/* FUNCTION RewardBasics30 */
/* unit run trial choice history targ-h targ-v rwd */
void Re... |
ea88a5783ecdd0650ed639546c18c604028caa39d0ffec0379010349a637e260 | C | 1,402 | 35 | /* Copyright (C) 1989 Free Software Foundation, Inc.
plot is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY. No author or distributor accepts responsibility to
anyone for the consequences of using it or for whether it serves any
particular purpose or works at all, unless he says ... |
d7c061e9487a3fcc2eaaddfd18e132e350a9016fb289c11a1ee2e4ceb234223e | C | 1,403 | 35 | /* Copyright (C) 1989 Free Software Foundation, Inc.
plot is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY. No author or distributor accepts responsibility to
anyone for the consequences of using it or for whether it serves any
particular purpose or works at all, unless he says ... |
2af5b6926d215b9b06f72f17284b7a92ef7b63032c65b9b357c82a989c5bdc0c | C | 1,405 | 45 | /*
* Copyright (C) 1993,1995,1997 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* array_readelement_double.c functions to read one element from a memory-contained
* array of double values. This is a bit faky to be able to access double existing
* double (long fl... |
4c61c72b0b4865fbacb1b813699bf0305d831d92bb27f27bc1f667590cadaf3a | C | 1,426 | 44 | /*
* Copyright (C) 1995,1997,2012 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* fix_headers encapsulates the process of changing the various MFX headers
* between little- and big-endian number representation. Calling any of these
* twice on the same data shou... |
853006b591768d4f9268886b592b438f75c8de3456db6b835cfb962e3342dafe | C | 1,433 | 57 | /*
* 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/x8zip.h>
void pytorch_qnnp_x8zip_x4__neon(size_t n, const v... |
495892d1224e9d7db35d37b94805f1841c73e8510212ebf72b38f8fcad149fb0 | C | 1,448 | 40 | /* plot2ps, a utility for converting Unix plot files into postscript.
Copyright (C) 1989 Free Software Foundation, Inc.
Plot2ps is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY. No author or distributor accepts responsibility to anyone for the
consequences of using it or for whether it s... |
f0b95f39dd59bde0e5e731312fd612e4f8e2fb6b856452ec639c3d05e83fc987 | C | 1,449 | 59 | /* mexhyp2f1.c
* Evaluate the Gauss hypergeometric function 2F1(a,b;c;x) of real
* value x, x < 1
*
* h = mexhyp2f1(a,b,c,x)
* x must be a n x 1 double vector
* a,b,c, can be scalars or n x 1 double vectors
* h is a n x 1 double vector
*
* Siyi Deng; 10-10-2013;
*/
#include "mex.h"
... |
40aae1b8b3090b1cba4e29041eaec7db61d0a897d2c5da7d9924fc4574b385d8 | C | 1,455 | 85 | #include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
/*
* a routine to demonstrate using locator.
*/
main()
{
int i, bt, act, nchars;
short data;
Scoord x, y, sx, sy;
Screencoord minx, maxx, miny, maxy;
ginit();
color(BLACK);
clear();
c... |
ae9cc53b91743b8ec2fae701eef1987544becddc966f56318a26e8a40a01cb14 | C | 1,469 | 60 | /*
* Copyright (C) 1993,1994 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
#define _XOPEN_SOURCE
#include <math.h>
#include "transform.h"
#include "bf.h"
/*
* data is a pointer to the data (not to data-1 as in numrec)
* nn is the number of real points (not half the... |
b6783205e3df150c53b6de06ea1a4746286ee7ba069f8dad606ba346e9ef7a7d | C | 1,470 | 52 | /*
* Copyright (C) 1994 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* array_linedist calculates the minimum distance between a point x3
* and a line through x1 and x2.
* array_parameter_linedist calculates the parameter d with x=x1+(x2-x1)*d
* giving the poin... |
77919fc8c7e8008aee08f3aadcc1e8f627f0520ec26a2698bb1bc88daef3a36c | C | 1,472 | 86 | #include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
/*
* a routine to demonstrate using locator.
*/
main()
{
int i, bt, act, nchars;
short data;
Scoord x, y, sx, sy;
Screencoord minx, maxx, miny, maxy;
vinit("mswin");
ginit();
color(BLAC... |
d2f9c0f17ea048ec4d38fa86fb61a8194e938c5050c152b12c04c8c426a4d5be | C | 1,488 | 45 | /*
* Copyright (C) 1993,1994,1997,1998 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* hist_autorange.c provides the global function hist_autorange(tinfo)
* to automatically allocate the hist_boundaries structure for all
* selected channels and to set the histog... |
420ee602f148728fa5fb97e5dffc9c6d2cd3a28017e8731a5440d0c4978e1a42 | C | 1,499 | 44 | /* FILE _macros/jeff/getbestclass.c */
/* Write best class into a file. If fails, LEAVE EMPTY! */
/* ******************************************************************** */
#include "../Deffs.h"
/* ******************************************************************** */
/* FUNCTION GetBestClass105() */
/* Wri... |
166c4a4429909cd04b2483a9a305f415018d8778fee7636fad00a3d9efcbf76f | C | 1,510 | 69 |
/*
* fourier.c global function to perform in-place fourier analysis on a
* data set; This is from the Numerical Recipes.
* -- Bernd Feige 9.12.1992
*/
#include <stdio.h>
#include <math.h>
#include "transform.h"
#include "bf.h"
#define SWAP(a,b) tempr=(a);(a)=(b);(b)=tempr
/*
* The fast fourier transformation ... |
2441a1a9bf681a91ebd48fdc07af3961ad8813f5c377d87ba5aae08b4820c0e2 | C | 1,516 | 67 | #include <math.h>
#include "nr_rtsaf.h"
double rtsafe(void (*funcd)(double, double *, double *), double x1, double x2, double xacc)
{
void nrerror(char error_text[]);
double df, dx, dxold, f, fh, fl;
double temp, xh, xl, rts;
double temp1, temp2;
int j, MAXIT = 100;
(*funcd) (x1, &fl, &df);
... |
f2ccf456fd2389d6843a54b474f52f954fd527a31807b9ef816e0f7a51160d53 | C | 1,556 | 58 | /*
* Copyright (C) 1996,1998,1999 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* null_sink -- A tiny dummy 'collect' method that serves to close an
* iterated queue, freeing the memory of the last epoch.
* -- Bernd Feige 22... |
b50c543e11bb712c0ca4267d5257d21831ad9920d9e073f663bd1421e3d8cbe6 | C | 1,574 | 85 | #include "vogl.h"
/*
* premulttensor
*
* Premultiply the tensor b by the matrix a and place the result
* into the tensor c.
*/
void
premulttensor(float (*c)[4][4], float (*a)[4], float (*b)[4][4])
{
int i, j, k;
float x1, x2, x3, x4;
for (i = 0; i < 4; i++)
for (j = 0; j < 4; j++) {
x1 = x2 = x3 = x4... |
de0773db583af43db57760061937d91d504ba2db0eaa3e6fd4f2249b71654514 | C | 1,580 | 99 | #include "vogl.h"
/*
* rect
*
* draw a rectangle given two opposite corners
*
*/
void
rect(Coord x1, Coord y1, Coord x2, Coord y2)
{
if (!vdevice.initialised)
verror("rect: vogl not initialised");
move2(x1, y1);
draw2(x2, y1);
draw2(x2, y2);
draw2(x1, y2);
draw2(x1, y1);
}
/*
* recti
*
* draw a recta... |
a75be7d89ffa8a084a3f4a871897ab03585cde99739f09346b8fc0530ea42b39 | C | 1,594 | 52 | /*
* 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_x2__sse2(size_t n, const ... |
fcd7dbb5f480926fc0ebbba68d1d6811bf7246704be449d303be9fbd022e3559 | C | 1,595 | 41 | #include <immintrin.h>
/**
* The following intrinsics don't have direct native support but compilers
* tend to emulate them.
* They're usually supported by gcc >= 7.1, clang >= 4 and icc >= 19
*/
int main(void)
{
__m512 one_ps = _mm512_set1_ps(1.0f);
__m512d one_pd = _mm512_set1_pd(1.0);
__m512i one_i6... |
27d7b9ee84dadeeee46acc35d4ba39aac747a51706b9954d7e04a4884a09828d | C | 1,604 | 80 | /* FILE help.c */
/* PRINT menus */
#include <stdio.h>
#include "defs.h"
#define print(s) fputs(s,stderr) /* No arguments! */
#define print1(s,a) fprintf(stderr,s,a)
#define print2(s,a,b) fprintf(stderr,s,a,b)
/* ******************************************************************** */
/* FUNCTION HelpMenu */
/* ... |
0980c33d8fad3c5830576a72921ce88c2fa9bd8fe023923579b75fa0f58170ba | C | 1,610 | 54 | /*
* Copyright (C) 1993,1994 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
#define _XOPEN_SOURCE
#include <math.h>
#include "transform.h"
#include "bf.h"
/*
* real2fft takes two real arrays of length n and returns a complex array p1
* of length n+2 containing the ... |
0f5b7c710b26a67a0e39c45215460ff39b885e9afb63a225857d6e5e8bb4ff38 | C | 1,620 | 211 | #include "vogl.h"
/*
* bgnpoint_
*/
void
bgnpoint_()
{
bgnpoint();
}
/*
* bgnpoi_ (same as bgnpoint_)
*/
void
bgnpoi_()
{
bgnpoint();
}
/*
* bgnline_
*/
void
bgnline_()
{
bgnline();
}
/*
* bgnlin_ (same as bgnline_)
*/
void
bgnlin_()
{
bgnline();
}
/*
* bgnclosedline_
*/
void
bgnclosedline_()
{
bgnc... |
e321cb075b7dc586a02c4b320ffcd06a397b80df3389bae638b986b7ae14ee73 | C | 1,641 | 54 | /* FILE repeat.c */
/* Repeat_macro: repeat a single command on many registers */
#include <ctype.h> /* isdigit() */
#include <stdio.h> /* fprintf() */
#include <stdlib.h> /* atoi() */
/* These 3 'externed' to lib.c:inputs() */
int RepeatFlag = 0; /* inputs():skip stdin; also ChooseReg... |
9d0b8008eb0ee309fc2c5b6b1f56a1673121a62f049cb470306a6dc16d0615f7 | C | 1,643 | 83 |
/* -- translated by f2c (version 19940927).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "ica.h"
doublereal dsum_(integer *n, doublereal *dx, integer *incx)
{
/* System generated locals */
doublereal ret_val, d__1, d__2, d__3, d__4, d__5, d__6;
... |
eaca88c95bf6f25ff27a1f6cc30952d46b388b8984c96165b5f1345f9e00e919 | C | 1,650 | 92 | #include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
/*
* A program showing basic line drawing, hardware text and (if applicable)
* colour. We set the coordinate system to -1.0 to 1.0 in X and Y.
*/
main(ac, av)
int ac;
char **av;
{
char *p, tm... |
9729529c6822cb66f89a6b8b734d378dc92a03b6494f439a250711a12f423922 | C | 1,651 | 91 |
#include <stdio.h>
#include "vogl.h"
#define CUBE_SIZE 200.0
#define TRANS 25.0
#define SCAL 0.1
#define FACE 1
#define FILLED 2
#define OUTLINE 3
extern Object filledthing, outlinething;
extern float tdir;
extern float scal;
extern int but, nplanes;
int i, n;
setup_lcube()
{
window(-800.0, 800.0, -800.0, 800... |
1cfdca574d8ca2944161674bc9f4c283b9c6137e4b568d695d3596c2abd7fad5 | C | 1,667 | 93 | #include <stdio.h>
#ifdef SGI
#include "gl.h"
#include "device.h"
#else
#include "vogl.h"
#include "vodevice.h"
#endif
/*
* A program showing basic line drawing, hardware text and (if applicable)
* colour. We set the coordinate system to -1.0 to 1.0 in X and Y.
*/
main(ac, av)
int ac;
char **av;
{
char *p, tm... |
50162561e9f16006e92308809fb7d6684e12a48f16b892c21ef2f58b7d3dd097 | C | 1,671 | 51 | /*
* Copyright (C) 2020 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 Sigma PLpro format
* -- Bernd Feige 14.08.2020 */
#include <stdio.h>
#include <read_struct.h>
#include "sigma_header.h"
struct_mem... |
ad8d0ffaedb01b6f9413fd7f3675716d9bac959348f9be96f9781b2fb8022a73 | C | 1,671 | 44 | /* plot2ps, a utility for converting Unix plot files into postscript.
Copyright (C) 1989 Free Software Foundation, Inc.
Plot2ps is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY. No author or distributor accepts responsibility to anyone for the
consequences of using it or for whether it s... |
ce9def386b8c66a506048360e357e436c0df57fd1741a7cd0164430e146e5195 | C | 1,681 | 56 | /* FILE _macros/behavior/time.c */
/* Ascii output of analysis program */
/* Print out reaction times, re: time 0 (set by -a on cmdline) */
/* Sort by stack and table */
#include "../Deffs.h"
#include "../../event.h"
/* ******************************************************************** */
static F... |
d5a43f67a582c1be1e42271e51c76b4a4bc05ad28f38387c1edbced613beb386 | C | 1,692 | 95 | #include <stdio.h>
#include "vogl.h"
static Astack *asfree = (Astack *)NULL;
/*
* copyattributes
*
* Copies attribute stack entries from b to a
*/
static void
copyattributes(Attribute *a, Attribute *b)
{
a->color = b->color;
a->fontnum = b->fontnum;
a->ls = b->ls;
a->lw = b->lw;
a->backface = b->backface;
}
... |
cac2cb993b424151f3ad5110cc378498bc9b7db4bccb346260768f5890b5cec1 | C | 1,699 | 127 | #include "vogl.h"
/*
* Note, vga can't do double buffering by page swapping...`
*/
#define V_PIX_ASPECT 1.0
static int old_mode;
extern unsigned int _buffer_segment;
extern unsigned int _buffer_offset;
extern int
vega_char(),
vega_clear(),
vega_color(),
vega_draw(),
vega_setpal(),
pc_fill(),
vega_f... |
c2b64d3baadf062691817bff7a4974c2df063961ed28ff032f6fbd804378662c | C | 1,701 | 53 | /* plot2ps, a utility for converting Unix plot files into postscript.
Copyright (C) 1989 Free Software Foundation, Inc.
Plot2ps is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY. No author or distributor accepts responsibility to anyone for the
consequences of using it or for whether it s... |
f00f76d54bc145cc4a7da7395cc6b9001d6dd6b6a359e245c702b067404b323d | C | 1,702 | 47 | /* plot2ps, a utility for converting Unix plot files into postscript.
Copyright (C) 1989 Free Software Foundation, Inc.
Plot2ps is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY. No author or distributor accepts responsibility to anyone for the
consequences of using it or for whether it s... |
8cb20d0403ecfe2ea5817c1faf0601bc8ed4c22c964e0d3ae5527a76eda4ba67 | C | 1,705 | 52 | /* Copyright (C) 1989 Free Software Foundation, Inc.
plot is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY. No author or distributor accepts responsibility to
anyone for the consequences of using it or for whether it serves any
particular purpose or works at all, unless he says ... |
65a124ccae93e7af3b1d536fec813b918bc1087fa8e40203bb94c1a3d274e287 | C | 1,707 | 41 | /* FILE _macros/memory/sort.c */
#include "../Deffs.h"
#include "../../event.h"
#include <stdlib.h>
/* ******************************************************************** */
/* FUNCTION SortByTarget44 */
/* Change class number and rewrite (use only with -w- flag) */
/* Unlike other macros, already... |
424bb8f07308d6567e7aa8ddc4f2d61abe44d71fcfb03fddfac8689d05830a0d | C | 1,720 | 125 | #include "vogl.h"
#define E_PIX_ASPECT 1.3
static int old_mode;
extern unsigned int _buffer_segment;
extern unsigned int _buffer_offset;
extern int
vega_backbuf(),
vega_char(),
vega_clear(),
vega_color(),
vega_draw(),
vega_setpal(),
pc_fill(),
vega_font(),
vega_frontbuf(),
pc_getkey(),
pc_check... |
f985991d41d43baee630dc8ff4ffa12642062706af67c3180fd887bd56b213f9 | C | 1,722 | 52 | /* FILE batch */
/* Interact with batch files */
#include "deffs.h"
#include <fcntl.h> /* Open/close */
#include <string.h> /* strcpy() */
#include <unistd.h> /* lseek arg's */
static FILE *BatchFile = NULL;
static char Batch_Name[80] = "FileList"; /* Default name */
/* ****************************... |
89c08967e8abe1619c7bbd7e8e4e1213d980fa1b824a7e00531ed6e9a55f2171 | C | 1,737 | 120 | #include <stdio.h>
#include <math.h>
#include <xview/xview.h>
#include <xview/canvas.h>
#include <xview/panel.h>
#include <xview/xv_xrect.h>
#include "vogl.h"
#define SIZE 512
int vinited = 0;
Display *dpy;
Window win;
quit()
{
gexit();
exit(0);
}
repaint(canvas, paint_win, dpy, xwin, area)
Canvas canvas;
Xv... |
bfd2610743bda3145fa7b92811a7972e30bcb682534ff935027813eb57dfa063 | C | 1,740 | 85 | /*
* opt_zbrent zero search between x1 and x2 using Brent's method
* Adapted from the Numerical Recipes (2.0) file zbrent.c
* -- Bernd Feige 19.09.1993
*/
#include <math.h>
#include <stdio.h>
#define SIGN(a,b) ((b) >= 0.0 ? fabs(a) : -fabs(a))
#define nrerror(a) fprintf(stderr, a)
#include "optimize.h"
#def... |
b85c30a7fb2fe5d02e31ebd97966f89063ae1270e77749a7ad79359ae5ee3ab8 | C | 1,749 | 61 | /*
* Copyright (C) 2016 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 NeuroFile format
* -- Bernd Feige 26.09.1997 */
#include <stdio.h>
#include <read_struct.h>
#include "cfs.h"
struct_member_descrip... |
160ed6947e0ec3a8c44ca440ad52ff405d75001298cf55693af7b9ebf537134c | C | 1,755 | 54 |
/* These pointers will be stored in the C-object for use in other
extension modules
*/
void *PyUFunc_API[] = {
(void *) &PyUFunc_Type,
(void *) PyUFunc_FromFuncAndData,
(void *) PyUFunc_RegisterLoopForType,
NULL,
(void *) PyUFunc_f_f_As_d_d,
(void *) PyUFunc_d_d,
... |
b29c3fe8b325b4db0fe057b3e4cb2df0483f3280148e18102890cff1caf45fbf | C | 1,782 | 85 | #include <math.h>
#include "mex.h"
#include <stdio.h>
#include <stdlib.h>
/* Output Arguments */
#define Idx plhs[0]
#define Dis plhs[1]
#if !defined(MAX)
#define MAX(A, B) ((A) > (B) ? (A) : (B))
#endif
#if !defined(MIN)
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#endif
void mexFunction( int nlhs, mxArray *plhs[],... |
c2fcdc309039e6f36bb96202db68fe5fc3293d367293fdf31ecbb93f7143c29e | C | 1,797 | 59 | /*
* Copyright (C) 1994,1997,1999,2025 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
#include "bfmath.h"
/* i386 FPU control word: (info from Linux:/usr/include/i386/fpu_control.h)
* 15-13 12 11-10 9-8 7-6 5 4 3 2 1 0
* | reserved | ... |
6c62168d1662d4d37878212f60154faf4ab7f9669ef08edbf8066b06d204093b | C | 1,833 | 88 | /*
* array_index.c - Return an index array which reflects the ordering
* by size of the elements in the input array. The latter is only
* read by the program and not modified in any way.
* Based on array_hpsort.c derived from the Numerical Recipes (2.0).
* -- Bernd Feige 18.10.1993
*/
#include <stdlib.h>
#... |
6c202e068fd4d30aac6a86189b26e8c06d9a132e45d2a98570a595c2e937eec8 | C | 1,836 | 82 | /*
* Copyright (C) 1997,2007,2010 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>
#en... |
a0224a0ae0ae78c7b1cfcedca43363a3ea84dd92083c60492b9f64eeb0a22da8 | C | 1,839 | 97 | /* polevl.c
* p1evl.c
*
* Evaluate polynomial
*
*
*
* SYNOPSIS:
*
* int N;
* double x, y, coef[N+1], polevl[];
*
* y = polevl( x, coef, N );
*
*
*
* DESCRIPTION:
*
* Evaluates polynomial of degr... |
27c1b9902720895c7579905fd8e4b6f915276b32cd4432847add6580cccdf4eb | C | 1,842 | 80 | /*
* opt_mnbrak -- Routine for bracketing a minimum
* Adapted from the Numerical Recipes (2.0)
* -- Bernd Feige 20.09.1993
*
* *ax, *bx, *cx are distinct initial points modified on output
* to the points bracketing the minimum of the function
* (*ostructp->function). *fa, *fb and *fc hold the function
* val... |
354605ea554592add7d9d48f50fca7c510ac154f1c9ef1ea7cd838cc493dcb37 | C | 1,867 | 56 | /* FILE _macros/stimulate/findsac.c */
/* ******************************************************************** */
/* originally based on code from Dustin Heldman's Macros 63, 64 */
/* reports the time of a the first saccade in the interval */
/* i think this macro is obsolete - i now use larry's macro 155 */
/* ... |
c83daaa4afefc2449975e38c4faa5d23610cd43e665189faeed9fdd3679071af | C | 1,871 | 71 | /*
* Copyright (C) 2002,2004 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* swap_ix is a simple transform method swapping items and x data.
* Note that xdata is, of course, lost.
* -- Bernd Feige 2.07.2002
*/
/*}}} */
/*... |
2ef3af272a1dfcb157e01a66da9e89bc2ae9024867395a625d9c58527b665ab8 | C | 1,890 | 86 | /*
* Copyright (C) 2012 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
#include... |
37131cefa2a90d9ad3b1b4dcf51eb2ff05aa69a07b00d09bd123d313a9312a1b | C | 1,893 | 54 | /* plot2ps, a utility for converting Unix plot files into postscript.
Copyright (C) 1989 Free Software Foundation, Inc.
Plot2ps is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY. No author or distributor accepts responsibility to anyone for the
consequences of using it or for whether it s... |
3a022af35d7d29e609813c82bc6e2b671f9941d51bec6a842860b216b65d07e3 | C | 1,914 | 52 | /*
* Copyright (C) 1997 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/* Definition of `structure member' arrays for the NeuroFile format
* -- Bernd Feige 26.09.1997 */
#include <stdio.h>
#include <read_struct.h>
#include "neurofile.h"
static struct {
int fastra... |
f5b81cc163e6da5f58b84c8577880f52db18faf173370488525a6584bcd1aa28 | C | 1,920 | 82 | /*
* Copyright (C) 1993,1994 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*
* array_scan is a utility to uniformly scan an array in the order of
* elements and vectors. (NOTE: use array_transpose to swap the order
* of these two).
*/
#include <stdio.h>
#include... |
a38b6b0782f7b20e73173e743594d823d6809787bf9b74f1f0bf59d841596485 | C | 1,927 | 42 | /*
* Copyright (C) 1996,2000,2008,2020 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/* Definition of `structure member' arrays for the EDF format
* -- Bernd Feige 6.08.1995 */
#include <stdio.h>
#include <read_struct.h>
#include "RECfile.h"
struct_member sm_REC_... |
bc79525b82b91ea0040d6052ca1fd075fdfdd00ca3e866e04ad8e0513aeffc22 | C | 1,949 | 85 | /* Autogenerated v4-0-0 from https://github.com/scottprahl/iad */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "nr_util.h"
#include "ad_globl.h"
#include "ad_phase.h"
void Get_Phi(int n, int phase_function, double g, double **h)
{
int i, j, k;
double g2M, gk, x;
double *chi;
doub... |
80fdcf4f2b46774af541cc1e8c3046e36cb593483f0aba8e3b95c3c1bf4de0fb | C | 1,953 | 61 | /* Copyright (C) 1989 Free Software Foundation, Inc.
plot is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY. No author or distributor accepts responsibility to
anyone for the consequences of using it or for whether it serves any
particular purpose or works at all, unless he says ... |
d1dd84888608d1a06c7dcb74576231426f4fdefd9f5b31ccbfc2a5ebecea0d65 | C | 1,957 | 73 | /*
* Copyright (C) 1996,1998,1999,2001 Bernd Feige
* This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
*/
/*{{{}}}*/
/*{{{ Description*/
/*
* demean_maps.c method to subtract the map mean from each incoming map
* -- Bernd Feige 09.11.1994
*/
/*}}} */
/*{{{ #includes*/
#include <std... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.