text stringlengths 3.12k 18.7k |
|---|
/*
* Suspend support specific for i386.
*
* Distribute under GPLv2
*
* Copyright (c) 2002 <NAME> <<EMAIL>>
* Copyright (c) 2001 <NAME> <<EMAIL>>
*/
#include <linux/smp.h>
#include <linux/suspend.h>
#include <asm/proto.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/mtrr.h>
/* References to sect... |
/*
* Copyright (c) 2011 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg 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.1 of the License, or (at your option) any later vers... |
/*
* 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 distributed in the hope that it will be use... |
/**
* OpenAL cross platform audio library
* Copyright (C) 2013 by <NAME>, <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 o... |
/*
* The copyright in this software is being made available under the 2-clauses
* BSD License, included below. This software may be subject to other third
* party and contributor rights, including patent rights, and no such rights
* are granted under this license.
*
* Copyright (c) 2014, <NAME>, <NAME>
* Copyrig... |
#define _GNU_SOURCE
#include <dirent.h>
#include <unistd.h>
#include <stdio.h>
#include <err.h>
#include <string.h>
#include <stdbool.h>
#include <signal.h>
#include <poll.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/inotify.h>
#include <sys/wait.h>
#include <sys/prctl.h>
#include <... |
/*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
publish... |
// gcc -o problema4.out problema4.c -lm
// Librerías
#include <stdio.h>
#include <math.h>
// Declaración de variables.
int matA[3][3], matB[3][3], cte;
// Variables de control y conteo.
int i, j, k;
// Prototipar funciones.
void printMatrix(int A[3][3]);
void fillVars();
void cA();
void sum();
void res();
void multi();... |
#include "system/c64/all.h"
#define CPU_MEMORY_PARAMS struct C64Global *H, struct C64 *Hstate
#define CPU_MEMORY_ARGS H, Hstate
#define CPU_6502_ENABLE_BCD
#define CPU_6502_NAME(n) c64_6502_##n
#define ROM_KERNAL_ENABLED (Hstate->cpu_io1 & 0x02)
#define ROM_BASIC_ENABLED ((Hstate->cpu_io1 & 0x03) == 3)
#define ROM_I... |
/****************************************************************************
* Copyright (C) 2021 by NQMCyber Ltd *
* *
* This file is part of EDGESec. *
* ... |
/* Copyright 2018 Princeton University
*
* 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 agre... |
// -*- C++ -*- Copyright (c) Microsoft Corporation; see license.txt
#pragma once
// included from Hh.h
// Return number of arguments.
#define HH_NUM_ARGS(...) HH_NUM_ARGS_((__VA_ARGS__, HH_NUM_ARGS_RSEQ_N()))
#define HH_NUM_ARGS_(tuple) HH_NUM_ARGS_B tuple
#define HH_NUM_ARGS_RSEQ_N() 12, 11, 10, 9, 8, 7, 6, 5, ... |
/* ------------------------------------------------------------------
* Programmer(s): <NAME> @ LLNL
* ------------------------------------------------------------------
* Based an example program by <NAME> @ SMU.
* ------------------------------------------------------------------
* SUNDIALS Copyright Start
* Co... |
/*
* Copyright 2015, International Business Machines
*
* 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 applica... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "../include/glvmath.h"
//GLV_VEC2__DECL(double) glv_dvec2;
glv_mat4 camera(float translate, const glv_vec2* rotate){
glv_mat4 identity = glv_mat4_identity();
glv_mat4 projection = glv_perspective(M_PI * 0.25f, 4.0f / 3.0f, 0.1f, 100.0f);
glv_m... |
/*
* 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 ... |
/*
* Copyright (C) 2016 Broadcom
*
* 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 version 2.
*
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
* kind, whether express o... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <math.h>
#include "xiwilib.h"
#include "Common.h"
#include "octtree.h"
typedef struct _oct_tree_pool_t {
int num_nodes_alloc;
int num_nodes_used;
oct_tree_node_t *nodes;
struct _oct_tree_pool_t *next;
} oct_tree_pool_t;
oct_tree_pool... |
/** @file
* Copyright (c) 2018-2020, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
* 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... |
#include <curses.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "chunk.h"
#include "edit_mode.h"
#include "main.h"
#include "position.h"
#include "position_list.h"
#include "ui.h"
#include "undo_redo.h"
char *NAME = "Untitled.txt";
position UP_LEFT_CORNER = {0, 0};
chunk CURRENT_FILE;
edit_mod... |
//
// statemachine.c
//
// Copyright (C) 2014 by <NAME>. All rights reserved.
//
// This module defines the state machine and the transition rules
// for the A/C controller module.
//
#include "statemachine.h"
#include "datatypes.h"
#include "timevalues.h"
typedef struct {
ControlStateDescription current;
Co... |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include "sha256.h"
#include "auth.h"
#include "core.h"
#include "utils.h"
#include "breeze_hal_ble.h"
static uint8_t device_secret[MAX_SECRET_LEN] = { 0 };
static uint8_t product_secret[PRODUC... |
#include "stdio.h"
#include "pico/stdlib.h"
#include "hardware/pio.h"
#include "hardware/dma.h"
#include "hardware/irq.h"
#include "ledpanel.pio.h"
#include "pico/multicore.h"
#include "hardware/interp.h"
#include "ledpanel.h"
// local (i.e. core 1) pointer to the image variable that contains the image information
ui... |
/*
0: TagRef / R
1: -
2: -
3: -
4: Fixnum
5: Fixnum
6: Fixnum
7: Fixnum
8: Flonum
9: Flonum
A: Flonum
B: Flonum
C: -
D: -
E: -
F: TagRef2
*/
#define LVA_MAGIC_NULL 0x0000000000000000ULL
#define LVA_MAGIC_UNDEFINED 0x0000000000000001ULL
#define LVA_POINTER_MASK 0x0000FFFFFFFFFFFFULL
#define L... |
#include "output_reliable_stream_internal.h"
#include <uxr/client/config.h>
#include <string.h>
#include "seq_num_internal.h"
#include "output_reliable_stream_internal.h"
#include "common_reliable_stream_internal.h"
#include <ucdr/microcdr.h>
#define MIN_HEARTBEAT_TIME_INTERVAL ((int64_t) UXR_CONFIG_MIN_HEARTBEAT_TI... |
/*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#include <platsupport/mux.h>
#include <platsupport/gpio.h>
#include <platsupport/irq... |
/* Dia -- an diagram creation/manipulation program
* Copyright (C) 1998 <NAME>
*
* Chronogram objects support
* Copyright (C) 2000 <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... |
/* trace.c --- tracing output for the MSP430 simulator.
Copyright (C) 2005-2015 Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
This file is part of the GNU simulators.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License... |
#include <inttypes.h>
#include <atomic.h>
#include <assert.h>
#include <multiboot.h>
#include <interrupts.h>
#include <dmesg.h>
// --------- ACTUAL PHYSICAL MEMORY BITMAP ----------------------
// Please go ALL THE WAY DOWN for the initialization routines.
// Basically 2 GB worth of pages. (2 GB / 4096 => 2^19)
// A... |
/*********************************************************************
Example source code for using the argtable2 library to implement
a multi-syntax command line argument program
usage 1: multisyntax [-nvR] insert <file> [<file>]... [-o <output>]
usage 2: multisyntax [-nv] remove <file>
usage 3: multisyn... |
/*
* Copyright ConsenSys AG.
*
* 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 writ... |
/*
* Copyright 2009 <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.1 of the License, or (at your option) any later version.
*
* This library is distri... |
/*!
* \file MS5611.c
* \author no1wudi
*/
#include "MS5611.h"
#include "QBL_SPI.h"
#include "QBL_SysTick.h"
#include "stm32f4xx_gpio.h"
#include "stm32f4xx_rcc.h"
#include "stdio.h"
/*!
*
* @ingroup ms5611_driver MS5611 驱动
* @{
*/
/*!
* @defgroup ms5611_driver_internal MS5611 驱动私有数据
* @{
*/
#define MS... |
/* csw.c: Routines for handling CSW raw audio files
Copyright (c) 2002-2015 <NAME>, <NAME>
Based on tap.c, copyright (c) 2001 <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; eit... |
//
// File: wordParse.c
// wordParse.c builds a table of words for pass() to use. It either uses
// predefined words, or words read in from the config file.
// @author <NAME> <josh1147582>
// // // // // // // // // // // // // // // // // // // // // // //
#include "getline.h"
#include <stdio.h>
#include <stdlib.h... |
/*
* Copyright (c) 2009-$Date: 2020-08-13 15:46:21 -0700 (Thu, 13 Aug 2020) $ TIBCO Software Inc.
* Licensed under a BSD-style license. Refer to [LICENSE]
* For more information, please contact:
* TIBCO Software Inc., Palo Alto, California, USA
*
* $Id: base64.c 127846 2020-08-13 22:46:21Z bpeterse $
*
*/
#inc... |
/*
* Mach Operating System
* Copyright (c) 1992, 1991 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* s... |
/****
Author: <NAME>,
email: <EMAIL>
MSc Student,
Department of Computer Science,
University of Manitoba, Winnipeg, MB, Canada
****/
#include<stdio.h>
#include<string.h>
#include <stdlib.h>
#include <time.h>
#include "mpi.h"
//macros
#define ALPHABET_LENGTH 4
#define max(x,y) ((x)>(y)?(x):(y))
... |
/*
* Copyright 2003 VMware, 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 restriction, including
* without limitation the rights to use, copy, m... |
/* testsuite.c
*
* Copyright (C) 2006-2016 wolfSSL Inc.
*
* This file is part of wolfSSL.
*
* wolfSSL 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 opt... |
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│
│vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│
╞══════════════════════════════════════════════════════════════════════════════╡
│ Copyright 2021 Google LLC ... |
/**
* -------------------------------CANDY SORTING----------------------------
* This program sorts candies in the correct cells depends on color of candy.
* For realisation this device, was used:
* Servo Motor SG90 - 2 pieces
* Color Sensor TCS3200 - 1 pieces
* GL Starter Kit with stm32f407VG - Di... |
// Copyright 2021 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#include <xclib.h>
#include <xcore/port.h>
#include <xcore/clock.h>
#include <xcore/assert.h>
#include "i2s.h"
static void i2s_slave_init_ports(
/*out buffered*/port_t /*:32*/p_dout[],
size_... |
/*
* Copyright (c) 2001 <NAME>. All rights reserved.
* Copyright (c) 2001 <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... |
#include <assert.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include "filter/memory.h"
#include "memory-internal.h"
// TODO: try _mm_malloc, __mingw_aligned_malloc, _aligned_malloc
// When C11 is available, aligned_alloc can be used
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
#d... |
/*****************************************************************************
*
* d3q19.c
*
* D3Q19 definitions.
*
* Edinburgh Soft Matter and Statistical Physics Group and
* Edinburgh Parallel Computing Centre
*
* (c) 2008-2021 The University of Edinburgh
*
* Contributing authors:
* <NAME> (<EMAIL>... |
/*
* --INFO--
* Address: 800BFA60
* Size: 0001B8
*/
void TRKSaveExtended1Block(void)
{
/*
.loc_0x0:
lis r2, 0x804F
ori r2, r2, 0x4328
mfsr r16, 0
mfsr r17, 0x1
mfsr r18, 0x2
mfsr r19, 0x3
mfsr r20, 0x4
mfsr r21, 0x5
mfsr r22, 0x6
mfsr ... |
/*-
* BSD LICENSE
*
* Copyright (c) Intel Corporation.
* 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 copyri... |
/*
* ARM TrustZone peripheral protection controller emulation
*
* Copyright (c) 2018 Linaro Limited
* Written by <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 or
* (at your option) any later version.
*/
#include... |
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1997. All rights reserved.
GEOWORKS CONFIDENTIAL
PROJECT: PCGEOS
MODULE: swat - ntcurses
FILE: newwin.c
AUTHOR: <NAME>, Apr 08, 1997
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date D... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2019 Nippon Telegraph and Telephone Corporation
*/
#include <unistd.h>
#include <string.h>
#include <rte_ether.h>
#include <rte_log.h>
#include <rte_branch_prediction.h>
#include "cmd_parser.h"
#include "shared/secondary/return_codes.h"
#define RTE_LOGTYPE_P... |
/*
Copyright (C) 2014, The University of Texas at Austin
This file is part of libflame and is available under the 3-Clause
BSD license, which can be found in the LICENSE file at the top-level
directory, or at http://opensource.org/licenses/BSD-3-Clause
*/
#include "FLAME.h"
#include "test_libflame.h... |
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/* gNhsqc_IPAP_gel.c
Sequence is modified gNhsqc_IPAP.c by <NAME>,
IBS, Gre... |
#include <stdio.h>
#include <esp_log.h>
#include <tcpip_adapter.h>
#include <esp_wifi.h>
#include <lwip/sockets.h>
#include <tcpip_adapter.h>
#include <esp_wifi.h>
#include <esp_err.h>
#include <esp_timer.h>
#include <esp_event.h>
#include <esp_event_loop.h>
#include <string.h>
#include <errno.h>
#include "freertos/que... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Driver for Freescale's 3-Axis Accelerometer MMA8450
*
* Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved.
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/i2c.h>
#include <... |
/*
* Copyright 2013 Red Hat 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, merge, publish, d... |
/* L G T _ D B . C
* BRL-CAD
*
* Copyright (c) 2004-2014 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as ... |
/*
(c) Copyright 2012-2013 DirectFB integrated media GmbH
(c) Copyright 2001-2013 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by <NAME> <<EMAIL>>,
<NAME> <<EMAIL>>,
<... |
/*
* This file is part of pgn-extract: a Portable Game Notation (PGN) extractor.
* Copyright (C) 1994-2020 <NAME>
*
* pgn-extract 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 ... |
/*++
/* NAME
/* match_ops 3
/* SUMMARY
/* simple string or host pattern matching
/* SYNOPSIS
/* #include <match_ops.h>
/*
/* int match_string(flags, string, pattern)
/* int flags;
/* const char *string;
/* const char *pattern;
/*
/* int match_hostname(flags, name, pattern)
/* int flags;
/* const char *name;
/* const ch... |
/* -*- c-basic-offset: 8 -*-
rdesktop: A Remote Desktop Protocol client.
Sound Channel Process Functions - SGI/IRIX
Copyright (C) <NAME> <<EMAIL>> 2003-2008
Copyright (C) GuoJunBo <<EMAIL>> 2003
Copyright (C) <NAME> <<EMAIL>> 2004-2005
This program is free software: you can redistribute it and/or mod... |
/*
* Copyright (C) 2008 <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, or (at your option)
* any later version.
*
* This program is distributed in ... |
/* gs_shrinky.c - OpenGL-based introductory geometry shader example
using a pass-through geometry shader to draw a pattern of colored
stars whose triangles shrink and expand. */
/* Requires the OpenGL Utility Toolkit (GLUT) and Cg runtime (version
2.0 or higher). */
#include <stdio.h> /* for printf and N... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (c) 2012 The Chromium OS Authors.
*/
/*
* This is a GPIO driver for Intel ICH6 and later. The x86 GPIOs are accessed
* through the PCI bus. Each PCI device has 256 bytes of configuration space,
* consisting of a standard header and a device-specific set of regis... |
// SPDX-License-Identifier: GPL-2.0
/*
* IIO rescale driver
*
* Copyright (C) 2018 Axentia Technologies AB
*
* Author: <NAME> <<EMAIL>>
*/
#include <linux/err.h>
#include <linux/gcd.h>
#include <linux/iio/consumer.h>
#include <linux/iio/iio.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_de... |
/* cpu.c example cpu-description file */
/* (c) in 2002 by <NAME> */
#include "vasm.h"
char *cpu_copyright="vasm test cpu backend (c) in 2002 <NAME>";
/* example machine.
valid Registers: R0-R3
valid extensions: .b/.w (default .w)
Instruction format:
XCCCCCCC 11112222 [32bit op1] [32bit op2]
X: se... |
/*
* mining.c [Bitcoin, Ethereum, ZCash, Monero]
*
* Copyright (C) 2018-20 - ntop.org
*
* This file is part of nDPI, an open source deep packet inspection
* library based on the OpenDPI and PACE technology by ipoque GmbH
*
* nDPI is free software: you can redistribute it and/or modify
* it under the terms of t... |
#include "vicmain_c.h"
#include "applic.h"
#include <math.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "defines.h"
#include "zifmessage.h"
#include "zmabend.h"
#include "cartoGtUtils.h"
#include "cartoMemUtils.h"
#include "cartoStrUtils.h"
#include "cartoLsqUtils.h"
/*#include "cartoVicarProt... |
//sender.c <Client>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#define PACKET_SIZE 1400
typedef char bool;
#define true 1
#define false 0
typedef str... |
/*
* OTA dual app
* use local.mk to turn it into the OTA otamain.bin app or the otaboot.bin app
*/
#include <stdlib.h> //for printf and free
#include <stdio.h>
#include <esp/uart.h>
#include <esp8266.h>
#include <FreeRTOS.h>
#include <task.h>
#include <wifi_config.h>
#include <string.h> //for stdcmp
#include <sy... |
/*
* Copyright (c) 2008, The Caffeine-hx project contributors
* Original author : <NAME>
* Contributors:
* 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 cod... |
#include "test_item_isp.h"
#include "ite/itv.h"
#if (CFG_CHIP_FAMILY == 9920)
#include "isp/mmp_isp_9920.h"
#else
#include "isp/mmp_isp.h"
#endif
//=============================================================================
// Constant Definition
//============================================================... |
/*
* fifop: a FIFO (first-in first-out) with priorities
*
* (c) 1999-2011 <NAME>, forum::für::umläute, institute of electronic music and acoustics (iem)
*
* 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 Softw... |
/**********************************************************************************
* UNIFEI - Universidade Federal de Itajuba *
* POSCOMP - Pos-Graduacao em Ciencia e Tecnologia da Computacao *
* ... |
/*
Copyright (c) 2013, <NAME>
See accompanying LICENSE
---------------------------------------------------------------
smoothsort_pow2_1.c
Implementation of a varaition of Dijkstra's "smoothsort"
algorithm. This version is similar to the one in smoothsort.c
but with heaps of a slig... |
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#define F(x, y ,z) ((x & y) | (~x & z))
#define G(x, y, z) ((x & y) | (x & z) | (y & z))
#define LROT(x, n) ((x << n) | (x >> (32 - n)))
#define RROT(x, n) ((x >> n) | (x << (32 - n)))
#define PHI0(a, b, c, d, m, s) (LRO... |
// rtcdc.c
// Copyright (c) 2015 <NAME> <<EMAIL>>
// This file is licensed under a BSD license.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <glib.h>
#include "ice.h"
#include "dtls.h"
#include "sctp.h"
#include "sdp.h"
#include "... |
/* Stuff to parse .ra files. Ra files are simple text databases.
* The database is broken into records by blank lines.
* Each field takes a line. The name of the field is the first
* word in the line. The value of the field is the rest of the line.
*
* This file is copyright 2002 <NAME>, but license is hereby
*... |
/**
* @brief openspblas spmmd csc test
* @author HPCRC, ICT
*/
#include <alphasparse.h>
#include <stdio.h>
#include <mkl.h>
static sparse_status_t alpha_convert_mkl_csc_d(alphasparse_matrix_t src, sparse_matrix_t *dst, sparse_index_base_t base, ALPHA_INT nnz)
{
spmat_csc_d_t * mat = (spmat_csc_d_t *)src->mat;
... |
/* Copyright 2017, <NAME> - Facet UNT, Fi UNER
* Copyright 2014, 2015 <NAME>
* Copyright 2014, <NAME>
* Copyright 2014, <NAME>
* Copyright 2014, <NAME>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follow... |
//
// SampleSourcePcm.c - MrsWatson
// Copyright (c) 2016 <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 code must retain the above copyright notice,
//... |
/* PIN DESCRIPTIONS (function, user pin designation, STM designation)
* (4) ADC, (6) PWM (of which, 4 DMA), (2) GPIO
*
* ADC
* ADC_CHANNEL_4 -> ADC_3v_Pin -> PA4
* ADC_CHANNEL_8 -> ADC_3i_Pin -> PB0
* ADC_CHANNEL_11 -> ADC_4v_Pin -> PC1
* ADC_CHANNEL_10 -> ADC_4i_Pin -> PC0
*
* PWM
* TIM2_CH1 -> fet_ctrl_3a... |
/*
Copyright (c) 2018-2019, Seznam.cz, a.s.
Author: <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 copyri... |
/* loadenv.c - command to load/save environment variable. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2008,2009,2010 Free Software Foundation, Inc.
*
* GRUB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fr... |
/*
TwoCats main wrapper.
Written in 2014 by <NAME> <<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... |
/*
* Copyright (c) 2008-2012 the MansOS team. 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 con... |
/*
// Dao Test Tool
// http://www.daovm.net
//
// Copyright (c) 2013,2014, <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 code must retain the above c... |
/**
* @file ecu.c
* @brief TODO.
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <assert.h>
#include "hobd_kline.h"
#include "hobd_parser.h"
#include "ecu.h"
/* 5 ms */
#define POST_... |
/* $NetBSD: wsdisplayvar.h,v 1.11.2.1 1999/10/19 16:42:59 he Exp $ */
/*
* Copyright (c) 1996, 1997 <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 c... |
/**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ ... |
#include "config.h"
#include <string.h>
#include <stdlib.h>
/****h* libAfterImage/tutorials/ASView
* NAME
* ASView
* SYNOPSIS
* Simple image viewer based on libAfterImage.
* DESCRIPTION
* All we want to do here is to get image filename from the command line,
* then load this image, and display it in simple win... |
/*
* Integer hashing tests. These functions work with 32-bit integers, so are
* perfectly suited for IPv4 addresses. A few tests show that they may also
* be chained for larger keys (eg: IPv6), this way :
* f(x[0-3]) = f(f(f(f(x[0])^x[1])^x[2])^x[3])
*
* See also bob jenkin's site for more info on hashing, and ... |
/*
* Copyright (C) 1985-1992 New York University
*
* This file is part of the Ada/Ed-C system. See the Ada/Ed README file for
* warranty (none) and distribution info and also the GNU General Public
* License for more details.
*/
/* GLOBAL DECLARATIONS */
#define TRACE
#define time_slice 50
/* Macros used t... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <stdbool.h>
#include "libgccjit.h"
#include "harness.h"
static void
create_overflow_fn (gcc_jit_context *ctxt,
gcc_jit_type *type,
const char *funcname,
const char *builtin_name)
{
/* Create the equivalent of ... |
/* exp_pty.c - generic routines to allocate and test ptys
Written by: <NAME>, NIST, 3/9/93
Design and implementation of this program was paid for by U.S. tax
dollars. Therefore it is public domain. However, the author and NIST
would appreciate credit if this program or parts of it are used.
*/
#include "expect_c... |
/*
libcsv - parse and write csv data
Copyright (C) 2007 <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.1 of the License, or (at your option) any later version.
This ... |
/**
******************************************************************************
* @file smtp.c
* @author WIZnet Software Team
* @version V1.0
* @date 2015-02-14
* @brief smtp 协议
******************************************************************************
**/
#include <stdio.h>
#include <str... |
#include "memory_manager.h"
#include "RVCOS.h"
#include <stdint.h>
#include <stdlib.h>
#include "dynamic_list.h"
volatile uint32_t * freemin;
volatile uint32_t * max;
#define rvcprint(s) \
(RVCActuallyWriteText(s, sizeof(s)))
void print_address(uint64_t addr){
char hexchars[] = {'0','1','2','3','4','... |
/* Copyright (c) 1991 Regents of the University of California */
/* SCCSid "@(#)color.h 2.11 11/10/95 LBL" */
/*
* RGBE.h - header for routines using pixel color values.
*
* 12/31/85
*
* Two color representations are used, one for calculation and
* another for storage. Calculation is done with three floats
* f... |
/*
* Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause OR Arm's non-OSI source license
*
*/
/************* Include Files ****************/
#include "cc_common.h"
#include "cc_common_math.h"
#include "cc_common_error.h"
#include "cc_pal_mem.h"
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.