text
stringlengths
3.12k
18.7k
#include <time.h> #include <math.h> #include <stdlib.h> #include "cab202_timers.h" #include "cab202_graphics.h" #include <curses.h> #include "graphics.h" #include "level.h" void initGraphics() { setup_screen(); fit_screen_to_window(); override_screen_size(getmaxx(stdscr), getmaxy(stdscr) - ((getmaxy(stdscr)...
/* * File: lattisigns512-20130329/sign.c * Author: <NAME>, <NAME>, <NAME>, <NAME> * Public Domain */ #include "crypto_int32.h" #include "crypto_sign.h" #include "poly.h" #include "params.h" #include "crypto_hash_sha512.h" #include "cpucycles.h" static void hash160(unsigned char h[20], const unsigned char *m, u...
/* * WML Teller implementation and interface functions * Copyright (c) 2016, Shoowing <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of Apache License Version 2.0 * * See README for more details. */ #include <stdio.h> #include <stdlib.h> #inclu...
#include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include "../lib/libass/libass/ass.h" #ifdef __EMSCRIPTEN__ #include <emscripten.h> #endif ASS_Library *ass_library; ASS_Renderer *ass_renderer; ASS_Track *track; typedef struct { void *buffer; int size; int lessen_counter; } ...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdbool.h> #ifdef _KERNEL_ #include <kernel/paging.h> #include <kernel/pmm.h> #include <kernel/sys.h> #endif #define MIN_ALIGN 4 typedef struct _mem_block_t { struct _mem_block_t* next; uint32_t size; // We use the last bit as a 'used' flag...
#include <ansidecl.h> #include "util.h" #include "diskio.h" #include "pff.h" FATFS fatfs; DIR dir; FILINFO fno; #define SYSREG *((unsigned int*)0177716) /*!< BK-0010 system control reg */ #define KBSTATE *((unsigned int*)0177660) /*!< Keyboard status: 0200 == input available */ #define KEYCODE *((unsigned int*)0...
#include "vcr.h" #include "vcrPrivate.h" static void slineInit(vcrSline *sln) { real nan = vcrNan(0); sln->halfLen = sln->forwNum = sln->backNum = 0; V2_SET(sln->vecSeed, nan, nan); M2_SET(sln->jacSeed, nan, nan, nan, nan); return; } vcrSline * vcrSlineNew(void) { vcrSline *sln = MALLOC(1, vcrSline); asse...
#include "kvm/disk-image.h" #include "kvm/qcow.h" #include "kvm/virtio-blk.h" #include "kvm/kvm.h" #include <linux/err.h> #include <poll.h> int debug_iodelay; static int disk_image__close(struct disk_image *disk); int disk_img_name_parser(const struct option *opt, const char *arg, int unset) { const char *cur; ch...
#include <stdio.h> #include <string.h> #include "io.h" #include "modules.h" #include "scheduler.h" #include "vm.h" // The single VM instance that the CLI uses. static WrenVM* vm; static WrenBindForeignMethodFn bindMethodFn = NULL; static WrenBindForeignClassFn bindClassFn = NULL; static WrenForeignMethodFn afterLoad...
/** * \file * \brief ATXMEGA's ATCA Hardware abstraction layer for SWI interface over XMEGA *UART drivers. * * Prerequisite: add UART Polled support to application in Atmel Studio * * Copyright (c) 2015 Atmel Corporation. All rights reserved. * * \atmel_crypto_device_library_license_start * * \page License ...
/* ----------------------- * mcp_server.c * The Mammoth Control Processor (MCP) server implementation * * The MCP server acts as the link between master and all slaves and controls * the replication. Slaves never connect directly to the master. Instead, * they connect to the MCP server, and the MCP sends them...
#include "mpeg4-avc.h" #include <stdio.h> #include <string.h> #include <assert.h> /* ISO/IEC 14496-15:2010(E) 5.2.4.1.1 Syntax (p16) aligned(8) class AVCDecoderConfigurationRecord { unsigned int(8) configurationVersion = 1; unsigned int(8) AVCProfileIndication; unsigned int(8) profile_compatibility; unsigned int(...
/* Copyright (C) The Weather Channel, Inc. 2002. All Rights Reserved. The Weather Channel (TM) funded Tungsten Graphics to develop the initial release of the Radeon 8500 driver under the XFree86 license. This notice must be preserved. Permission is hereby granted, free of charge, to any person obtaining a copy of t...
/* * OSS-7 - An opensource implementation of the DASH7 Alliance Protocol for ultra * lowpower wireless sensor communication * * Copyright 2018 University of Antwerp * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
#include "clik.h" #include "clik_helper.h" #include <errno.h> #include <string.h> typedef struct { char tmpdir[800]; } actspt; void free_actspt(void **none) { actspt_extra_free_(); } double actspt_lkl(void* none, double* pars, error **err) { double lkl; //_DEBUGHERE_("%g %g %g %g",pars[0],pars[1],pars[...
/* * rtc class driver for the Maxim MAX6900 chip * * Author: <NAME> <<EMAIL>> * * based on previously existing rtc class drivers * * 2007 (c) MontaVista, Software, Inc. This file is licensed under * the terms of the GNU General Public License version 2. This program * is licensed "as is" without any warranty...
#include <net-snmp/net-snmp-config.h> #include <rpm/header.h> #include <fcntl.h> #ifdef HAVE_RPM_RPMLIB_H #include <rpm/rpmlib.h> #endif #ifdef HAVE_RPM_RPMLIB_H #include <rpm/header.h> #endif #ifdef HAVE_RPMGETPATH /* HAVE_RPM_RPMMACRO_H */ #include <rpm/rpmmacro.h> #endif #ifdef HAVE_RPM_RPMTS_H #include <r...
/* * $Id: map.weather.c 1.4 03/09/14 16:51:32+02:00 thomas@debian.(none) $ * * Author: <NAME> <<EMAIL>> * * Copyright (c) 2002 <NAME> * All rights reserved */ #include "mech.h" #include "p.mech.utils.h" #include "p.mech.ice.h" #include "p.map.build.functions.h" int validateWeatherConditions(int curCond...
#include <Arduino.h> #include <drv_lcd.h> #define H16(v) (((v)&0xFF00) >> 8) #define L16(v) ((v)&0xFF) TSCREEN LCDScreen; pLAYER LCDIF_LAYER[LCDIF_NUMLAYERS] = { (volatile pLAYER) & LCDIF_LAYER0BASE, (volatile pLAYER) & LCDIF_LAYER1BASE, (volatile pLAYER) & LCDIF_LAYER2BASE, (volatile pLA...
/* * Copyright (c) 2010, 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 copyright * notice...
/* samples / tiled.c * ================== */ #include "cage.h" #include "tiled_actor.h" #include "tmx.h" /* The tile size we'll use for this sample is exactly 16 pixels. */ #define TILE_SIZE 16 /* The hero struct is used to animate and manage our main actor. * It contains an actor struct that in turn, makes sure ...
#include <errno.h> #include <error.h> #include <linux/can.h> #include <linux/can/raw.h> #include <net/if.h> #include <signal.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <sys/stat.h> #include <sys/time.h> #include <sys/types.h>...
/* ----------------------------------------------------------------------------- * Copyright (c) 2021 ZeUGMA. * * This software is provided 'as-is', without any express or implied warranty. * In no event will the authors be held liable for any damages arising from * the use of this software. Permission is grante...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <limits.h> #include <libelf.h> #include <gelf.h> #include "vita-elf.h" #include "vita-import.h" #include "vita-export.h" #include "elf-defs.h" #include "sce-elf.h" #include "elf-utils.h" #include "fail-utils.h" #include "elf-crea...
#include <stdio.h> #include <string.h> #include <grub/elf.h> #include <grub/module_verifier.h> #include <grub/misc.h> #include <grub/util/misc.h> struct grub_module_verifier_arch archs[] = { { "i386", 4, 0, EM_386, GRUB_MODULE_VERIFY_SUPPORTS_REL, (int[]){ R_386_32, R_386_PC32, -1 } }, { "x8...
/* * LIBOIL - Library of Optimized Inner Loops * Copyright (c) 2001,2006 <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 ...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <errno.h> #include <unistd.h> #include <netinet/in.h> #include <linux/types.h> #include <linux/netfilter.h> /* for NF_ACCEPT */ #include "urcu.h" #include "urcu/rcuhlist.h" #include "main.h" #include "apis.h" #include "debug.h" ...
/* Generate dumbank payment transactions from hospital checkup scheduling information. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "xmalloc.h" #include "exparray.h" typedef char* char_ptr; EA_TYPE(char_ptr); struct CkupRec_tag { char *date; char *time; char *doctor; char *name...
/* * Hisilicon Kirin SoCs drm master driver * * Copyright (c) 2016 Linaro Limited. * Copyright (c) 2014-2016 Hisilicon Limited. * * Author: * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Genera...
/* * Copyright © 2009 CNRS * Copyright © 2009-2011 inria. All rights reserved. * Copyright © 2009-2010 Université Bordeaux 1 * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. */ #include <private/autogen/config.h> #include <hwloc.h> #include <private/private...
/* This program deletes the entries in cookies.sqlite and webappsstore.sqlite in a firefox profile directory, except thooe belonging to a domain in a listed in a "keep" list. The profile directory name and keep list are "hard coded". A check is first made, whether the profile directory contains a lock file....
/* * File: TFT_test_BRL4.c * Author: <NAME> * For use with Sean Carroll's Big Board * Adapted from: * main.c by * Author: <NAME> * Target PIC: PIC32MX250F128B */ //////////////////////////////////// // clock AND protoThreads configure! // You MUST check this file! #include "confi...
#include "gui.h" // format: location in EEPROM, size of entire font, width, height const int fonts[2][4] = { { EEPROM_FONT_6x7, EEPROM_FONT_6x7_LEN, 6, 7 }, { EEPROM_FONT_8x16, EEPROM_FONT_8x16_LEN, 8, 16 } }; void gui_draw_byte(char bt, int x, int y) { if (x < 0 || x >= SCREEN_WIDTH || y < 0 || y >= SCREEN_HEI...
/* GTK - The GIMP Toolkit * Copyright (C) 1995-1997 <NAME>, <NAME> and <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 of the License, or (at your option...
/* Copyright (c) <NAME>, 1994. */ /* This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. */ /** * (c) Copyright 1993, Silicon Graphics, Inc. * ALL RIGHTS RESERVED * Permissio...
/* @author <NAME> Run by clang 580mainSpot.c /usr/local/gl3w/src/gl3w.o -lglfw -framework OpenGL -framework CoreFoundation */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <stdarg.h> #include <GL/gl3w.h> #include <GLFW/glfw3.h> #include "500shader.c" #include "530vector.c" #include "580mesh.c...
/* Copyright 1996 TeCom Inc. All rights reserved */ /****************************************************************************** ** CEBus DOSAPI SOFTWARE **------------------------------------------------------------------------------ ** Copyright(c)1993 by TECO Energy Management Services Corporat...
#include<libtransistor/context.h> #include<libtransistor/util.h> #include<libtransistor/svc.h> #include<libtransistor/ipc/bsd.h> #include<sys/socket.h> #include<assert.h> #include<stdio.h> #include<string.h> #include<setjmp.h> #include<unistd.h> #include<errno.h> #include<ssp/ssp.h> int main(int argc, char **argv); ...
/**************************************************************/ /* ********************************************************** */ /* * * */ /* * * */ /* * Module: rescmp ...
/* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * * Copyright (C) 2002-2007 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU...
/* Copyright 2016-2020 Intel Corporation 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 w...
#include <stdio.h> #include <math.h> #include <stdlib.h> #include "wrapper.h" float armn(int, float *); float armx(int, float *); int cpclrs(int WKID); /* * Procedure drwsrfc uses the NCAR Graphics function c_srface to * draw a surface plot of the data values in z. * * The point of observation is calculated from ...
/* -------------------------------------------------------------------------- * File: populate.c * Version 12.8.0 * -------------------------------------------------------------------------- * Licensed Materials - Property of IBM * 5725-A06 5725-A29 5724-Y48 5724-Y49 5724-Y54 5724-Y55 5655-Y21 * Copyright IBM Cor...
/* * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * list o...
/* _VolResLoad cseg 00002E32 00000024 _ResLoad cseg 00002E56 0000019B _ErrInsertDisk cseg 00002FF1 00000025 _ErrMsg cseg 00003016 00000025 _ErrWrongDisk cseg 0000303B 00000045 _VolumesOpen ...
/* # This file is part of the Astrometry.net suite. # Licensed under a 3-clause BSD style license - see LICENSE */ #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> #include "os-features.h" #include "sip.h" #include "sip-utils.h" #include "sip_qfits.h" #include "starutil...
/* * %CopyrightBegin% * * Copyright Ericsson AB 1996-2010. All Rights Reserved. * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in * compliance with the License. You should have received a copy of the * Erlang Public Licens...
/* # # Copyright (c) 2006-2012 University of Houston. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow # # $HEADER$ # # Ref: H.Chen, W.Chen, <NAME>, and H.Kuhn.MPIPP: an automatic profile-guided parallel process placement toolset for SMP clusters and multiclusters. In Proceedings of the 20th...
/** @file * * Copyright (c) Microsoft Corporation. All rights reserved. * Copyright 2019 NXP * * This program and the accompanying materials * are licensed and made available under the terms and conditions of the BSD License * which accompanies this distribution. The full text of the license may be found a...
#include "mex.h" #include "math.h" #include "stdio.h" /* Coordinates to index */ int mindex3(int x, int y, int z, int sizx, int sizy) { return z*sizx*sizy+y*sizx+x;} int mindex2(int x, int y, int sizx) { return y*sizx+x;} /* The matlab mex function */ void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArr...
/* * Copyright 2018-2020 ObjectBox Ltd. 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...
/* * Chess Toolkit: a software library for creating chess programs * Copyright (C) 2013 <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/L...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief Monitor the conversion result of channel 2 by the digital compare function. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2018 Nuvoton Technology Corp. All rights reserved. ...
/*file.c * implements file system */ #include "file.h" #include "types.h" #include "lib.h" #include "syscalls.h" static boot_block_t* boot_block; /* * get the block address */ void get_block_address(unsigned int address){ boot_block = (boot_block_t*) address; } /* uint32_t read_dentry_by_index (uint32_t ind...
/* * * Helper program to read cpu info and memory for * sys_status_module. * * this app will read from /proc and calculate ram use in the system and cpu usage * this info will be send to sys_status_module. * */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <fcntl.h> #include <errno.h> #include <s...
/** * Different tool convert audio file to wav/pcm format with different header * We need trim wav file's head, then indentify them * * This tool * trim wav file's head, and generate data part to individual file * * ./wavData [wav] * * ref: * - RIFF: resource interchange file format * https://en.wikipedia.or...
#define TRACERPLUS (-5) #include "lasp_slm.h" #include "lasp_assert.h" #include "lasp_tracer.h" typedef struct Slm { Sosfilterbank *prefilter; /// Pre-filter, A, or C. If NULL, not used. Sosfilterbank *bandpass; /// Filterbank. If NULL, not used Sosfilterbank **splowpass; /// Used for time-weighting of ...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <time.h> #include "mpi.h" #ifndef INF #define INF 999999 #endif // printing a matrix; for debugging void printMatrix(int **matrix, int dim){ int i, j; for (i = 0; i < dim; i++){ for (j = 0; j < dim; j++){ printf("%d\t", matrix[i][j]); } ...
/** * \file * * \brief Power Management Controller register related functionality. * * Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclus...
#include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include "substdio.h" #include "getln.h" #include "readwrite.h" #include "exit.h" #include "stralloc.h" #include "slurpclose.h" #include "error.h" #include "sig.h" #include "ip.h" #include "timeoutconn.h" #...
/* * OQS OpenSSL 3 provider * * Code strongly inspired by OpenSSL common provider capabilities. * * TBC: OQS license * * ToDo: Interop testing. */ #include <assert.h> #include <string.h> #include <openssl/core_dispatch.h> #include <openssl/core_names.h> /* For TLS1_VERSION etc */ #include <openssl/ssl.h> #incl...
// Copyright (c) 2018 // Author: <NAME> #include <ngx_md5.h> #include <ngx_sha1.h> #include "ngx_http_ndg_basic_module.h" static void *ngx_http_ndg_basic_create_loc_conf(ngx_conf_t *cf); static char *ngx_http_ndg_basic_merge_loc_conf( ngx_conf_t *cf, void *parent, void *child); static ngx_int_t ngx_h...
/* * Argon2 source code package * * Written by <NAME> and <NAME>, 2015 * * This work is licensed under a Creative Commons CC0 1.0 License/Waiver. * * You should have received a copy of the CC0 Public Domain Dedication along * with * this software. If not, see * <http://creativecommons.org/publicdomain/zero/1....
#include "player.h" #include "gfc_input.h" #include "map.h" #include "w_axe.h" #include "w_bomb.h" #include "w_knife.h" #include "w_shuriken.h" #include "simple_logger.h" #include "inventory.h" #include "pg_ui.h" #include "npc.h" #include "audio.h" #include <math.h> typedef enum { IDLE, WALK, FALLING, ...
/*++ Copyright (c) 1991 Microsoft Corporation Module Name: dbdata.c Abstract: Local Security Authority - Database Server Global Data Author: <NAME> (ScottBi) July 25, 1991 Environment: User Mode Revision History: --*/ #include <lsapch2.h> #include "dbp.h...
// This works fine in every binary appart from the staged secure binary. I have no ideas why. // So therefore this is no longer in use. #include <windows.h> #define SECURITY_WIN32 #include <security.h> VOID* GetTokenInfo(TOKEN_INFORMATION_CLASS TokenType) { HANDLE hToken = 0; DWORD dwLength = 0; VOID* pT...
/* * object_pool.c : generic pool of reference-counted objects * * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional ...
#include <getopt.h> #include <stdarg.h> #include <stdbool.h> #include <stdio.h> #include "config.h" #include "motif-in.h" #include "red-black-tree.h" #include "string-builder.h" #define PAGEWIDTH 80 VERBOSE_T verbosity = QUIET_VERBOSE; /************************************************************************** * ...
/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this file to You under ...
/* * * Copyright (c) 2008, Swedish Institute of Computer Science * All rights reserved. * * Additional fixes for AVR contributed by: * * <NAME> <EMAIL> * <NAME> <EMAIL> * <NAME> <EMAIL> * <NAME> <EMAIL> * <NAME> <EMAIL> * <NAME> <EMAIL> * * Additional fixes for MSP430 con...
#include <stdint.h> #include <jio.h> #include <spi.h> #include <delay.h> #include <stm32f0xx.h> #include "nrf24l01.h" #define putstr(s) SERIAL_putString(s) #define put(s) SERIAL_put(s) #ifndef PRINT_HEX_8b #define PRINT_HEX_8b(c) {const char lt[] = "0123456789ABCDEF"; \ put(lt[(c&0xF0)>>4]); put(lt[c&0xF]);} #en...
#include <stdint.h> #include <stdio.h> #include <math.h> #include <stdlib.h> #include <err.h> #include <string.h> #include <ctype.h> #include <math.h> #include <time.h> #include <unistd.h> #include <stdbool.h> #include "htslib/sam.h" #include "htslib/bgzf.h" #define MIN(X, Y) (((X) < (Y)) ? (X) : (Y)) #define MAX(X, ...
/** * Reading and parsing of the target file. */ #include <ctype.h> #include <errno.h> #include <string.h> #include <stdarg.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include <sys/stat.h> #include "Include.h" /* protos */ static void Run(void); static void Expand(void); static void DeepExpand(char...
#include "crypto_uint64.h" #include "crypto_int64.h" #include "gfe.h" typedef crypto_uint64 u64; typedef crypto_uint32 u32; #include <inttypes.h> #include <stdlib.h> static const gfe c127m1 = ((uint128_t)1 << 127) - 1; static const gfe c64m1 = ((uint128_t)1 << 64) - 1; static const gfe c63m1 = ((uint128_t)1 << 63) - 1...
#include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <stdbool.h> #include <signal.h> #include <sys/mman.h> #include <unistd.h> #include <string.h> #include "forth/forth_embed.h" #include "forking_forth.h" // if the region requested is already mapped, things fail // so we want address that won't get used ...
/* * Copyright (C) 2003-2004 EMC Corporation * * Written by <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...
/**************************************************************************//** * @file main.c * @version V0.10 * @brief * Demonstrate SPI half-duplex mode. * QSPI0 will be configured as Master mode and SPI0 will be configured as Slave mode. * Both QSPI0 and SPI0 will be configu...
/*- * Copyright (c) 1998 <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 of co...
/* * Copyright (c) LSE * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the follow...
#include <ruby.h> // An encoded number can have at most _precision_ characters. However, // it seems like we have a fuzzy behavior on low precisions. Hence a guard // for those lower precisions. #define MAX_ENCODED_CHUNKS(precision) (precision < 5 ? 5 : precision) #define DEFAULT_PRECISION 5 // Already smaller than ...
/* 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...
/* Copyright (c) 2014 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. * * Common functions between firmware and kernel verified boot. * (Firmware portion) */ #include "2common.h" #include "2rsa.h" #include "2sha.h...
/* * SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Unlicense OR CC0-1.0 */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "nvs.h" #include "nvs_flash.h" #include "...
#include "FreeRTOS.h" #include "task.h" #include "led.h" #include "board.h" #include "compiler.h" #include "gpio.h" #include "pm.h" #include "usart.h" //Stack used for the scheduler #define MINIMAL_STACK_SIZE configMINIMAL_STACK_SIZE //Storing the periods for different LEDs int periods[7]; //Counters fo...
/* BSPACM - efm32/spi demonstration application * * Written in 2014 by <NAME> <http://pabigot.github.io/bspacm/> * * To the extent possible under law, the author(s) have dedicated all * copyright and related and neighboring rights to this software to * the public domain worldwide. This software is distributed wit...
/* * This file is part of MPlayer. * * MPlayer 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. * * MPlayer is distributed in th...
/* */ #include <acess.h> #include <mm_virt.h> #include "include/vmem_layout.h" #include <threads_int.h> #include <stdbool.h> extern Uint64 giPageCount; extern tProcess *gAllProcesses; extern char gKernelEnd[]; // === PROTOTYPES === void Validate_VirtualMemoryUsage(void); void Validate_VirtualMemoryUsage_PT(const Uin...
#pragma config(I2C_Usage, I2C1, i2cSensors) #pragma config(Sensor, I2C_1, , sensorQuadEncoderOnI2CPort, , AutoAssign) #pragma config(Sensor, I2C_2, , sensorQuadEncoderOnI2CPort, , AutoAssign) #pragma config(Sensor, I2C_3, , sensorQuadEncoderOnI2CPort, , AutoAssign) ...
#include "multiclass-inf.h" #include "wirth.c" void compute_init_reg(double **C, int nclasses, int ntopics, char *training_rep) { corpus *corp; int d, j; corp = read_data(training_rep, UNSUPERVISED); //read the representation by training phase for (j = 0; j < nclasses; j++) for (d = 0; d < ntopics; d++...
#ifdef _OPENMP #include <omp.h> #endif #include <mpi.h> #include <cover_functions.h> #define FACTOR 8 unsigned int nb_MPI_proc, my_MPI_rank, nb_OMP_thread; unsigned int * thread_per_proc, * jobs; long long int min_job() { unsigned int min_val = jobs[0]; #pragma omp parallel for reduction(min:min_val) for (uns...
/****************************************************************************** * Copyright (c) 2016, NXP Semiconductors * 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. Redistributio...
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2016 BayLibre, SAS * Author: <NAME> <<EMAIL>> * Copyright (C) 2015 Amlogic, Inc. All rights reserved. * Copyright (C) 2014 Endless Mobile * * Written by: * <NAME> <<EMAIL>> */ #include <linux/export.h> #include <linux/of_graph.h> #include <dr...
/* main.c Contains main function handling API initialization and thread creation * Copyright (c) 2017 <NAME> * Copyright (c) 2017 University of Rochester * * This file is part of Musical Mood Detector and Visualizer * * Musical Mood Detector and Visualizer is free software: you can * redistribute it and/o...
#pragma ident "$Id: main.c,v 1.5 2016/09/01 18:02:44 dechavez Exp $" /*====================================================================== * * Tristar TS-45 command and control, via Moxa gateway. * *====================================================================*/ #define TS_INCLUDE_STATIC_TS_DEFAULT_OPT #...
#define _POSIX_C_SOURCE 1 /* glibcでfdopenを使うための定義 */ #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <string.h> #include <sys/uio.h> #include <time.h> #include <errno.h> #include <pthread.h> #include <unistd.h> #include <limits.h> #include <stdlib.h> #include <sys/sta...
#define OPTIONAL_RF_CLK #include "profile.h" #include "ingsoc.h" #include "platform_api.h" #include "FreeRTOS.h" #include "task.h" #include "trace.h" #include <stdio.h> #include "uart_console.h" #include "rf_util.h" #ifdef USE_DISPLAY #include "oled_ssd1306.c" #include "FreeRTOS.h" #include "task.h" #endif uint32_t c...
#include "../../../include/myhead.h" //检查登录信息 int check_log_info(Message msg, Message *back_msg, int sockfd) { int rc; int row; int column; char *errmsg = NULL; char **result = NULL; char sql[1024]; sqlite3 *db; Client_Info *new_client; Client_Info *temp = client_head->next; //检查帐号密码是否正确 if(sqlite...
/* Copyright (C) 2002-2008 <NAME> <<EMAIL>> This file is part of Siproxd. Siproxd 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)...
/* Copyright © 2018 by <NAME>, <NAME> e <NAME> */ #ifdef MULTIPROC #define _GNU_SOURCE #endif #include <pthread.h> #include <time.h> #include <sys/time.h> #include <stdio.h> #include <sched.h> #include <stdlib.h> #include "task.h" #include "busy_wait.h" typedef enum { IDLE, RUNNING, PENDING } enum_...
/***************************************************************************** * * * Copyright Intel Corporation. * * * ***...