text
stringlengths
3.08k
10.5k
/* * Copyright 2014-2015 Freescale Semiconductor, Inc. * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <asm/arch/fsl_serdes.h> struct serdes_config { u8 protocol; u8 lanes[SRDS_MAX_LANES]; }; static struct serdes_config serdes1_cfg_tbl[] = { /* SerDes 1 */ {0x03, {PCIE2, PCIE2, PCIE2, P...
/* * Routines to mangle Bezier curves (of some fixed order) * bsplit(b, l, r) split a bezier curve at its midpoint * Rectangle bboxbezier(b) bounding box of a bezier curve * Dpoint nearbezier(b, p, LEVEL) return the nearest point to the given bezier curve * inboxbezier(b, box, LEVEL) does the bezier curve inter...
/* command----------------------------------------------------------------lassen321_161433/_tests/_group_6/_test_1.c $ /usr/tce/packages/xl/xl-2019.02.07/bin/xlc -o test_O0 -O0 test.c -lm $ ./test_O0 -1.2882E-321 -0.0 -1.0422E306 -1.0484E-320 -1.8580E-292 +1.4516E306 +1.3656E-65 +0.0 5 +1.7659E-306 -1.2991E-307 +0.0 -1...
/* The Computer Language Benchmarks Game * * http://shootout.alioth.debian.org/ * * contributed by <NAME> */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <err.h> typedef struct { float p; char c; } amino; const amino iub[] = { { 0.27, 'a' }, { 0.12, 'c' }, ...
// #include <math.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <time.h> int xStep = 0; int yStep = 0; int d = 1; unsigned int HalfStep[8]={0x1,0x3,0x2,0x6,0x4,0xC,0x8,0x9}; // Pic functions void output_b (int foo){ //printf("Stp: %x\n", foo); } void dela...
// SPDX-License-Identifier: GPL-2.0+ /* * comedi/drivers/amplc_pci236.c * Driver for Amplicon PCI236 DIO boards. * * Copyright (C) 2002-2014 MEV Ltd. <https://www.mev.co.uk/> * * COMEDI - Linux Control and Measurement Device Interface * Copyright (C) 2000 <NAME> <<EMAIL>> */ /* * Driver: amplc_pci236 * Descri...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2012 Samsung Electronics */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <string.h> #include <sys/stat.h> #include <compiler.h> #define CHECKSUM_OFFSET (14*1024-4) #define FILE_PERM (S_IRUSR | S_IW...
/* * Copyright 2014-2019, 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 copyright * notice, this list of conditions and ...
#pragma config(Hubs, S1, HTMotor, HTMotor, HTServo, none) #pragma config(Sensor, S4, IRSeeker, sensorHiTechnicIRSeeker1200) #pragma config(Motor, mtr_S1_C1_1, ElevStage1, tmotorTetrix, openLoop, reversed) #pragma config(Motor, mtr_S1_C1_2, ElevStage2, tmotorTetrix, openLoop) #pragma c...
/** @file main.c * @brief CHR file editor tool * @license MIT */ #include <argtable2.h> #include <stdint.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include "formats/chr.h" #include "formats/bk.h" #include "formats/error.h" #include "../shared/pilot.h" void print_chr_pilot_info(sd_chr_file *...
/* See problem.c for problem solution. The problem specifies a min heap be used, this is my implementation of a max heap, which I then turned into a min heap implementation. maxheap_sort.c is an implementation of the "heap sort" algorithm, which is based on the idea sorting by placing items into ...
/** * |---------------------------------------------------------------------- * | Copyright (c) 2016 <NAME> * | * | Permission is hereby granted, free of charge, to any person * | obtaining a copy of this software and associated documentation * | files (the "Software"), to deal in the Software without restrict...
// Copyright 2021 Betamark Pty Ltd. All rights reserved. // Author: <NAME> (<EMAIL>) #include <stdlib.h> #include <math.h> #include "horizon.h" #include "horizon_line.h" #include "clouds.h" #include "obstacle.h" Cloud* clouds[MAX_CLOUD_LENGTH] = {NULL}; Obstacle* obstacles[MAX_OBSTACLE_LENGTH] = {NULL}; int cloud_l...
/** \brief This is a project specifically for SCuM showsing the issue SCuM when using multiple timers feature to schedule different radio actions. The main behaviours of this project is to mimic a RX slot. Three compare timers are used for scheduling RX_ENABLE, ENABLE_TIMEOUT and LISTENING_GUARDTIME inside a slot. B...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "cli_rtcdc.h" #include "sy.h" /* upload_client part */ void uv_client_upload(uv_work_t *work) { struct sy_rtcdc_info_t *rtcdc_info = (struct sy_rtcdc_info_t *)work->data; struct rtcdc_data_channel *data_channel = rtcdc_info->data_channel; ...
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
/* mymemory.c * * provides interface to memory management * */ // Created by: <NAME> // Student ID: 51768275 // Student at University of Aberdeen #include <stdio.h> #include <unistd.h> #include <string.h> #include <stdlib.h> #include "mymemory.h" // our memory Byte mymemory[MAXMEM]; Segment_t *segmenttable = NUL...
/* Teem: Tools to process and visualize scientific data and images Copyright (C) 2005 <NAME> Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as...
#include "process.h" #include <core/helpers/statistics.h> #include <core/system/timer.h> #include <stdio.h> #include <inttypes.h> #include <stdint.h> #define EVENT_COUNT 100000 void process_init(struct thorium_actor *self); void process_destroy(struct thorium_actor *self); void process_receive(struct thorium_actor...
/* Copyright (c) 2015 Arduino LLC. All right reserved. Copyright (c) 2015 Atmel Corporation/<NAME>ARD. All right reserved. 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 ...
#include "main.h" #include "usart.h" #include "gpio.h" #include "app_rtthread.h" #include "led.h" /** * @brief main() entry * @retval int */ int main(void) { extern void app_thread_Init(void); app_thread_Init(); //创建线程 // while (1) // { // rt_kprintf("Linux RT-Thread uCos-III\r\n"); /...
// Copyright 2019-2020, Collabora, Ltd. // SPDX-License-Identifier: BSL-1.0 /*! * @file * @brief Space, space, space, SPAAAAAAAAAAAAAAAAAAAAAAAAAACE! * @author <NAME> <<EMAIL>> * @ingroup oxr_api */ #include "xrt/xrt_compiler.h" #include "util/u_debug.h" #include "util/u_trace_marker.h" #include "math/m_api.h"...
/* * Layer Two Tunnelling Protocol Daemon * Copyright (C) 1998 Adtran, Inc. * Copyright (C) 2002 <NAME> * * <NAME> * * This software is distributed under the terms * of the GPL, which you should have received * along with this source. * * Attribute Value Pair structures and * definitions */ #include "comm...
#include "user_run.h" #include <stdbool.h> #include <string.h> #include "stm32h7xx_hal.h" #define EEPROM_PAGE_SIZE 16 // delay in ms required for eeprom finish its writes #define EEPROM_WRITE_DELAY 6 extern I2C_HandleTypeDef hi2c2; static uint8_t buf[1024]; static void randomWrite(uint16_t address, uint8_t data);...
/* ------------------------------------------ * Copyright (c) 2018, Synopsys, Inc. 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 copyr...
/* * Copyright (C) Nginx, Inc. */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> typedef struct { ngx_str_t uri; } ngx_http_append_loc_conf_t; static ngx_int_t ngx_http_append_header_filter(ngx_http_request_t *r); static ngx_int_t ngx_http_append_body_filter(ngx_http_request_t *r, ...
#include "environment.h" #include "evaluation.h" #include "y_math.h" #define LASSERT(args, cond, fmt, ...) \ if (!(cond)) { \ lval* err = lval_err(fmt, __VA_ARGS__); \ lval_del(args); \ return err; \ } #define LASSERT_TYPE(func, args, index, expect) \ LASSERT(args, args->cell[index]->type == expect,...
/* * R : A Computer Language for Statistical Data Analysis * Copyright (C) 1997-2008 The R Core Team * * 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 Lice...
/******************************************************************** * Part of Mike Field's emulate-risc-v project. * * (c) 2018 <NAME> <<EMAIL>> * ** See https://github.com/hamsternz/emulate-risc-v for licensing * and additional info * ********************************************************************/ #defi...
/** * This project uses TLS feature and borrows some ideas from larson * @brief multithreaded malloc * @details Each thread will has its own list to store free blocks. * The busy blocks are not under management, only when they * are returned by user, the block will be again under control. * ...
/* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that: (1) source code distributions * retain the ab...
/* * Copyright (C) 2014 BlueKitchen GmbH * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the follo...
#define CUTE_SOUND_IMPLEMENTATION #include "ext/cute_sound.h" #ifndef AUDIO_TABLE_SIZE #define AUDIO_TABLE_SIZE (256) #endif #ifndef AUDIO_PATH #define AUDIO_PATH "assets/sounds/" #endif typedef struct AudioEntry { b32 in_use; cs_loaded_sound_t loaded; cs_play_sound_def_t ...
/* Copyright (C) 2011 by the Computer Poker Research Group, University of Alberta */ #include "net.h" #include <netdb.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <string.h> #include <sys/socket.h> #include <sys/time.h> #include <unistd.h> ReadBuf *createReadBuf(int fd) { ReadBuf *readBuf = (ReadBu...
/* t40f.c * * Test timing * * Select works on regular files, (pseudo) terminal devices, streams-based * files, FIFOs, pipes, and sockets. This test verifies selecting with a time * out set. */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/select.h>...
/* © (ɔ) QuoInsight */ int _CRT_glob = 0; // turn off globbing to avoid command line wildcard expansion [Windows only] // [UNIX/Linux] #!/bin/sh -f ; set -o noglob ; { FreeBSD noglob - Disable pathname expansion } #include <stdio.h> #include <time.h> #include <stdlib.h> #include <ctype.h> #include <string.h> int t...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <string.h> #include "coloranim.h" const unsigned int components = 3; const char *(*parse_getnext)(void) = NULL; const char *(*parse_peeknext)(void) = NULL; int (*parse_eof)(void) = NULL; void (*parse_rewind)(void) = NULL; static int parse_double(doubl...
/* RetroArch - A frontend for libretro. * Copyright (c) 2011-2017 - <NAME> * * RetroArch is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Found- * ation, either version 3 of the License, or (at your option) any la...
#include <float.h> #include <math.h> #include <stddef.h> #include "bude.h" // Energy evaluation parameters #define CNSTNT 45.0f #define HBTYPE_F 70 #define HBTYPE_E 69 #define HARDNESS 38.0f #define NPNPDIST 5.5f #define NPPDIST 1.0f __attribute__((always_inline)) void wrap(int il, float transform[3][4][WGSIZE]...
// SPDX-License-Identifier: GPL-3.0-or-later /* * License: GPLv3+ * Copyright (c) 2020 <NAME> <<EMAIL>> * * A library for checking * * 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, eith...
#include <stdio.h> #include <string.h> #include <sys/stat.h> #include "elf.h" #include "elf_pheader.h" #include "elf_section.h" /* Some of these could be skipped as they are sequentially 0, but * set them explicitly anyway. */ void pack_ehdr(void *buf, Elf64_Ehdr *h) { memcpy(buf, h->e_ident, EI_NIDENT); // NOL...
/* * Copyright (c) 2015-2016 Red Hat, Inc. * * All rights reserved. * * Author: <NAME> (<EMAIL>) * * This software licensed under BSD license, the text of which follows: * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ...
/*********************************************************************** =============== BASE64 Encoding =============== Available on: http://freecode-freecode.blogspot.com/2008/02/base64c.html Last access in: November, 10th 2009. ************************************************************************/ #include "stdi...
// Copyright 2012-2022 <NAME> <<EMAIL>> // SPDX-License-Identifier: ISC #include "internal.h" #include "types.h" #include "pugl/pugl.h" #include <assert.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> PuglStatus puglSetBlob(PuglBlob* const dest, const void* const data, const size_t len) { if (dat...
/* vim: set et fdm=syntax sts=4 sw=4 ts=4 : */ /** * Copyright © 2010 <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...
/* Copyright (c) 2018, The Monero Project 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 conditions and the follo...
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build dragonfly freebsd linux #include "runtime.h" // This implementation depends on OS-specific implementations of // // runtime_futexsleep(uint32 *addr,...
/** @file * Copyright (c) 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://www...
/** This file is in the public domain. * * * @homepage http://github.com/pabigot/bsp430 * */ #include <bsp430/platform.h> #include <bsp430/clock.h> #include <bsp430/utility/uptime.h> #include <bsp430/utility/console.h> #include <bsp430/periph/timer.h> #include <bsp430/periph/pmm.h> #include <string.h> #include <s...
/*******************************************************/ /* "C" Language Integrated Production System */ /* */ /* CLIPS Version 6.40 10/18/16 */ /* */ /* ...
/* * pongoOS - https://checkra.in * * Copyright (C) 2019-2020 checkra1n team * * This file is part of pongoOS. * * 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...
/* mtr -- a network diagnostic tool Copyright (C) 1997,1998 <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 ...
/* srv.c - DNS SRV code * Copyright (C) 2003, 2005, 2006, 2007, 2009 Free Software Foundation, Inc. * * This file is part of GNUPG. * * GNUPG 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 versi...
/************************************************************************** (C) Copyright 1990, Motorola Inc., U.S.A. Note: Reproduction and use for the development of North American digital cellular standards or development of digital speech coding standards within the International Te...
#include "tkcc.h" Var *locals; static Var *find_var(Token *tok) { for (Var *var = locals; var; var = var->next) if (strlen(var->name) == tok->len && !strncmp(tok->str, var->name, tok->len)) return var; return NULL; } Node *new_node(NodeKind kind) { Node *node = calloc(1, sizeof(Node)); node->kin...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
/* * QEMU ETRAX System Emulator * * Copyright (c) 2007 <NAME>, Axis Communications AB. * * 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 limitati...
/* -*-Mode: C;-*- */ /**BeginCopyright************************************************************ * * $HeadURL$ * $Id: 85fd4f00e63e8f99862277e21fcdb88da31f9a08 $ * *--------------------------------------------------------------------------- * Part of PERFECT Benchmark Suite (hpc.pnnl.gov/projects/PERFECT/) *--...
#pragma once #include <stdint.h> #include "includes.h" struct table_value { char *val; uint16_t val_len; #ifdef DEBUG BOOL locked; #endif }; #define TABLE_PROCESS_ARGV 1 #define TABLE_EXEC_SUCCESS 2 #define TABLE_CNC_DOMAIN 3 #define TABLE_CNC_PORT ...
/** * CVO_REGISTRYQUERY.H -- Implementation detils for the CVO Registry code. * * @file cvoRegistry.h * @author <NAME> * @version January 2014 * ************************************************************************* */ #define _VOCLIENT_LIB_ #define REG_DEBUG (getenv("REG_DBG")||access(...
/** * pelz_socket.c */ #include <pelz_socket.h> #include <sys/types.h> #include <sys/time.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <unistd.h> #include <errno.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <pelz_request_handler.h> #...
/* Copyright (c) 2019 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
#include <math.h> #include <stdio.h> #include <stdlib.h> // gcc -DTARGET=0 #ifndef TARGET #define TARGET 0 #endif #if TARGET == 0 #warning Target: bfloat #define MAX_NUMBER 127 #elif TARGET == 1 #warning Target: danagy #define MAX_NUMBER 255 #elif TARGET == 2 #warning Target: binary16 #de...
#include "esp-now-gw.h" char* get_msg_type_name(esp_now_message_type_t type) { switch(type) { case REGISTER: return "REGISTER"; break; case CONFIRM: return "CONFIRM"; break; case BUTTON_PRESSED: return "BUTTON_PRESSED"; break; default: return ...
/* Memreserve simply uses a number of threads to allocate * and reserve memory to a NUMA node for all eternity. * Intended to reserve memory on a NUMA node so that it can't * be used by another application. */ #include <stdio.h> #include <inttypes.h> #include <unistd.h> #include <numa.h> #include <numaif.h> #inclu...
#include <stdlib.h> #include <sys/mman.h> #include <stdio.h> #include <pthread.h> #include "hmalloc.h" /* typedef struct hm_stats { long pages_mapped; long pages_unmapped; long chunks_allocated; long chunks_freed; long free_length; } hm_stats; */ typedef struct node_t { // textbook size_t s...
#define PLAYER_WAIT_TIME 2000 // The time allowed between button presses - 2s byte sequence[100]; // Storage for the light sequence byte curLen = 0; // Current length of the sequence byte inputCount = 0; // The number of times that the player has pressed a (correct) button in a giv...
/* * drivers/gpu/drm/omapdrm/omap_gem_helpers.c * * Copyright (C) 2011 Texas Instruments * Author: <NAME> <<EMAIL>> * * 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. * * This...
#include <errno.h> #include <signal.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <mruby.h> #include <mruby/array.h> #include <mruby/error.h> volatile sig_atomic_t interrupt_state = 0; void signal_handler(int sig, siginfo_t* info, void* ctx) { switch(sig) { case SIGINT: ...
// Basic code from ChaN, minor modifications by <NAME> // 2011 minor tuning by RABW #include <stdarg.h> #include "term_io.h" int xatoi (char **str, long *res) { uint32_t val; uint8_t c, radix, s = 0; while ((c = **str) == ' ') (*str)++; if (c == '-') { s = 1; c = *(++(*str)); } if (c == '0') { c = *(++(...
// skip list implementation #include "base64.h" #include "db.h" #include "db_arena.h" #include "db_map.h" #include "db_skiplist.h" // initialize initial skip list node uint64_t skipInit(DbMap *map, int numEntries) { if (numEntries > 127) numEntries = 127; return allocBlk(map, numEntries * sizeof(SkipEntry) + s...
/** * Calculate the max arguments amount of print. * Print the symbol table. */ #include "prog1.h" #include "slp.h" #include "util.h" #include <stdio.h> typedef struct M_table_ *M_table; typedef struct M_intAndTable_ *M_intAndTable; struct M_table_ { string id; int value; M_table tail; }; struct M_intAndTab...
/* * Copyright (c) 1994, 1995 <NAME>. All rights reserved. * For licensing and other legal details, see the file legal.c. * * primetest.c - Test driver for prime generation. */ #include "first.h" #include <stdio.h> #include <stdlib.h> /* For strtoul() */ #include "bn.h" #include "bnprint.h" #include "cputime.h...
/** ****************************************************************************** * @file main.c * @author MCD Application Team * @brief Main application file. * This application demonstrates Firmware Update. ****************************************************************************** * ...
#define _GNU_SOURCE // Required for memmem #include "afl/types.h" #include "afl/binary.h" #include "afl/alloc-inl.h" #include "afl/debug.h" #include "afl/globals.h" #include <string.h> #include <sys/file.h> #include <sys/mman.h> #include <sys/stat.h> #include <unistd.h> u8* target_path; u8* doc_path; u8 qemu_mod...
/** * \file * MonoOSEvent on Unix * * Author: * <NAME> (<EMAIL>) * * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include "os-event.h" #include "atomic.h" #include "mono-lazy-init.h" #include "mono-threads.h" #include "mono-time.h" static mono_lazy_in...
/* * Download Agent * * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved. * * Contact: <NAME> <<EMAIL>>, <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of ...
/** * @file master.c * @author <NAME> (<EMAIL>) * @brief Munging program from Week 5 Video Assignment * @version 0.1 * @date 2021-03-03 * * @copyright Copyright (c) 2021 * */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <stdint.h> #include <time.h> // timekeeping #include <sched...
#include "initrd.h" //------------------------------ #define FILE_NAME_LEN 100 #define OWNER_NUMERIC_ID 8 #define GROUP_NUMERIC_ID 8 #define FILESIZE_LEN 12 #define SECTOR_SIZE 512 #define OWNER_USER_NAME_SIZE 32 #define OWNER_GROUP_NAME_SIZE 32 //------------------------------- initrd_header_t *initrd_header; ...
/* * EIGRP Metric Math Functions. * Copyright (C) 2013-2016 * Authors: * <NAME> * * This file is part of GNU Zebra. * * GNU Zebra 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, o...
/*---------------------------------------------------------------------------- * File: ooaofooa_SQ_TM_class.c * * Class: Timing Mark (SQ_TM) * Component: ooaofooa * * your copyright statement can go here (from te_copyright.body) *------------------------------------------------------------------...
// SPDX-License-Identifier: BSD-3-Clause /* * Copyright (c) 2021 <NAME> */ #include <stdlib.h> #include <assert.h> #include <limits.h> #include <stdio.h> #include <stdbool.h> #include "configuration.h" #include "configuration_adv.h" #include "helper.h" #include "array.h" #include "task.h" #include "taskboard.h" #in...
/* Copyright 2021 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. */ #define DT_DRV_COMPAT nuvoton_npcx_cros_bbram #include <drivers/cros_bbram.h> #include <drivers/cros_system.h> #include <errno.h> #include <loggin...
#include "render.h" static badge_sprite const anim_sickle[JUMPNRUN_SHOT_FRAMES] = { { 3, 3, (uint8_t const *) "\xab\x01" }, { 3, 3, (uint8_t const *) "\xee" } }; static badge_sprite const anim_player[JUMPNRUN_PLAYER_FRAMES] = { { 5, 8, (uint8_t const *) "\x1c\xff\xfd\x04\x04" }, { 5, 8, (uint8_t const *) "\x1...
/* Copyright 2014, 2015, <NAME> * All rights reserved. * * This file is part of CIAA Firmware. * * 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 copyrigh...
/* * ZMap Copyright 2013 Regents of the University of Michigan * * XMap Copyright 2021 <NAME> from Network and Information Security Lab * Tsinghua 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 cop...
// vi:nu:et:sts=4 ts=4 sw=4 // // genCW.c // // Created by bob on 3/20/16. // #include <cmn_defs.h> #include <AStr.h> #include <AudioCW.h> #include <Path.h> #include <W32Str.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> const char *pProgramPath = NULL; int fD...
/* !!!!!!! DO NOT EDIT THIS FILE !!!!!!! This file is built by warnings.pl Any changes made here will be lost! */ #define Off(x) ((x) / 8) #define Bit(x) (1 << ((x) % 8)) #define IsSet(a, x) ((a)[Off(x)] & Bit(x)) #define G_WARN_OFF 0 /* $^W == 0 */ #define G_WARN_ON 1 /* -w flag and $^W != 0 */ #...
/* * Copyright (c) 2019 IBM Corporation. All rights reserved. * Copyright (c) 2019 Mellanox Technologies, Inc. * All rights reserved. * * Copyright (c) 2020 Intel, Inc. All rights reserved. * Copyright (c) 2021-2022 <NAME>. All rights reserved. * $COPYRIGHT$ * * Additi...
#include "include/game.h" #include <raylib.h> #include <stddef.h> #define BOARD_SIZE 11 // Window globals int width = 800; int height = 450; char title[] = "Hex"; // Game globals enum State { kEmpty, kBlue, kRed }; typedef struct Hexagon { int x; int y; enum State state; } Hexagon; Hexagon board[BOARD_SIZE][B...
/* * newstr_conv.c * * Copyright (c) <NAME> 1999-2008 * * Source code released under the GPL * * newstring routines for dynamically allocated strings * conversions between character sets * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <limits.h> #include "newstr.h" ...
/** @mainpage About * @author <NAME> <<EMAIL>> * @version 1.0.0 * * This program is implemented on ATmega16/32 running * at 16 MHZ CPU clock; it basically processes and shows * current inverter status like Voltage, Frequency * and the speed of the motor and sets the main controller * output by ...
/* Preverjanje 1, 24. 11. 2020 Čas reševanja: 70 min. Napiši program v jeziku C, ki naredi naslednje. 1. Odpre datoteko in v njej zamenja določene znake s presledki - več v nadaljevanju. Ime datoteke je podano kot argument ukazne vrstice. Če je število podanih argumentov napačno, izpišite napako in končajte program....
#include <stdio.h> #include <string.h> #include "mathfunc.h" #include "geometry.h" #include "model.h" #define MAX_GEODESIC_STEPS (1000000) void calc (const double *indata, size_t size, double *outdata) { for (size_t i=0; i<size; ++i) { outdata[i] = indata[i] * 2.0; } } /* construct orthonormal tetrad. * ...
/* * SPI testing utility (using spidev driver) * * Copyright (c) 2007 MontaVista Software, Inc. * * 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. * * C...
#include <assert.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include "houdini.h" #include "html_unescape.h" #define ESCAPE_GROW_FACTOR(x) (((x) * 12) / 10) /* this is very scientific, yes */ #define UNESCAPE_GROW_FACTOR(x) (x) /* unescaping shouldn't grow our buffer */ /** * According to the OWASP...
#include "api.h" #include "xmc1100.h" #include "uart.h" #include "prng.h" #include "benchmark.h" #include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <string.h> //#define MEMSIZE //#define SPEED #define SPEED // NOTE: seed for the random number generator is hardcoded in prng.c:rng_enable() void initPo...
#include "types.h" #include "defs.h" #include "param.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "x86.h" #include "traps.h" #include "spinlock.h" // Interrupt descriptor table (shared by all CPUs). struct gatedesc idt[256]; extern uint vectors[]; // in vectors.S: array of 256 entry pointers ...
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> ...
/* * Copyright (c) 2015, EURECOM (www.eurecom.fr) * 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 * li...