text
stringlengths
3.12k
18.7k
#include "cache.h" #include "commit.h" #include "diff.h" #include "revision.h" #include "list-objects.h" #include "pack.h" #include "pack-bitmap.h" #include "builtin.h" #include "log-tree.h" #include "graph.h" #include "bisect.h" static const char rev_list_usage[] = "git rev-list [OPTION] <commit-id>... [ -- paths... ...
#include<avr/io.h> #define baud_rate 9600UL #define F_CPU 16000000UL #define ubrr_value ((F_CPU/(16UL*baud_rate))-1) #include<util/delay.h> //#define lcd PORTC //#include</lcd.h> #include<ilibrary/adc.h> void uart_init() { UBRRL=ubrr_value; UBRRH=(ubrr_value>>8); UCSRB=(1<<RXEN)|(1<<TXEN); UCSRC=(1<<URSEL)|(...
/* * Copyright 2016 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 <fcntl.h> #include <getopt.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #incl...
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
/* * fMain.c */ #include "Include.h" /* protos */ static void UpdateDisplay(void); static void fExportRun(void); static Boolean ExportEH(EventType *); static void BuildMemoRecord(Char *); static Char *DumpBestScorersTable(Char *, Char *, UInt16); static void fClearRun(void); static Boolean EH(EventType *); /* globa...
/* * 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")...
#include <practiceos/keyboard/input.h> /* * _keyboardhandler_getkey : retrieves one key, sets the global * variable to it and disables itself */ void _keyboardhandler_getkey(uint8_t scancode, void* options) { // apparently the keyboard sends nullbytes after the input now for some reason // please dont as...
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2016-2018 Intel Corporation. */ /* * Prints a CPU core map on the form * "S/C/T L" * where * - S is the CPU socket ID * - C is the physical CPU core ID * - T is the hyper-thread ID * - L is the logical core ID * * This tool parses the information from ...
/* function related to SELECT and fetch */ #include <caml/mlvalues.h> #include <caml/memory.h> #include <caml/alloc.h> #include <caml/custom.h> #include <caml/callback.h> #include <caml/fail.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <oci.h> #include <ocidfn.h> #include "oci_wrapper.h" /* ...
/* * Local NTP (LNTP) * Author: <NAME>, <NAME> * Reference: * 1. NTPv4: https://www.eecis.udel.edu/~mills/database/reports/ntp4/ntp4.pdf * 2. Use some source code from: http://blog.csdn.net/rich_baba/article/details/6052863 */ #include "ntpclient.h" //Clock local_clock; // default configuration void load_defa...
/* ===== [slave_sim_task.c] ===== * Copyright <NAME> <<EMAIL>> * All rights reserved. * * Version: 0.1.0 * Creation Date: 2019 */ /* ===== Dependencies ===== */ #include "slave_sim_task.h" #include "serial_protocol_common.h" #include <stdio.h> #include "freertos/FreeRTOS.h" #include "esp_log.h" #include "drive...
//<NAME> #include <locale.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #define FILE_PATH "./redesocial2.txt" typedef struct Pessoa Pessoa; struct Pessoa{ int id; int idade; int sexo; }; //Função de criação da rede social void criar_rede_social(unsigned int ***rede_social, unsigned int n)...
/*- * Copyright (c) 2015 <NAME> * * 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 following disclai...
#include <xcb/xcb.h> #include "../xcbft/xcbft.h" xcb_rectangle_t get_drawable_size(xcb_connection_t *c, xcb_drawable_t drawable) { xcb_get_geometry_cookie_t cookie; xcb_generic_error_t *e; xcb_get_geometry_reply_t *geom; xcb_rectangle_t sizes; cookie = xcb_get_geometry(c, drawable); geom = xcb_get_geometry_rep...
/* P N G - P I X . C * BRL-CAD * * Copyright (c) 1998-2014 United States Government as represented by * the U.S. Army Research Laboratory. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as...
/* * File: papi_memory.c * CVS: $Id: papi_memory.c,v 1.12 2006/11/17 00:39:19 terpstra Exp $ * Author: <NAME> * <EMAIL> * Mods: <Your name here> * <Your email here> */ /* PAPI memory allocation provides for checking and maintenance of all memory * allocated through this interface. ...
/* * phy-da8xx-usb - TI DaVinci DA8xx USB PHY driver * * Copyright (C) 2016 <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; version 2 of the License. * * This program...
/* * * Copyright 2015, 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 condi...
#include <wiringPi.h> #include <stdint.h> #include <stdio.h> #include "ili.h" #include "interface.h" void set_area(ILIObject *self, uint16_t pos_x1, uint16_t pos_y1, uint16_t pos_x2, uint16_t pos_y2) { cmd(self, 0x0020); data(self, pos_x1); cmd(self, 0x0021); data(self, pos_y1); cmd(self, 0x0050); data(sel...
/* Copyright (c) 1997-1999 <NAME>. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ #include "m_pd.h" #include "m_imp.h" #include "s_stuff.h" t_class *glob_pdobject; static t_class *maxclass; int sys_perf; /* true if we ...
#define RTN_OK 0 #define RTN_ERROR 13 #define WINSTA_ALL (WINSTA_ACCESSCLIPBOARD | WINSTA_ACCESSGLOBALATOMS |\ WINSTA_CREATEDESKTOP | WINSTA_ENUMDESKTOPS |\ WINSTA_ENUMERATE | WINSTA_EXITWINDOWS |\ WINSTA_READATTRIBUTES | WINSTA_READSCREEN |\ WINSTA_WRITEATTRIBUTES | DELETE ...
/* FFTease for Pd */ #include "fftease.h" static t_class *pvoc_class; #define OBJECT_NAME "pvoc~" typedef struct _pvoc { t_object x_obj; float x_f; t_fftease *fft; t_float lofreq; t_float hifreq; t_float topfreq; short mute; } t_pvoc; static void *pvoc_new(t_symbol *s, int argc, t_atom ...
/* * Copyright (c) 1991 <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * provided that the above copyright notice and this paragraph are * duplicated in all such forms. Inclusion in a product or release * as part of a package for sale is not agree...
/* * Quick 'n' dirty font converter for the PACMAN hardware * Stefano, 07/2019 * * Usage: fontconv [srcfile] * output filename is fixed: pacman.5e * * $Id: pacman-fontconv.c $ */ #include <stdio.h> #include <stdlib.h> #include <fcntl.h> FILE *fpin, *fpout; unsigned char c,d; int i,j,k; int count; int...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "print.h" #include "board.h" #include "blitzkrieg.h" #include "config.h" #define RESET "\033[0m" /* Reset to default */ #define BLACK "\033[30m" /* Black */ #define RED "\033[31m" /* Red */ #def...
#include "mex.h" #include "math.h" /* * function [ET_table,EV_table,ETV_index]=edge_tangents(V,Ne) */ /* 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;} __inline double pow2(double val){ return val*...
/* * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
/** * \file i2cEdmaEEprom.c * * \brief Sample application for HSI2C. This application reads the specified * number of bytes from EEPROM using HSI2C and displays them on the * console of the host machine. * * Application Configuration: * * Modules Used: * I2C0 *...
/* Copyright (C) 2018 <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 commercial app...
/* * server-mock.c * Copyright (c) 2016-2018 <NAME> * * This file is a part of bluez-alsa. * * This project is licensed under the terms of the MIT license. * * This program might be used to debug or check the functionality of ALSA * plug-ins. It should work exactly the same as the BlueALSA server. When * conn...
/***************************************** * SHV Colors ****************************************/ static const int shvThreadCount = 42; static const EmbThread shvThreads[] = { { { 0, 0, 0 }, "Black", "TODO:CATALOG_NUMBER" }, { { 0, 0, 255 }, "Blue", "TODO:CATALOG_NUMBER" }, { { 51, 204, 102 }, "Green", "T...
/* * 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...
/* * Written by <NAME> (<EMAIL>) and <NAME> * (<EMAIL>) for the OpenSSL project 2014. */ /* ==================================================================== * Copyright (c) 2014 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, a...
/** * @file util.c * @brief TODO. * */ #include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <string.h> #include <unistd.h> #include <assert.h> #include "lodepng.h" #include "libattopng.h" #include "util.h" #ifndef CONSTRAIN #define CONSTRAIN(amt, low, high) ((amt)<(low)?(low):((amt)>(high)?(high):...
/* * Copyright (C) 2013 Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope i...
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include <stdio.h> #include <string.h> #include <stdbool.h> #include <stdlib.h> #include <network/network.h> #include <netmgr.h> #include "ulog/ulog.h" #include <hal/cellular.h> #include "aos/yloop.h" #include "include/netmgr_priv.h" #if defined(CONFIG_...
/* * signal.c * * $Id $ */ #include "config.h" #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <sys/file.h> #include <sys/ioctl.h> #include <sys/wait.h> #include <signal.h> #include <errno.h> #include "debug.h" #include "mudconf.h" #include "externs.h" #include "flags.h" void signal_TER...
/* * Copyright (c) 2008-2019 <NAME> <<EMAIL>> * * 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 fol...
#include "./graph.h" #include <ctype.h> #include <errno.h> #include <inttypes.h> #include <stdlib.h> #include <string.h> #include <unistd.h> typedef struct EdgeTuple { int head; int weight; } EdgeTuple; const static size_t BUFFER_SIZE = 1024; static void EdgeDestroy(Edge* edge) { free(edge); } static void Edge...
//Raspberry Pi Spectrum Analyzer Controller //The controller calls down the the driver to //change its values and prompt reading samples //Also completes all floating point calculations //dandy, 2016, version 0.4 #include <sys/mman.h> #include <fcntl.h> #include <stdio.h> #include <time.h> #include <math.h> #include <...
/* $NetBSD: scsi_disk.h,v 1.15 1998/02/13 08:28:36 enami Exp $ */ /* * SCSI-specific interface description */ /* * Some lines of this file come from a file of the name "scsi.h" * distributed by OSF as part of mach2.5, * so the following disclaimer has been kept. * * Copyright 1990 by Open Software Foundation,...
/* * Copyright (C) 2016 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This libr...
#include <stdio.h> #include "debug.h" #include "memory.h" #include "object.h" #include "value.h" void disassembleChunk(Chunk* chunk, const char* name) { printf("== %s ==\n", name); printf("%-8s %4s %4s %4s %4s %-16s\n", "chunk", "offs", "file", "line", "char", "instruction"); for (int offset = 0; offset < ch...
////////////////////////////////////////////////////////////////////////////// // * Code copied from aic3204_loop_linein.c and aic3204_test.c // * // * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ // * Copyright (C) 201...
/* glpnet08.c */ /*********************************************************************** * This code is part of GLPK (GNU Linear Programming Kit). * * Two subroutines sub() and wclique() below are intended to find a * maximum weight clique in a given undirected graph. These subroutines * are slightly modified ver...
#include <ncurses.h> #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <sys/select.h> #include <sys/time.h> #include "gui.h" #include "io.h" #include "lcd.h" #include "functions.h" #include "opcodes.h" #define LCD_HEIGHT (LCD_ROWS) + 2 #define LCD_WIDTH (LCD_COLS) + 2 #define LCD_ORIGINX 0 #define ...
/* * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application * Copyright (C) 2005-2016, <NAME> <<EMAIL>> * * Version: MPL 1.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. Yo...
#include <stdio.h> #include <stdlib.h> #include <sys/resource.h> #include <sys/stat.h> #include <fcntl.h> #include <dirent.h> #include <limits.h> #include <unistd.h> #include <errno.h> #include <bpf/bpf.h> #include "bpfstats.skel.h" #include "bpfstats.h" #include "bpf_struct.h" #define MAX_PATH_SIZE 256 static int li...
/** * This file is part of libfreespace-examples. * * Copyright (c) 2009-2013, Hillcrest Laboratories, 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...
#include <fcntl.h> #include <unistd.h> #include <sys/stat.h> #include <sys/types.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stddef.h> #define FMODE S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH #define KILO (1024) #define MEGA (KILO*KILO) #define DISK_SIZE (8 * MEGA) #defi...
/** ****************************************************************************** * @file DMA/DMA_ADCTIMTransfer/main.c * @author MCD Application Team * @version V1.4.0 * @date 24-July-2014 * @brief Main program body *****************************************************************************...
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) /* Copyright (c) 2020 Facebook */ #include <argp.h> #include <signal.h> #include <stdio.h> #include <time.h> #include <unistd.h> #include <sys/resource.h> #include <bpf/bpf.h> #include <bpf/libbpf.h> #include "tests/kprobe_bad_kfunc.skel.h" #include "tests/fentry_...
#include <stdio.h> #include <stdbool.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> // for mmap() #include <fcntl.h> #include <unistd.h> // for #include <stdio.h> #include <errno.h> #include <string.h> // for memcpy() #include <stdlib.h> // for exit() #ifndef __APPLE__ #include <malloc.h> //...
/* * MCC subtitle demuxer * Copyright (c) 2020 <NAME> * * This file is part of FFmpeg. * * FFmpeg 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 you...
#include "serial.h" #include <string.h> #include <stdlib.h> #include <stdio.h> #include <sys/types.h> #include <fcntl.h> #include <errno.h> #include <sys/select.h> #include <termios.h> #include <unistd.h> #include <dirent.h> #include <sys/stat.h> #include <sys/ioctl.h> #if defined(__linux) && defined(TIOCGSERIAL) ...
/* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. Users and possessors of this source code * are hereby granted a nonexclusive, royalty-free license to use this code * ...
/* * Copyright (c) 2015 DeNA Co., Ltd., <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, mer...
/* FreeRTOS V9.0.0rc2 - Copyright (C) 2016 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. This file is part of the FreeRTOS distribution. FreeRTOS is free software; you can redistribute it and/or modify it under ...
/* * Copyright (c) 2002 - 2006, Netherlands Forensic Institute * * 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 * ...
/* * Copyright 2021 <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...
/** * @file f_katsuura.c * @brief Implementation of the Katsuura function and problem. */ #include <stdio.h> #include <assert.h> #include <math.h> #include "coco.h" #include "coco_problem.c" #include "coco_utilities.c" #include "suite_bbob_legacy_code.c" #include "transform_obj_shift.c" #include "transform_vars_af...
/* parser.c ** strophe XMPP client library -- xml parser handlers and utility functions ** ** Copyright (C) 2005-2009 Collecta, Inc. ** ** This software is provided AS-IS with no warranty, either express ** or implied. ** ** This program is dual licensed under the MIT and GPLv3 licenses. */ /** @file * XML parse...
/*! * \file * \brief 7-SEG RGB Click example * * # Description * This click shows all ten digits on a full-color single 7 segment digit display. * Each segment has R, G, B LEDs that can be adjusted in 255 steps and * the ability to control the brightness of all the LED. * * The demo application is composed...
/* * Copyright (c) 2019, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the * disclaimer below) provided that the following conditions are met: * * * Redistributions of source code m...
#include <linux/sched.h> #include <linux/sched/task.h> #include <linux/sched/task_stack.h> #include <linux/interrupt.h> #include <asm/sections.h> #include <asm/ptrace.h> #include <asm/bitops.h> #include <asm/stacktrace.h> #include <asm/unwind.h> #define FRAME_HEADER_SIZE (sizeof(long) * 2) unsigned long unwind_get_re...
/*! \file bcma_testcase_counter_width.c * * Broadcom test cases for verifying the counter register width. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #in...
#include "tc_iot_device_config.h" #include "tc_iot_export.h" #define TC_IOT_TROUBLE_SHOOTING_URL "https://git.io/vN9le" extern void parse_command(tc_iot_mqtt_client_config * config, int argc, char ** argv); int run_shadow(tc_iot_shadow_config * p_client_config); static volatile int stop = 0; void sig_handler(int si...
// SPDX-FileCopyrightText: 2014-2016 defragger <<EMAIL>> // SPDX-License-Identifier: LGPL-3.0-only #include "packet.h" #include "utils.h" #define READ_TIMEOUT (250 * 1000) enum { HEADER = 1 << 0, CHKSUM = 1 << 1, DUP = 1 << 2, ESC = 1 << 3, }; struct parse_ctx { ut32 flags; ut8 last; ut8 sum; int chksum_nib...
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include <u.h> #include <libc.h> #include <bio.h> #include <link.h> static void addvarint(Link *ctxt, Pcdata *d, uint32 val) { int32 n; uint32 v; uchar *p;...
/************************************ * This is the framework for those * who wish to write their own C * code for the basic badge * * Take a look at user_program_temp.c (not included in project, but * available in src directory) to see how to use IIC routines ************************************/ #include <xc...
/* * Copyright (C) 2012 Free Software Foundation, Inc. * * Author: <NAME> * * This file is part of GnuTLS. * * The GnuTLS 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 ...
/* heatmap_gen - Generates heatmaps for hlstatsx * * 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, includi...
/* * Copyright © 2014 Intel Corporation * Copyright © 2016 Advanced Micro Devices, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, in...
/* * Copyright multiple authors, see README for licence details */ #include <stdio.h> #include <stdlib.h> #include <X11/X.h> #include <X11/Xos.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xatom.h> #include <X11/extensions/shape.h> #include "dat.h" #include "fns.h" int manage(Client * c, int mapped) ...
/**************************************************************************** * * afangles.c * * Routines used to compute vector angles with limited accuracy * and very high speed. It also contains sorting routines (body). * * Copyright (C) 2003-2019 by * <NAME>, <NAME>, and <NAME>. * * This file is part...
/**************************************************************************//** * @file main.c * @version V1.00 * $Revision: 4 $ * $Date: 15/05/22 2:05p $ * @brief Generate different frequency(Tenor C Do ~ Si) waveform by PWM. * * @note * Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved. ...
/* * listlist.c * Copyright (C) 2002,2003 <NAME>; Released under GPL * * Description: * Build, read and destroy a list of Word list information * * Note: * This list only exists when the Word document is saved by Word 8 or later */ #include "antiword.h" /* * Private structure to hide the way the information...
#include <stdlib.h> #include <string.h> #include "bits/turbocompare.h" #include "public/usipy_str.h" #include "public/usipy_sip_method_types.h" #include "usipy_sip_method_db.h" static const struct usipy_method_db_entr usipy_method_db[USIPY_SIP_METHOD_max + 1] = { {.cantype = USIPY_SIP_METHOD_generic}, {.cant...
#include <err.h> #include <errno.h> #include <sysexits.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include <unistd.h> #include <sys/ioctl.h> #include <dev/iicbus/iic.h> #define I2C_DEV "/dev/iic0" #define HTU21_GET_TEMP 0xe3 #define HTU21_GET_HUM 0xe5 #d...
/**************************************************************** Copyright (C) 1999 Lucent Technologies All Rights Reserved 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 copi...
/* -*- mode: C -*- */ /* IGraph library. Copyright (C) 2007-2012 <NAME> <<EMAIL>> 334 Harvard street, Cambridge, MA 02139 USA 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...
#define _IOC(a,b,c,d) ( ((a)<<30) | ((b)<<8) | (c) | ((d)<<16) ) #define _IOC_NONE 0U #define _IOC_WRITE 1U #define _IOC_READ 2U #define _IO(a,b) _IOC(_IOC_NONE,(a),(b),0) #define _IOW(a,b,c) _IOC(_IOC_WRITE,(a),(b),sizeof(c)) #define _IOR(a,b,c) _IOC(_IOC_READ,(a),(b),sizeof(c)) #define _IOWR(a,b,c) _IOC(_IOC_READ|...
// porres #include <math.h> #include <stdlib.h> #include "m_pd.h" #define COMB_STACK 44100 //stack buf size, 1 sec at 48k for good measure #define COMB_DELAY 1000 //maximum delay #define COMB_MIND 1 //minimum delay #define COMB_MAXD 4294967294 //max delay = 2**32 - 2 #define COMB_MINMS 0. //min delay in ms #...
/************************************************************************************** C-DAC Tech Workshop : hyPACK-2013 October 15-18,2013 Example : pthread-jacobi.c Objective : Jacobi method to solve AX = b matrix system of linear equations. Inp...
/* * Copyright (C) <NAME> */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_event.h> #include <nginx.h> #include <ifaddrs.h> #include "ngx_ssdp_dlna.h" #define NGX_DLNA_SSDP_PORT 1900 #define NGX_DLNA_SSDP_ADDR "192.168.3.11" #define NGX_DLNA_SSDP_UUID "uuid:57ad7ec9-f4f8-4c33-8028-27...
#include <stdio.h> #include "pico/stdlib.h" #include "hardware/pio.h" #include "hardware/dma.h" #include "hardware/regs/addressmap.h" #include "hardware/regs/ssi.h" #include "hardware/structs/xip_ctrl.h" #include "hardware/structs/ssi.h" #include "hardware/pwm.h" #include "st7789_lcd.h" #include "AnimatedGIF.h" //#inc...
/*************************************************************** parser.c Very basic Sausage64 file parser. The parser does little to no error checking, expects things to be properly formatted, and has not properly implemented how comments are handled (it expec...
/** * @file utility.c * @author <NAME>, <NAME> * @date Aug, 2018 * @brief * (C) 2016 by Mathematics and Computer Science (MCS), Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "utility.h" #in...
#pragma once #include <nnpack/fft-constants.h> #include <psimd.h> #include <psimd/butterfly.h> #include <psimd/fft/soa.h> static inline void psimd_fft8_dualreal_f32( psimd_f32 s0123[restrict static 1], psimd_f32 s4567[restrict static 1], psimd_f32 h0123[restrict static 1], psimd_f32 h4567[restrict static 1]) { ...
/* * Copyright (c) 2017-2019 Cisco and/or its affiliates. * 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 appl...
#include <string.h> #include <stdio.h> #include <3ds.h> #include <math.h> #include <sys\stat.h> #include <time.h> u64 cookies = 0; int opt = 1; int scr = 1; const char* buildingNames[9] = {"Clicker", "Grandma", "Farm", "Mine", "???", "Bank", "Temple", "Wizard", "Ship"}; const u64 buildingPrices[9] = {150, 500, 2200, ...
/* Copyright 1987, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in support...
/* vl53l1x.c - Driver for ST VL53L1X time of flight sensor */ #define DT_DRV_COMPAT st_vl53l1x /* * Copyright (c) 2017 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ #include <errno.h> #include <kernel.h> #include <drivers/i2c.h> #include <drivers/sensor.h> #include <init.h> #include <drivers/gpi...
/* * Copyright (c) Huawei Technologies Co., Ltd. 2019-2021. All rights reserved. * Description: Ring algorithm */ #include <string.h> #include <ucs/debug/log.h> #include <ucs/debug/memtrack.h> #include <uct/api/uct_def.h> #include "builtin_plan.h" #include "builtin_algo_mgr.h" #define INDEX_DOUBLE 2 void ucg_bu...
/******************************************************************** * File : frame.h * Author : <NAME> Copyright (C) 1994-2021 * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mo...
/* * This work is part of the Core Imaging Library developed by * Visual Analytics and Imaging System Group of the Science Technology * Facilities Council, STFC * * Copyright 2017 <NAME> * Copyright 2017 <NAME>, <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this f...
/* prmci3.c: MUTATOR CONTEXT (INTEL 386) * * $Id$ * Copyright (c) 2001-2016 Ravenbrook Limited. See end of file for license. * * .design: See <design/prmc> for the generic design of the interface * which is implemented in this module, including the contracts for the * functions. * * .purpose: Implement the mu...
/* 20100917 <NAME> Public domain. Compressed version of unrolled2, plus better locality in inner loop. */ #define CUBEHASH_ROUNDS 16 #include "crypto_hash.h" #include "crypto_uint32.h" #define ROL(a,b) (a = (((a) << (b)) | ((a) >> (32 - b)))) static void store_littleendian(unsigned char *out,crypto_uint32 u) { ou...
#include<stdio.h> #include "arvore_bbb.h" //codigo das funcoes da arvore BBB. Arvore* cria_arvore(){ Arvore *a; a=(Arvore *)malloc(sizeof( Arvore)); if( !a ) return NULL; a->raiz=NULL; a->qtd=0; return a; } int arvore_vazia( Arvore *a ){ if( a->raiz == NULL ) return 1; return 0; } //calcula a altu...
#include <string.h> #include "ov7725.h" #include "main.h" #include "cambus.h" #include "openvio.h" #include "cmsis_os.h" #include "dcmi.h" extern DCMI_HandleTypeDef hdcmi; static const uint8_t default_regs[][2] = { // From App Note. {COM12, 0x03}, {HSTART, 0x22}, {HSIZE, 0xa4}, ...