text stringlengths 3.12k 18.7k |
|---|
/*
* trans.c - Matrix transpose B = A^T
*
* name: 施超
* loginID: 518021910499
*
* Each transpose function must have a prototype of the form:
* void trans(int M, int N, int A[N][M], int B[M][N]);
*
* A transpose function is evaluated by counting the number of misses
* on a 1KB direct mapped cache with a block s... |
/**
* \file privcount.c
* \brief Privacy-preserving data collection
**/
#include "sys/socket.h"
#include "sys/types.h"
#include "netinet/in.h"
#include "netdb.h"
#include "stdio.h"
#include "string.h"
#include "stdlib.h"
#include "unistd.h"
#include "errno.h"
#include "arpa/inet.h"
#include "channel.h"
#include "ch... |
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
// First, structures and constants corresponding to stuff in the ext2 spec
#define ROOT_INODE 2
// NOTE: The values in the superblock header are stored little-endian and read
// in from the drive in 16-bit units. This happens to work fine for us since
// we... |
#include <stdio.h>
#include <GL/glew.h>
#include <GL/freeglut.h>
#include "graphicscore.h"
#include "bitmapfont.h"
#include <os_generic.h>
#include "objreader.h"
#include <math.h>
struct Shader * modelshader;
struct Shader * defshader;
struct Shader * texcoords;
struct Shader * textshader;
struct UniformMatch * shader... |
/******************************************************************************
* Copyright (c) 2009-2012 by Hisi.
* All rights reserved.
* ***
*
******************************************************************************/
#include <asm/arch/platform.h>
#include <config.h>
#ifdef CONFIG_DDR_TRAINING_V2
#... |
/*-
* Copyright (c) 2012 Hudson River Trading LLC
* Written by: <NAME> <<EMAIL>>
* Copyright (c) 2015 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributio... |
#include <zlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
void childhandler(int data)
{
int status;
... |
#include <stdint.h>
#include <stddef.h>
#include <mmu.h>
#include <cycle.h>
#include <interrupts.h>
#include <alu.h>
#include <stack.h>
#include <gamegirl.h>
extern struct m_sharp_lr35902_instr {
char *m_instr;
uint8_t m_operand;
void *m_funct;
} const m_gb_instr[256];
// 0x00
void m_nop(m_dmg_t *m... |
#include <lua.h> //unwanted dependency
#include <stdio.h>
#include "cmd.h"
#include "common.h"
#include "console.h"
#include "host.h"
#include "vid.h"
#include "zone.h"
#include "imageutil.h"
#include "fisheye.h"
#include "fishScript.h"
#include "fishcmd.h"
// console commands
static void cmd_fisheye(void);
static ... |
#include "incs.h"
#include "preproc_j.h"
#include "check.h"
#include "reorder.h"
#include "reorder_isp.h"
#include "get_time_usec.h"
#include "qsort_asc_val_F4_idx_I1.c"
#ifdef SEQUENTIAL
int g_num_swaps;
#endif
config_t g_C;
typedef struct _composite_t {
float val;
uint8_t goal;
} composite_t;
static int sortfn... |
/**
* Multidimensional Linked List v 1.0
*
* <NAME> (c) 9 April 2016
*/
#include <stdlib.h>
#include <stdio.h>
#include "dimll.h"
struct dim_ll {
LLnode front; //The first node
int layer; //The layer this is on.
};
struct ll_node {
void* val; //The value of the node
LLnode next; //The next... |
#include <assert.h>
#include <err.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "inputs/22.h"
#define NDEBUG 1
typedef struct player player_t;
struct player {
uint16_t offset;
uint8_t deck[50];
uint8_t nca... |
/*
* Copyright (c) 2018, Sensirion AG
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of conditio... |
#include "libusockets.h"
#include "internal/common.h"
#include <stdlib.h>
void us_internal_loop_data_init(struct us_loop *loop, void (*wakeup_cb)(struct us_loop *loop), void (*pre_cb)(struct us_loop *loop), void (*post_cb)(struct us_loop *loop)) {
loop->data.sweep_timer = us_create_timer(loop, 1, 0);
loop->dat... |
/**
* Copyright (c) 2015-2019 <NAME>
*
* This file is part of the Configuration Space Library (libcs2), a library
* for creating configuration spaces of various motion planning problems.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentati... |
/*
* cpio - copy file archives in and out
*
* <NAME>, Freiburg i. Br., Germany, April 2003.
*/
/*
* Copyright (c) 2003 <NAME>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*... |
// Copyright (c) 2010-2018 LG Electronics, Inc.
// Copyright (c) 2016 <NAME> <<EMAIL>>
// Copyright (c) 2018 <NAME> <<EMAIL>>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://... |
#define SHCreateProcess Lpshf->pSHCreateProcess
#define SHSetHpid Lpshf->pSHSetHpid
#define SHDeleteProcess Lpshf->pSHDeleteProcess
#define SHChangeProcess Lpshf->pSHChangeProcess
#define SHAddDll Lpshf->pSHAddDll
#define SHAddDllsToProcess Lpsh... |
/* mysock.c--socket layer implementation */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <assert.h>
#include <netinet/in.h>
#include <pthread.h>
#include "mysock.h"
#include "mysock_impl.h"
#include "network_io.h"
#include "stcp_api.h"
#include "transport.h"
#ifdef NDEBUG
... |
/******************************************************************************
*
* NAME
* stdvq.c
* <NAME> 5/93
*
* MODIFICATIONS
* 11/93 modified to display defaults values. The -s option was added so
* that three programs were no longer maintained. Also a change made
* so that any time the d... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2012 <NAME>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) a... |
/**
* tokenizer.c - A simple token recognizer. The main file.
* This program will take input from a file and output the specific
* tokens/lexeme to another file. Format how one wishes, as long as the tokens
* are read from left to right, top to bottom. End statements with a semicolon.
* NOTE: The terms 'token' and 'lex... |
#include "tle_validation_test.h"
extern UtListHead_t MsgQueue;
extern Ut_CFE_SB_PipeTableEntry_t PipeTable[UT_CFE_SB_MAX_PIPES];
void OP_Test_digitToInt(void)
{
/* Validates that the digitToInt() function returns the
* correct integer for each digit 0 - 9.
*/
UtAssert_True(digitToInt(... |
/*
* hpiwdt.c
*
* Copyright (c) 2003-2004 Intel Corporation.
*
* This tool reads and enables the watchdog timer via HPI.
* Note that there are other methods for doing this, and the
* standard interface is for the driver to expose a /dev/watchdog
* device interface.
* WARNING: If you enable/reset the watchdog, ... |
#include "iso8601.h"
#include <stdio.h>
#include <time.h>
#include <math.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#if defined(_WIN32) || defined(_WIN64)
#define timegm _mkgmtime
#endif
struct Iso8601Test
{
char *inputstr;
double posixTs;
};
void Iso8601TestFactory(const char *inputstr, double... |
// Linux 4.10 < 5.1.17 PTRACE_TRACEME local root (CVE-2019-13272)
// ---
// Original discovery and exploit author: <NAME>
// - https://bugs.chromium.org/p/project-zero/issues/detail?id=1903
// ---
// <<EMAIL>>
// - Add aarch64 support on 20191219
// - The exploit had been tested in: ubuntu-18.04.3-server-arm64
// -
//... |
/*
* Copyright 2017 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
/*
* Copyright (C) 2018-2019 <NAME>
*/
#include <vtf.h>
#include <string.h>
#include <vtm/core/error.h>
#include <vtm/core/format.h>
#include <vtm/crypto/crypto.h>
#include <vtm/net/nm/nm_stream_client.h>
#include <vtm/net/nm/nm_stream_server.h>
#include <vtm/util/latch.h>
#include <vtm/util/mutex.h>
#include <vtm/... |
// SYZYGY Library
//
// Includes SmartVIO helper routines.
//
//------------------------------------------------------------------------
// Copyright (c) 2014-2019 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Soft... |
/*
* Arm SCP/MCP Software
* Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <internal/n1sdp_scp2pcc.h>
#include <mod_n1sdp_scp2pcc.h>
#include <mod_n1sdp_sensor.h>
#include <mod_n1sdp_sensor_driver.h>
#include <mod_power_domain.h>
#incl... |
#include <stdio.h>
#include <stdlib.h>
#include "list.h"
#define FATAL_ERROR(MSG) \
do{ \
fprintf(stderr, "%s\n", MSG); \
exit(EXIT_FAILURE); \
}while(0);
#define UNUSED(x) (void)(x)
/* Safely frees memory to avoid dangling pointers
*
* @param ptr ... |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2020, Google LLC.
*/
#include <inttypes.h>
#include "kvm_util.h"
#include "perf_test_util.h"
#include "processor.h"
struct perf_test_args perf_test_args;
/*
* Guest virtual memory offset of the testing memory slot.
* Must not conflict with identity mapped te... |
/* seqio.c */
/* -------------------------------------------------------------------
* miRanda- An miRNA target scanner, aims to predict mRNA targets for microRNAs,
* using dynamic-programming alignment and thermodynamics
*
* Copyright (C) (2003) Memorial Sloan-Kettering Cancer Center, New York
*
* Distributed un... |
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#define IOREG(X) (*(volatile uint32_t *) (X))
// GPIO registers
#define GPFSEL0 IOREG(0x20200000)
#define GPFSEL1 IOREG(0x20200004)
#define GPFSEL2 IOREG(0x20200008)
#define GPFSEL3 IOREG(0x2020000C)
#define GPFSEL4 IOREG(0x20200010)
#define GPFSEL5 IOREG(0x... |
#include <dlfcn.h>
#include <yaml.h>
#include "runtime.h"
#include "solar.h"
#include "soltoken.h"
#include "solevent.h"
#include "soltypes.h"
struct solar_module {
char* name;
SolObject exports;
UT_hash_handle hh;
};
static struct solar_module* loaded_modules = NULL;
static SolObject solar_load_object(y... |
/* zztrgnvx.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static doublereal c_b3 = 1.2e7;
static integer c__1 = 1;
static integer c_b5 = 100000;
static integer c__8 = 8;
static ... |
/*
The MIT License (MIT)
Copyright (c) 2017 <NAME>, <NAME>, <NAME>, <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ri... |
/**
* @file
* @brief 迷路の生成など
*
* @see <http://www.contralogic.com/2d-pac-man-style-maze-generation/>
*/
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include "config.h"
#include "maze/maze.h"
#include "maze/tile.h"
#include "maze/direction... |
#include "gb2def.h"
#ifdef UNDERSCORE
#define gb2_ugem gb2_ugem_
#endif
/*void gb2_misjpg (gribfield *gfld, int kx, int ky, float rmsval);*/
void gb2_qlin(int nrows, int ix[], float *idat, int ni, int nj, float *odat);
void gb2_ugem( int idata[], int *iuscal, float *rmsval, int *kx,
int *ky, int *scan_mode, int *... |
#include <stdlib.h>
#include <assert.h>
#include "XML_parse.h"
#include "Lyric_storage.h"
#ifdef S_SPLINT_S
//Ensure Splint checks the code for EOF's code base
#define EOF_BUILD
#endif
#ifdef USEMEMWATCH
#ifdef EOF_BUILD //In the EOF code base, memwatch.h is at the root
#include "../memwatch.h"
#else
#i... |
/* SREG – AVR Status Register */
unsigned char *sreg;
#define SREG (*(volatile unsigned char *)&sreg)
#define I 0x07 /* Global Interrupt Enable */
#define T 0x06 /* Bit Copy Storage */
#define H 0x05 /* Half Carry Flag */
#define S 0x04 /* Sign Bit */
... |
//
// Hook Programming Language
// callable.c
//
#include "callable.h"
#include <stdlib.h>
#include "common.h"
#include "memory.h"
#define MIN_CAPACITY (1 << 3)
function_t *function_allocate(int arity, string_t *name, string_t *file);
static inline void init_lines(function_t *fn);
static inline void init_functions(f... |
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1995 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
/... |
/*
==============================================================
MAMBA/PRX Loader payload by NzV
==============================================================
*/
#define MAMBA_LOADER
#define PRX_LOADER
#include <lv2/lv2.h>
#include <lv2/libc.h>
#include <lv2/memory.h>
#include <lv2/syscall.h>
#include <lv2/sym... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
// Change Value of Pointed Object from a Pointer
// example 1
int* pc, c;
c = 5;
pc = &c;
c = 1;
//printf("%d", c); // Output: 1
// printf("%d", *pc); // Ouptut: 1
// example 2
int* pc, c;
c = 5;
pc = &c;
*pc = 1;
//printf("%d", *pc); // Ouptut: 1
//printf("%d", c); // Output: 1
// example 3
int* pc, c, d;
c... |
/*
% y = bwdpr1(Lden, b)
% BWDPR1 Solves "PROD_k L(pk,betak)' * y = b", where
% L(p,beta) = eye(n) + tril(p*beta',-1).
%
% SEE ALSO sedumi, dpr1fact, fwdpr1
% ********** INTERNAL FUNCTION OF SEDUMI **********
function y = bwdpr1(Lden, b)
% This file is p... |
#include <stdlib.h>
#include <stdbool.h>
#include "ppu.h"
#include "mmu.h"
#include "gameboy.h"
// LCDC register related macros
#define LCDC_BG_ENABLED(LCDC_REG) (LCDC_REG & 0b00000001) == 1
#define LCDC_SPRITE_ENABLED(LCDC_REG) (LCDC_REG & 0b00000010) == 1
#define LCDC_SP... |
/**
* Create a virtual U2F device.
* Compile me with: gcc u2f.c -o virtual_u2f -framework IOKit
*/
#include <IOKit/IOKitLib.h>
#include <CoreFoundation/CFRunLoop.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "foohid_types.h"
unsigned char report_descriptor[] = {
0x06, 0xD0, 0xF1, // ... |
/* stageMultiz - Stage input directory for Webb's multiple aligner. */
/* Copyright (C) 2011 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "binRange.h"
#inclu... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the program and library */
/* SCIP --- Solving Constraint Integer Programs */
... |
/**
* Copyright (c) 2015-2019 <NAME>
*
* This file is part of the Configuration Space Library (libcs2), a library
* for creating configuration spaces of various motion planning problems.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentati... |
/*
* sample.c -- Midi Wavetable Processing library
*
* Copyright (C) WildMIDI Developers 2001-2016
*
* This file is part of WildMIDI.
*
* WildMIDI is free software: you can redistribute and/or modify the player
* under the terms of the GNU General Public License and you can redistribute
* and/or modify the lib... |
/*
* Setup signals
*
* Copyright (C) 2014 - <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mod... |
/*
* (C) 2002 Clemson University and The University of Chicago
*
* See COPYING in top-level directory.
*/
/* For a trove file show its list of keys */
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#... |
/* ----------------------------------------------------------------------------
* ATMEL Microcontroller Software Support - ROUSSET -
* ----------------------------------------------------------------------------
* Copyright (c) 2009, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and us... |
/*-
* Copyright (c) 2012 <NAME> <<EMAIL>>
* All rights reserved.
*
* 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 list of co... |
/*
* Copyright (c) 2019-2021 <NAME>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ... |
/*
* wordwin.c
* Copyright (C) 2002-2005 <NAME>; Released under GPL
*
* Description:
* Deal with the WIN internals of a MS Word file
*/
#include "antiword.h"
/*
* bGetDocumentText - make a list of the text blocks of a Word document
*
* Return TRUE when succesful, otherwise FALSE
*/
static BOOL
bGetDocument... |
/* { dg-do run } */
/* { dg-options "-O3" } */
#include "arm_neon.h"
extern void abort (void);
void
test1 ()
{
int16x8_t val1, val2, val3;
int16x8_t result;
uint64_t act, exp;
val1 = vcombine_s16 (vcreate_s16 (UINT64_C (0xffff9ab680000000)),
vcreate_s16 (UINT64_C (0x00000000ffff0000)));
val2 = v... |
/* this code is licensed as public domain */
#ident "@(#)M_DRAW:driver/fti.c - M_DRAW driver for Silicon Graphics icon geometries ((.fti files)"
#ident "@(#)M_DRAW:author - <NAME>"
#ident "@(#)M_DRAW:version - 1.0, Aug 1997"
/*
fti driver for draw; Version 1.0, <NAME>, Aug 1997
Please pass any upgrades or comments bac... |
/* Drop-in Single Header PLY loader
C89
Todo:
* quads->tris supporting function or mode
* indices->flat buffers supporting function
* respect actual order of properties when building vertex buffers
* support >1 sub-mesh and respect ordering of elements
* malloc/free function pointer override
* fuzzing
History:
v0.1 -... |
//PLS 50
//Homework E02 - Question 1
//Author: <NAME>
//Description: Bus reservation extended for E01
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//Programme specific constants
#define FILENAME "bus.txt"
#define MAX_SEATS 53
#define PLATE_NUM_SIZE 7
#define PASSENGER_NAME 40
#define PASSENGER_TEL_NUM 1... |
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <poll.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "config.h"
#inclu... |
/* ==========================================================================
* notify.c - Lua Continuation Queues
* --------------------------------------------------------------------------
* Copyright (c) 2012 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this so... |
/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy o... |
/*
* @file test_common.c
*
* @brief
* Unit Test common code for the MibSpi Driver
*
* \par
* NOTE:
* (C) Copyright 2016 Texas Instruments, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ar... |
/*
* FIG : Facility for Interactive Generation of figures
* This software is copyright (C) 1991-1996, <NAME>.
* Parts Copyright (c) 1989-2002 by <NAME>
* All Rights Reserved except as specified below.
*
* Any party obtaining a copy of these files is granted, free of charge, a
* full and unrestricted irrevocable,... |
/*
* CORE
* Copyright (c)2010-2012 the Boeing Company.
* See the LICENSE file included in this distribution.
*
* author: <NAME> <<EMAIL>>
*
* vnode_msg.c
*
*/
#include <stdlib.h>
#include <errno.h>
#include <assert.h>
#include <string.h>
#include <arpa/inet.h>
#include "myerr.h"
#include "vnode_msg.h"
st... |
/*
oosdp-logmsg - open osdp log message routines
(C)Copyright 2014-2015 Smithee,Spelvin,Agnew & Plinge, Inc.
Support provided by the Security Industry Association
http://www.securityindustry.org
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance... |
/*
* This software is copyrighted as noted below. It may be freely copied,
* modified, and redistributed, provided that the copyright notice is
* preserved on all copies.
*
* There is no warranty or other guarantee of fitness for this software,
* it is provided solely "as is". Bug reports or fixes may be sent
... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c)... |
/*-*****************************************************************************
MMBasic for Linux (MMB4L)
cmd_console.c
Copyright 2021-2022 <NAME>, <NAME> and <NAME>.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. R... |
// MIT License
// Copyright (c) 2017 <NAME> @nesbox // <EMAIL>
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, cop... |
/*
* MIT License
*
* Copyright (c) 2017-2019 <NAME>
* Copyright (c) 2021 wolffshots
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without li... |
/* wimax_harq_map_decoder.c
* WiMax HARQ Map Message decoder
*
* Copyright (c) 2007 by Intel Corporation.
*
* Author: <NAME> <<EMAIL>>
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <<EMAIL>>
* Copyright 1999 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it un... |
/*
* sstr.c
*
* copyright (c) 2020-2021 <NAME>
*
* author: <NAME> <xiongfei.shi(a)icloud.com>
* license: Apache-2.0
*
* https://github.com/shixiongfei/sstr
*/
#include "sstr.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _MSC_VER
#define strncasecmp _strnicmp
#endif
... |
#include<stdio.h>
#include<string.h>
#include<ctype.h>
#include<time.h>
void delay( float seconds )
{
int milliseconds = 1000 * seconds;
clock_t start_time = clock() ;
while( clock() < start_time + milliseconds )
;
}
int letter_counter( char combined_name[] , int length_of_combined_na... |
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "lda.h"
#include "theta.h"
#include "phi.h"
#include "util.h"
#include "path.h"
#include "document.h"
void lda_fit(struct document_model** documents, struct phi_model* phi, struct theta_model** theta, int num_topics, int doc_size, in... |
#include <limits.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
#include "sam.h"
#include "faidx.h"
typedef struct {
int64_t q[94][5][8]; // qual, read base, ref base (5=ins, 6=del, 7=clip)
} errstat_t;
static uint8_t seq_nt16to4_table[] = { 4, 0, 1, 4, 2, 4, 4, 4, 3, 4, 4, 4, 4, 4,... |
#include <stdio.h>
#include <stdarg.h>
#include <limits.h>
#include "tools.h"
#include "encoder_testbed_io.h"
uint32_t blackboxWrittenBytes;
void blackboxWrite(uint8_t ch)
{
putc(ch, stdout);
blackboxWrittenBytes++;
}
// Print the null-terminated string 's' to the serial port and return the number of byte... |
/*
fps van de kernel driver omlaag gezet naar 50fps
frame_timeout = 11ms
frame_time = 25ms
hiermee halen we 20fps
*/
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <wiringPi.h>
#include "jsmn.c"
#define NUM_TOKENS 128
const char *KEYS[] = { "up_frame_start", "up_frame_en... |
/*
* File: main.c
* Author: jakob
*
* Created on 28. April 2021, 08:41
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
struct datum{
int tag;
int monat;
int jahr;
};
struct radtour{
char name[101];
double laenge;
int anzahl;
double hoehenmeter;
... |
/*
* $QNXLicenseC:
* Copyright 2007, 2008, QNX Software Systems.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You
* may not reproduce, modify or distribute this software except in
* compliance with the License. You may obtain a copy of the License
* at: http://www.apache.org/licenses/LICEN... |
#include "msam.h"
/*
* Note: samtools' bam_calend() function returns a 1-based coordinate instead of
* a 0-based coordinate that the documentation promises. This is potentially
* because they want to easily estimate
* len = end - beg;
*
* Therefore, the interpretation of bam_calend is not exactly as reported i... |
/*!
* p448.h - p448 field element for libtorsion
* Copyright (c) 2020, <NAME> (MIT License).
* https://github.com/bcoin-org/libtorsion
*
* Parts of this software are based on goldilocks:
* Copyright (c) 2014-2017 Cryptography Research, Inc.
* https://git.zx2c4.com/goldilocks
*/
#if defined(TORSION_HAVE_INT... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
#include <X11/Xlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
#include "atelier.h"
#include "window.h"
#include "panel.h"
#include "time.h"
#include "resource.h"
#define BUTTON_PIXMAP_WIDTH 22
typedef enum {
BUTTON_QUIT,
BUTTON_LAUNCHER,
BUTTON_... |
#ifndef __PROGTEST__
#include <stdio.h>
#include <assert.h>
#endif /* __PROGTEST__ */
int LeapYear (int y) {
if (((y % 4)==0) && ((y % 100)!=0 || (y % 400)==0))
{
if (y>=4000)
{
if ((y%4000)==0)
return 0;
else
return 1;
}
else
return 1;
}
else
return 0;
}
int DaysOfMonth (int m, ... |
/*
* sst-atom-controls.c - Intel MID Platform driver DPCM ALSA controls for Mrfld
*
* Copyright (C) 2013-14 Intel Corp
* Author: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*
* This program is free software; you can redistribute it and/or... |
/* Copyright (c) 2012 <NAME> <<EMAIL>> All rights
* reserved
*
* event_loop.c
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the... |
/* ------------------------------------------------------------------------ */
/* LHa for UNIX Archiver Driver macro define */
/* */
/* Modified <NAME> */
/* ... |
/*
* Copyright (C) 2018 <NAME>
*
* Author: <NAME>
*
* This file is part of GnuTLS.
*
* GnuTLS is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) an... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* o... |
#include "functions.h"
#include "cRMSD.h"
#include "metric_functions.h"
// Implementation of c-RMSD algorithm
double cRMSD(double **coord1, double **coord2, int N, int frechet) {
int i, j;
int *ipiv;
double det, F_norm, distance;
double *c, *singular, *V_transpose, *U, *Q, *superb, *tmp_matrix, *tmp1_matrix, *tmp2... |
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#define _DEFAULT_SOURCE
#include "test/test_util.h"
#include <stdio.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sched.h>
#include <dirent.h>
#include <sys/stat.h>
#include <libgen.h>
#define BUFSIZE 256... |
/*
* Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
#include "helper.h"
/**
* Determines the value of U and G according to the formula
*
* @f$ F_{i,j} := u_{i,j} + \delta t \left( \frac{1}{Re} \left( \left[
\frac{\partial^2 u}{\partial x^2} \right]_{i,j} + \left[
\frac{\partial^2 u}{\partial y^2} \right]_{i,j} \right) - \left[
\frac{\partial (u^2)}{\part... |
/* Copyright (C) 2001-2021 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied,
modified or distributed except as expressly authorized under the terms
of the license ... |
/************************************************************************
* 8080_Emulator v0.0.0 *
* <NAME> *
* June 23, 2017 *
* Emulator for the Intel 8080 processor *
* Operating at 2.5 MHz *
* TODO: *
* Finish Display *
* Test instructions *
* Refactor *
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.