text stringlengths 5.8k 28.2k |
|---|
/*
* Copyright (c) 2004-2008 Voltaire Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this source... |
/**
* 提供给调试器脚本的辅助函数库
* by code
*/
#include "dbgaux.h"
#include "vscdbg.h"
#include "lstate.h"
#include "lobject.h"
// 增加path, cpath
// (path, cpath) => void
static int addpath (lua_State *dL) {
luaL_checktype(dL, 1, LUA_TLIGHTUSERDATA);
lua_State *L = lua_touserdata(dL, 1);
size_t pathsz, cpathsz;
... |
/* ==== ROBUST MEMORY ALLOCATION ====
*
* Copyright 2013 Ravenbrook Limited <http://www.ravenbrook.com/>.
* 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... |
/*
* Legal Notice
*
* This document and associated source code (the "Work") is a part of a
* benchmark specification maintained by the TPC.
*
* The TPC reserves all right, title, and interest to the Work as provided
* under U.S. and international laws, including without limitation all patent
* and trademark rig... |
/*
* aws.c for FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
* Copyright (C) 2013-2014, Grasshopper
*
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* th... |
/* sortFilt - merge, sort, and filter patSpace .hit output.
*
* The patSpace .hit files look like:
Pattern space 0.2 cDNA matcher
cDNA files: ../h/bacEnds/bacEnds.fa
26 genomic files
5 els in ../h/bac/AC006330.fa 15265 17735 24312 54690 69355
...
20 els in ../h/bac/AC006428.fa 1207 ... |
/*
* Copyright © 2014 Intel Corporation
*
* 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, modify, merge, pub... |
#define MAIN
#include "sctk.h"
#define SCSTATS_VERSION "1.3"
int load_pralign_file(FILE *fp, SCORES **scor, int *nscor, int maxn);
void do_exit(char *desc, char *prog, int ret);
void proc_arcs(int argc, char **argv, char *prog, char **pralign, int *npralign, int *pipein, int *feedback, char **out_dir, int *stats, i... |
/*
* Copyright (C) 2004-2013 <NAME>, <EMAIL>
*
* This program 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 2
* of the License, or (at your option) any later version.
*
* This program is dist... |
/*
* tls client demonstration program
*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*
* This file is provided under the Apache License 2.0, or the
* GNU General Public License v2.0 or later.
*
* **********
* Apache License 2.0:
*
* Licensed under t... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <errno.h>
#include <locale.h>
#include <ksu_common.h>
#include <ksu_dates.h>
#include <ksu_pg.h>
#define FORMAT_LEN 200
#define LEADING 0
#define TRAILING 1
static int trim_not_numeric(char **fmtp,
... |
/*
* @file main.c
*
* @brief
* Unit Test for mmWave control
*
* \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
* are met:
*
* Redist... |
// <NAME>
// @dragonflare921
// <EMAIL>
//
// WSU-Crypt
//
// simple implementation of WSU-Crypt encryption algorithm
//
// based on the Twofish block cipher by <NAME>,
// <NAME>, <NAME>, <NAME>, and <NAME>
// and the SKIPJACK block cipher by the NSA
//
// uses 64 bit blocks and 64 bit keys
//
// wsu_crypt.c:
// imple... |
/*
* Copyright (c) 2021, AT&T Intellectual Property. All rights reserved.
*
* SPDX-License-Identifier: LGPL-2.1-only
*/
#include <values.h>
#include <rte_mbuf.h>
#include "util.h"
#include "npf/cgnat/cgn.h"
#include "npf/cgnat/cgn_mbuf.h"
#include "npf/cgnat/cgn_session.h"
#include "npf/cgnat/cgn_test.h"
#inclu... |
/*
* Copyright 2022 MongoDB, Inc.
*
* 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 ... |
#include <string.h>
#include <fingera/hash/block_impl.h>
#include <fingera/hash/sha1.h>
static void sha1_transform(uint32_t *s, const void *chunk);
static uint32_t sha1_init_digest[5] = {0x67452301UL, 0xEFCDAB89UL, 0x98BADCFEUL,
0x10325476UL, 0xC3D2E1F0UL};
#define write_size ... |
/**
* tbxsosd/proto.c
* Copyright (C) 2006-2012 Opersys inc.
*
* 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 ... |
// Copyright 2015, 2016 <NAME> & <NAME> & <NAME>
// Licensed under the Apache License version 2.0
// You may not use this file except in compliance with this License
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#include <stdio.h>
#include <compiler.h>
#include "communication.h"... |
#define DS_3DLOOK 0x0004L
#define DS_CONTROL 0x0400L
#define DS_MODALFRAME 0x80L
#define LANG_ENGLISH 0x09
#define SUBLANG_ENGLISH_US 0x01
#define WS_POPUP 0x80000000L
#define WS_CHILD 0x40000000L
#define WS_VISIBLE 0x10000000L
#define WS_DISABLED ... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "engine/common.h"
#include "engine/memory.h"
#include "engine/sound.h"
#include "engine/spu.h"
#include "engine/timer.h"
#include "engine/org.h"
#define ORG_MAGIC "Org-0"
#define ORG_MAGICLEN 5
#define ORG_INVALID 0xFFFF
#define MAX_TRACKS ORG_MAX_T... |
/***************************************************************************
* Nipper - The network infrastructure parser *
* Copyright (C) 2006 - 2008 by <NAME> *
* <EMAIL> *
* ... |
/* Utility programs for unit conversions and calendar
*/
/*double PI = 3.14159265358979323846;*/
#include "kep.h"
#if __STDC__
double caltoj (long, int, double);
#else
double caltoj();
#endif
char *intfmt = "%d";
char *lngfmt = "%ld";
char *dblfmt = "%lf";
char *strfmt = "%s";
/* Display Right Asce... |
/**********************************************************************
*
* This file is part of the AWeb-II distribution
*
* Copyright (C) 2002 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the AWeb Public License as included in this
* distribution.
*... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#include "common.h"
#ifdef WIN32
#include <windows.h>
#endif
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <getopt.h>
#include <signal.h>
#include <glib.h>
#include <glib-object.h>
#include <ccnet... |
// License: MIT
// Adapted from Adafruit Arduino Library
// https://github.com/adafruit/Adafruit_ILI9341
// Copyright 2022 (c) Zork 'zorkzorkus' Zorkus
// (c) Adafruit Industries
#include "ili9341.h"
#include <stdio.h>
#define DISPLAY_DELAY 0x80
#define ILI9341_NOP 0x00
#define ILI9341_SWRESET 0x01
#... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/*******************************************************************************
* Copyright 2016 Intel Corporation
*
* 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.o... |
#include "gc.h"
/*
* Tokenization code based on wannabe-regex.c,
* which I wrote some months ago
*/
/* TODO: cleanup some of the more mysterious
* parts of the code...
*/
#include "tokenizer.h"
#include "tokens.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char *code_lines[1024];
extern v... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. All rights reserved.
- This software is distributed in the hope that it will be
- useful, but with NO WARRANTY OF ANY KIND.
- No author or distributor accepts responsibility to anyone for the
- consequence... |
/*
Copyright (c) 2017-2018 <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 rights
to use, copy, modify, merge, publish, distribut... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
* or http://www.opensolar... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <stdarg.h>
#include <string.h>
#include "util.h"
#include "symbol.h"
#include "absyn.h"
#include "temp.h"
#include "errormsg.h"
#include "tree.h"
#include "assem.h"
#include "frame.h"
#include "codegen.h"
#include "table.h"
#include "tree.h"
#include "... |
/*
* ewmh.c
* Copyright © 2008, 2009 <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:
*
* * Redistributions of source code must retain the abov... |
/**
* @file spi.c
* @brief
* @author <NAME> <<EMAIL>>
* @version
* @date 20.12.2019
*/
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <util/math.h>
#include <drivers/spi.h>
#include <drivers/dma/dma.h>
#include <util/pretty_print.h>
#include <string.h... |
/* $OpenBSD: displayq.c,v 1.39 2016/03/17 05:27:10 bentley Exp $ */
/* $NetBSD: displayq.c,v 1.21 2001/08/30 00:51:50 itojun Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modifica... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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
* or http://www.opensolar... |
#include "data/libs/lib.h"
void play_game(int, int, char *, char **, char *, char **);
void play_agility_game(int, int, int, char *, char *);
char *ask_new_name(int, int, size_t, char *, char *);
int main()
{
/* BASICS VARs */
char *language = NULL;
char *buffer = NULL;
int y_max, x_max = 0;
buff... |
#include "align.h"
/*****************************************************************************************************************
This code is copyright (c) <NAME>, Dec 2009
It may not be distributed, made public, or used in other software without the permission of the copyright holder
Modify By <NAME> 2015-04... |
/*******************************************************************************
* PRIMME PReconditioned Iterative MultiMethod Eigensolver
* Copyright (C) 2015 College of William & Mary,
* <NAME>, <NAME>, <NAME>, <NAME>
*
* This file is part of PRIMME.
*
* PRIMME is free software; you can redistribute ... |
//
// SpookyHash: a 128-bit noncryptographic hash function
// By <NAME>, public domain
// Oct 31 2010: alpha, framework + SpookyHash::Mix appears right
// Oct 31 2011: alpha again, Mix only good to 2^^69 but rest appears right
// Dec 31 2011: beta, improved Mix, tested it for 2-bit deltas
// Feb 2 2012: produc... |
/*
* md4.c
*
* Source taken from RFC 1320. Modified by <NAME> for C portability.
*/
/* Copyright (C) 1990-2, RSA Data Security, Inc. All rights reserved.
License to copy and use this software is granted provided that it
is identified as the "RSA Data Security, Inc. MD4 Message-Digest
Algorithm" in all ma... |
// QR Code V1 Generator
// <NAME>, 2020
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "qrtiny.h"
#define QRTINY_MODULE_LIGHT 0
#define QRTINY_MODULE_DARK 1
#define QRTINY_MODULE_DATA -1
// Write bits to buffer
static size_t QrTinyBufferAppend(uint8_t *writeBuffer, size_t ... |
#include <assert.h>
#include <atm/atm_types.h>
#include <mach/mach.h>
#include <mach/mach_vm.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sys/utsname.h>
#include <unistd.h>
#define IO_BITS_ACTIVE 0x80000000
#define IKOT_TASK 2
#define IKOT_IOKIT_CONNECT 29
#define IKOT... |
#include "ulixlib.h"
#include "ipv4-tools.h"
// SLIP MOD
//extern void get_hostname(char *);
//extern void get_ip_by_name(char *, char *);
//extern void get_name_by_ip(char *, char *);
// END SLIP MOD
#define SHELL_COMMANDS "help, ps, fork, ls, cat, head, cp, diff, sh, hexdump, kill, loop, test, brk, cd, ln, rm, pwd,... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Note 1: Any file that includes this one should include object-macros-undef.h
// at the bottom.
// Note 2: This file is deliberately missing the incl... |
/*
* 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 Apache Licens... |
/*-
* Copyright (c) 2017
* Netflix Inc.
*
* 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 conditions and the fol... |
/******************************************************************************
* Copyright (c) Intel Corporation - All rights reserved. *
* This file is part of the LIBXSMM library. *
* *
... |
/*
* lowlevel_init_v300.c
*
* The file is Hardware initialization.
*
* Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
*
* This program 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 Found... |
/*
_
| '.
| :
|.' ARRT
Authored by abakh <<EMAIL>>
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
You should have received a copy o... |
/* Copyright (C)2012 <NAME>
File: info_opus.c
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 conditions and the follow... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <memory.h>
#include <fcntl.h>
#if !defined(WIN32)
#include <sys/ioctl.h>
#endif
#include <unistd.h>
#include <errno.h>
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#include <string.h>
#include "spidriver.h"
// **************************** Ser... |
// SPDX-License-Identifier: GPL-2.0
/*
* Directory operations for Coda filesystem
* Original version: (C) 1996 <NAME> and <NAME>
* Rewritten for Linux 2.1. (C) 1997 Carnegie Mellon University
*
* Carnegie Mellon encourages users to contribute improvements to
* the Coda project. Contact <NAME> (<EMAIL>).
*/
#i... |
/*
Input : ind_tr, XYZv, weight, defl, tri_pt4
Output : Cii_lin
weight = (sig1-sig2)/((sig1+sig2)*2*pi) ;
*/
#include <math.h>
#include "mex.h"
#define NR_NEIGH_TRI 10 /* Max # of triangle neighbours */
void Cii_constant(double C[], double ind_tr[], int Ntri, double XYZv[],
int Nvert, double weight, double d... |
/* mars.c
*
* Copyright (C) 2004 <NAME> <<EMAIL>>
*
* white_balance() Copyright (C) 2008 <NAME> and <NAME>.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 o... |
/*
* Arm SCP/MCP Software
* Copyright (c) 2017-2020, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdbool.h>
#include <string.h>
#include <fwk_assert.h>
#include <fwk_id.h>
#include <fwk_mm.h>
#include <fwk_module.h>
#include <fwk_module_idx.h>
#include ... |
// Adapted from phoboslab/Ejecta on GitHub
// https://github.com/phoboslab/Ejecta/tree/8917cfbc17b3298f99ca7d719cfc57fcb8e43519/Source/Ejecta
// with Android compatibility changes and changes to allow coexisting with
// iOS >=10 built-in TypedArray API
#include "JSConvertTypedArray.h"
#include <stdint.h>
#include <st... |
#include "posix_tai.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
/* The leap second table is obtained from
* https://www.ietf.org/timezones/data/leap-seconds.list
* and generated from the file with the function
* generate_leap_second_tbl() below.
*/
static const size_t nleap_se... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "lib/SMSlib.h"
#include "lib/PSGlib.h"
#include "actor.h"
#include "data.h"
#define PLAYER_SPEED (2)
#define PLAYER_SHOT_SPEED (4)
#define PLAYER_TOP (16)
#define PLAYER_LEFT (8)
#define PLAYER_RIGHT (256 - 16)
#define PLAYER_BOTTOM (SCREEN_H - 24)
#... |
/* lexer.c
*
* (C) Copyright Apr 15 1995, <NAME>.
* ALL RIGHTS RESERVED.
* This code may be copied for personal, non-profit use only.
*
*
* History:
* First written V1.0 1984 (E.J.B)
* Revised V1.2 1994 (E.J.B)
* Revised V2.0 1995 (E.J.B)
*
*/
#include <stdio.... |
/*
* Copyright (c) 1991 <NAME>
*
* Disclaimer: No guarantees of performance accompany this software,
* nor is any responsibility assumed on the part of the authors. All the
* software has been tested extensively and every effort has been made to
* insure its reliability.
*/
/*
* btc.c - 2-d block truncation ... |
/*
* Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Surface System Aggregator Module bus and device integration.
*
* Copyright (C) 2019-2020 <NAME> <<EMAIL>>
*/
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/surface_aggregator/controller.h>
#include <linux/surface_aggregator/device.h>
#include "bus.h"
#... |
#include "core.h"
#define VERTICAL 0
#define HORIZONTAL 1
int main(int argc, char **argv){
seam_t seam;
int i, j, k;
char* nom;
//On récupere les arguments pris en entrée par le programme.
nom = argv[1];
seam.largeurSortie = (int)strtol(argv[2], NULL, 10);
seam.hauteurSortie = (int)strtol(argv[3], NULL,... |
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
#include "cmark_ctype.h"
#include "utf8.h"
static const int8_t utf8proc_utf8class[256] = {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1,... |
#include "vtext.h"
Buffer* buffer_new(char *name) {
Buffer *buffer = (Buffer*) malloc(sizeof(Buffer));
Line *l = (Line*) malloc(sizeof(Line));
l->text = NULL;
l->prev = NULL;
l->next = NULL;
buffer->first_line = l;
buffer->top_line = l;
buffer->current_line = l;
buffe... |
/* DVB USB compliant Linux driver for the Friio USB2.0 ISDB-T receiver.
*
* Copyright (C) 2009 <NAME> <<EMAIL>>
*
* This module is based off the the gl861 and vp702x modules.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as publish... |
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
#include "input.h"
#include "config.h"
#include "libretro.h"
extern config g_cfg;
struct keymap {
unsigned k; // GLFW key
unsigned rk; // libretro key
};
struct keymap kbd2joy_binds[] = {
{ GLFW_KEY_X, RETRO_DEVICE_ID_JOYPAD_A },
{ GLFW_KEY_Z, RETRO_DEVICE_ID_J... |
/*
* This file is part of the UCB release of Plan 9. It is subject to the license
* terms in the LICENSE file found in the top-level directory of this
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
* part of the UCB release of Plan 9, including this file, may be copied,
* modified, prop... |
//******************************************************************
//
// Copyright 2017 Microsoft
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may o... |
/* vim: tabstop=4 shiftwidth=4 noexpandtab
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2018 <NAME>
*
* irc - Internet Relay Chat client
*/
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h... |
/* checkStaticHtmlLinks - checks htdocs and htdocsExtra static html files
*
* TODO - fix to process included files the same way that hgMenubar does.
*/
/* Copyright (C) 2011 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
... |
/*
* (C) 2003-17 - ntop
*
* 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, modify, merge, publish, distribut... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/* Copyright (c) 2015, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "odp_classification_testsuites.h"
#include "classification.h"
#include <odp_cunit_common.h>
#include <odp/helper/eth.h>
#include <odp/helper/ip.h>
#include <odp/helper/udp.h>
#include <odp/helper/tcp.... |
#include <fuzzy_logic.h>
void fuzzylogicInit(){
fuzzyVarInit(&VSpeed_err);
fuzzyVarInit(&dVSpeed_err);
// fuzzyVarInit(&Clutch_pos);
// fuzzyVarInit(&Break_pos);
fuzzyVarInit(&Clutch_speed);
fuzzyVarInit(&Break_speed);
// dVSpeed_err = p - ошибка падает
// VSpeed_err = p - Заданна... |
/*--------------------------------------------------------------------------
| Copyright 2020 Mersenne Research, Inc. All rights reserved
|
| This file contains routines to upload one proof file to the Primenet server
+--------------------------------------------------------------------------*/
/* This routine ... |
#include <R.h>
#include <Rmath.h>
#define USE_RINTERNALS
#include <Rinternals.h>
#define INT_ISNA(X) ((unsigned) (X) == 0x80000000)
#define max(a, b) (((a) > (b)) ? (a) : (b))
#define min(a, b) (((a) < (b)) ? (a) : (b))
int _comp_int(const void *a, const void *b)
{
if (*(int *) a > *(int *) b) return 1;
i... |
/*
* @brief SD/MMC benchmark example
*
* @note
* Copyright(C) NXP Semiconductors, 2013
* All rights reserved.
*
* @par
* Software that is described herein is for illustrative purposes only
* which provides customers with programming information regarding the
* LPC products. This software is supplie... |
/*-
* Copyright 2003-2005 <NAME>
* All rights reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted providing that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions... |
/***************************************************************************************
*** ***
*** Copyright (c) 2019, <NAME>, Inc. ***
*** ... |
/*
* @file rsc68.c
* @brief resource functions
* @author http://sourceforge.net/users/benjihan
*
* Copyright (C) 1998-2011 <NAME>
*
* Time-stamp: <2011-10-12 13:22:58 ben>
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
... |
#include "usb.h"
#include "arm_cm4.h"
#include "buffers.h"
#define PID_OUT 0x1
#define PID_IN 0x9
#define PID_SOF 0x5
#define PID_SETUP 0xd
#define ENDP0_SIZE 64
#define ENDP1_SIZE 64
typedef struct {
union {
struct {
uint8_t bmRequestType;
uint8_t bRequest;
};
... |
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mp_msg.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
#include "libvo/fastmemcpy.h"
struct metrics {
int even;
int odd;
int noise;
int temp;
};
struct vf_priv_s {
int frame;
int drop, lastdrop;
struct ... |
/*******************************************************
Copyright (C) 1995 <NAME>
All rights reserved
This file is part of yaehmop.
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 r... |
/*
* zffsplit.c
*
* 实现所有其他程序(包括 ffsplit 本身)可能会用到的函数
*
* Created on: Dec 23, 2013
* Author: zozoh
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <libavcodec/avcodec.h>
#include "zffsplit.h"
//------------------------------------------------------------------------------
#define... |
/*
* IBM Accurate Mathematical Library
* Copyright (c) International Business Machines Corp., 2001
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License... |
/*
* Copyright © 2013 <NAME> <<EMAIL>> <http://solitudo.net>
*
* 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 a... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define thisprog "xe-matrixbands1"
#define TITLE_STRING thisprog" v 1: 3.February.2021 [JRH]"
#define MAXBANDS 16
/*
<TAGS>math dt.matrix noise</TAGS>
v 1: 3.February.2021 [JRH]
*/
/* external functions start */
char *xf_lineread1(char *l... |
/*
* Copyright (c) 2018, 2019, 2020 <NAME>
*
* Permission to use, copy, modify, and/or 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 ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<elf.h>
#include<getopt.h>
#include<math.h>
#include "bits.h"
typedef enum {
SAL, SAR, SHL, SHR,
MOV,
ADD, SUB,
OR, AND, XOR,
JA, JAE, JB, JBE, JC, JCXZ, JECXZ, JE, JG, JGE, JL, JLE, JNA, JNAE, JNB,
JNBE, JNC, JNE, JNG, JNGE, JNL,... |
/*
* Copyright (C) Advanced Micro Devices, Inc. 2019. ALL RIGHTS RESERVED.
* See file LICENSE for terms.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "rocm_copy_md.h"
#include <uct/rocm/base/rocm_base.h>
#include <string.h>
#include <limits.h>
#include <ucs/debug/log.h>
#include <ucs/sys/sys.h>
... |
#if defined __arm__
//#include <emmintrin.h>
typedef long long __m128i __attribute__((__vector_size__(16)));
#elif defined __GNUC__
#include <x86intrin.h>
#else
#include <intrin.h>
#endif // __GNUC__
#include <inttypes.h>
#define TABLE_ALIGN 32
#define WPOLY 0x011b
#define N_COLS 4
#define AES_... |
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <kernel/adi.h>
#include <kernel/amc.h>
#include <kernel/idt.h>
#include <libgui/libgui.h>
// PCI
#include <pci/pci_messages.h>
// IPC communication
#include <libamc/libamc.h>
// Port IO
... |
#undef __STRICT_ANSI__
#include "os.h"
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <pc.h>
#include <sys/time.h>
#include <signal.h>
#include <lauxlib.h>
#include "queue.h"
int running = 1;
const char * label;
bool label_defined = false;
queue_t eventQueue;
lua_State* paramQueue;
queue_t timerQue... |
#include <stdlib.h>
#include <math.h>
#include "logh.h"
#include "tuneable.h"
#include "drfake_struct.h"
#include "oimdev_struct.h"
#include "opqfake_struct.h"
#include "oefake_struct.h"
#include "orsfake_struct.h"
#include "odfake_struct.h"
#include "imdev_struct.h"
#include "pqfake_struct.h"
#include "efake_struct.h"... |
/* KallistiOS ##version##
isotest.c
(c)2000 <NAME>
Test ISO filesystem reader. This is a functional duplicate of fs_iso9660, but
designed to run on a PC for testing.
*/
/*
Various notes
In Linux, accessing the /dev device on a single-session CD puts the
"bootstrap" zone at offset 0x8000, and the begin ... |
#include <CL/cl.h>
#include <selfsimilarity/selfsimilarity.h>
typedef struct
{
double **features;
size_t feature_size;
size_t row_index;
double *result;
} kernel_args_t;
static
int _write_ts(size_t len, const double *ts, const char *out)
{
size_t out_path_len = strlen(out) + 4;
char *out_path = malloc(out... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.