text
stringlengths
3.08k
10.5k
#include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <errno.h> #include <csv.h> #include "../../readstat.h" #include "../util/readstat_dta_days.h" #include "json_metadata.h" #include "read_module.h" #include "csv_metadata.h" #include "mod_csv.h" #include "mod_dta.h" #include "mod_sav.h" #define UNUSE...
#include <stdlib.h> #include <stdint.h> #include <stddef.h> #include <string.h> #include <assert.h> #include <byteswap.h> #include "igzip_lib.h" #define LEVEL_BITS 2 #define HEADER_BITS 3 #define LVL_BUF_BITS 3 #define LEVEL_BIT_MASK ((1<<LEVEL_BITS) - 1) #define HEADER_BIT_MASK ((1<<HEADER_BITS) - 1) #define TYP...
#include<stdlib.h> #include <GL/glut.h> #include<math.h> #define PL 3.1415926 static GLfloat rot = 335.0; double dt = 0.02; static GLfloat g = 9.80; float e = 0.7; double x, y, ang, arc; GLfloat leg_iti_x = -70, leg_iti_y = -65; double leg_x[] = {-75, -75, -65, -65, -70, -70}; double leg_y[] = {-65, -90, -90, -85, -8...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /****************************************************************************** * Sieving algorithm using the sieve of Eratosthenes * ******************************************************************************/ #inc...
/* * test_urcu.c * * Userspace RCU library - test program * * Copyright February 2009 - <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 Licens...
/* * Copyright (c) 2019-2021 <NAME> * * 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 granted to anyone to use this software for any purpose, * including commer...
#include <gb/gb.h> #include <time.h> #include <stdio.h> #include "tilemaps/arrow.c" #include "tilemaps/alphabet.c" void init(); void checkInput(); void updateSwitches(); //arrow position UINT8 arrow_pos[0x02]; //sprite indeces UINT8 sprites[0x05]; //holds password UINT8 password[0x05]; UINT8 i; UINT8 j; UINT8 co...
/* * Copyright (c) 2017-2018 iwhisper.io * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, pu...
/* zero c library quick-sort implementation */ #include <stddef.h> #include <stdint.h> #include <limits.h> #include <zero/trix.h> #define _MAXTHRES 4 #define _STKSIZE (CHAR_BIT * sizeof(size_t)) #define _swap8(ap, bp) \ do { ...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include "../../src/calcaddr.h" #include "../../src/debug.h" struct PBIT{ struct PBIT *n_pbit[2]; uint32_t prefix; uint8_t plen; uint32_t nexthop; uint8_t root; }; void rtb_init(struct PBIT *root){ root->n_pbit[0] = NULL; root->n_p...
/* fit.c ======== Author: R.J.Barnes */ /* LICENSE AND DISCLAIMER Copyright (c) 2012 The Johns Hopkins University/Applied Physics Laboratory This file is part of the Radar Software Toolkit (RST). RST is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General ...
/* ========================================================================= zyre_group - group known to this node ------------------------------------------------------------------------- Copyright (c) the Contributors as noted in the AUTHORS file. This file is part of Zyre, an open-source framework...
/* This file is part of lorcon lorcon 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. lorcon is distributed in the ho...
/* pthreads implementation to find the closest pairs of waypoints in each of a set of METAL TMG graph files. When launched, the original thread creates p worker threads to parallelize the outer loop of the closest pairs computation for each graph (one at a time). The tasks to complete are to find the clos...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
#include "render.h" #include "matrix.h" #include "math.h" #include <stdio.h> #include <stdlib.h> float square_vertices[] = { -0.5f, -0.5f, 0.0f, 0.5f, -0.5f, 0.0f, 0.5f, 0.5f, 0.0f, -0.5f, 0.5f, 0.0f }; unsigned int square_indices[] = { 0, 1, 2, 2, 3, 0 }; float * circle_vertices; ...
/***************************************************************************** * Copyright (C) 2001-2009 PEAK System-Technik GmbH * * <EMAIL> * www.peak-system.com * * 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 * t...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <linux/ioctl.h> #include <linux/videodev.h> #include <linux/videodev2.h> #include <linux/types.h> #include "frame.h" #include "fourcc.h" #include "yuv2rgb.h" #include "utils.h" /* Image Format Converter */ VidConv converters[] = { { name: "YUV42...
#include "kmi.h" #define STRING_LEN 100 #define QUERY_LEN 20 #define DEFAULT_NUM_STRING 2048 #define DEFAULT_NUM_QUERIES 2048 int numstrings; int numqueries; int str_len; int query_len; void print_usage() { int myid, numprocs; MPI_Comm_size(MPI_COMM_WORLD, &numprocs); ...
/** * File: producer.c * Description: This is the AMQP sender class publishes outgoing AMQP * communication to clients consuming messages from a broker server. * Messages can be sent over AMQP exchange types including one-to-one, * from broadcast pattern, or selectively using specified routing key. *...
/* * Copyright (c) 2022 <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 ...
#include <brutal/alloc/global.h> #include <brutal/codec/deflate/deflate.h> #include <brutal/codec/deflate/inflate.h> #include <brutal/codec/errors.h> #include <brutal/codec/gzip/gzip.h> #include <brutal/debug.h> #include <brutal/hash/crc32.h> #include <brutal/io/mem.h> typedef enum { FLAG_TEXT = 1, FLAG_HCRC =...
/* apparmor * * Copyright © 2012 <NAME> <<EMAIL>>. * Copyright © 2012 Canonical Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or ...
/* * The MIT License (MIT) * * Copyright (c) 2018 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy,...
/* $XConsortium: def.h,v 1.25 94/04/17 20:10:33 gildea Exp $ */ /* Copyright (c) 1993, 1994 X Consortium 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 li...
/* * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights * Reserved. This file contains Original Code and/or Modifications of * Original Code as defined in and that are subject to the Apple Public * Sour...
#include <stdio.h> #include <string.h> #include <stdbool.h> #include "struct-device.h" #include "json/struct-json.h" #include "json/decoder-i2t-json.h" #include "config.h" #include "devices.h" /*** ACTION/PERFORMANCE FUNCTION *** This is the function where you will define the actions to be performed from the data retr...
/* Copyright (c) (2020) Apple Inc. All rights reserved. * * corecrypto is licensed under Apple Inc.’s Internal Use License Agreement (which * is contained in the License.txt file distributed with corecrypto) and only to * people who accept that license. IMPORTANT: Any license rights granted to you by * Apple Inc....
/* * Example program for the Allegro library, by <NAME>. * * This program demonstrates a simple use of mixer postprocessing callbacks. */ #include <math.h> #include "allegro5/allegro.h" #include "allegro5/allegro_audio.h" #include "allegro5/allegro_acodec.h" #include "allegro5/allegro_image.h" #include "alle...
#include "hoskersdl2.h" /* Set up a simple (WIDTH, HEIGHT) window. Attempt to hide the renderer etc. from user. */ void Neill_SDL_Init(SDL_Simplewin *sw) { if (SDL_Init(SDL_INIT_VIDEO) != 0) { fprintf(stderr, "\nUnable to initialize SDL: %s\n", SDL_GetError()); SDL_Quit(); exit(1); ...
/** * \file eeprom.c * * \brief This file contains functions for accessing eeprom */ /* * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/ */ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * ar...
/* * Copyright 2016-2017 Uber Technologies, Inc. * * 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 applica...
/*************************************************************************** Atari Sprint 4 video emulation ***************************************************************************/ #include "driver.h" #include "audio/sprint4.h" static tilemap* playfield; static bitmap_t* helper; int sprint4_colli...
/* Copyright (c) 2002,2003 <NAME> * * TERMS * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the f...
/* * 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...
/* * File : rw.c * * Title : Demo Readers/Writer. * * Short : A solution to the multi-reader's, one writer problem. * * Long : * * Author : <NAME> * * Date : 18 September 1997 * * Revised : */ #include <pthread.h> #include <stdio.h> #include <stdlib.h> #define MAXCOUNT 5 #define READER1 50 #define REA...
/* The MIT License (MIT) Copyright (c) 2020 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publis...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
//trees #include<stdio.h> #include<stdlib.h> struct node { int data; struct node* right; struct node * left; }; struct node * root =NULL; struct node * ptr1,*ptr2; void insert(int val){ struct node * new_node,*parent; new_node=(struct node*)malloc(sizeof(struct node)); new_node->data=val; new_node->left=NU...
/*----------------------------------------------------------------------------------------------- 名前 QBNodeBase64.c 説明 作成 2006.12.29 by H.Yamaguchi 更新 -----------------------------------------------------------------------------------------------*/ /*------------------------------------------------------...
/* * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (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/licens...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <limits.h> #include <glib.h> #include <GL/freeglut.h> #ifdef __APPLE__ #include <OpenGL/gl.h> #include <OpenGL/glu.h> #else #include <GL/gl.h> #include <GL/glu.h> #endif #define DIST_INF INT_MAX #define GRID_N 70 #define TICK_RATE 1000.0 / 1000...
/* * FreeModbus Libary: Win32 Port * Copyright (C) 2006 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) ...
// Licensed to Pioneers in Engineering under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Pioneers in Engineering licenses // this file to you under the Apache License, Version 2.0 (the // "License"); you ...
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <unistd.h> #include <sys/mman.h> #define FILEPATH "/tmp/mmapped3.bin" #define NUMINTS (90) #define FILESIZE (NUMINTS * sizeof(int)) #define __NR_nv_mmap_pgoff 30...
#include <stdint.h> typedef struct x64_va_list_s { unsigned int gp_offset; unsigned int fp_offset; void *overflow_arg_area; void *reg_save_area; } x64_va_list_t[1]; #define X64_VA_MAX_REG (6*8) #define X64_VA_MAX_XMM ((6*8)+(8*16)) #ifdef __x86_64__ // x86_64, 6 64bits general regs and 16 or 8? 128bits...
#include <stdlib.h> #include <stdio.h> #include <math.h> #define COLLISION_NONE 0 #define COLLISION_WALL 1 // Compile with: // cd src && gcc -std=c11 -Wall -Wextra -pedantic -fPIC -shared -o collisions.so collisions.c && cd .. // Free memory of ptr. void freeme(void *ptr) { free(ptr); } // Free memory of ptr a...
/* * The Initial Developer of the Original Code is International * Business Machines Corporation. Portions created by IBM * Corporation are Copyright (C) 2005 International Business * Machines Corporation. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under th...
/* pgmnorm.c - read a portable graymap and normalize the contrast ** ** Copyright (C) 1989, 1991 by <NAME>. ** ** Permission to use, copy, modify, and distribute this software and its ** documentation for any purpose and without fee is hereby granted, provided ** that the above copyright notice appear in all copies and...
/****************************************************************************** * File Name: main.c * * Description: * This is a test program of JSON lint. It demonstrates the ability of the * JSON lint module and features that indicate result and where and error is * located. * * LICENSE: * MIT License * ...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <malloc.h> #include <limits.h> void Insert_sort(int *nums, int numSize) { int i = 0, j = 0; int temp = 0; for (i = 1; i < numSize; i++) { for (j = i; j > 0; j--) { if (nums[j] < nums[j - 1]) { temp = nums[j - 1]...
//#include <stdint.h> //#include <stdbool.h> #include <string.h> #include "hal.h" #include "timer.h" #include "wait.h" #include "print.h" #include "matrix.h" #include "debug.h" /* matrix state(1:on, 0:off) */ static matrix_row_t matrix[MATRIX_ROWS]; static matrix_row_t matrix_debouncing[MATRIX_ROWS]; static bool debou...
/** * @File: demo_rtt_iotboard.c * @Author: MurphyZhao * @Date: 2018-09-29 * * Copyright (c) 2018-2019 MurphyZhao <<EMAIL>> * https://github.com/murphyzhao * All rights reserved. * License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may ...
/* * BSReg_Table.c * * Created on: Aug 14, 2019 * Author: user */ #include <stdio.h> #include <string.h> #include "BSReg_Table.h" #include "global.h" #define NO_OF_BOUNDARY_SCAN_REG 64 extern char tempBuffer[BUFFER_SIZE]; BSReg bSRegTable[NO_OF_BOUNDARY_SCAN_REG] = { // GPIO_A [PA0] = {.inputCellNum...
// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2014 - 2018 Xilinx, Inc. * <NAME> <<EMAIL>> */ #include <common.h> #include <fdtdec.h> #include <init.h> #include <malloc.h> #include <time.h> #include <asm/io.h> #include <asm/arch/hardware.h> #include <asm/arch/sys_proto.h> #include <dm/device.h> #include <d...
/* * Copyright (C) 2012 by <NAME>. * * See the IPFILTER.LICENCE file for details on licencing. * * $Id$ */ #include "ipf.h" #ifndef USE_INET6 # undef ICMP6_ECHO_REQUEST # define ICMP6_ECHO_REQUEST 0 # undef ICMP6_ECHO_REPLY # define ICMP6_ECHO_REPLY 0 # undef ICMP6_NI_QUERY # define ICMP6_NI_QUERY 0 # undef ...
/* * This file is part of the HCAN tools suite. * * HCAN 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. * * HCAN is dist...
#include <stdint.h> #include "Comunicacion.h" #include "Gpio.h" #include "PWMCCP1.h" #include "PWMCCP2.h" #include "Timers.h" #include "UART.h" #include "MotoresXYZ.h" #define _XTAL_FREQ 8000000 // -------------------Declaracion de variables globales------------------------ void moverHaciaY(uint8_t coordY...
/** * TP5 de Réseaux : Programmation d'une application client/serveur * --------------------------------------------------------------- * * Application : Jeu du pendu * fichier : serveur.c * * Auteurs : <NAME>, <NAME> et <NAME> * Date : 13 Avril 2018 * ...
/* randist/gamma.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 <NAME>, <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option)...
/* * Copyright (c) 2003-2013 The DragonFly Project. All rights reserved. * * This code is derived from software contributed to The DragonFly Project * by <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ...
// Compile with: // gcc -g3 -Wall -fPIC -shared -o override.so override.c -ldl -lpthread #define _GNU_SOURCE 1 #include <Python.h> #include <stdio.h> #include <dlfcn.h> #include <pthread.h> #include <semaphore.h> #define MAX_THREADS_TRACKED 1024 // static int (*cond_timedwait_internal)(pthread_cond_t *cond, pthread_mu...
#include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <termios.h> #include <errno.h> #include <string.h> #include <sys/ioctl.h> #include <onex-kernel/log.h> #include <onex-kernel/serial.h> #include <onex-kernel/time.h> ...
#include "core.h" #include <stdio.h> #include <stdlib.h> #include "heap.h" bool parentIsBigger(int parent, int child){ return parent > child; } bool childIsBigger(int parent, int child){ return parent < child; } Heap* newHeap(int capacity, bool (*comparitor)(int, int)){ Heap* ret = (Heap*)malloc(sizeof(Hea...
/* * Copyright (c) 1993 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions an...
/* * The MIT License (MIT) * * Copyright (c) 2015 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy,...
/* This is a maximally equidistributed combined Tausworthe generator based on code from GNU Scientific Library 1.5 (30 Jun 2004) x_n = (s1_n ^ s2_n ^ s3_n) s1_{n+1} = (((s1_n & 4294967294) <<12) ^ (((s1_n <<13) ^ s1_n) >>19)) s2_{n+1} = (((s2_n & 4294967288) << 4) ^ (((s2_n << 2) ^ s2_n) >>25)) s3_{n+...
/* * Copyright (C) 2016-17 Freie Universität Berlin * 2018 Otto-von-Guericke-Universität Magdeburg * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup net_gn...
/*============================================================================== Name : gpio.c Version : 1.0.0 Description : General Purpose Input/Output driver for STM32H7xx MCUs -------------------------------------------------------------------------------- The MIT License (MIT) Copyright (c) 2018...
/* wmget - A background download manager as a Window Maker dock app Copyright (c) 2001-2003 <NAME> <<EMAIL>> 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...
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in * the LICENSE file in the root directory of this source tree. An * additional grant of patent rights can be found in the PATENTS file * in the same directory. * */ #pragma ...
/** * @file io_src_msg_uad.c * @date 24 oct. 2012 * @author <EMAIL> * @brief Source for reading / writing fixed length messages * * Copyright (C) 2012 <NAME>. */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif /* _GNU_SOURCE */ #include <sys/socket.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #i...
/* * eglinfo - like glxinfo but for EGL * * <NAME> * 11 March 2005 * * 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 re...
/* * Copyright (c) 2014 Kaprica Security, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, mer...
#include <math.h> #include <stdint.h> #include <string.h> #include <stdbool.h> #include <stdio.h> #include <stm32f4xx_hal.h> #include "FreeRTOS.h" #include "task.h" #include "Nmea0183.h" #include "Rtc.h" #include "time.h" #include "UbloxNeo.h" #include "GpsHub.h" #include "Helpers.h" #include "Log.h" #in...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file stm32h7xx_hal_msp.c * @brief This file provides code for the MSP Initialization * and de-Initialization codes. **************************************************...
#ifdef _KERNEL #include <sys/malloc.h> #include <sys/libkern.h> #else #include <stdint.h> #include <stdlib.h> #include <string.h> #endif #include "io/read/read.h" #include "space.h" #define _CTF_INT_FLOAT_ENCODING_MASK 0xff000000 #define _CTF_INT_FLOAT_OFFSET_MASK 0x00ff0000 #define _CTF_INT_FLOAT_SIZE_MASK ...
#include "sph.h" static mat w(mat dx, mat dy, mat dz, double h) { double c = pow(1.0 / h * pow(M_PI, 1/2), 3); mat r = power(add(add(power(dx, 2), power(dy, 2)), power(dz, 2)), (1 / 2)); mat w = scale(exponent(scale(power(r, 2), 1 / (h * h)), M_E), c); destroy(r); return w; } static matlist gradw(mat x, mat ...
/* * 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...
/* Soft-FP definitions for TI C6X. Copyright (C) 2010-2017 Free Software Foundation, Inc. This files is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at...
/* Copyright (c) 2012 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. */ #include <errno.h> #include <stddef.h> #include <stdlib.h> #include <syslog.h> #include "cras_audio_format.h" /* Table for allowed alternativ...
/* * * ao_irix.h * * Original Copyright (C) <NAME> - May 1999 * Port to IRIX by <NAME>, SGI - Nov 1999 * Modifications Copyright (C) <NAME> - July 2000, July 2001 * * This file is part of libao, a cross-platform library. See * README for a history of this source code. * * libao is free so...
/* search.c - monitor backend search function */ /* * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ /* * Copyright 2001, <NAME>, All rights reserved. <<EMAIL>> * * This work has beed deveolped for the OpenLDAP Foundation * in the hope that...
/* Copyright (c) 2018 <EMAIL> Generate huge dense matrix using MPI IO The size is given by cmd line Usage: ./generate n1 n2 file params: n1, row n2, col file: output file NOTE: YOU MUST USE 81 PROCS TO RUN THIS PROGRAM THE FINAL MATRIX SIZE IS 9*n1 x 9*n2 THIS CODE IS UNDER MIT LICENCE. */ #includ...
/* $NetBSD: rpb.h,v 1.4 1997/06/13 08:24:09 ragge Exp $ */ /* * Copyright (c) 1995 Ludd, University of Lule}, Sweden. * All rights reserved. * * This code is derived from software contributed to Ludd by <NAME>. * * Redistribution and use in source and binary forms, with or without * modification, are permitted p...
/* -*- C -*- mpiP MPI Profiler ( http://llnl.github.io/mpiP ) Please see COPYRIGHT AND LICENSE information at the end of this file. ----- pcontrol.c -- implement pcontrol for MPIP */ #ifndef lint static char *svnid = "$Id$"; #endif #include <float.h> #include "mpiPi.h" #include "symbols.h" #ifdef ...
/* * Copyright (c) International Business Machines Corp., 2001 * Author: <NAME>: <EMAIL> * Copyright (c) 2004 <NAME> <<EMAIL>> * Copyright (c) 2013 <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 ...
/* Ethernet driver interface. */ #include <net/net.h> #include <net/e1000.h> #include <net/e1000e.h> #include <net/igb.h> #include <trace/trace.h> #include <mm/mmio.h> #include <panic/panic.h> #include <stdlib/stdlib.h> #include <stdlib/string.h> #include <mm/heap.h> #include <cpu/pause.h> // Pointer to the network d...
//ROOT: src/node/node.c typedef struct { int node_type; array_list_t *al; } anna_node_find_each_t; static anna_node_t *anna_node_each_fun( anna_node_t *this, void *aux) { void **aux2 = (void **)aux; anna_node_function_t fun = aux2[1]; fun(this, aux2[0]); return this; } void anna_node_...
#include "uart.h" #include "esp_err.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_system.h" #include "nvs_flash.h" #include "driver/uart.h" #include "freertos/queue.h" #include "esp_log.h" #include "soc/uart_struc...
#include "app_usb.h" #include "gpio.h" #include "led_manager.h" #include "buffers_manager.h" #include "command_process.h" #include "command_list.h" #include "usbd_conf.h" #include "usb_device.h" #include "usbd_def.h" #include "app.h" #include "utility.h" #include "sys_definitions.h" static void PrintStatus(void); typ...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <limits.h> #include <assert.h> #include <errno.h> #include "asn1p_integer.h" #define ASN_INTEGER_MAX \ (~((asn1c_integer_t)0) \ & ~((asn1c_integer_t)1 << (8 * sizeof(asn1c_integer_t) - 1))) #de...
#include "api.h" #include "quantum.h" void dword_to_bytes(uint32_t dword, uint8_t * bytes) { bytes[0] = (dword >> 24) & 0xFF; bytes[1] = (dword >> 16) & 0xFF; bytes[2] = (dword >> 8) & 0xFF; bytes[3] = (dword >> 0) & 0xFF; } uint32_t bytes_to_dword(uint8_t * bytes, uint8_t index) { return ((uin...
#include <unistd.h> #include "nav/tui/window.h" #include "nav/plugins/op/op.h" #include "nav/expand.h" #include "nav/log.h" #include "nav/util.h" #include "nav/option.h" #include "nav/table.h" #include "nav/model.h" #include "nav/event/fs.h" #include "nav/tui/select.h" enum fm_fmt { FM_NORM, FM_EXT, FM_NAME, F...
/* Usage: hyjdrv < hybrd.data */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include "minpack.h" #include "vec.h" #define real __minpack_real__ /* ********** */ /* this program tests codes for the solution of n nonlinear */ /* equations in n variables. it consists of a driver and an */ /* ...
/* Prints out trees in human readable form. Copyright (C) 1992, 1993 Free Software Foundation, Inc. Hacked by <NAME> (<EMAIL>) 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 Software Founda...
#include "interact.h" #include "narrate.h" #include "gfftypes.h" #include "entity.h" #include "gff.h" #include "port.h" #include "settings.h" #include <string.h> static sol_sprite_t background; static sol_sprite_t talk, get, use, bar, bar_border; static sol_sprite_t box; static char action_text[16]; static char name_t...
/* $Id: ppc_compat.h,v 1.1.2.8 2009/01/23 17:01:02 mikpe Exp $ * Performance-monitoring counters driver. * PPC32-specific compatibility definitions for 2.6 kernels. * * Copyright (C) 2004-2007, 2009 <NAME> */ #include <linux/version.h> #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) #include <linux/config.h> #end...
/* Copyright 1992 <NAME> and <NAME>. All rights reserved. * * This software is not subject to any license of the American Telephone * and Telegraph Company or of the Regents of the University of California. * * Permission is granted to anyone to use this software for any purpose on * any computer system,...
/***************************************************************************** * Product: "Blinky" on LAUCHXL2-TMS570LS12 board, cooperative QV kernel * Last Updated for Version: 5.7.0 * Date of the Last Update: 2016-08-28 * * Q u a n t u m L e a P s * ------------------------...