text
stringlengths
3.08k
10.5k
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
/** @file common.c * @author <NAME> * * @brief Common types, data structures and functions for the Morpho VM */ #include <stdio.h> #include <math.h> #include <string.h> #include <ctype.h> #include <sys/stat.h> #include "common.h" #include "object.h" /* ***********************************************************...
/* * The MIT License (MIT) * * Copyright (c) 2018, hathach (tinyusb.org) * * 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...
/* * file dove inserire tutte le cose in piu */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include "lib.h" void generate_FCC(double L, double X[][3]) { /* This function fills the matrix X[N][3] with the coordinates of particles in a FCC lattice within a box of side L whose center is the ...
/********************************************************************************************************************** * DISCLAIMER * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No * other uses are authorized. This software is owned by Renesas Ele...
// // Created by <NAME> on 2021/1/11. // #include "mm.h" #include "buddy.h" #include <memlayout.h> #include "defs.h" #include "riscv.h" extern char end[]; // Indicate the end ptr of the image bss file static char kernel_page_initialized[BUDDY_PAGE_SIZE * INIT_MAX_PAGES] = {0}; volatile static int allocated_page = 0;...
#include <pthread.h> #include <string.h> #include <unistd.h> #include <arpa/inet.h> //INET6_ADDRSTRLEN #include "bcm_gpio.h" #include "log_msgs.h" #include "public_ip.h" #include "pushover.h" #include "cfv_bellman.h" #include "lib/util.h" #define PUSHOVER_CONFIG_FILENAME "pushover_conf.txt" // The sensor value will...
/* * The Shadow Simulator * Copyright (c) 2010-2011, <NAME> * See LICENSE for licensing information */ #include "main/host/descriptor/channel.h" #include <errno.h> #include <netinet/in.h> #include <stddef.h> #include "main/bindings/c/bindings.h" #include "main/core/support/definitions.h" #include "main/core/work...
/** * \file * * \brief Atmel Crypto Auth hardware interface object * * Copyright (c) 2015 Atmel Corporation. All rights reserved. * * \atmel_crypto_device_library_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later /* Copyright 2013-2019 IBM Corp. */ #ifndef pr_fmt #define pr_fmt(fmt) "STB: " fmt #endif #include <skiboot.h> #include <device.h> #include <nvram.h> #include <opal-api.h> #include <inttypes.h> #include "secureboot.h" static const void* hw_key_hash = NULL; s...
// Inclusão das Bibliotecas #include "serial.h" #include "crc16.h" #include <string.h> #include <stdio.h> #include <conio.h> #include <Windows.h> // Configurações da conexão serial #define PORTA_COM "COM3" #define BAUDRATE 9600 #define PARIDADE NOPARITY #define STOPBITS ONESTOPBIT // Função para apagar os resíduos d...
/* * libwebsockets - small server side websockets and web server implementation * * Copyright (C) 2010 - 2019 <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...
/* ********************************************************************* * Broadcom Common Firmware Environment (CFE) * * ATAPI device driver File: dev_atapi.c * * This is a simple driver for ATAPI devices. The disks * are expected to be connected to the generic bus (this * driv...
/* @(#)k_sincos.c 5.1 93/09/24 */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunPro, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this * software is freely granted, provided ...
/* * ***** BEGIN GPL LICENSE BLOCK ***** * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is d...
#include <daryheap.h> static unsigned int start_size = 1024; Node heap_find_min(struct Heap* h) { return h->nodes[0]; } void free_heap(struct Heap* h) { free(h->pos); } int in_heap(struct Heap* h, int id) { if (h->pos[id] < h->n && h->pos[id] != -1) return 1; else return 0; } // Ini...
#include <math.h> #include <stdlib.h> #include <string.h> #include "standard.h" #include "Enclave_t.h" /* ocalls */ layer make_connected_layer(int batch, int inputs, int outputs, ACTIVATION activation, int batch_normalize, int adam) { int i; layer l = {0}; l.learning_rate_scale = 1; l.type = CONNECTE...
/* game/basic.c */ #include "unit-test.h" #include "unit-test-data.h" #include "test-utils.h" #include <stdio.h> #include "cave.h" #include "cmd-core.h" #include "game-event.h" #include "game-world.h" #include "init.h" #include "savefile.h" #include "player.h" #include "player-timed.h" #include "z-util.h" static voi...
#include "util.h" void no_error(int rc, const char* str) { if (rc != MDB_SUCCESS) { Rf_error("Error in mdb: %s: %s (code: %d)", mdb_strerror(rc), str, rc); } } bool no_error2(int rc, int false_flag, const char* str) { bool found = false; if (rc == MDB_SUCCESS) { found = true; } else if (rc != false_...
/****************************************************************************** * Copyright (C) 2015-2016 <NAME> * * * * This software is provided 'as-is', without any express or implied * * warra...
/* * Copyright (c) 2015, <NAME> <<EMAIL>>. * * The right to copy, distribute, modify, or otherwise make use * of this software may be licensed only pursuant to the terms * of an applicable license agreement. * */ #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <unistd.h> #include <string.h> #...
/* * synth.c ~ speech synthesis toy project * * Copyright (c) 2016, <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, including without limi...
#include <linux/init.h> #include <linux/module.h> #include <linux/device.h> #include <linux/platform_device.h> #include <linux/of.h> #include <linux/of_gpio.h> #include <linux/pinctrl/consumer.h> #include <linux/gpio.h> #include <linux/kernel.h> #include <huawei_platform/log/hw_log.h> #include <linux/slab.h> #include <...
/* * 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, modify, merge, * publish, ...
/* Authored 2016-2018. <NAME>. Additional contributors, 2018-onwards, see git log. 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...
#include "cgminer_api.h" #include "debug.h" #include "cjson.h" #define MAXQSIZE_FORMAT 50 //read the config file for dataformat int read_confdata(char *s4_dataformat_dir,char confa[MAXQSIZE_FORMAT][30],char confb[MAXQSIZE_FORMAT][30]) { int i,len; char* pContent; FILE* fp = fopen(s4_dataformat_dir, "rb+")...
/* CalculiX - A 3-dimensional finite element program */ /* Copyright (C) 1998-2015 <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...
/* * Copyright 1995-2020 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/l...
/* * mlabel.c * Make an MSDOS volume label */ #include "sysincludes.h" #include "msdos.h" #include "mainloop.h" #include "vfat.h" #include "mtools.h" #include "nameclash.h" static void usage(void) { fprintf(stderr, "Mtools version %s, dated %s\n", mversion, mdate); fprintf(stderr, "Usage: %s [-v] drive\n\t...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */ /* * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #include "mpidimpl.h" #include <libftb.h> #ifndef USE_PMI2_API #include "pmi.h" #else #include "pmi2.h" #endif static FTB_client_handle_t client_handle; s...
/* 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 "clock.h" #include "hooks.h" #include "registers.h" #include "timer.h" #define POWER_BUTTON 2 static uint8_t val; int rbox_powerbtn_is_...
// This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include <pipe.h> #include <memoryManager.h> #include <staticQueue.h> #include <interrupts.h> #include <taskManager.h> #include <utils.h> //static void insertFdNode(t_f...
#include "bcftools.pysam.h" /* vcmp.c -- reference allele utility functions. Copyright (C) 2013 Genome Research Ltd. Author: <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 Sof...
#define X_STRIDE 1024 #define Y_STRIDE 4096 #define CACHE_LINE_ARR_LEN (X_STRIDE * Y_STRIDE) #define MAX_STRIDE 256 /* * Uncomment to use linear shift feedback register for random access generation. * Comment out to use stride method with n-1 as stride value. * */ #define CACHE_SIZE_METHOD_LSFR #define CACHE_LINE_...
#include<stdio.h> #include<conio.h> #include<stdlib.h> #include <windows.h> int board[10] = {2,2,2,2,2,2,2,2,2,2}; int turn = 1,flag = 0; int player,comp; void menu(); void go(int n); void start_game(); void check_draw(); void draw_board(); void player_first(); void put_X_O(char ch,int pos); COORD coord= {0,0}; void...
/* Paned Widgets * * The GtkHPaned and GtkVPaned Widgets divide their content * area into two panes with a divider in between that the * user can adjust. A separate child is placed into each * pane. * * There are a number of options that can be set for each pane. * This test contains both a horizontal (HPaned) ...
/* hw_ibmca_err.c */ /* ==================================================================== * Copyright (c) 1999-2002 The OpenSSL 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: *...
/* Copyright (c) (2019,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...
#include <stdlib.h> #include <math.h> #include <stdio.h> /**********************************************************************/ double **CreateMatrix(long n, long m) { double **A; long i; A = (double **) calloc(n,sizeof(double *)); if (A == NULL) { printf("calloc failed in CreateMat...
#include "discord-c.h" #include "stdio.h" #include "signal.h" #define DISCORD_AUTH_TOKEN "<YOUR TOKEN HERE>" void onMessagePostedCallback(struct message message); void onDMPostedCallback(struct DM_message message); void onReadyCallback(struct connection connection, struct server *server); void sigintHandler(int sig)...
#include "Python.h" #include "numpy/arrayobject.h" #include <stdlib.h> #include <math.h> #define SQUARED(XX) ((XX)*(XX)) static int binround(double x, double * edges, int nbins); static void houghcircles_main(double * acc, double * x, double * y, double * w, double* bina, double* binb, double * binr, ...
#include <list.h> #include <malloc.h> #include <page_alloc.h> #include <string.h> #define NUM_BINS 16 static struct malloc_chunk *bins[NUM_BINS]; static void check_buffer_overflow(struct malloc_chunk *chunk) { if (chunk->magic == MALLOC_FREE) { return; } for (size_t i = 0; i < MALLOC_REDZONE_LEN...
#include <tigcclib.h> #include <stdio.h> #include <args.h> #define HMARGIN 2 #define HALFBARSIZE 7 #define MV_STEP 10 #define XSPEED 0.2f #define YSPEED 0.2f #define YSPEED_MAX 0.4f #define BSIZE 2 short sa,sb,posa,posb,posa_changed,posb_changed; float bx,by,sx,sy,obx,oby; float xspeed,yspeed,yspeedMax; short shouldE...
/**************************************************************************//** * @file lpc11xx_crt0.c * @brief Low-level memory initialization code for LPC11xx CPUs * @version V1.0 * @author <NAME> * @date 1. January 2012 *****************************************************************************...
/* mediastreamer2 library - modular sound and video processing and streaming Copyright (C) 2010 Belledonne Communications SARL, Grenoble France. 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; eith...
#include "./headers/debug.h" #include "./headers/wavHandler.h" #include <errno.h> #include <math.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> static const byte ChunkID[4] = {'R', 'I', 'F', 'F'}; static const byte Format[4] = {'W', 'A', 'V', 'E'}; static const byte Subchunk1ID[4] = ...
/**********************************************************************/ /* ____ ____ */ /* / /\/ / */ /* /___/ \ / */ /* \ \ \/ ...
/* * || ____ _ __ * +------+ / __ )(_) /_______________ _____ ___ * | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ * +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ * || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ * * Crazyflie control firmware * * Copyright (C) 2011-2012 Bit...
/* * Copyright (c) 2015-2021 University of Antwerp, Aloxy NV. * * This file is part of Sub-IoT. * See https://github.com/Sub-IoT/Sub-IoT-Stack for further info. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain...
/***************************************************************************** * PLAYNTIL.C - Open flic, play it until event-detect, close the flic. ****************************************************************************/ #include "flicglue.h" #include "asm.h" static char *modulename = __FILE__; Errc...
/* libwmf ("ipa/x/bmp.h"): library for wmf conversion Copyright (C) 2000 - various; see CREDITS, ChangeLog, and sources The libwmf 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; eithe...
#include <stdio.h> #include <string.h> #define N 1564 typedef struct { char nome_rua[15]; char bairro[15]; int numero; char cidade[15]; char estado[3]; }endereco; typedef struct { char tipo[13]; endereco end; float valor; char situacao[8]; }cadastro; void ler_arquivo(int *cont, cadastro...
/** ****************************************************************************** * @file DMA/DMA_RAMToDACTransfer/main.c * @author MCD Application Team * @version V1.1.0 * @date 22-December-2021 * @brief Main program body ****************************************************************...
// "XForm" singleton // var x = XForm.create("type",...); // var y = x.update(bytes); // var z = x.final(bytes); // var b64 = XForm.base64(bytes); // only some transforms support this #include "throwback.h" static dew_t XForm_create(dew_t stack, dew_t args, dew_t result) { dew_t xforms = dew_get_this(stack); dew_...
/*************************************************************/ //Roll no.:-75 //Program title:- Implementation of an AVL Tree #include<stdio.h> #include<string.h> #include<stdlib.h> #define KSIZE 20 #define MSIZE 20 #define FALSE 0 #define TRUE 1 typedef struct node { char keyword[KSIZE]; char me...
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/base/memory.h" #include "sw/device/lib/base/mmio.h" #include "sw/device/lib/dif/dif_aes.h" #include "sw/device/lib/runtime/log.h" #include "sw/de...
/* A simple plugin manager Copyright 2000 <NAME> This file and the acompanying files in this directory are free software; you can redistribute them and/or modify them under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the Licen...
// Copyright (c) 2011-2013, Pacific Biosciences of California, Inc. // // 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: // // * Redistri...
/* vim:expandtab:ts=2 sw=2: */ /* GFX2CRTC - libraw2crtc.c * CloudStrife - 20080921 * Diffusé sous licence libre CeCILL v2 * Voire LICENCE */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "const.h" #include "global.h" #include "struct.h" #include "loadsave.h" #include "gfx2log.h" #include "g...
/* * Purpose: Test Some conversion, check trimming error and results * Functions: dbconvert dberrhandle dbmsghandle dbinit dbexit */ #include "common.h" #include <ctype.h> static char software_version[] = "$Id: t0019.c,v 1.13 2007/01/15 19:43:09 jklowden Exp $"; static void *no_unused_var_warn[] = { software_vers...
/* ** Copyright 2007-2018 RTE ** Author: <NAME> ** ** This file is part of Sirius_Solver. ** This program and the accompanying materials are made available under the ** terms of the Eclipse Public License 2.0 which is available at ** http://www.eclipse.org/legal/epl-2.0. ** ** This Source Code may also be made availabl...
/** * @file * @ingroup kernel_code * @author <NAME> <<EMAIL>> * @copyright GNU Public License. * * @brief Gestión de bloques de memoria */ #include <console.h> #include <kmem.h> #include <kpool.h> static inline int kpool_contains(kpool * p, void * ptr) { return (ptr >= (void *)p->pool && ptr < (void *)(p->...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "simplec.h" HT_item* item_ptr; unsigned long hash_f(char* key) /* hash function */ { unsigned long total = 0; for (int j = 0; key[j]; j++) { total += key[j]; } return total % CAPACITY; } HT_item* create_item(Token tok, char* lexm) { HT_item*...
/* * (c) HPC Project - 2010-2011 - All rights reserved * */ #include "scilab_rt.h" int __lv0; int __lv1; int __lv2; int __lv3; /*----------------------------------------------------*/ void fiff__d2(int _u_U_n0,int _u_U_n1,double _u_U[_u_U_n0][_u_U_n1]) { double _u_a = 2.5; double _u_b = 1.5; double _u_c =...
/*================================================================= * Mex function to write sparse matrix in PETSc binary format. * USAGE: writePetscBinaryMat(filename,A'), where * filename: string containing name of file to write to * A: sparse matrix to write out. * IMPORTANT: To write ou...
/* * vectors.c * Copyright (C) 2020 xent * Project is distributed under the terms of the MIT License */ void defaultHandler(void) __attribute__((weak)); static void emptyHandler(void); /*----------------------------------------------------------------------------*/ /* Core Cortex-M0 IRQ handlers */ void RESET_ISR(...
/*---------------------------------------------------------------------------- * Copyright (c) <2016-2018>, <Huawei Technologies Co., Ltd> * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. R...
/** * \file buffer/vccrypt_buffer_read_base64.c * * Read the Base64 representation of a buffer and write the binary form to an * output buffer. * * \copyright 2017 Velo Payments, Inc. All rights reserved. */ #include <cbmc/model_assert.h> #include <string.h> #include <vccrypt/buffer.h> #include <vpr/parameters...
/*************************************************************************/ /* */ /* Copyright (c) 1994 Stanford University */ /* */ /* All rights ...
/******************************************************************************* * BSD 3-Clause License * * Copyright (c) 2017 <NAME> and <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are ...
/*****************************************************************************\ ** ** ** FILE: main.c ** ** AUTHORS: Alexios ** **...
#include "render.h" SDL_Texture *cursor = NULL; void InitCursorRender() { cursor = IMG_LoadTexture(render, "art/cursors/game.png"); } void CursorRender() { if (!cursor) InitCursorRender(); SDL_Rect mouse = {mouse_pos.x - 15, mouse_pos.y - 15, 31, 31}; SDL_RenderCopy(ren...
/* * Copyright © 2020 Red Hat, 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, merge, publish...
/////////////////////////////////////////////////////////////////////////////// // // IMPORTANT NOTICE // // The following open source license statement does not apply to any // entity in the Exception List published by FMSoft. // // For more information, please visit: // // https://www.fmsoft....
#include <stdlib.h> #include "SkipList.h" #include <time.h> /* Returns a random level for the new skiplist node we are going to create. * The return value of this function is between 1 and ZSKIPLIST_MAXLEVEL * (both inclusive), with a powerlaw-alike distribution where higher * levels are less likely to b...
#include <avr/io.h> #define NUM_POINTS 16 #define POINT_IS_WHITE_BIT 1 #define POINT_WAIT_BEFORE_AD 50//500 #define POINT_WAIT_AFTER_AD 10 #define SHIFT_REGISTER_CLK_SETUP 0 #define SHIFT_REGISTER_CLK_HOLD 0 #define DISPLAY_WAIT 1000//100 #define THRESHOLD_RATIO 60 #define FREQ_MODIFIER 66 #define SET_BIT...
/* * Copyright (C) 2016 Kubos Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
#include "dragon.h" #include <stdlib.h> #include <AL/al.h> #include <AL/alc.h> #include <vorbis/vorbisfile.h> #define AUDIO_CHANNEL_COUNT 2 #define AUDIO_FORMAT AL_FORMAT_STEREO16 #define AUDIO_RATE 44100 #define AUDIO_SAMPLE_SIZE 2 #define AUDIO_IS_BIG_ENDIAN 0 #define AUDIO_IS_SIGNED 1 #define MUSIC_BUFFER_COUNT 3...
#include <stdint.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <libgen.h> #include <sys/stat.h> #include <block.h> #include <echidna.h> #include <function.h> #include <hex.h> #include <log.h> #include <protobuf.h> #include <runtime.h> #include <value.h> static int _file_read_function(ECHIDNA...
/* Pipe class (c) 1994-2004 Imperial College, <NAME> and Fujitsu Labs 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 lat...
#define _XOPEN_SOURCE #define _DEFAULT_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <ctype.h> #include <sys/types.h> #ifdef _MSC_VER #include <windows.h> #include <io.h> #endif #include "logging.h" #ifdef _MSC_VER #define strdup _strdup #pragma warning(disable:499...
#include <time.h> #include <string.h> #include <libgen.h> #include <options/options.h> #include "../csm/csm_all.h" struct { const char * file_in; const char * file_out; const char * file_out_stats; const char * file_jj; int format; /* which algorithm to run */ int algo; int recover_from_error; int debu...
// // VGButton.c // example_gl3 // // Created by Isaac on 2018/5/8. // #include "VGButton.h" #include "VGLabel.h" #include "VGLayerInternal.h" #include "VGFont.h" #include "VGContextInternal.h" #include <GLFW/glfw3.h> #include <stdlib.h> #include <string.h> struct VGButton { struct VGLayer base; VGLabelRef...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "harness.h" #include "queue.h" #define NEW_ELE(s, size, newh) \ newh = malloc(size + sizeof(list_ele_t)); \ if (!newh) \ return false; ...
/* LCD / GPIO Library for ESP32 Author: <EMAIL>, <EMAIL> This example code is in the Public Domain Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <stdio....
/* * The remctl server as a restricted shell. * * This is a varient of remctld that, rather than listening to the network for * the remctl protocol, runs as a restricted shell under ssh. It uses the * same configuration and the same command semantics as the normal remctl * server, but uses ssh as the transport m...
/* * Title: * Description: * Assignment: * Link to assignment: * * Programmer: <NAME> * Date completed: November 5, 2021 * Instructor: <NAME>mark * Class: AAL E21 */ #include <stdio.h> #include <stdlib.h> #include <limits.h> struct tree_node{ int key; struct tree_node *leftp, *rightp; }; typedef s...
/*************************************************************************** tms9914/interrupt.c ------------------- begin : Dec 2001 copyright : (C) 2001, 2002 by <NAME> email : <EMAIL> *******************...
/************************************************************************** ** ** Copyright (C) 1993 <NAME> & <NAME>, all rights reserved. ** ** Meschach Library ** ** This Meschach Library is provided "as is" without any express ** or implied warranty of any kind with respect to this software. ** In particu...
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include "string.h" #include "math.h" #include "volBucket.h" #include <stdint.h> #include "time.h" /* C = bcluster(X, r); Cluster the data in X (x,y,z) by the shortest distance, set by r, where C is a list of all the clusters with more th...
#include <stdio.h> #include "delay.h" #include "fpga.h" #include "led.h" #include "pin.h" #include "stm32/stm32l452xx.h" #define CONF_DONE_GPIO GPIOB #define CONF_DONE_PIN 0 #define NSTATUS_GPIO GPIOB #define NSTATUS_PIN 1 #define CVP_DONE_GPIO GPIOA #define CVP_DONE_PIN 0 #define NCONFIG_GPIO GPIOA #define NCONF...
#include "mex.h" #include "math.h" void prisma_K(double X[], double Y[], double Z[], double K[][6]) { double t0, t1, t2, t3, t4, t5, t6, t7, t8, t9; double t10, t11, t12, t13, t14, t15, t16, t17, t18, t19; double t20, t21, t22, t23, t24, t25, t26, t27, t28, t29; double t30, t31, t32, t3...
/* * Copyright (c) 2017-present, <NAME>, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the BSD-style license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tree). * You may...
/* Copyright (c) 2013, <NAME> See accompanying LICENSE --------------------------------------------------------------- heapsort.c Implementation of heap sort. There are two versions of it in this file: 1) The first one is the bare algorithm. It uses the same sift_...
#include <assert.h> #include <stdint.h> #include <stdlib.h> #include <stddef.h> #include <string.h> #include <float.h> #include <math.h> #include <stdbool.h> #include "qc/random.h" #include "qc/math.h" #include "qc/utils.h" #define DOUBLE_ONE_EXPONENT (UINT64_C(0x3ff) << 52u) #define DOUBLE_FRACTION_SHIFT_LENGTH 12u ...
/* xZTL: Zone Translation Layer User-space Library * * Copyright 2019 Samsung Electronics * * Written by <NAME> <<EMAIL>> * * 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...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2012 Altera Corporation <www.altera.com> */ #include <common.h> #include <asm/io.h> #include <asm/u-boot.h> #include <asm/utils.h> #include <image.h> #include <asm/arch/reset_manager.h> #include <spl.h> #include <asm/arch/system_manager.h> #include <asm/arch/f...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief Demonstrate how to use EPWM counter output waveform. * * @copyright (C) 2016 Nuvoton Technology Corp. All rights reserved. **************************************************************...
/* threads.h * - Thread Abstraction Function Headers * * Copyright (c) 2003 * German Federal Agency for Cartography and Geodesy (BKG) * * Developed for Networked Transport of RTCM via Internet Protocol (NTRIP) * for streaming GNSS data over the Internet. * * Designed by Informatik Centrum Dortmund http://www.i...
/* * The Yices SMT Solver. Copyright 2014 SRI International. * * This program may only be used subject to the noncommercial end user * license agreement which is downloadable along with this program. */ /* * Test of object construction */ #include <stdint.h> #include <stdio.h> #include <inttypes.h> #include "...