text
stringlengths
3.12k
18.7k
/* *======================================================================================= * [Description] * * Businesses like to have memorable telephone numbers. One way to make a telephone * number memorable is to have it spell a memorable word or phrase. For example, * you can call the University of Waterlo...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <math.h> #include "coords.h" #include "db.h" #include "tr.h" #include "stock.h" #include "elog.h" #include "ak_ahheader.h" static void get_null_ak_ahhead( ak_ahhed * ); static void n2h_ak_ahhead( ak_ahhed * ); static int aah_datatype_to_size( short )...
/* * Copyright (c) 2021--2022 <NAME> * * 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 followi...
#include <string.h> #include <graphx.h> #include <debug.h> #include <keypadc.h> #include <compression.h> #include <fileioc.h> #include "defs.h" #include "vars.h" #include "gfx/output/gfx_base.h" #include "gfx/output/gfx_charequtiles.h" /* Global variables and stuff */ gfx_sprite_t *tiles[256]; gfx_sprite_t *emptys...
// SPDX-License-Identifier: Apache-2.0 /* * Platform Error Log (PEL) generation * * Copyright 2014-2016 IBM Corp */ #include <string.h> #include <errorlog.h> #include <device.h> #include <fsp.h> #include <pel.h> #include <rtc.h> /* Create MTMS section for sapphire log */ static void create_mtms_section(struct err...
#include "Hungarian.h" double Solve(size_t trkNum, size_t detNum, float** DistMatrix, int* Assignment) { double cost = 0.0; double *distMatrixIn = malloc( sizeof(double) * trkNum * detNum); int *assignment = malloc(sizeof(size_t) * trkNum); size_t i; size_t j; for (i = 0; i < trkNum; i++) for (j = 0; ...
/* * 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 "sadical.h" #include "internal.h" /*------------------------------------------------------------------------*/ #include <sys/time.h> #include <sys/resource.h> double sadical_process_time (void) { struct rusage u; double res; if (getrusage (RUSAGE_SELF, &u)) return 0; res = u.ru_utime.tv_sec + 1e-6 *...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <stdbool.h> #include <GL/gl3w.h> #include <GLFW/glfw3.h> #include "fractal.h" #include "shader.h" #include "util.h" #include "imaging.h" #include "advinput.h" // Stores resources for OpenGL in a global struct static struct { GLuint vbo; // Vertex Buffe...
/* Target definitions for GNU compiler for mc680x0 running NeXTSTEP Copyright (C) 1989, 90, 91, 92, 93, 1994 Free Software Foundation, Inc. This file is part of GNU CC. GNU CC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Softw...
/* * ======================================================== * * Filename: icmp.c * * Description: 发送并且接受icmp数据包,就是和ping一样的程序 * * Version: 1.0 * Created: 06/01/2013 07:26:42 PM * Revision: none * Compiler: gcc * * Author: liuyang1 (liuy), <EMAIL> * Organ...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include "levit8r.h" #include "util.h" typedef struct { float eff_sp[MAXCHS], energy_sp[MAXCHS]; float elo_sp[MAXCHS], ehi_sp[MAXCHS], ewid_sp[MAXCHS]; int luch[MAXCHS+1]; short looktab[16384]; int nclook, lookmin, lookmax; ...
/********************************************************************** * FILE: ama_scan.c * AUTHOR: <NAME> / <NAME> for refactoring / T L Bailey * PROJECT: MEME * COPYRIGHT: 2007-2008, UQ * VERSION: $Revision: 1.0$ * DESCRIPTION: Routines to perform average motif affinity scans * ******************************...
/* * * Copyright (c) 2016 <NAME>, 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...
/** * Hei Platform Library * Copyright (C) 2017-2021 <NAME> <<EMAIL>> * This software is licensed under MIT. See LICENSE for more details. */ #include "plugin.h" #if defined( _WIN32 ) #include <windows.h> #endif #if defined( _MSC_VER ) #define __MSC__ #endif #include <glide.h> /* TODO: * - the initialize funct...
/* * Copyright (C) 2019 BiiLabs Co., Ltd. and Contributors * All Rights Reserved. * This is free software; you can redistribute it and/or modify it under the * terms of the MIT license. A copy of the license can be found in the file * "LICENSE" at the root of this distribution. */ #include "remote_common.h" #inc...
/* * irank.c * * Fast rank filter for images. * * IMM = IRANK(IM, ORDER, SE [,HISTOBINS] [, EDGE]) * 0 1 2 3 4 * * where SE is the structuring element ORDER is EDGE is 'border', 'none', * 'trim', 'wrap', 'zero'. * * Copyright (C) 1995-2009, by <NAME> * * This file is p...
/****************************************************************************//* ** @CopyRight (C) 石正贤(Shizhengxian) ** ** @Brief : ** : The erishttp major c file. ** ******************************************************************************/ #include "eris.config.h" #include "os/unix/eris.unix.h" ...
#include <stdio.h> #include <stdlib.h> #include <string.h> struct Alunos{ int matricula; char nome[100]; char curso[50]; int periodo; }; //ler um vetor de alunos // recebe um vetor de alunos e o tamanho do mesmo como parametros void leitura(struct Alunos *aluno, int tam){ for(int i=0;i<tam;i++){ ...
/* * tools/testing/selftests/epoll/test_epoll.c * * Copyright 2012 Adobe Systems Incorporated * * 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 *...
// Basic string routines. Not hardware optimized, but not shabby. #include <inc/string.h> int strlen(const char *s) { int n; for (n = 0; *s != '\0'; s++) n++; return n; } int strnlen(const char *s, uint32 size) { int n; for (n = 0; size > 0 && *s != '\0'; s++, size--) n++; return n; } char * strcpy(cha...
/* * Copyright 2010 <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 in w...
/* $OpenBSD: syscon.c,v 1.6 2010/09/20 06:33:47 matthew Exp $ */ /* * Copyright (c) 2007 <NAME>. * * 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, this permission notice, and the disclaimer below *...
/******************************************************************************* * @file main_s0_g_gg_wg_lg.c * @brief Demonstrates USART1 as SPI master. ******************************************************************************* * # License * <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b> ***...
/*------------------------------------------------------------------------- * * hash.c-- * Implementation of <NAME>'s Hashing package for postgres. * * Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * $Header: /usr/local/cvsroot/postgres95/src/backend/access/hash/hash.c...
/* * texture.c * GL texture source. * * Author : <NAME> <<EMAIL>> * Date created : 18/04/2021 */ #include "common/error.h" #include "common/includes.h" #include "memory/allocator.h" #include "video/texture.h" #define STB_IMAGE_IMPLEMENTATION #include <stb/stb_image.h> /* looks like a pink/black checkered...
/*- * SPDX-License-Identifier: Zlib * * Copyright (c) 2009-2018 <NAME> <<EMAIL>> * For conditions of distribution and use, see LICENSE file */ #include "relocate.h" #include <ananas/elf.h> #include <loader/module.h> #include "io.h" #include "lib.h" #if DEBUG #define ELF_DEBUG(fmt, ...) printf("ELF: " fmt, ##__VA_...
/* * Copyright 2020 Makani Technologies LLC * * 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 ...
#include "snapconfig.h" /* $Log: crdsysr3.c,v $ Revision 1.3 2004/01/27 21:16:34 ccrook Changed parsing of reference frames to always require translation parameters unless the reference frame code is 'NONE'. Revision 1.2 2003/11/28 01:59:25 ccrook Updated to be able to use grid transformation f...
#include <stdio.h> #include <stdint.h> #include <string.h> #include <stdlib.h> #define OFFSETBITS 12 #define LENGTHBITS (16 - OFFSETBITS) #define OFFSETMAX ((1 << (OFFSETBITS)) - 1) #define LENGTHMAX ((1 << (LENGTHBITS)) - 1) // 1000 #define OFFSETLENGTH(x,y) (x << LENGTHBITS | y) struct token { ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <stdint.h> #include <stddef.h> #define WANT_DATA #include "c8tables.h" /* #define Cctype_TBL_LEN 328 */ /* #define Cuplow_TBL_LEN 400 */ /* #define Cc2wc_TBL_LEN 1448 */ /* #define Cwc2c_TBL_LEN 3744 */ #define WANT_WCctype_d...
/* * Copyright 2013, Google 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: * * * Redistributions of source code must retain the above copyright * notice, this list of cond...
#include <stdint.h> uint64_t sign_extend(uint64_t number, uint32_t numbits /* signbit */){ if(number & ((uint64_t)1 << (numbits - 1))) return number | ~(((uint64_t)1 << numbits) - 1); return number; } uint64_t bits(uint64_t number, uint64_t start, uint64_t end){ uint64_t amount = (end - start) + ...
/* * 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 "sfc_famicom.h" #include "sfc_cpu.h" #include "sfc_play.h" #include "../common/d2d_interface.h" #include "../common/xa2_interface.h" #include <stdio.h> #include <math.h> #include <string.h> #include <assert.h> void sfc_log_exec(void* arg, sfc_famicom_t* famicom); sfc_famicom_t* g_famicom = NULL; extern uint...
// // Project2: ftclient.c // // // Created by <NAME> on 03/07/15. // // /* This program takes is the client side program that waits for a client to connect and does one of the following options. if the client inputs -l option the server will list all the files in the current directory. if the client inputs -g opti...
/* * 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 ...
/* The MIT License (MIT) Copyright (c) 2014 UnicornRaceEngineering 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, modif...
#include <stdlib.h> #include "wav_decode.h" #include <string.h> #include <stdio.h> /* Audio Parsing Constants */ #define RIFF_ID 0x52494646 /* correspond to the letters 'RIFF' */ #define WAVE_ID 0x57415645 /* correspond to the letters 'WAVE' */ #define FMT_ID 0x666D7420 /* correspond to the letters 'fmt ' */ #define...
/* $Id$ MPIR_build_ff - function to build the stack for the "flattening on the fly"- algorithm. Parameter IN: - *type: Pointer to the toplevel MPIR_DATATYPE structure This routine uses a iterativ implementation of the "flattening on the fly"-algorithm. It builds a stack where all informa...
/* * Mesa 3-D graphics library * Version: 6.3 * * Copyright (C) 2005 <NAME> All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including w...
#include<stdio.h> #include<string.h> #include<ctype.h> typedef struct { char palavra[50]; }pilha; // define a estrutura pilha void inicia_p(int *topo){ // inicia pilha *topo = -1; } int p_vazia(int *topo ){ // verifica se a pilha ta vazia if (*topo < 0) return 1; //retorna 1 se tiver else ret...
/** ****************************************************************************** * File Name : stm32f0xx_hal_msp.c * Description : This file provides code for the MSP Initialization * and de-Initialization codes. *********************************************************...
#include <math.h> #include <string.h> #include "swr_rasterizer.h" #include "swr_pixel.h" static swr_sdl_context* pcontext = NULL; static int alpha_blending_flag = 0; void rasterizer_set_swr_sdl_context(swr_sdl_context* ptr_to_swr_sdl_context) { pcontext = ptr_to_swr_sdl_context; } void rasterizer_set_c...
/* * This file is part of The Lost Vikings Library/Tools * * <NAME>, 2016, <<EMAIL>> * * To the extent possible under law, the author(s) have dedicated all * copyright and related and neighboring rights to this software to * the public domain worldwide. This software is distributed without * any warranty. You ...
/****************************************************************************** Copyright (c) 1996 - 2004 -- University of Washington ******************************************************************************/ #include <stdio.h> #include <stdlib.h> #include "../include/Cgen.h" #include "../include...
/* * libcpu: 6502_isa.h * * instruction decoding */ #include "libcpu.h" #define N_SHIFT 7 #define V_SHIFT 6 #define X_SHIFT 5 #define B_SHIFT 4 #define D_SHIFT 3 #define I_SHIFT 2 #define Z_SHIFT 1 #define C_SHIFT 0 enum { INSTR_ADC, INSTR_AND, INSTR_ASL, INSTR_BCC, INSTR_BCS, INSTR_BEQ, INSTR_BIT, INSTR...
#include "utils.h" /* Update the header with the cursor date */ void update_date(WINDOW* header, struct tm* curs_date) { // TODO: dstr for strlen(CONFIG.format) > 16 ? char dstr[16]; mktime(curs_date); strftime(dstr, sizeof dstr, CONFIG.fmt, curs_date); wclear(header); mvwaddstr(header, 0, 0, ...
#include <errno.h> #include <fcntl.h> /* for open */ #include <stdbool.h> /* for bool */ #include <stdio.h> /* for snprintf */ #include <stdlib.h> /* for malloc */ #include <string.h> /* for strerror */ #include <sys/stat.h> /* for mode */ #include <unistd.h> /* for getcwd */ #include "commo...
/***************************************************************************//** * @file main_pcnt_prs_input.c * * @brief This example demonstrates the single input externally clocked * mode but with the input coming via the PRS such that each GPIO * rising or falling edge (provided by button 0) generates an event...
/* See LICENSE for licence details. */ #include "fb2png.h" /* error functions */ void error(char *str) { perror(str); exit(EXIT_FAILURE); } void fatal(char *str) { fprintf(stderr, "%s\n", str); exit(EXIT_FAILURE); } /* wrapper of C functions */ int eopen(const char *path, int flag) { int fd; errno = 0; if ((...
#include "types.h" #include "stat.h" #include "user.h" int find_class(int number); void averageWaitingTime(Times *times, int childNumebrs[30]); void averageTurnaroundTime(Times *times, int childNumebrs[30]); void averageCBT(Times *times, int childNumebrs[30]); int main(void) { int pid; int pids[200] = {0}...
/* 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 "rtl_433.h" uint16_t AD_POP(uint8_t bb[BITBUF_COLS], uint8_t bits, uint8_t bit) { uint16_t val = 0; uint8_t i, byte_no, bit_no; for (i=0;i<bits;i++) { byte_no= (bit+i)/8 ; bit_no =7-((bit+i)%8); if (bb[byte_no]&(1<<bit_no)) val = val | (1<<i); } return val; } sta...
/* * Copyright (c) 2021, Moonflow <<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 ...
/******************************************************************** * intr09.c * * MC6809E CPU emulation for testing hardware interrupts. * Use the Raspberry Pi default serial port "/dev/serial0" * as the monitor connection. * * February 6, 2021 * *********************************************************...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <arpa/inet.h> #include <errno.h> #include <signal.h> #include <assert.h> #include <stdbool.h> #include "socket.h" #include "chat_helpers.h" int sigint_received = 0; void sigint_handler(int code) { sigint_received = 1; } /* ...
#include "private/lacore_private.h" #include <math.h> // find the maximum off diagonal element of the symmetric in matrix and return the position and value of the pivot float get_pivot(matrix_t *in, uint32_t *iMax, uint32_t *jMax) { uint32_t i, j; // initialize the pivot value float rValue = 0; float ...
#include <stdio.h> #include <stdlib.h> #ifdef __APPLE__ #include <OpenCL/opencl.h> #else #include <CL/cl.h> #endif #include <math.h> #include <time.h> #define MAX_SOURCE_SIZE (0x100000) #define GLOBAL_ITEM_SIZE 8192 #define LOCAL_ITEM_SIZE 64 #define BILLION 1E9 int main(void) { int maxlen = 7; long per...
#include <string.h> #include <stdlib.h> #include <stdio.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <time.h> #include <pthread.h> /* The window which contains the text. */ struct { int width; int height; char text[256]; int text_len; /* X Windows related variables. */ Display * d...
#include <pebble.h> #define MARGIN 3 #define COLOR_FRONT GColorWhite #define COLOR_BACK GColorBlack #define COLOR_DEBUG GColorVividCerulean #define COLOR_BOTTOM GColorWhite #define COLOR_TOP GColorYellow /* Leave for production code. Comment BOTH for debugging */ #undef APP_LOG #define APP_LOG(...) static Wi...
// // Created by 2ToThe10th on 13.03.2021. // #include <stdio.h> #include <string.h> #include "file.h" #include "superblock.h" #include "util.h" void FreeAddressBlock(int filesystem_fd, uint64_t block_offset, int depth); uint64_t AllocPlaceInBlockBlock(uint64_t already_alloc, uint64_t ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> // Size of the buffer #define BUFFERSIZE 50 // Size of the char array where property name will be written #define MAXPROPSIZE 15 // Size of the char array where property value will be written #define MAXVALSIZE 30 // Size of the char array ...
/* * Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved. */ /* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as publish...
/* $Id: trainer.c,v 1.2 2009/07/17 08:15:20 geni Exp $ * * Author: <NAME> * Date: May 11, 2009 */ #include "dlusb.h" #include "trainer.h" static long int get_duration(chrono_split_time_t lap_time); static chrono_split_time_t get_average_lap_time(int num_laps, chrono_split_time_t lap_time); static chrono_split_ti...
/*----------------------------------------------------------------------*\ util.c Alan compiler utilities unit \*----------------------------------------------------------------------*/ #include "util.h" /* IMPORTS */ #include "alan.h" #include "alan.version.h" #include "sysdep.h" #include "lmlog.h" #include ...
#include <math.h> #include "../thnets.h" static void nnfree_SpatialMaxPooling(struct module *mod) { THFloatTensor_free(mod->SpatialMaxPooling.indices); } int nnload_SpatialMaxPooling(struct module *mod, struct nnmodule *n) { struct table *t = n->table; mod->type = MT_SpatialMaxPooling; mod->updateOutput = nn_Spat...
#include <stdlib.h> #include <gb/gb.h> #include "./define.h" #include "./map.h" #include "./bgb_debug.h" /*UINT8 MAP_ACTIVATED_CELL_PATCH[] = {0x0E, 0x0F, 0x1E, 0x1F}; // FIXME debug*/ UINT8 MAP_ACTIVATED_CELL_PATCH[] = {0x00, 0x01, 0x10, 0x11}; Map* map_new(UINT8* bg_map, UINT8 bg_map_width, UINT8 bg_map_height) {...
#include <zephyr/types.h> #include <stddef.h> #include <stdio.h> #include <errno.h> #include <zephyr.h> #include <sys/printk.h> #include <sys/byteorder.h> #include <sys/ring_buffer.h> #include <drivers/gpio.h> #include <drivers/uart.h> #include <drivers/i2c.h> #include <drivers/sensor.h> #include <drivers/counter.h> ...
/* Remote utility routines for the remote server for GDB. Copyright (C) 1986, 1989, 1993 Free Software Foundation, Inc. This file is part of GDB. 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; e...
#include <murphy/common/macros.h> #include <murphy/common/debug.h> #include <murphy/common/log.h> #include <murphy/common/mm.h> #include <murphy/common/mainloop.h> #include <systemd/sd-bus.h> #define USEC_TO_MSEC(usec) ((unsigned int)((usec) / 1000)) typedef struct { sd_bus *bus; mrp_mainloop_t *ml; ...
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> const long long max_size = 2000; // max length of strings const long long N = 40; // number of closest words that would be shown const long long max_w = 50; // max length of vocabulary entries int main(int ...
/* * (C) Copyright 2018-2020 * SPDX-License-Identifier: GPL-2.0+ * Allwinner Technology Co., Ltd. <www.allwinnertech.com> * wangwei <<EMAIL>> * */ #include <common.h> #include <arch/pmic_bus.h> #include <arch/axp2101_reg.h> #include <private_boot0.h> static int pmu_set_vol(char *name, int set_vol, int onoff); #d...
#define _GNU_SOURCE #include <stdlib.h> #include <sys/socket.h> #include <arpa/inet.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <netinet/ip.h> #include <netinet/udp.h> #include <netinet/tcp.h> #include <netinet/if_ether.h> #include <time.h> #include <errno.h> #include "header...
#include <linux/netfilter.h> #include <libipq/libipq.h> #include <stdio.h> #include <stdlib.h> #include <signal.h> #include "messages.h" #include "packet.h" #include "print.h" #include "caract.h" #include "rule.h" #include "rule_list.h" #include "tidus.h" #include "kimari.h" #include "yuna.h" #include "auron.h" #inclu...
/*------------------------------------------------------------------------- * * Small tests for gp_libpqwalreceiver * *-----------------------------------------------------------------------*/ #include "postgres.h" #include "fmgr.h" #include "miscadmin.h" #include "access/xlog_internal.h" #include "replication/wal...
/* * Copyright (c) 2011-2013 University of Texas at Austin. All rights reserved. * * $COPYRIGHT$ * * Additional copyrights may follow * * This file is part of PerfExpert. * * PerfExpert is free software: you can redistribute it and/or modify it under * the terms of the The University of Texas at Austin Resea...
/* Token-reader for Bison's input parser, Copyright (C) 1984, 1986 <NAME> and Free Software Foundation, Inc. BISON is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. No author or distributor accepts responsibility to anyone for the consequences of using it or for whether it serves any par...
/* $OpenBSD: sf16fmr.c,v 1.1 2002/04/25 04:56:59 mickey Exp $ */ /* * Copyright (c) 2002 <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 c...
/***************************************************************************//** * @file main.c * @version V3.00 * @brief Demonstrate how to light up the WS1812B LED array. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2019 Nuvoton Technology Corp. All rights reserved. ***************...
/* * This file is part of the coreboot project. * * Copyright (C) 2013 Google Inc. * Copyright (C) 2015 Intel Corp. * * 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 Lic...
#include <assert.h> #include <stdlib.h> #include <stdio.h> #include "raylib.h" #include "constants.h" #include "utils.h" #include "prims.h" #include "kruskals.h" #include "recursive_backtrack.h" #include "dijkstras.h" #include "visualiser.h" /* Function pointers for stepping, initialising, and running algorithms. */ ...
/* $NetBSD: build.c,v 1.1.1.8 2010/04/23 20:54:07 joerg Exp $ */ #if HAVE_CONFIG_H #include "config.h" #endif #include <nbcompat.h> #if HAVE_SYS_CDEFS_H #include <sys/cdefs.h> #endif __RCSID("$NetBSD: build.c,v 1.1.1.8 2010/04/23 20:54:07 joerg Exp $"); /*- * Copyright (c) 2007 <NAME> <<EMAIL>>. * All rights reserv...
/* * EOS - Experimental Operating System * Keyboard driver */ #include <kernel/devices/keyboard.h> #include <kernel/tty.h> #include <kernel/interrupts.h> #include <kernel/io/ports.h> //#define ARR_LENGTH(a) (a / sizeof(a[0])) typedef struct { uint8_t scancode; char chr; // Character it corresponds to. } k...
#include "nwx_cmn.h" /************************************************************************ * nwxp_idata.c * * * * This module manages the user interface settings data. This includes * * managing the list of available data located in...
#include <stdlib.h> #include <string.h> #include "voxels.h" #include "voxels_csg.h" #include "aabb.h" #include "tilearray.h" #include "city.h" /* Aligned fast sizes that produce optimal octrees: 1.0 0.875 0.75 0.625 0.5 0.375 0.25 0.125 0.0625 */ #define GROUND_LEVEL 1 #define GROUND_MATERIAL (12 + (rand() &...
/* * Copyright (c) 2017 Etnaviv Project * Copyright (C) 2017 Zodiac Inflight Innovations * * 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 limitat...
/********************************************************************************************/ /* Montage Technology (Shanghai) Co., Ltd. */ /* Montage Proprietary and Confidential */ /* Copyright (c) 2014 Montage Techn...
#include "mex.h" #include "math.h" #include "matrix.h" #include "float.h" /* * VestBMS_c2corrpostandlikec2adapt_mex.c * *VESTBMS_C2CORRPOSTANDLIKEC2QTRAPZ Multiple computations for C=2 (correlated) * * ================ INPUT VARIABLES ==================== * PRIORPDF2D: 2d prior over s_vis, s_vest. [S-by-S] (dou...
/* * RTOS_LEDs.c * * Created: 14-Jul-19 7:09:52 PM * Author : Elmogy */ #include "LSTD_Types.h" #include "LDELAY_Interface.h" #include "LMath_Interface.h" #include "MTIMER0_Interface.h" #include "MDIO_Interface.h" #include "HKPD_Interface.h" #include "HLCD_Interface.h" #include "OS_Interface.h" #include "APP_Int...
#include <inttypes.h> #include <tss.h> #include <interrupts.h> #include <gdt.h> #include <paging.h> #include <eflags.h> #include <dmesg.h> #include <misc.h> #include <fpu.h> #include <scheduler.h> #include <threads.h> #include <ioperms.h> #include <process.h> #include <cpu.h> static char *exceptions[] = { "Divid...
/* maknam.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__2 = 2; static integer c__1 = 1; /* $Procedure MAKNAM ( GET body NAMe for BRIEF display ) */ /* Subrout...
// implement shell // Author: <NAME> // Date: 2021-12-25 //----------------------------------------------------------------------------- #include <stdio.h> #include <stdlib.h> #include <string.h> // Global variables int shell_exit_status = -1; // shell env variables typedef struct { char *name; char *value; }...
#include <stdio.h> #include <netdb.h> #include <arpa/inet.h> #include <string.h> #include <stdlib.h> #ifdef HAVE_OPENSSL_SHA_H #include <openssl/sha.h> #else #define SHA_DIGEST_LENGTH 20 #endif #include "config.h" #ifdef EVALUATION #define DEBUG_SAVING #endif #include "bootstrapping.h" #include "dtndht.h" static int...
#include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include <openssl/bio.h> #include <openssl/buffer.h> #include <openssl/evp.h> #include <openssl/hmac.h> static const EVP_MD *evp_md = NULL; #define SDC_AUTHORIAZTION_VARIABLE "sdc_authorization" #define SDC_DATE_VARIABLE "sdc_date" static void* ngx...
/* código utilizado nas mediçoes de cada etapa do GA Este código é utlizado para validação de cada etapa do GA Não leva em conta seu uso no AT Mega. sua execução ocorre somente no PC */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include<time.h> //#include <avr/io.h> int const size_population = 80...
#define _GNU_SOURCE /* for statx */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stddef.h> #include <stdbool.h> #include <string.h> #include "pe.h" #include <assert.h> #include <unistd.h> #include <getopt.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/mman.h> /* default pagesize f...
/* $RCSfile: oratypes.h $ $Date: 20-jul-00.13:44:19 ---------------------------------------------------------------------- Copyright (c) 1982, 2003, Oracle. All rights reserved. ---------------------------------------------------------------------- */ #ifndef ORATYPES # define ORATYPES # define SX_O...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <math.h> #include <assert.h> #include <stdbool.h> #include <string.h> #include "cache.h" #include "lru.h" // Hash table implementation adapted from https://gist.github.com/tonious/1377667 typedef struct entry_s entry_t; struct entry_s { uint8_t *...
/* * Welcome to the source of <NAME>! I hope you have a nice stay. * If you are new I would advice you to become acquainted with lib/ first. * The code there is much cosier - many functions are completely independent. * Everything under src/ revolves around a huge singleton defined in src/s.h. * The code won't che...