text
stringlengths
3.08k
10.5k
/* mapper.c author: <NAME> description: Works on a concept of a broadcast schedule. Schedules are written to vector memory. */ #include "mapper.h" #define TRUE (0x1) #define FALSE (0x0) #define QPSK_POS (0x5a81) //+0.7 #define QPSK_NEG (0xa57e) //-0.7 #define POS_ONE (0x7FFF) //+1 #define NEG_ONE (0x8001) /...
/* Project: USART Echo Description: Basic implementation of the Nucleo's UART peripheral. The characters sent to the reciever through the keyboard are echoed back to the serial terminal by the transmitter Author: <NAME> References: https://github.com/WRansohoff/STM32_UART_Examples/tree/master/receive...
/* * Copyright (c) 2008,2009 Zmanda, Inc. 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 as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be use...
/* KallistiOS ##version## general_threading_test.c (c)2000-2002 <NAME> A simple thread example This small program shows off the threading (and also is used as a regression test to make sure threading is still approximately working =). See below for some more specific notes. */ #include <kos.h> ...
/** @file * Copyright (c) 2016-2018, 2021 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 * * ...
/* -*- Mode: C; c-basic-offset:4 ; -*- */ /* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2006 The University of Tennessee and The University * ...
/* * disk/toposoft.c * * Custom formats as by Topo Soft on Viaje Al Centro De La Tierra and Lorna. * * Written in 2014 by <NAME> * * RAW TRACK LAYOUT: * nr_sectors back-to-back: (all u32 values are MFM-encoded even-then-odd) * u16 sync,sync :: Per-sector value from syncs[] array below * u32 0xfafaf...
#include <arch/i586.h> #include <nop/alloc.h> #include <nop/call.h> #include <nop/page.h> #include <nop/prog.h> #include <nop/virt.h> #include <nop/idt.h> #include <string.h> const call_t call_array[] = { (call_t){"file_open", 0, (void *)($file_open)}, (call_t){"file_create", 0, (void *)($file_create)}, (call_t)...
#section support_code_struct cudnnSpatialTransformerDescriptor_t APPLY_SPECIFIC(sptf); cudnnTensorDescriptor_t APPLY_SPECIFIC(xdesc); cudnnTensorDescriptor_t APPLY_SPECIFIC(dxdesc); cudnnTensorDescriptor_t APPLY_SPECIFIC(dydesc); #section init_code_struct APPLY_SPECIFIC(sptf) = NULL; APPLY_SPECIFIC(xdesc) = NULL; AP...
// #include "types.h" // #include "stat.h" // #include "user.h" #include <math.h> #include <stdio.h> #include<unistd.h> // #include <time.h> // #define N 12 // #define E 0.00001 // #define T 100.0 // #define P 2 // #define L 20000 float fabsm(float a){ if(a<0) return -1*a; return a; } int main(int argc, char *argv...
/*********************************************************************** # Nebulae - LEDS external # 17 inlets to control brightness of each LED on the nebulae. # grouped as listed below: # - speed neg r, g, b # - speed pos r, g, b # - pitch neg r, g, b # - pitch pos r, g, b # - buttons record, next, so...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <mpi.h> #include <math.h> #define TREEMERGE void merge(int *sorted_array, long total_size, int **chunks, long chunk_size, long n_of_chunks); void merge2(int *output, int *arr1, int* arr2, int len1, int len2); int ComparisonFunc(const void * a, const ...
/************************************************************************************************************* * * INTEL CONFIDENTIAL * * Copyright 2020 - 2021 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and your use of them is governed * by the express license...
/** * @author:<NAME> */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include "array_utils.h" #include <math.h> #define BIN_FLAG 2 void initAndDisplayMatrix(int rows, int cols, int** arr){ int size = rows*cols; srand(time(NULL)); for(int i=0; i<rows; i++){ for(int j=0; j<cols;...
/* mpcheck-double -- compare mpc functions against "double complex" from the GNU libc implementation Copyright (C) 2020 INRIA This file is part of GNU MPC. GNU MPC is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by ...
// SPDX-License-Identifier: GPL-2.0+ /* * ENETC ethernet controller driver * Copyright 2019 NXP */ #include <common.h> #include <dm.h> #include <errno.h> #include <pci.h> #include <miiphy.h> #include <asm/io.h> #include <asm/processor.h> #include <miiphy.h> #include "fsl_enetc.h" static void enetc_mdio_wait_bsy(s...
/* * Copyright (c) 2021 HopeBayTech. * * This file is part of Tera. * See https://github.com/HopeBayMobile for further info. * * 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 * * ...
#include <assert.h> #include <math.h> #include <setjmp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "unit-test.h" char *CuStrAlloc(int size); char *CuStrCopy(const char *old); #define CU_ALLOC(TYPE) ((TYPE *) malloc(sizeof(TYPE))) #define HUGE_STRING_LEN 8192 #define STRING_MAX 256 #define...
// Copyright 2015 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
/* This file contains the underlying implementation for BitAddr functions * * Author: <NAME> */ #include <string.h> #include <sha2.h> #include <ripemd160.h> #include <secp256k1.h> #include <ecdsa.h> #include <rand.h> #include <base58.h> #include <stdio.h> // Some size definitions we'll need to implement the pubkey ->...
/* * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
#include "idt.h" #include "irq.h" #include "string.h" #include "tty.h" /* * Found in asm/common.s * asm_idt_set - Set the Interrupt Descriptor Table (IDT) * 32 Required Interrupt Service Routines (ISR) + initial 16 IRQ */ void asm_idt_set(uint32_t); void isr0(); void isr1(); void isr2(); void isr3(); void isr4(); ...
/* * Copyright 2018, 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 the f...
/** @file This file handles all of the file I/O for pages. */ #include "config.h" #include <stasis/page.h> #include <stasis/bufferManager.h> #include <stasis/pageHandle.h> #include <stasis/truncation.h> #include <stasis/bufferManager/legacy/pageFile.h> #include <stasis/logger/logger2.h> #include <assert.h> #...
/* * Copyright (c) 2015-2017, Stanford University * * 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, * ...
#include "tickit.h" #include "taplib.h" #include "taplib-tickit.h" #include "taplib-mockterm.h" int next_event = 0; struct SavedEvent { TickitWindow *win; int type; int line, col; } events[9]; int on_input_push(TickitWindow *win, TickitEventFlags flags, void *_info, void *data) { TickitMouseEventInfo *info = ...
/* * QEMU System Emulator * * Copyright (c) 2003-2008 <NAME> * Copyright (c) 2016 Cyberhaven * * 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 l...
/* * Broadband Forum IEEE 1905.1/1a stack * * Copyright (c) 2017, Broadband Forum * * 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...
/** * Copyright (c) 2015 rxi * * This library is free software; you can redistribute it and/or modify it * under the terms of the MIT license. See LICENSE for details. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <SDL2/SDL.h> #include "lib/sera/sera.h" #include "util.h" #include "wren.h...
/* * Copyright (C) 2013 nu774 * For conditions of distribution and use, see copyright notice in COPYING */ #if HAVE_CONFIG_H # include "config.h" #endif #if HAVE_STDINT_H # include <stdint.h> #endif #include <stdio.h> #include <stdlib.h> #include "aacenc.h" int aacenc_is_sbr_active(const aacenc_param_t *params) ...
/* resolv.c Parser for /etc/resolv.conf file. */ /* * Copyright (c) 2004-2006 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1996-2003 by Internet Software Consortium * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provid...
// Copyright (c) 2015, UChicago Argonne, LLC. All rights reserved. // Copyright 2015. UChicago Argonne, LLC. This software was produced // under U.S. Government contract DE-AC02-06CH11357 for Argonne National // Laboratory (ANL), which is operated by UChicago Argonne, LLC for the // U.S. Department of Energy. The...
/* $NetBSD: svc_auth.c,v 1.12 2000/07/06 03:10:35 christos Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for * unrestricted use provided that this legend is included on all tape * media and as a part of the software program in whole or part. Users * may copy or modify Sun RPC withou...
/** * @file kcp_server.c * @author windows * @brief usbip KCP port * @version 0.1 * @date 2021-10-08 * * @copyright Copyright (c) 2021 * */ #include "main/kcp_server.h" #include "main/usbip_server.h" #include "main/wifi_configuration.h" #include "components/kcp/ikcp.h" #include "components/kcp/ikcp_util.h" ...
#define KEYS 46 static Key keys_en[KEYS] = { { "Tab", 0, XKB_KEY_Tab, 2 }, { "←", 0, XKB_KEY_Left, 2 }, { "↑", 0, XKB_KEY_Up, 2 }, { "↓", 0, XKB_KEY_Down, 2 }, { "→", 0, XKB_KEY_Right, 2 }, { 0 }, /* New row */ { "q", "Q", XKB_KEY_q, 1 }, { "w", "W", XKB_KEY_w, 1 }, { "e", "E", XKB_KEY_e, 1 }, { "r", "...
#include "common.h" static void wr_template(int addr, int count, void *replay_dma_chan, void *host) { printk("write[%d:%d]\n", addr, count); u32 **cbs, **pgs; if (replay_dma_chan == NULL || host == NULL) { EMSG("dma: %p or host: %p, invalid!\n", replay_dma_chan, host); return; } dma_addr_t cb = prepare_cb(TO_...
/* * wifi_demo_shell.c * * Created on: Dec 27, 2020 * Author: <NAME> * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include <stdio.h> #include <stdlib.h> #include <shell/shell.h> #include <sys/printk.h> #include <init.h> #include <fcntl.h> #include <net/net_if.h> #include <net/wifi_mgmt....
#include "staticrenderer.h" #include "shaders.h" #include "textures.h" #include "scene/mesh.h" #include "scene/material.h" #include "scene/scene.h" #include "scene/camera.h" #include "window/window.h" #include <glad/glad.h> void InitStaticRender(struct Scene *sc, struct Window *window) { struct StaticPrimitives ...
/* DMA-accelerated multi-UART USB CDC for STM32F072 microcontroller Copyright (C) 2015,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 restriction...
/* $Header: /nw/tony/src/stevie/src/RCS/param.c,v 1.10 89/08/02 10:59:10 tony Exp $ * * Code to handle user-settable parameters. This is all pretty much table- * driven. To add a new parameter, put it in the params array, and add a * macro for it in param.h. If it's a numeric parameter, add any necessary * bo...
/* Interactive Dominion Interface Version 7 <NAME> CS362 Questions/Comments: <EMAIL> 1/26/2010 */ #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "dominion.h" #include "interface.h" #include "rngs.h" int main2(i...
/* * mm_alloc.c * * Stub implementations of the mm_* routines. */ #include "mm_alloc.h" #include <stdlib.h> #include <unistd.h> #include <assert.h> #include <string.h> #define METADATA_SIZE sizeof(memory_block) memory_block *head_block = NULL; memory_block *tail_block = NULL; /* resquests memory size asked by m...
/* 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 lat...
#if !defined(lint) && defined(SCCSIDS) static char sccsid[] = "@(#)qsort.c 1.1 91/11/13 SMI"; /* from UCB 4.2 83/03/0 89 */ #endif /* * qsort.c: * Our own version of the system qsort routine which is faster by an average * of 25%, with lows and highs of 10% and 50%. * The THRESHold below is the insertion sort thre...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #define ELEMENTS 50 #define OP_UNION 0 #define OP_SPLIT 1 #define MAX 1000 #define ITEM_MAX 100 void replaceChar(char *string, char oldChar, char newChar); void generate(char *id, char *total, char *upercent, int client);...
/****************************************************************************** * * Copyright (C) 2017 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 Software wit...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* setup_opencl.c :+: :+: :+: ...
/****************************************************************************** pagekiter.c - A high-performance PageKite front-end relay in C. Usage: pagekiter [options] PROTO NAME.foo.com SECRET ... ******************************************************************************* This file is Copyright 2015-2017, Th...
/* * 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...
/* * Atheros CARL9170 driver * * Basic HW register/memory/command access functions * * Copyright 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 ...
/** * @author:<NAME> */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include "array_utils.h" //if the matrix is not random then nothing will be printed to the screen //and the initial value at any entry will be zero int** initAndDisplayMatrix(int rows, int cols, bool isRandom){ int size; i...
/** * \file * * \brief Interprocessor Communication (IPC) example on core 1 for SAM. * * Copyright (c) 2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the ...
/*---------------------------------------------------------------------------- * Copyright (c) <2016-2018>, <Huawei Technologies Co., Ltd> * 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. R...
/* Copyright (C) 2016 <NAME>. * * MLton is released under a HPND-style license. * See the file MLton-LICENSE for details. */ /** * @file logger.c * * @author <NAME> * * This file implements the logger defined in logger.h */ #include "hierarchical-heap.h" #include <string.h> /********************/ /* Exter...
/* i16Dump - Dump out i16 file into a readable format.. */ /* This file is copyright 2008 <NAME>, but license is hereby * granted for all use - public, private or commercial. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "dnautil.h" #include "i16.h" static char const rcs...
/* * $PIP_license: <Simplified BSD License> * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the follo...
/* * Copyright (c) 2020 <NAME> <<EMAIL>> * * 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 DISCL...
/* * Module_Protector.c Copyright (C) 1997 Asle / ReDoX * Copyright (C) 2006-2007 <NAME> * * Converts MP packed MODs back to PTK MODs */ #include <stdlib.h> #include <string.h> #include "prowiz.h" #define MAGIC_TRK1 MAGIC4('T','R','K','1') static int depack_mp (FILE *, FILE...
/* * Remote-control functions. * * Copyright 2010 <NAME>, distributed under the Artistic License 2.0. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "options.h" #include "pv.h" #include <stdio.h> #include <string.h> #include <errno.h> #include <signal.h> #include <unistd.h> #include <sys/types.h> #in...
#include <limits.h> #include <time.h> #include <assert.h> #include "treap.h" #include "../Utils/alloc.h" static treap_node_t* treap_new_node(void* data,treap_element_constructor_fn constructor); static void treap_delete_node(treap_node_t* v,treap_element_destructor_fn destructor); static void treap_delete_helper(treap...
/* Copyright 2015 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * test_defaultcrlchecker2stores.c * * Test Default CRL with multiple CertStore Checking * */ #include "tes...
/* main.c Copyright (c) 2021, <NAME> This file is part of the update program subject the BSD 3-Clause License, see LICENSE */ #include "check.h" #include "fetch.h" #include "apply.h" #include "annul.h" #include "state.h" #include <stdio.h> #include <stdlib.h> #include <signal.h> #include <syslog.h> #include <unis...
// SPDX-License-Identifier: GPL-2.0+ /* NetworkManager Applet -- allow user control over networking * * <NAME> <<EMAIL>> * * Copyright 2008 Novell, Inc. * Copyright 2008 - 2014 Red Hat, Inc. */ #include "nm-default.h" #include "ethernet-dialog.h" #include "wireless-security.h" #include "applet-dialogs.h" #incl...
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) #include "funeth.h" #include "funeth_ktls.h" static int fun_admin_ktls_create(struct funeth_priv *fp, unsigned int id) { struct fun_admin_ktls_create_req req = { .common = FUN_ADMIN_REQ_COMMON_INIT2(FUN_ADMIN_OP_KTLS, sizeof(req)), .subop = FU...
/*++ Copyright (c) 1999 Microsoft Corporation Module Name: errata.c Abstract: documented errata for all of our favorite types of openhci USB controllers. Environment: Kernel mode Revision History: 12-31-99 : created jdunn --*/ #include "common.h" /* Hyd...
/* * 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...
/** * @file * @brief * @date 04.06.2012 * @author <NAME> * @author <NAME> */ #include <assert.h> #include <stdint.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <arpa/inet.h> #include <netinet/in.h> #include <sys/socket.h> #include <unistd.h> #include <util/log.h> #include <net/lib/rpc/c...
/****************************************************************************** * * 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) 1988 University of Utah. * Copyright (c) 1982, 1990 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 University of Utah Computer * Science Department. * * Redistributio...
#include <gs_gp.h> #include "draw.h" #include "buffer.h" #include "../log.h" int giftag_new(struct d2d_state *s, int flag, int nloop, int eop, int nregs, uint64_t regs) { trace("GIFTag %d @ %p", flag, s->drawbuffer_head); // update giftag tracking state s->gif.loop_count = 0; s->gif.head = (uint32_t *) s...
#include "segment.h" typedef struct segment_t { Vertex pStart; Vertex pEnd; double xBiombo; double yBiombo; double distance; } *SegmentPtr; Segment Segment_Create(Vertex pStart, Vertex pEnd) { SegmentPtr segment = malloc(sizeof(struct segment_t)); segment->pStart = pStart; segment->pEn...
#include "path.h" // inode for parent and child. inodesn_t pinum; inode_t parent; inodesn_t cinum; inode_t child; char name_buf[MAX_FILE_NAME_LENGTH]; // Iterator used to search dir. dz_iterator_t dzi; // The block owned by parent that contains child. dir_t dir_entry_buf[DIR_PER_BLOCK]; blockn_t dir_entry_zone_num;...
#include <stdint.h> #include <stdlib.h> #include <sys/types.h> #ifdef _WIN32 #include <ws2tcpip.h> //#define close closesocket #else #include <arpa/inet.h> #include <sys/socket.h> #include <netdb.h> #endif #include <ctype.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <unistd.h> #include <fcntl.h...
#include "dbopt.h" #include <unistd.h> #include <string.h> #include <errno.h> #include <stdlib.h> #include <time.h> #include "utility.h" #include <ctype.h> int create_db( const char *DBName ){ int ret = ERR_OK; if( NULL == DBName ) return ERR_STRING_NULL; if( 0 == access( DBName , ...
/* This file is part of GOTCHA. For copyright information see the COPYRIGHT file in the top level directory, or at https://github.com/LLNL/gotcha/blob/master/COPYRIGHT This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (as published by the F...
#include <stdlib.h> #include <string.h> #include <openssl/evp.h> #include <openssl/err.h> #include <openssl/sha.h> #include <openssl/rand.h> #include "common.h" #include "params.h" #include "datacenter.h" /* Basic cryptographic parameters and wrappers around primitives. */ int min(int a, int b); inline int min (in...
/*********************************************************************** * * Analog-to-digital conversion with displaying result on LCD and * transmitting via UART. * ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6.2 * * Copyright (c) 2018-2020 <NAME> * Dept. of Radio Electronics, Brno University of ...
/* Copyright 2004,2007,2008,2011,2014 IPB, Universite de Bordeaux, INRIA & CNRS ** ** This file is part of the Scotch software package for static mapping, ** graph partitioning and sparse matrix ordering. ** ** This software is governed by the CeCILL-C license under French law ** and abiding by the rules of distributio...
/****************************************************************************** * * Copyright (C) 2010 - 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...
#include <string.h> #include <linux/input.h> #include "keycodes.h" struct name_value { const char *name; const int value; }; static struct name_value key_table[] = { {"KEY_ESC", KEY_ESC}, {"KEY_1", KEY_1}, {"KEY_2", KEY_2}, {"KEY_3", KEY_3}, {"KEY_4", KEY_4}, {"...
// mx_to_c.h int mx_to_int32(const mxArray *input){ int *data = (int *)mxGetData(input); return data[0]; } unsigned int mx_to_uint32(const mxArray *input){ unsigned int *data = (unsigned int *)mxGetData(input); return data[0]; } const char * mx_to_char(const mxArray *input){ //mx_to_c...
#include <stdio.h> #include <string.h> #define NAME 31 //maximum permissible length of ship #define ID 10 //the number of digits in id of ship #define DATE 7 //length date #define CLASS 3 //number of classes of ships #define DAY() "080614" //date of entry into port t...
#include <stdio.h> #include <stdlib.h> #include "ipmb.h" #include "ipmi.h" #include "pmic.h" #include "sensor.h" #include "libutil.h" #include "plat_ipmb.h" uint8_t *compose_memory_write_read_req(uint8_t smbus_identifier, uint8_t smbus_address, uint32_t addr_value, uint8_t *write_data, uint8_t write_len) { ...
#include <pthread.h> #include <signal.h> #include "input.h" #include "running.h" WINDOW *ssbc_createNumberKey( int number, int base_y, int base_x ); void ssbc_drawNumberKey( WINDOW *numberKeyWindow, int number ); void ssbc_pressNumberKey( ssbc_NumberPad *numberPad, int number ); void ssbc_slideToggle( ssbc_Toggle *tog...
/**************************************************************************//** * @file main.c * @version V1.00 * $Revision: 4 $ * $Date: 15/03/19 1:12p $ * @brief Change duty cycle and period of output waveform by EPWM Double Buffer function. * @note * Copyright (C) 2014 Nuvoton Technology Corp. ...
/*D*********************************************************** * Modul: DBI - database action * Dienstleistungsangebot * * Copyright: yafra.org, Basel, Switzerland **************************************************************/ #include <mpmain.h> #include <mpprodbi.h> /* Prototypes f�r ANSI-C */ ...
/************************************************************************* * * * Module: account * * * * Accounting: resu...
/* Copyright 2014 <NAME> <<EMAIL>> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope tha...
/* lpdemo2.c Contributed by <NAME> October 28, 2015 - Contains a C struct to represent LP problems and code to solve such LP representations with lrs - Illustrates the interface to lrs and its use of rational numbers - This version does only maximization - Compile: gcc -O3 -o lpdemo2 lpdemo2.c lrslib.c l...
#include "types.h" #include "stat.h" #include "user.h" #include "param.h" // Memory allocator by <NAME> Ritchie, // The C programming Language, 2nd ed. Section 8.7. // The free storage is kept as a list of free blocks. // The blocks are kept in order of increasing storage address, // and the last block (highest add...
/* ******************************************************************* * * Copyright 2018 Intel Corporation All rights reserved. * *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complianc...
/* * Copyright (c) 2018-2019 The UltiSoC 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 ...
/* vim: ts=5:sts=5:set expandtab: */ /**** Copyright 2014, 2015, 2016, 2017 <NAME> This file is a part of ZBatt 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/L...
#include <stdio.h> #include <stdlib.h> unsigned int n = 1; // numero di triplette generate unsigned int *buf_read; // buffer con le triplette da esaminare unsigned int *buf_write; // buffer dove scrivere le triplette generate unsigned int buf_read_length; // dimensione del buffer di lettura unsigned int buf_...
#include <hatrack.h> #include <stdio.h> #undef CONSISTENCY_CHECK typedef uint64_t thread_params_t[2]; typedef struct { uint64_t start; uint64_t end; } thread_info_t; static gate_t *gate; static hatring_t *ring; static const uint64_t num_ops = 1 << 20; _Atomic uint64_t finished_enqueuers; _At...
/*****************************************************************************\ * ANALYSIS PERFORMANCE TOOLS * * Extrae * * Instrumentation package for parallel applications * **...
/* See LICENSE file for copyright and license details. */ #include <alloca.h> #include <alsa/asoundlib.h> #include <xcb/xcb.h> #include "bspwmbar.h" enum { ALSACTL_GETINFO = 1, ALSACTL_TOGGLE_MUTE, ALSACTL_VOLUME_UP, ALSACTL_VOLUME_DOWN, }; typedef struct { long volume; int unmuted; long max, min; long one...
/** * Implementation of main for uNabto SDK */ #if defined(WIN32) || defined(WINCE) #include <windows.h> //#include <winsock2.h> #endif #if !defined(WIN32) && !defined(__MACH__) #include <sched.h> #endif #include <sys/types.h> #include <modules/cli/gopt/gopt.h> // http://www.purposeful.co.uk/software/gopt/ #includ...
#include "keyboard.h" #include "../libc/types.h" #include "../libc/vitality/inline.h" #include "pic.h" #include "../libc/vitality/tty.h" #include "serial.h" bool wfk = false; char lkey = 0; unsigned char keyboard_map[128] = { 0, 27, '1', '2', '3', '4', '5', '6', '7', '8', /* 9 */ '9', '0', '-', '=', '\b', /* B...