text stringlengths 3.12k 18.7k |
|---|
#include "types.h"
#include "stat.h"
#include "defs.h"
#include "param.h"
#include "traps.h"
#include "spinlock.h"
#include "sleeplock.h"
#include "fs.h"
#include "file.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "x86.h"
#define false 0
#define true 1
#define start_of_PIDs 400
#define START_O... |
#include <math.h>
#include <stdlib.h>
#include <gtk/gtk.h>
#include <epoxy/gl.h>
enum {
X_AXIS,
Y_AXIS,
Z_AXIS,
N_AXIS
};
static float rotation_angles[N_AXIS] = { 0.0 };
static GtkWidget *gl_area;
static const GLfloat vertex_data[] = {
0.f, 0.5f, 0.f, 1.f,
0.5f, -0.366f, 0.f, 1.f,
-0.5f, -0.366f, 0.f, ... |
#include <application.h>
#include <bc_apds9960.h>
//#include <bc_gfx.h>
// LED instance
bc_led_t led;
bc_led_t led_lcd_red;
bc_led_t led_lcd_green;
bc_led_t led_lcd_blue;
bc_lis2dh12_t lis2dh12;
bc_dice_t dice;
bc_dice_face_t face = BC_DICE_FACE_UNKNOWN;
bc_module_lcd_rotation_t rotation = BC_MODULE_LCD_ROTATION_0;
... |
/*
*
* 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 General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any l... |
#include "aarch64/vmem.h"
#include "aarch64/registers.h"
#include "exceptions.h"
#include "kthread.h"
#include "page.h"
#include "process.h"
#include "vfs.h"
#include "vmem.h"
#include "stdlib.h"
#include <stdint.h>
#include "string.h"
extern void exec_user(void *pagetable);
static void exec_wrap(struct process_state... |
/*
* Copyright (c) <NAME> & Gas Technologies
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D... |
/*
(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>>,
<... |
/*
Author: <NAME> <<EMAIL>>
Copyright (c) 2015 Cromulence 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 rights
to use, copy, modify, m... |
/*
* mgh-wrappers.c --
*
* Implementation of wrappers to call FORTRAN subroutines of the unconstrained
* minimization test suite from the MINPACK-1 Project.
*
* References:
* [1] <NAME>, <NAME> and <NAME>, "Testing unconstrained
* optimization software," ACM Trans. Math. Software 7, 17-41 (1981).
* [2] <NA... |
/*
* mysh.c - simple interactive shell program that can execute UNIX commands
* and some internal commands specified later.
* 1) Implement a program that gets each line of input from the terminal console
* 2) Formulate the input into a user command
* 3) Create a child process to execute that command
* 4) Coninut... |
#include <string.h>
#include "sha1.h"
// http://intertwingly.net/stories/2004/07/18/SHA1.java
static int rol(int num, int cnt)
{
return (int)(((unsigned)num << cnt) | ((unsigned)num >> (32 - cnt)));
}
static void Transform(const unsigned char* data, int len, int blklen, int total, int* h)
{
int a = h[0];
int b = ... |
/* header file for PARAMESH c_interface which gives acces to data in
the fortran header module tree.F */
#include "underscore.h"
#ifdef REAL8
#define float double
#endif
extern void* c_amr_get_pointer(char*);
int two_tree;
two_tree = 2;
int three_tree;
three_tree = 3;
int* maxblocks_tr;
maxblocks_tr = (int *) c... |
// Advent of Code 2021 - Day 18
// Written by <NAME>
// It was hard to implement the binary tree because it kept causing bugs. I wonder if manipulating strings directly
// would've been easier. The side duality of the binary tree led to convoluted and repetitive long functions for
// managing each side, but merging th... |
/*
* Copyright (c) 2019, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at w... |
#include <unistd.h>
#include <stdio.h> // standard input / output functions
#include <stdlib.h>
#include <string.h> // string function definitions
#include <fcntl.h> // File control definitions
#include <errno.h> // Error number definitions
#include <termios.h> // POSIX terminal control definition... |
#include "stdio.h"
#include "stdint.h"
#include "stdlib.h"
#include "stdarg.h"
#include "string.h"
#include "unistd.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "crc8.h"
#include "ota_diff.h"
#include "lzma_compress.h"
#include "ota_image.h"
#define ERROR(msg) ... |
/*
* Copyright [1999-2018] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
*
* 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... |
/*
* 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 "i_config.h"
i_config * init(const char * config_path) {
i_config * i_config_node = (i_config*)malloc(sizeof(i_config));
if (i_config_node == NULL) {
clean_up(i_config_node);
perror("Allocation Error");
return NULL;
}
if (read_from_config_file(config_path, i_config_node) < 0) {
perror("Read erro... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-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) ... |
// SPDX-License-Identifier: GPL-2.0+
/*
* board.c
*
* Board functions for EETS PDU001 board
*
* Copyright (C) 2018, EETS GmbH, http://www.eets.ch/
*
* Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
*/
#include <common.h>
#include <errno.h>
#include <spl.h>
#include <i2c.h>
#include <e... |
/*-
* Copyright (c) 1989, 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software developed by the Computer Systems
* Engineering group at Lawrence Berkeley Laboratory under DARPA contract
* BG 91-66 and contributed to Berkeley.
*
* Redistribution a... |
#include <stdint.h>
#include <stddef.h>
#include <stdio.h> // printf & friends
#include <string.h> // memset & friends
#include "flight.h"
#include "common.h"
#include "vector3f.h"
#include "sensor_fusion.h"
#include "pid.h"
#define PIDGAIN_RATE_YAW_I (0)
#define PIDGAIN_RATE_YAW_P (0)
#define PIDGAIN_RATE_YAW_D ... |
/* -------------------------------------------------------------------- */
/* Example program to show the use of the "PARDISO" routine */
/* on symmetric linear systems */
/* -------------------------------------------------------------------- */
/* This program... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) <2019-2020>, Intel Corporation. All rights reserved.
*/
#include <sys/stat.h> // for fchmod
#include <stdio.h> // for NULL, fprintf, snprintf, fclose, fileno
#include <string.h> // for strcmp
#include <strings.h> // for strnca... |
/*
BLIS
An object-based framework for developing high-performance BLAS-like
libraries.
Copyright (C) 2014, The University of Texas at Austin
Copyright (C) 2016, Hewlett Packard Enterprise Development LP
Redistribution and use in source and binary forms, with or without
modification, are permitte... |
/*
* pgntags.c -- Functions to manage PGN tags
*
* Copyright 1995, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Free
* Software Foundation, Inc.
*
* Enhancements Copyright 2005 <NAME>
*
* ------------------------------------------------------------------------
*
* GNU XBoard is free software: you can redist... |
/*
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"
#define FLA_ALG_GEMM_FUL... |
/* $Header$ */
/* Purpose: Float-precision arithmetic, MSVC macros */
/* Copyright (C) 1995--present <NAME>
This file is part of NCO, the netCDF Operators. NCO is free software.
You may redistribute and/or modify NCO under the terms of the
3-Clause BSD License with exceptions described in the LICENSE file *... |
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#define PNG_NO_SETJMP
#include <sched.h>
#include <assert.h>
#include <png.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <omp.h>
#include <mpi.h>
#include <pthread.h>
void write_png(const char* filename, int iters, int width, int height, const int... |
//////////////////////////////////////////////////////////////////////////////////////
// Mail: <EMAIL>
// About the details of license, please read LICENSE
//////////////////////////////////////////////////////////////////////////////////////
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include... |
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
# include <time.h>
# include <hstio.h> /* defines HST I/O functions */
# include "calnic.h" /* defines NICMOS data structures */
# include "calnicb.h" /* defines CALNICB data structures */
/* N_CALNICB: Main CALNICB routine for performing pipeline processi... |
#include<stdio.h>
#include<string.h>
#include<malloc.h>
#include"type.h"
#include"atom.h"
#include"environment.h"
#define MAXLINE 1024
int read_expr(char *input, char **end, Atom *result);
int read_list(char *start, char **end, Atom *result);
int parse_simple(char *start, char *end, Atom *result);
int lex(char *str... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*-
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
* Editor Settings: expandtabs and use 4 spaces for indentation */
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, ... |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <string.h>
#include <fcntl.h>
#include <zconf.h>
#include <errno.h>
#define BLOCK_SIZE 4096
enum expansionWay{ante, post, ambo};
typedef struct OffsetData {
__off_t offset;
char c;
} OffsetData;
void parseWayArgument(in... |
/* vim: set cin et sw=4 ts=4: */
#include "unicode.h"
/*
* Copyright 2001-2004 Unicode, Inc.
*
* Disclaimer
*
* This source code is provided as is by Unicode, Inc. No claims are
* made as to fitness for any particular purpose. No warranties of any
* kind are expressed or implied. The recipient agrees to dete... |
/***************************************************************************
Copyright (C) 2004-2006 by <NAME>
Copyright (C) 2006 Commonwealth Scientific and Industrial Research
Organisation (CSIRO) Australia
Copyright (C) 2008-2009 <NAME>
Copyright (c) 2007-2009 Xiph.Org Foundation
... |
#include <stm32f0xx.h>
#define LED_PIN (5U)
#define _GPIO_MODER_LED GPIO_MODER_MODER5_0
#define _GPIO_OSPEEDR_LED GPIO_OSPEEDR_OSPEEDR5
#define LED_ON() (GPIOA->BSRR |= (1U << LED_PIN))
#define LED_OFF() (GPIOA->BRR |= (1U << LED_PIN))
#define TOGGLE_LED() (GPIOA->ODR ^= (1U << LED_PIN))
#define _GPIO_MODER_I2C1_SDA ... |
/* found here: http://lists.xiph.org/pipermail/vorbis-dev/2010-November/020173.html */
/*!\file\brief Fixes ogg vorbis files.
A command-line tool that reads in a ogg vorbis file and recalculates
the granulepos markers that are indispensable for seeking and cutting
the file at the right place with mp3splt-gtk.
*/
#in... |
/*
* MD5 transform algorithm, taken from code written by <NAME>,
* and put into the public domain
*
*/
/* The four core functions - F1 is optimized somewhat */
/* #define F1(x, y, z) (x & y | ~x & z) */
#define F1(x, y, z) (z ^ (x & (y ^ z)))
#define F2(x, y, z) F1(z, x, y)
#define F3(x, y, z) (x ^ y ^... |
/*
* PCM - Common plugin code
* Copyright (c) 2000 by <NAME> <<EMAIL>>
*
*
* 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 yo... |
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <errno.h>
#include <stdlib.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include "bmp_header.h"
#include "framebuf.h"
int x_offs = 0;
int y_offs = 0;
static void print_bmp_header(PBITMAPF... |
/* Test file for mpfr_urandom
Copyright 1999-2004, 2006-2016 Free Software Foundation, Inc.
Contributed by the AriC and Caramba projects, INRIA.
This file is part of the GNU MPFR Library.
The GNU MPFR Library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public ... |
/* SCTP kernel Implementation
* Copyright (c) 2003 Hewlett-Packard Development Company, L.P
* (C) Copyright IBM Corp. 2004
*
* This file has test cases to test the Non-Blocking mode of connect(),
* accept() and recvmsg() calls.
*
* TEST1: Non blocking accept return EAGAIN if connect is not called
* TEST2: Non ... |
#include "common.h"
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
// -----------------------------------------------------------------------------
// state
// -----------------------------------------------------------------------------
struct frame
{
cha... |
/**
* @file f_attractive_sector.c
* @brief Implementation of the attractive sector function and problem.
*/
#include <assert.h>
#include <math.h>
#include "coco.h"
#include "coco_problem.c"
#include "suite_bbob_legacy_code.c"
#include "transform_obj_oscillate.c"
#include "transform_obj_power.c"
#include "transform... |
/*
** Copyright 2014-2016 The Earlham Institute
**
** 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 la... |
/* $LastChangedRevision: 874 $
* $LastChangedDate:: 2016-02-18 14:43:14 +0100#$
*
* Copyright (c) 2016, Linz Center of Mechatronics GmbH (LCM) http://www.lcm.at/
* All rights reserved.
*/
/*
* This file is licensed according to the BSD 3-clause license as follows:
*
* Redistribution and use in source a... |
/*
* cmdq code in core level
* Copyright (c) 2015-2019 The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This ... |
/*
Copyright 2007, 2008 <NAME> (<EMAIL>)
This file is part of Velvet.
Velvet 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 ver... |
/*
******************************************************************************
* @file machine_learning_core.c
* @author Sensors Software Solution Team
* @brief This file show the simplest way to get data from sensor.
*
******************************************************************************
* @at... |
/*
* Copyright (C) 2004-2005 <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 version 2 of the License.
*
* This program is distributed in the hope that it will be usefu... |
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include "common/common.h"
#include "common/pongo.h"
#include "pf/offsets.h"
#include "pf/pfs.h"
uint64_t *stalker_cache_base = NULL;
static uint64_t *stalker_cache_cursor = NULL;
uint32_t g_kern_version_major = 0;
static uint32_t g_kern_version_minor = ... |
/*
* This file is part of libbluray
* Copyright (C) 2010 fraxinas
*
* 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 lat... |
#include <application.h>
#include <bc_servo.h>
#include "at.h"
// LED instance
bc_led_t led;
// Button instance
bc_button_t button;
bc_servo_t servo;
bc_module_relay_t relay_module;
bc_soil_sensor_t soil_sensor;
bc_soil_sensor_sensor_t sensors[5];
void servo_set_angle(uint8_t angle);
void lora_send();
bc_led_t ... |
/*
(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>>,
<... |
#include <stdio.h>
#include <assert.h>
#include <unistd.h>
#include <getopt.h>
#include <stdlib.h>
#include "pagetable.h"
#include <string.h>
#define min(a,b) ((a < b)? a : b)
#define max(a,b) ((a > b)? a : b)
#define delta(b1,b2) (int)((b1 >= b2)? 1 : b2/(double)b1)
extern int memsize;
extern int debug;... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <cutils/memory.h>
#include <time.h>
/*
* All systems must implement or emulate the rdhwr instruction to read
* the userlocal register. Systems that emulate also return teh count register
* when accessing register $2 so this should work on most syst... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <netdb.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "http.h"
/*
* Routines to manage HTTP connections
*/
typedef enum { ST_REQ, ... |
#include "Console.h"
#include <stdio.h>
#include <string.h>
// Constructor / Destructor.
Console* console_create(MaterialService* matServ, size_t scanBufferSize)
{
Console* c = NULL;
if (scanBufferSize > 0 && matServ && (c = calloc(1, sizeof(Console)))) {
c->matServ = matServ;
if (c->ScanBuffer = calloc(scanBuff... |
#include "TuneExtruder.h"
#include "../includes.h"
#define EXTRUDE_DEGREE_NUM 3
const ITEM extruderDegree[EXTRUDE_DEGREE_NUM] = {
// icon label
{ICON_1_DEGREE, LABEL_1_DEGREE},
{ICON_5_DEGREE, LABEL_5_DEGREE},
{ICON_10_DEGREE, LABEL_10_DEGREE},
};
const ... |
/* 7zMain.c - Test application for 7z Decoder
2010-10-28 : <NAME> : Public domain */
#include <jni.h>
#include <android/log.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <errno.h>
#include "7z.h"
#include "7zAlloc.h"
#include "7zCrc.h"
#include "7zFile.h"
#include "7zVersion.h"
#define L... |
# include <stdio.h>
# include <stdlib.h> /* calloc */
# include <string.h>
# include <c_iraf.h> /* for c_irafinit */
# include <xclio.h>
# include <ximio.h>
# include <xmwcs.h>
# include "trxyeq.h"
static FILE *initCoords (char *);
static int getCoords (FILE *, char *, char *, char *, double *, double *);
static v... |
/*
* BSD 3-Clause License
*
* Copyright (c) 2018, <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, this
... |
//
// epics-relay
//
// <NAME>, Brookhaven National Laboratory
//
//
// BSD 3-Clause License
//
// Copyright (c) 2021, Brookhaven Science Associates
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditio... |
/*
* 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... |
/*
* 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 version.
*
* FFmpeg is distributed... |
/*
* Copyright (c) 2016, Xerox Corporation (Xerox) and Palo Alto Research Center, Inc (PARC)
* 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... |
/*
gcc cosine.c -O9 -o cosine -lm -fopenmp
./cosine net
*/
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <omp.h>
#define NLINKS 500000000 //Maximum number of links, will automatically increase if needed.
typedef struct {
unsigned s;//so... |
/******************************************************************************
*
* Copyright (C) 2009 - 2014 Xilinx, 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 Softw... |
/*
* 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 ... |
/* lg_gsm.c
*
* Copyright (C) 2005 <NAME> <<EMAIL>>
*
* 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 of the License, or (at your option) any later version.
*
... |
/*
* Copyright (c) 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 DISCLA... |
/*
* File: lcd_driver.c
* Author: fgoetze
*
* Created on September 27, 2020, 2:29 PM
*/
#include <xc.h>
#include <stdbool.h>
#include <string.h>
#include "lcd_driver.h"
#include "mcp23s17.h"
#include "mcc_generated_files/device_config.h"
#include "usart_util.h"
#define LCD_N_COMMANDS 128
#define LCD_INSTRUCT... |
/* Copyright (c) 2017 Covalent IO, Inc. http://covalent.io
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
* License as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful... |
/******************************************************************************
* Copyright (c) 2019 <NAME>. (<EMAIL>)
*
* SPDX-License-Identifier: Apache-2.0
*
* Goom Waves
*
* A Goom Wave is a wave shape with the following segments:
*
* 1) s0: A falling (1 to -1) sine curve
* 2) f0: A flat piece at the bott... |
/**
* LTTng to GTKwave trace conversion
*
* Authors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Copyright (C) 2013 Parrot S.A.
*/
#include "lttng2lxt.h"
#include <babeltrace/babeltrace.h>
#include <babeltrace/ctf/iterator.h>
#include <babeltrace/ctf/events.h>
#include <babeltrace/ctf/callbacks.h>
#include <ftw... |
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include "eci.h"
#define TEST_DBG "/tmp/test_libvoxin.dbg"
#define MAX_LANGUAGES 22
//#define MAX_SAMPLES 2000... |
/*
* joyemu
*
* Main program, reads arguments, initializes input and I/O, starts threads.
*
*
* Copyright (c) 2017 <NAME>
*
* 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... |
#include "qlog.h"
#include <sys/epoll.h>
#include <inttypes.h>
#define SOH_PAYLOAD_LEN 128
#define STX_PAYLOAD_LEN 1024
#define YMODEM_CRC16(_buff, _len) ((_buff[_len - 2] << 8) | (_buff[_len - 1]))
struct FrameHdr
{
uint8_t tag;
uint8_t idx;
uint8_t comp;
uint8_t data[1024];
uint8_t crc[2];
};
... |
#include <common.h>
#include <asm/io.h>
#include "ddr_regs.h"
static void ddr_533Mbps(struct ddr_timing *t)
{
u32 tck = t->tck = 3750;
t->cl = 4; //cl = 4
//t->cwl = t->cl - 1; //cwl = 3
t->cwl = 6;
t->trcd = ns_to_tck(15); //t_rcd >= 15ns
/* FIXME */
//t->al = t->trcd - 1; //al = 3
t->al = 0;
t->rl = t->a... |
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <time.h>
//cores em ANSI utilizadas
#define ANSI_COLOR_RESET "\x1b[0m"
#define ANSI_COLOR_RED "\x1b[31m"
#define ANSI_COLOR_GREEN "\e[0;32m"
#define ANSI_COLOR_CYAN "\e[0;36m"
#define ANSI_COLOR_PURPLE "\e[1;35m"
#define ANSI_COLOR_YELLO... |
/* $NetBSD: vm_unix.c,v 1.20 1997/07/22 10:06:43 drochner Exp $ */
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* the Systems Programming Group of the U... |
#include <windows.h>
#include <process.h>
#include <psapi.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/compiler.h>
#include <mem/alloc.h>
#include <list.h>
#include "dlfcn.h"
struct module {
struct node n;
HMODULE handle;
};
typedef struct global_object {
HMODULE hModule;
struct glob... |
//
// aes_table.c
// kcalg
//
// Created by knightc on 2019/7/16.
// Copyright © 2019 knightc. All rights reserved.
//
#include <stdio.h>
#include "opentsb/aes.h"
//#include "genTables.cpp"
//#include "chow_aes_wbox.h"
#include "/Users/kc/git/alg-test/kcalg/kcalg/aesTable.h"
#define GETU32(pt) (\
((u32)(pt)[0] <... |
/*********************************************************************************************************
* Software License Agreement (BSD License) *
* Author: <NAME> <<EMAIL>> *
* *
* Copyright (c) 2010, <NAME>, Teraoka Laboratory (Keio... |
/*
* Copyright (C) INGCHIPS. All rights reserved.
* This code is INGCHIPS proprietary and confidential.
* Any use of the code for whatever purpose is subject to
* specific written permission of INGCHIPS.
*/
#include <ingsoc.h>
#include <stdio.h>
#include <string.h>
#include "bluetooth.h"
#include "att_db_util.h"
#inc... |
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <sys/stat.h>
#include <malloc.h>
#include <termios.h>
#include <strings.h>
#include "syscall_server.h"
#define debug(...) printf(__VA_ARGS__)
int main()
{
run_server();
return 0;
}
// Poll for incoming messa... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
struct node_{
short int end;
struct node_* kid[26];
};
typedef struct node_ NODE;
/*Aqui é criado um novo nó a ser inserido na trie,
inicializando todos os seus ponteiros 'filhos' como NULO
e atribuindo 0 ao valor 'fim' -que indica s... |
/* --COPYRIGHT--,BSD
* Copyright (c) 2015, Texas Instruments Incorporated
* 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 copy... |
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
/*
... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (C) 2018 The FreeBSD Foundation.
*
* 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 copy... |
/*
ArdaBot by <NAME>, 2019
Автоматическая прокачка персонажей MUD-сервера arda.pp.ru
main.c - генеральный цикл, сокеты
*/
#include "main.h"
#include <winsock2.h>
#include <ws2tcpip.h>
#include <locale.h>
#define ARDA_IP "172.16.58.3" // arda.pp.ru
#define ARDA_PORT "4000"
#define LOCALHOST... |
/*
* -- SuperLU routine (version 3.0) --
* Univ. of California Berkeley, Xerox Palo Alto Research Center,
* and Lawrence Berkeley National Lab.
* October 15, 2003
*
*/
#include "slu_ddefs.h"
//-----------------------------------------------------
#include <sys/resource.h>
static void VMStats( FILE *flog )
{
c... |
/*
* ACE/vis - Visualization of Flow and Transport
*
* <NAME> and <NAME>
*
* Copyright 1990-2003 Oregon Health and Science University
* All Rights Reserved
*
*/
/*
*
* set bounds properties
*
*/
#ifndef lint
static char RCSid[] = "$Id: boundwin.c,v 1.2 2003/07/24 15:23:45 pturner Exp $";
#endif
#include ... |
////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2017 <NAME> //
// ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
Author: <NAME>
Program: 2
Lab: 11am Tuesday
TA: Nilanjana Basu
Date: 9/18/16
*/
/*
Prints all the info I'm supposed to have
*/
void printIDInfo() {
printf("Author: <NAME>\n");
printf("Program: 2\n");
printf("Lab: 11am Tuesday\n");
... |
/*
ISC License
Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder
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.
... |
/*Esta versão implementa a semnete do rand a partir do contador
* Cossover efetuado através de operação binária
*/
/*Alterações feitas nos tipos de dados 05 de junho, 2015*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include<time.h>
//#include <avr/io.h>
int const size_population = 50;
int const ... |
/*
* Copyright (c) 2001-2005, <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.