text
stringlengths
3.08k
10.5k
/* Copyright 2009-2010, Ifcaro, jimmikaelkael & Polo Copyright 2006-2008 Polo Licenced under Academic Free License version 3.0 Review OpenUsbLd README & LICENSE files for further details. Some parts of the code are taken from HD Project by Polo */ #include "ee_core.h" #include "asm.h" #include "iopmgr.h" #i...
#include "dumbutils.h" #include "dumbcraft.h" #include <util10.h> #include <string.h> void UpdateSlot( uint8_t window, uint8_t slot, uint8_t count, uint16_t id, uint8_t damage ) { StartSend(); Sbyte( 0x17 ); //Updated (But rest of packet might be wrong) Sbyte( window ); Sshort( slot ); //Slot data Sbyte( 1 );...
/* (C) Copyright 2001, 2002, 2003, 2004, 2005, 2006 <NAME> * (C) Copyright 2007, 2008, 2009, 2010, 2011 <NAME> * * This file is part of MCL. You can redistribute and/or modify MCL under the * terms of the GNU General Public License; either version 3 of the License or * (at your option) any later version. Yo...
/* Copyright (c) 2019, <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: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. ...
/* * Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * l...
/* Copyright (c) 2015, Plume Design 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: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the...
enum { // es_ES LAYER_ES_ES_ES = 13, LAYER_ES_ES_LA = 14, LAYER_ES_ES_SON = 15, LAYER_ES_ES_LAS = 16, LAYER_ES_ES_CINCO = 17, LAYER_ES_ES_DIEZ = 18, LAYER_ES_ES_CUARTO = 19, LAYER_ES_ES_VEINTE = 20, LAYER_ES_ES_VEINTICINCO = 21, LAYER_ES_ES_...
/* * Copyright (c) 2016, Linaro Limited * 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 conditi...
/* * File : dining.c * * Title : Dining Philosophers. * * Short : Solution to the dining philosophers problem. * * Long : Sets up a fifo fifo of threads, and activates threads * as forks become avaliable. * * Author : <NAME> * * Date : 18 September 1997 * * Revised : */ #include <pthread.h> #include <...
#define BUFFER_SIZE 80 #define RECORD_SIZE 100 #define NAME_SIZE 20 #define ADDRESS_SIZE 40 #define PHONE_SIZE 20 #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct Record { char name[NAME_SIZE]; char address[ADDRESS_SIZE]; char phone[PHONE_SIZE]; }sweet; //returns the number of records and...
/* * Copyright (c) 2014 - Qeo LLC * * The source code form of this Qeo Open Source Project component is subject * to the terms of the Clear BSD license. * * You can redistribute it and/or modify it under the terms of the Clear BSD * License (http://directory.fsf.org/wiki/License:ClearBSD). See LICENSE file * fo...
/* * Copyright (c) 2014, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the h...
#pragma once #define INTB_SETCLR 15 /* Set/Clear control bit. Determines if bits */ /* written with a one get set or cleared. Bits */ /* written with a zero are always unchanged */ #define INTB_INTEN 14 /* Master interrupt (enable only) */ #define INTB_EXTER 13 /* E...
/*----------------------------------------------------------------------------*/ /* Big Brother bb-hosts file grep'er */ /* */ /* This tool will pick out the hosts from a bb-hosts file that has one of the...
/************************************************************************** * * Copyright 2007 T<NAME>, Inc., <NAME>, Texas. * 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 ...
// Copyright (c) <2012> <<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,...
/* * Copyright 2018 - 2019 NXP * * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #if !defined(__TARGET_CONFIG_H__) #define __TARGET_CONFIG_H__ #include <stdint.h> //////////////////////////////////////////////////////////////////////////////// // Definitions /////////////////////////////////...
/* $OpenBSD: mkheaders.c,v 1.21 2015/01/16 06:40:16 deraadt Exp $ */ /* $NetBSD: mkheaders.c,v 1.12 1997/02/02 21:12:34 thorpej Exp $ */ /* * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * This software was developed by the Computer Systems Engineering group * at...
/* * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and conditions * of the GNU General Public Licen...
/* * Copyright (c) 2006, <NAME> <sven-ola-aet-gmx.de> * Copyright (c) 2004, <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: * * * Redistributions of source code must re...
/*****************************************************************************/ /* */ /* fileio.c */ /* */ ...
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2021, <NAME> <<EMAIL>>. All rights reserved. /*- Includes ----------------------------------------------------------------*/ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <stdint.h> #include <stdbool.h> #include <unistd.h> #include <getopt...
/* * Function_qr.c * * Created on: 13 mag 2019 * Author: ale_m */ #include "defines.h" #include "Function_qr.h" //extern float X_local[D_DIM][K_COMP]; extern float i[D_DIM]; extern float d[K_COMP]; float fak; float Av[D_DIM] = {0.0f}; float iv[D_DIM] = {0.0f}; float AvAvtiv[D_DIM] = {0.0f}; float Avtiv = ...
/* Test floating-point conversions. */ /* Origin: <NAME> <<EMAIL>> */ #include <limits.h> extern void abort (void); extern void exit (int); /* Not all platforms support TImode integers; logic as in gcc.dg/titype-1.c. */ #if defined(__LP64__) && !defined(__hppa__) typedef int TItype __attribute__ ((mode (TI))); t...
#define _CRT_SECURE_NO_WARNINGS #define M_PI 3.14159265358979323846 #define PROGRAM_FILE "polar_rect.cl" #define KERNEL_FUNC "polar_rect" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef MAC #include <OpenCL/cl.h> #else #include <CL/cl.h> #endif /* Find a GPU or C...
#include "imc_avl_vector.h" #include <stdlib.h> #include <stdio.h> int int_comparator(imc_key_t *first_key, imc_key_t* second_key){ if(first_key > second_key){ return 1; } return first_key < second_key ? -1 : 0 ; } /*void print3 (int* nb, char* b) { sprintf(b, "(%03d)", nb); }*/ /* stack op...
#include <time.h> #include <math.h> #include <string.h> #include "short_bmp.h" int _0(int w) { return( 3 * (w + 1) - ((w + 1) * 3 % 4) - 3 * w ); } /* Image basic functions */ int image_mem_alloc(Image* image, Size2i size) { image->matrix_ptr = (BGRComponents*) malloc( sizeof(BGRComponents) *...
/* bedPileUps - Find (exact) pile-ups (overlaps) if any in bed input */ /* Copyright (C) 2012 The Regents of the University of California * See README in this or parent directory for licensing information. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" void usage() /* Explain us...
// // Copyright (c) 2020 <NAME> // Licensed under Apache License, Version 2.0 - https://opensource.org/licenses/Apache-2.0 #include <lvgl/src/lv_core/lv_obj.h> #include <lvgl/lvgl.h> #include <esp_log.h> #include "reppanel.h" #include "reppanel_request.h" #define TAG "Macros" #define MACRO_ROOT_DIR "0:/macros" #def...
/****************************************************************************** * * Copyright (C) 2019 Xilinx, 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 wi...
// // devices_window.c // pebble_time_zway // // Created by <NAME> on 12.11.15. // // #include <pebble.h> #include "devices_window.h" #include "resources.h" #include "home_model.h" #include "protocol.h" Window *devices_window; MenuLayer *menu_layer; TextLayer *status_layer; #ifdef PBL_PLATFORM_BASALT StatusBarLay...
#include "c_noyes.h" #include "stdlib.h" #include "memory.h" #include "math.h" Carr * make_filter(double left, double center, double right, double initFreq, double delta); MelFilter * new_mel_filter(int srate, int nfft, int nfilt, int lowerf, int upperf) { MelFilter *mf = malloc(sizeo...
#include "helper.h" #include "init.h" int read_parameters(const char *szFileName, /* name of the file */ int *num_boundary_particles, /* number of particles present on the boundary */ int *num_inner_particles, /* number of particles present in the interial */ ...
/* runLengthCompressor.c * * This contains the code for run length encoding and decoding. */ #include "compression.h" #include "dataBlocks.h" #include "header.h" /* Use characters which don't often appear in text files, so that they * don't need to be escaped often. */ #define REPEAT_SYMBOL (235) #define ESCAPE...
/** * Copyright (c) 2014 - 2020, Nordic Semiconductor ASA * * 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 no...
#include "benchmark.h" void loadTestData(Benchmark *bm) { if (bm->testFileNames) { bm->maxMessageSize = 0; bm->testMessages = kl_array_new(sizeof(KLMessage *), 20); const char *start = bm->testFileNames; const char *realend = start + strlen(start); while (start < realend) { const char *end = start; ...
#include <stdlib.h> #include <stdio.h> #include <unistd.h> // access #include <math.h> #include <assert.h> #include <mkl_vsl.h> #include "timer.h" #define M_PI 3.14159265358979323846 static const int iterations = 3; static const int nr = 2; static const int nk = 3; double radius = 1; int populate_radii(int npos, do...
#include "local_search.h" #include <math.h> #include <stdlib.h> int CountNumNeighbors(const void *dataset, const Solution *solution) { return solution->size; } bool IsSolutionEqual(const void *dataset, const Solution *solution1, const Solution *solution2) { for (int c = 0; c < solution1->size; c++) { ...
#include "Game/Prompt.h" #include "Game/Input.h" #include "Game/View.h" #include "Raylib/raylib.h" #include "Raylib/terminal.h" #include "Raylib/terminaldraw.h" #include "Raylib/terminalgui.h" #include "Raylib/terminalwrite.h" #include <string.h> typedef enum { BOOL_PROMPT_CURSOR_UNSELECTED, BOOL_PROMPT_CURSOR_ACCE...
/* args_parse: DEFINITIONS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ #include <string.h> #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include "string_utils.h" #include "args_parse.h" #define DEFAULT_BUFFER_SIZE 10 char *parse_key(char *str) { /* * Fr...
// SPDX-License-Identifier: GPL-2.0-or-later /* * w1_ds2405.c * * Copyright (c) 2017 <NAME> <<EMAIL>> * Based on w1_therm.c copyright (c) 2004 <NAME> <<EMAIL>> */ #include <linux/device.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/moduleparam.h> #include <linux/mutex.h> #include <linux/s...
/* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved. This software is licensed as OpenSource, under the Apache License, Version 2.0. This license is available at: http://opensource.org/licenses/Apache-2.0. */ #include "VORG.h" #include "sfnt_VORG.h" #include "sfnt.h" #includ...
/* specfunc/bessel_Jn.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 <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 3 of the License, or (at * your option) an...
/***************************************************************************\ * Module Name: wmicon.c * * Icon Drawing Routines * * Copyright (c) 1985 - 1999, Microsoft Corporation * * 22-Jan-1991 MikeKe from win30 * 13-Jan-1994 JohnL rewrote from Chicago (m5) \**********************************************...
/** @file * Copyright (c) 2018, Arm Limited or its affiliates. All rights reserved. * SPDX-License-Identifier : Apache-2.0 * * 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://...
/* base headers */ #include "stdint.h" /* libstm32vl_discovery headers */ #include "misc.h" #include "stm32f10x_gpio.h" #include "stm32f10x_adc.h" #include "stm32f10x_rcc.h" #include "stm32f10x_exti.h" #include "stm32f10x_usart.h" #define GPIO_HIGH(a,b) a->BSRR = b #define GPIO_LOW(a,b) a->BRR = b #define GPIO_TO...
/* * Copyright (c) 2019 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and/or associated documentation files (the * "Materials"), to deal in the Materials without restriction, including * without limitation the rights to use, copy, modify, merge, publish...
#include "text_rendering.h" #include "texture_loader.h" #include "log.h" #include "opengl_utilities.h" #include "image.h" #include <iconv.h> #include <ft2build.h> #include FT_FREETYPE_H // Kerning doesn't work yet. I'm not sure there is kerning info in my font file. Free Type only supports // kern tables, but kerning...
/*! \file got_challenged.c */ #include "got_challenged.h" #include "client-common.h" #include "particles.h" #define CHALLRESP_HEADER_W 512 #define CHALLRESP_HEADER_H 256 #define CHALLRESP_HEADER_X ((common_effective_display_width - CHALLRESP_HEADER_W) / 2.0) #define CHALLRESP_HEAD...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include <time.h> #include <linux/android_alarm.h> #include <linux/rtc.h> #include <sys/ioctl.h> static int settime_alarm(struct timespec *ts) { int fd, ret; fd = open("/dev/alarm", O_RDWR); ...
/* Copyright 2016, <NAME>. * Copyright 2020, <NAME> * All rights reserved. * * This file is part of CIAA Firmware. * * 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 reta...
/******************************************************************************* * Copyright (c) 2013-2017, <NAME> <<EMAIL> * * All rights reserved. * * * * This file is a ...
#include "inc/compress.h" void compress(char *toCompressFile){ // Enter with the file to be compressed. if (toCompressFile != NULL) { // check if the file is valid. FILE *toCompress = NULL; // Creates toCompress file. FILE *compressed = NULL; // Creates compressed file. toCompress = fopen(toCompressFile, "rb...
#include "includes/hiding.h" #include "includes/msbuffer.h" int compare_process_stats(const void *a, const void *b) { process_stats **a_stat = (process_stats **)a; process_stats **b_stat = (process_stats **)b; float res; float call_ratio_a, call_ratio_b; if ((*a_stat)->PID == 1) return 1;...
#include <gs/gs.h> #include "font.h" #include "font/font_data.c" font_t construct_font_data() { font_t f = {0}; f.data = g_font_data; f.width = 90; f.height = 42; f.num_comps = 3; // Set up metrics f.glyph_advance = 1; // Construct glyph information const s32 glyph_width = 5, glyph_height = 7; for (u32 r ...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "array.h" #include "linalg.h" #include "lib_clinalg.h" #include "lib_funcs.h" #include "c3_interface.h" struct gauss_opts { double m1; double m2; double v11; double v12; double v22; struct storevals_main * sv; }; int gauss(si...
/* spoper.c * * Copyright (C) 2012 <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 3 of the License, or (at * your option) any later version. * * This program...
/* * * mdp - make dummy policy * * When pointed at a kernel tree, builds a dummy policy for that kernel * with exactly one type with full rights to itself. * * 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 ...
/** * Copyright 2020 <NAME> * * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. */ #include <scene.h> /** * Erases the geometry data from the scene by setting the pointers to NULL */ void Scene_erase(Scene* scene)...
/* * Copyright (c) 2021, The UAPKI Project Authors. * * 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 ...
#include "tt-renderer.h" #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <GL/glew.h> #include <cglm/cglm.h> #include "tt-error.h" #include "tt-resource-camera.h" #include "tt-texture.h" static const char* VERTEX_SHADER_TEXT = "#version 110\n" "uniform mat4 camera_matrix;\n" "\n" ...
/* * Copyright (c) 2016-2020 Seagate Technology LLC 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 * * Unles...
/* huffmanTree.c * * Code for constructing and manipulating the Huffman tree. */ #include <stdio.h> #include "huffmanCompressor.h" #include "compression.h" /* A priority ordered queue is used to build the tree. * This is the code used for that. The queue is ordered * by descending frequency. */ /...
#include "model.h" #include <assert.h> #include <math.h> #include <stdlib.h> #include <string.h> #include "Engine/OpenGL.h" void Mesh_init(Mesh *mesh) { mesh->NumOfFaces = 0; mesh->NumOfVert = 0; mesh->NumOfMaterials = 0; mesh->NumOfTextureCords = 0; mesh->NumOfNormals = 0; mesh->Vertices = N...
/** Copyright (C) 2003-2004 <NAME>, <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, modif...
/************************************************************************** * * Parallel port emulator * Author: <NAME> * File: ParPortEmul.c * Version: 2/2009 * Changes: 1/2011 <NAME> * - removed autoconf.h ***************************************************************************/ #include <linux/...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <conio.h> #include <windows.h> #include <stdbool.h> typedef struct vektor{ double x,y,z; }VEKTOR; /* x = [-40,39] , y = [-42,+45] @z=20 */ #define SCREENX 80 #define SCREENY 45 #define PERDEZ 30.0 #define UZAKLIK_M...
/* viamail.c -- send multiple files in a MIME message * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include "h/mh.h" #include "sendsbr.h" #include "sbr/m_gmprot.h" #include "sbr/getargum...
/* ======================================================================== * Copyright 2006 University of Washington * * 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...
/* Copyright 2007-2010 ENSEIRB, INRIA & CNRS ** ** This file is part of the Scotch software package for static mapping, ** graph partitioning and sparse matrix ordering. ** ** This software is governed by the CeCILL-C license under French law ** and abiding by the rules of distribution of free software. You can ** use,...
/** * Copyright (2017) Baidu Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
/* * SER demuxer * Copyright (c) 2018 <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 your option)...
/* * main.c * * Created on: 24 de Junho de 2020 * Author: <NAME> */ #include <string.h> #include <stdio.h> #include "stm32f4xx_hal.h" #include "main.h" void GPIO_Init(void); void Error_handler(void); void UART2_Init(void); void SystemClock_Config_HSE(uint8_t clock_freq); void DAC_Init(void)...
// Copyright 2017 The Procyon Authors // // 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 agree...
// snowman #include <ansi.h> int check_fight(object me); int remove_effect(object me); int perform(object me) { object weapon; if( !me->is_fighting() || !living(me)) return notify_fail("「紅蓮火」只能在戰鬥中的使用。\n"); if( !objectp(weapon=query_temp("weapon", me)) || query("skil...
#include "jsspc.h" #include <jspp.h> #include <stdio.h> #include <stdlib.h> typedef struct _states_stack { path_state_t * states[32]; int top; } state_stack_t; static inline void state_stack_init(state_stack_t * stack) { stack->top = -1; } static void state_stack_push(state_stack_t * stack, path_st...
// // sockaddr.c // AirFloat // // Copyright (c) 2013, <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: // // Redistributions of source code must retain the above copyright // no...
/* * HID routines for Mac OS X. * * Copyright (c) 2019 <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, ...
/* * Copyright (c) Facebook, Inc. and its affiliates. * 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. */ #include <assert.h> #include <math.h> #include <stddef.h> #include <stdint.h> #include <stdlib.h> #i...
/* * Mesa 3-D graphics library * Version: 7.8 * * Copyright (C) 2010 <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 limitat...
/* * 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,...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <netdb.h> #include <netinet/in.h> #include <signal.h> #include <arpa/inet.h> #include <string.h> #define TRUE 1 #define FALSE 0 #define MAX_BUFFER_SIZE 2048 #define PORT 9045 #define NUM_CURRENCIES 5 /** * Check whether a functio...
/* Copyright (c) (2015-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 "veml6075.h" #define NRF_LOG_MODULE_NAME "APP" #include "nrf_log.h" #include "nrf_log_ctrl.h" #include "nrf_drv_twi.h" #include "bsp.h" #include "i2c_driver.h" #include "ble_driver.h" #include "ble_nus.h" //Different read function than the others uint16_t veml6075_read_2bytes(nrf_drv_twi_t twi_master,uin...
/*! * @file * @brief This file contains forward declarations and constants. * * @author <NAME>, <EMAIL> */ #pragma once #include<stdlib.h> #include<stdint.h> /// maximal number of vertex attribute components #define MAX_NUMBER_OF_ATTRIBUTE_COMPONENTS 4 /// maximal number of attributes #define MAX_ATTRIBUTES 4...
/* * ======================================================================================= * * Filename: udp.c * Description: UDP handling * Compiler: gcc * Author: <NAME> | https://sljrobin.org * Created: 2015-04-24 12:27:23 * Modified: 2016-02-13 13:40:31 * * ==========...
/* ========================================================================== MUSCLE_C ============================================================================= FUNCTION NAMES float VecLen -- calculates a vector length. float CosAng -- compute the cosine angle between ...
#include <assert.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <fsw/debug.h> #include <hal/thread.h> void stream_init(stream_t *stream, size_t capacity) { assert(stream != NULL); mutex_init(&stream->mutex); semaphore_init(&stream->unblock_write); semaphore_init(&stream->unblo...
/* font.c <NAME> (<EMAIL>), 14 Nov 2020 FreeBSD-style copyright and disclaimer apply */ #include "font.h" #include "render/core.h" #include "utils/bits.h" // ----------------------------------------------------------------------------- // freetype // ------------------------------------------------------------...
/*- * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2020 <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 ...
#include "misc.h" #include <avr/io.h> #include <avr/interrupt.h> #include <stdio.h> #include <string.h> #include <stdint.h> #include <Arduino_FreeRTOS.h> #include "uart.h" #include "main.h" extern uint16_t PWM_RANGE; /** * @brief toggle LED on PB7 * * */ void toggle_led() { // if(!(DDRB & (1 << PB7))...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <assert.h> #include <gsl/gsl_math.h> #include <gsl/gsl_sf_gamma.h> #include <gsl/gsl_sf_result.h> #include <fftw3.h> #include "cosmocalc.h" double get_k0_fftlog(int N, double mu, double q, double r0, double L, double k0guess); void um_fftlog(int m, dou...
#include <stdio.h> #include <malloc.h> #include <assert.h> #include "xml.h" #define ROOTNODE "/Configuration/output/menu" #define LEAFNODE "name" #define PATH ROOTNODE"/"LEAFNODE #define BUFLEN 4096 #define PRINT_ERROR_AND_EXIT(id) \ if (xmlErrorGetNo(id, 0) != XML_NO_ERROR) { \ const char *errstr = xm...
//distance estimation functions #include "distance.h" //distance from point p to circle of radius r centered at c float distcircle(vec2 p, vec2 c, float r) { float o, a; a = p.x - c.x; o = p.y - c.y; //dist to c return sqrt((o * o) + (a * a)) - r; } //distance to line ab from p //http://stackoverflow.com/a/15017...
/* This file contains the functions for supporting detection (YOLO object detection). AUTHORS The Veracruz Development Team. COPYRIGHT AND LICENSING See the `LICENSE_MIT.markdown` file in the Veracruz deep learning server example repository root directory for copyright and licensing information. Based on darknet,...
/// MentOS, The Mentoring Operating system project /// @file slab.h /// @brief Functions and structures for managing memory slabs. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. #pragma once #include "klib/list_head.h" #include "stddef.h" #i...
/** * Copyright (c) 2018 hgoel * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ #include <types.h> #include <stdlib.h> #include <string.h> #include <cardinal/local_spinlock.h> #include "SysVirtualMemory/vmem.h" #include "SysPhysicalMemory/phys_mem.h" #include "SysInte...
#include <assert.h> #include <ctype.h> #include <inttypes.h> #include <limits.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/uio.h> #include <sys/wait.h> #include <unistd.h> #include "timer.h" #include "utils.h" #define NUM...
/* * %TITLE "GL Account Overlay Mask" */ #pragma module gl_assg_accmask "V3.6 Calico" /* * COPYRIGHT (C) 1987, 1988 BY * * Computer Management Center, Inc. * <NAME>, Idaho * * This software is furnished under a license and may be used and * copied only in accordance with terms of such license and with *...
/* ** mouse:~ppr/src/makeprogs/ppr-config.c ** Copyright 1995--2005, Trinity College Computing Center. ** Written by <NAME>. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions are met: ** ** * Redistributions of source code must...