text stringlengths 3.12k 18.7k |
|---|
/*-
* Copyright (c) 2017 Semihalf.
* Copyright (c) 2017 Stormshield.
* 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
... |
/*
* Copyright (c) 1997, 2000 <NAME>. 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 condition... |
#include <jni.h>
#include <android/log.h>
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include <sys/time.h>
#include <GLES2/gl2.h>
#include "debug.h"
#include "native_main.h"
#include "engine.h"
#include "matrix.h"
#include "shaders.h"
#include "gamearea.h"
#include "superzapper.h"
#include "foe_fire.h"... |
/*
* Copyright 2012-2020 <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, modify, merge, p... |
//
// DecisionTree.c
// The Good Audio Recorder
//
// Created by kenders on 10/09/2013.
// Copyright (c) 2013 The University of Salford. All rights reserved.
//
#include <stdio.h>
#include <stdbool.h>
//#include "baggedtree_level_1_tree12_20000_all_return_levelbal_pruned.h"
//#include "baggedtree_snr_1_tree12_20... |
/* spks02.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 integer c__4 = 4;
/* $Procedure SPKS02 ( S/P Kernel, subset, type 2 ) */
/* Subroutine */ int spks02_(integer *ha... |
/*
* drivers/video/geode/video_cs5530.c
* -- CS5530 video device
*
* Copyright (C) 2005 Arcom Control Systems Ltd.
*
* Based on AMD's original 2.4 driver:
* Copyright (C) 2004 Advanced Micro Devices, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the ... |
/*
Copyright 2010-2013 SourceGear, LLC
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 writing, softwar... |
/*
* Copyright (C) 2018 bzt (<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,
* modify, merge, pu... |
/* A C-program for MT19937: Real number version (1998/4/6) */
/* genrand() generates one pseudorandom real number (double) */
/* which is uniformly distributed on [0,1]-interval, for each */
/* call. sgenrand(seed) set initial values to the working area */
/* of 624 words. Before genrand(), sgenr... |
#include "posFile.h"
/* Plugin includes */
#include "pud.h"
#include "configuration.h"
/* OLSR includes */
/* System includes */
#include <stdio.h>
#include <string.h>
#include <regex.h>
#include <sys/stat.h>
#define LINE_LENGTH 256
static const char * regexCommentString = "^([[:space:]]*|[[:space:]#]+.*)$";
stati... |
/*
* net/tipc/msg.c: TIPC message header routines
*
* Copyright (c) 2000-2006, Ericsson AB
* Copyright (c) 2005, 2010-2011, Wind River Systems
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are me... |
/* Implementation of the squaring algorithm with Toom-Cook 8.5-way.
Contributed to the GNU project by <NAME>.
THE FUNCTION IN THIS FILE IS INTERNAL WITH A MUTABLE INTERFACE. IT IS ONLY
SAFE TO REACH IT THROUGH DOCUMENTED INTERFACES. IN FACT, IT IS ALMOST
GUARANTEED THAT IT WILL CHANGE OR DISAPPEAR IN A ... |
/*
* ***************************************************************************
* Copyright (C) 2016 Marvell International Ltd.
* ***************************************************************************
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provid... |
#include "input_win.h"
#include "../asprintf.c/asprintf.h"
#include <stdlib.h>
#include "../graphics/graphics.h"
static int is_valid_text(char a){
char* valid = "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ1!2@3#4$5%6^7&8*9(0)-_=+[{]}\\|;:'i\",<.>/?`~\t ";
char* search;
asprintf(&search, "%c", a);
char* res... |
/*
This file is provided under a dual BSD/GPLv2 license. When using or
redistributing this file, you may do so under either license.
GPL LICENSE SUMMARY
Copyright(c) 2014 Intel Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU Gene... |
/*s: devsys.c */
/*s: kernel basic includes */
#include <u.h>
#include "../port/lib.h"
#include "../port/error.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
/*e: kernel basic includes */
#include <authsrv.h>
/*s: devsys.c enum Qxxx */
enum{
Qdir,
/*s: devsys.c enum Qxxx cases */
Qosversion,
... |
#include "canny_top_level.h"
#include <stdio.h>
#include <math.h>
int x[8] = {1,1,0,-1,-1,-1,0,1},y[8] = {0,1,1,1,0,-1,-1,-1};
int xdim,ydim;
int thelothresh;
/* debug*/
int bugflag = 0; /* A bug flag of 1 causes all kinds of debug info.. */
void histogram(),get_histogram(),cleanup(),get_histogram_threshold();
int ... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
// Copyright (c) 2020-present, HexHacking Team. All rights reserved.
// Copyright (c) 2019, iQIYI, Inc. All rights reserved.
//
// 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 rest... |
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2018
* <NAME>, Guntermann & Drunck GmbH, <EMAIL>
*/
#include <common.h>
#include <bitfield.h>
#include <clk.h>
#include <cpu.h>
#include <dm.h>
#include <vsprintf.h>
#include "mpc83xx_cpu.h"
/**
* struct mpc83xx_cpu_priv - Private data for MPC83xx CPUs
* @... |
/*
* Copyright 2008-2015 <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 ... |
/*
* 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 "lwe_arm.h"
#include "global.h"
#include "stdint.h"
#include "stdlib.h"
#include "lwe.h"
void r1_gen_asm(uint16_t * a)
{
#ifdef USE_KNUTH_YAO_SHUFFLE
knuth_yao_shuffled_with_asm_optimization(a);
#else
knuth_yao_asm(a);
#endif
fwd_ntt_asm(a);
}
void key_gen_asm(uint16_t * a, uint16_t * r1, uint16_t ... |
/*
* Copyright 2017 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <assert.h>
#include <errno.h>
#include <i915_drm.h>
#include <stdio.h>
#include <string.h>
#include <sys/mman.h>
#include <drm_fourcc.h>... |
/*
* copy diverted (or tee'd) packets to a file in 'tcpdump' format
* (ie. this uses the '-lpcap' routines).
*
* example usage:
* # ipfwpcap -r 8091 divt.log &
* # ipfw add 2864 divert 8091 ip from 128.432.53.82 to any
* # ipfw add 2864 divert 8091 ip from any to 128.432.53.82
*
* the resulting dump file can... |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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 o... |
//
// rpc_service.c
// xdag
//
// Created by <NAME> on 3/29/18.
// Copyright © 2018 xrdavies. All rights reserved.
//
#include "rpc_service.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifndef _WIN32
#include <sys/types.h>
#include <sys/un.h>
#include <unistd.h>
#include <signal.h>
#include <errn... |
/*
* RoboPeak RPLIDAR Driver for Arduino
* RoboPeak.com
*
* Copyright (c) 2014, RoboPeak
* 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 cod... |
/*
* Copyright (c) 2014, Facebook, Inc.
* 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. An
* additional grant of patent rights can be found in the PATENTS file
* in the same directory.
*
*/
#include... |
/*
* ngx_http_bauschlomb_module.cpp
*
* Created on: 2015年5月30日
* Author: zhangdaoqiang
*/
#include "../bauschlomb/ngx_http_bauschlomb_module.h"
typedef struct
{
ngx_str_t server_mac;
} ngx_http_bauschlomb_loc_conf_t;
static ngx_int_t ngx_http_bauschlomb_init(ngx_conf_t *cf);
static void *ngx_http_bausch... |
/*************************************************************************
This file is part of 'Mercenaries of Astonia v2'
Copyright (c) 1997-2001 <NAME> (<EMAIL>)
All rights reserved.
**************************************************************************/
#include "Character.h"
// For all .used:
#define USE_E... |
//
// Book: OpenGL(R) ES 2.0 Programming Guide
// Authors: <NAME>, <NAME>, <NAME>
// ISBN-10: 0321502795
// ISBN-13: 9780321502797
// Publisher: Addison-Wesley Professional
// URLs: http://safari.informit.com/9780321563835
// http://www.opengles-book.com
//
// ParticleSystem.c
//
... |
/**********************************************************************
* Copyright (C) 2017-2017 junlon2006
*
* 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 Licen... |
/*
* 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... |
// "Build Engine & Tools" Copyright (c) 1993-1997 <NAME>
// <NAME>'s official web site: "http://www.advsys.net/ken"
// See the included license file "BUILDLIC.TXT" for license info.
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#ifdef PLATFORM_DOS
#include <io.h>
#include <sys\types.h>
#include <sys\stat.h... |
#include "upb/handlers.h"
#include "upb/msgfactory.h"
static bool is_power_of_two(size_t val) {
return (val & (val - 1)) == 0;
}
/* Align up to the given power of 2. */
static size_t align_up(size_t val, size_t align) {
UPB_ASSERT(is_power_of_two(align));
return (val + align - 1) & ~(align - 1);
}
static size... |
#include <stdlib.h>
#include "ai-random.h"
#include "board.h"
#include "config.h"
#include "state.h"
#include "util.h"
PlayerActions_t randomActions = { .playTile = randomPlayTile,
.formChain = randomFormChain,
.mergerSurvivor = randomMergerSurvivor,
.mergerOrder = randomMergerOrder,
.buyStock = r... |
#include <stdio.h>
#include <ctype.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include "utils/hash.h"
void *newsym(int size) {
/* Allocate space for a new symbol; return a pointer to the user space. */
BUCKET *sym;
if (!(sym = (BUCKET *) malloc(size + sizeof(BUCKET))))... |
// porres 2017
#include "m_pd.h"
#include "math.h"
typedef struct _glide2{
t_object x_obj;
t_inlet *x_inlet_ms_up;
t_inlet *x_inlet_ms_down;
t_float x_in;
int x_n_up;
int x_nleft_up;
int x_n_down;
int x_nleft_down;
int x_reset;
float x_last_in;
... |
/** @file menuoptions.c
@brief
This file contains menu routines
TwinEngine: a Little Big Adventure engine
Copyright (C) 2013 The TwinEngine team
Copyright (C) 2008-2013 Prequengine team
Copyright (C) 2002-2007 The TwinEngine team
This program is free software; you can redistribute it and/or
modify it under ... |
/**
* \file buzzer_app_main.c
*
* \brief Example application main source file, which configures the IP and
* executes the use-case.
*
* \copyright Copyright (C) 2013 Texas Instruments Incorporated -
* http://www.ti.com/
*/
/*
* Redistribution and use in source and binary forms, with or... |
/*
KallistiOS 2.0.0
nehe16.c
(c)2014 <NAME>
(c)2001 <NAME>
(c)2000 <NAME>
*/
#include <kos.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
/* Simple GL example to demonstrate fog (PVR table fog).
Essentially the same thing as NeHe's lesson16 code.
To learn mor... |
/* ----------------------------------------------------------------- */
/* The Speech Signal Processing Toolkit (SPTK) */
/* developed by SPTK Working Group */
/* http://sp-tk.sourceforge.net/ */
/* -----------------------------... |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* 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,
*... |
/*
* Copyright 2013 Texas Instruments, Inc.
* Author: <NAME> <<EMAIL>>
*
* Derived work from the pca953x.c driver
*
* 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 MIT License (MIT)
*
* Copyright (c) 2018 <NAME>
*
* Software repository: MoonNuklear, https://github.com/stetre/moonnuklear
*
* 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 wi... |
/* cdfbin.f -- translated by f2c (version 20190311).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of... |
/*! \file issu_ha_ptr.c
*
* ISSU Structure size upgrade (for HA memory).
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
#include <sal/sal_types.h>
#include ... |
/* adc-ti-adc108s102.c - TI's ADC 108s102 driver implementation */
/*
* Copyright (c) 2015 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <errno.h>
#include <kernel.h>
#include <misc/util.h>
#define SYS_LOG_LEVEL CONFIG_SYS_LOG_ADC_LEVEL
#include <logging/sys_log.h>
#include <string.h>
#in... |
/*
* Phoenix-RTOS
*
* libphoenix
*
* test/test_strftime.c
*
* Copyright 2020 Phoenix Systems
* Author: <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include "test_common.h"
#define NCOLS 9
#define T1_LEN 50
static const time_t in... |
/* Decoder for Bresser Weather Center 5-in-1.
*
* Copyright (C) 2018 <NAME>
*
* 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 la... |
/*
* 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 <one_round_attack.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
/**
* Util Function -- Start
*/
static void string_to_hex(U8 *pIn, unsigned int pInLen, U8 *pOut)
{
unsigned int i, j;
... |
//
// Created by kryvashek on 08.11.16.
//
#include <moarRoutingTablesHelper.h>
#include <moarRoutingPrivate.h>
#include <moarRouteTable.h>
#include <priorityQueue.h>
#include <moarRoutingNeighborsStorage.h>
#include <float.h>
#include <hashTable.h>
#include <memory.h>
#include "moarRouting.h" // RouteAddr_T
#include... |
static char *SccsId = "@(#)prncpl.c 1.0 15/1/91";
/* 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 relia... |
/*
+----------------------------------------------------------------------+
| See COPYING file for further copyright information |
+----------------------------------------------------------------------+
| Author: <NAME> <<EMAIL>> |
| See CREDITS for contributors ... |
/***************************************************************************
* Huemul Smalltalk *
* Copyright (C) 2007 by <NAME> *
* <EMAIL> *
* ... |
/*----------------------------------------------------------------------------*/
/* Xymon monitor network test tool. */
/* This tool implements testing of a single LDAP URL */
/* ... |
#pragma once
#define PORT_SIZE 6
#define URL_SIZE 65535
#define AUTH_SIZE 1024
#define EVENT_BUFFER 65536
#include <uv.h>
#include <jansson.h>
#include "common/rtime.h"
#include "common/pcre_parser.h"
#include "metric/metrictree.h"
#include "dstructures/tommyds/tommyds/tommy.h"
#include "common/netlib.h"
#include "mbe... |
/**
* @file
* Ethernet Interface Skeleton
*
*/
/*
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
* 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. Redistributi... |
/*
* Interface routines to ofmo_*() function
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
#include "ofmo-parallel.h"
#include "ofmo-prof.h"
#include "ofmo-scf.h"
#include "ofmo-integ.h"
#include "ofmo-twoint.h"
#include "ofmo-mat.h"
#include "skel-rhf-main.h"... |
/*
* Copyright 2014 Advanced Micro Devices, Inc.
*
* 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, m... |
/*
Author: <NAME>, 104854956
Date: 2017/07/27
Description: This program processes a comma separated values (csv) file. New data can be added,
searched, or displayed.
*/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#define FOUND 1
#define NOT_FOUND -1
#define MAX_LINE_LENGTH 256... |
/* httpserve: serve stdin with custom headers
*
* Version 1.0 Jul 2021
*
* Copyright (c) 2021, <NAME>
* 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 co... |
/*
* 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")... |
/*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to TO_YEAR PrismTech
* Limited, its affiliated companies and licensors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... |
/*
***********************************************************************************************
* Emulation of a SPI Master or slave
*
* (C) 2009 <NAME>
*
* state: Master mode is working, Used as SPI Master in R8C/M16C/M32C emulation.
*
* Copyright 2009 <NAME>. All rights reserved.
*
* Redistribution an... |
/* Copyright 2019 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Battery LED control for Flapjack board.
*/
#include "battery.h"
#include "charge_state.h"
#include "console.h"
#include "driver/charger/rt946x.h... |
#include "KMotionDef.h"
// Home and set the commutation for a 3 phase brushless motor
// that is driven using two DAC Outputs
//
// Phase rotates until index mark is located and Encoder Zeroed
// Function definitions
// x must be in the range 0->1 returns sin(x) and sin(x+120 degrees)
float Sine3PH (flo... |
/* -*- Mode: C ; indent-tabs-mode: nil ; c-file-style: "stroustrup" ; column-number-mode: t -*-
Project: YAHA, DNA alignment tool designed to find optimal split-read mappings on single-end queries.
Author: <NAME> (<EMAIL>)
File: FileHelpers.c Helper routines for both mempory mapped and stream file... |
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
/**********************************************************************
rbart_vpath.c -
$Author: mutoh $
$Date: 2004/11/13 11:19:13 $
Copyright (C) 2004 Ruby-GNOME2 Project Team
Copyright (C) 2003 <NAME> <<EMAIL>>
*****************************... |
#include "includes/FdClient_private.h"
/*******Private Structs*******/
struct fdc_pack
{
FdClient* client;
fdc_fd_received_cb fd_received;
fdc_fd_disconnect_cb fd_disconnected;
};
/*****************************/
/*******Private Functions*******/
void* threaded_listen(void* v_pack)
{
struct fdc_pack* pack = (struc... |
/*
Decoder for lossless image compression based on the quadtree data structure
Copyright 2021 <NAME> <<EMAIL>>
*/
#include "ppm.h"
#include "rle.h"
#include "vli.h"
#include "bits.h"
#include "hilbert.h"
void doit(int *tree, int *output, int level, int depth)
{
int length = 1 << level;
int pixels = length * length... |
/* The MIT License (MIT)
*
* Copyright (c) 2017 Monetra Technologies, LLC.
*
* 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 righ... |
// 0x070191F0 - 0x07019230
static const Vtx lll_seg7_vertex_070191F0[] = {
{{{ -255, 154, -575}, 0, { 998, 1012}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ -255, 154, 576}, 0, { 998, -8258}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ 256, 154, 576}, 0, { 0, -8258}, {0x00, 0x7f, 0x00, 0xff}}},
... |
#include "common.h"
#include <event2/event.h>
#include <event2/listener.h>
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#include <event2/bufferevent.h>
#include <event2/buffer_compat.h>
#include <event2/bufferevent_struct.h>
#endif
#include "seafile-session.h"
#include "utils.h"
#include ... |
/*****************************
Author : <NAME>
Created : May 11, 2018
*****************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "help_func.h"
#include "gc.h"
/******************* geneticList *********************
struct geneticList *init_list(int num)
Purpose:
Allocates ... |
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
/** \file diag_dnx_pp_cc.c
*
* PP Cross Connect traverse Diagnostics.
*/
/*************
* INCLUDES *
*/
#incl... |
#include "dependency_analysis.h"
#include "inst_list.h"
#include "graph.h"
reg_map_t *compute_dependencies(single_list_t *list) {
reg_map_t *map = newMap(xed_reg_enum_t_last());
xed_decoded_inst_t *instructions = list->array;
xed_decoded_inst_t xedd;
for (size_t i = 0; i < list->size; i++) {
... |
/*****************************************************************************
Copyright (c) 2019 - Analog Devices Inc. All Rights Reserved.
This software is proprietary & confidential to Analog Devices, Inc.
and its licensors.
******************************************************************************
File Nam... |
#include <zephyr/types.h>
#include <stddef.h>
#include <stdio.h>
#include <errno.h>
#include <zephyr.h>
#include <sys/printk.h>
#include <sys/byteorder.h>
#include <sys/ring_buffer.h>
#include <drivers/gpio.h>
#include <drivers/uart.h>
#include <drivers/i2c.h>
#include <drivers/sensor.h>
#include <drivers/counter.h>
... |
/*
* This file is part of John the Ripper password cracker,
* Copyright (c) 2016 JimF
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted.
*
* There's ABSOLUTELY NO WARRANTY, express or implied.
*
* Functions and data which is common among the phpass-md5 cracke... |
/* BEGIN_ICS_COPYRIGHT5 ****************************************
Copyright (c) 2015-2017, Intel Corporation
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 copyrig... |
/*
** expander.c - Find lowest cost path from source to dest node.
**
**
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
#include <math.h>
#include "main.h"
#include "data.h"
#include "graph.h"
#include "pqueue.h"
#include "expander.h"
#include "usage.h"
s... |
/**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 <NAME>
Modified: 2000 AlansFixes
**********/
#include "ngspice/ngspice.h"
#include "ngspice/cktdefs.h"
#include "ngspice/sperror.h"
#include "ngspice/trandefs.h"
#include "ngspice/cpextern.h"
#include "ngspice/fteext... |
/*
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 may not use this f... |
/*-
* Copyright 2016 <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 wri... |
/* Buffer Descriptors -- must be aligned on a 4-byte boundary but a
* 16-byte boundary is recommended. To avoid playing games with the
* various compilers and their different extension to ANSI C, these
* buffers are aligned by allocating an extra line of data and
* adjusting the pointers in nbuf_init().
*/
#i... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2009 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility... |
////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2019 <NAME>. //
// ... |
/*
* Copyright (c) 2002 - 2006, Netherlands Forensic Institute
*
* 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
* ... |
// This is adapted from a benchmark written by <NAME> and <NAME>
// of Post Communications.
// It was modified by <NAME> of Silicon Graphics.
// Translated to C++ 30 May 1997 by <NAME> of Northeastern Univ.
// Translated to C 15 March 2000 by <NAME>, now at HP Labs.
//
// This is no substitute for real application... |
#include "common.h"
void printb(uint64_t v)
{
uint64_t mask = 0x1ULL << (sizeof(v) * CHAR_BIT - 1);
int sum = 0;
do{
putchar(mask & v ? '1' : '0');
sum++;
if(sum%8==0) putchar(',');
} while (mask >>= 1);
}
void print_adj(const int nodes, const int degree, const int adj[nodes][degree])
{
for(int ... |
/*
** Copyright (C) 2014-2019 Cisco and/or its affiliates. All rights reserved.
** Copyright (C) 2005-2013 Sourcefire, Inc.
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License Version 2 as
** published by the Free Software Foundation. You m... |
#include "gbProcessed.h"
#include "gbRelease.h"
#include "gbUpdate.h"
#include "gbIndex.h"
#include "gbEntry.h"
#include "gbFileOps.h"
#include "gbGenome.h"
#include "gbIgnore.h"
#include "localmem.h"
#include "hash.h"
#include "errabort.h"
#include "linefile.h"
static char const rcsid[] = "$Id: gbProcessed.c,v 1.9 20... |
/*
* Copyright (c) 2007, 2008 University of Tsukuba
* 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 ... |
/*
* External interface to generic rootless mode
*/
/*
* Copyright (c) 2001 <NAME>. All Rights Reserved.
* Copyright (c) 2002-2003 <NAME>. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
... |
/*
* HydraBus/HydraNFC v2
*
* Copyright (C) 2021 <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 applic... |
/*
* Copyright (C) 2018 University of Stuttgart
*
* 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 l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.