text
stringlengths
3.12k
18.7k
/******************************************************************************************** * DAPS: double-authentication preventing signatures * * Based on the paper: * <NAME>, <NAME>, and <NAME>. * Deterring Certificate Subversion: Efficient Double-Authentication-Preventing Signatures. * IACR Cryp...
//ps2kbd.c //PS/2 keyboard driver //<NAME> <<EMAIL>> 2021 #include "amd64.h" #include "pic8259.h" #include "hal_kbd.h" //State of PS/2 keyboard - if a break prefix was received. bool ps2kbd_break; //State of PS/2 keyboard - if an extend prefix was received. bool ps2kbd_extend; //Mapping of PS/2 scancodes to SDL sc...
/* * Microcurrent measuring device. */ #include <libe/libe.h> #include <pthread.h> #include <math.h> #include <unistd.h> #include <time.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netinet/in.h> #include <netdb.h> #include <esp_timer.h> #ifndef TARGET_ESP32 #...
/* * Copyright (C) 2012-2013 <NAME> <<EMAIL>> * * All Rights Reserved. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * You can use, modify and redistribute it in...
/* * Copyright (c) 2017 Samsung Electronics Co., Ltd. * * Contact: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <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 m...
/** ************************************************************************************************* * \fn uint32 UTIL_Helper_Conv4xU8ToU32(uint8 u8HighestByte, uint8 u8SecondHighestByte, * uint8 u8SecondLowestByte, uint8 u8LowestByte) * \brief This function converts 4 Byte of data into a data of one DW...
/* Copyright (c) 2017, <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 and the following discla...
#include "headers.h" FILE *fp; FILE *fp2; FILE *fp3; void procurar_dado(db* banco){ printf("====================================\n"); printf("Não foi implementado.\n"); printf("====================================\n\n"); //voltar_menu_secundario(); } void deletar_dado(db* banco){ printf("========...
/* / _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ \____ \| ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| \__)_____)\____)_| |_| (C)2013 Semtech-Cycleo Description: Listen Before Talk basic test application License: Revi...
/* * Copyright (c) 2015-2018 Nexenta Systems, inc. * * This file is part of EdgeFS Project * (see https://github.com/Nexenta/edgefs). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional informat...
/** rtcp protocol dissection Copyright (C) 2016-2019 <NAME> <<EMAIL>> This file is part of decoder. [ The headers in this module follow the RFC 5246 and the pcap analyzed to have a real conformity from theory and real traffic ] decoder is free software: you can redistribute it and/or modify it ...
/* * Copyright © 2009 Intel Corporation * * 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, pub...
/* Pi_cape.c * * PI_ROBOT - PROYECTO CONTROL AUTOMATICO, I SEMESTRE 2015 * ESCUELA DE INGENIERIA ELECTRONICA, INSTITUTO TECNOLOGICO DE COSTA RICA * * Modifications made by <NAME>, Mechatronics Engineering Student * <EMAIL> * * Based on James Strawson's Robotics Cape code. * Copyright (c) 2015, <NAME> Al...
/* * Copyright (c) 2008, XenSource 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 ...
#include "material.h" #include "texture.h" #include "cache.h" #include "collection.h" #include "vmfparser.h" #include "common.h" #ifdef _MSC_VER #pragma warning(disable:4221) #endif typedef struct { ICollection *collection; Stack *temp; StringView shader; Material *mat; int depth; } MaterialContext; static VMFA...
/* This is a "linear-congruent-generator", a type of random number generator. */ #include "rand-lcg.h" #include "rand-primegen.h" /* DJB's prime factoring code */ #include "string_s.h" #include <math.h> /* for 'sqrt()', may need -lm for gcc */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #inclu...
#include <klingklang/base.h> #include <klingklang/library.h> #include <klingklang/str.h> #include <klingklang/util.h> #ifdef HAVE_DIRENT_H # include <dirent.h> #endif #ifdef HAVE_SYS_STAT_H # include <sys/stat.h> #endif #ifdef HAVE_SYS_TYPES_H # include <sys/types.h> #endif #define get_array_len(x) \ (sizeof (...
/****************************************************************************** Copyright (c) 2017 <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 restricti...
/* * Copyright (c) 2000-2005 Silicon Graphics, Inc. * 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 as * published by the Free Software Foundation. * * This program is distributed in the hope that it would be ...
/* The MIT License (MIT) Copyright (c) Latino - Lenguaje de Programacion 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,...
/* * 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...
/*------------------------------------------------------------------------ ADUC814.H Header file for Analog Devices ADuC814 controller. Rev. 3.0 02nd July 2007 Copyright (c) 1999 - 2007 Keil - An ARM Company All rights reserved. ------------------------------------------------------------------------*/ ...
#include "ml_goo.h" #include <stdio.h> #include "caml/alloc.h" #include "caml/memory.h" #include "caml/callback.h" #include "caml/custom.h" #include "caml/printexc.h" #include "goo_system.h" static value Val_some(value v) { CAMLparam1(v); CAMLlocal1(ret); ret = caml_alloc_small(1, 0); Field(ret, 0) = v; CAM...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #include "ascii.h" #define TAM_NOME 30+1 typedef struct skill { char nome[TAM_NOME]; int consumoMana; } SKILL; typedef struct personagem { char nome[TAM_NOME]; int hp, mana, danoBase, danoCriticoBase, defesa, q...
#include "freertos/FreeRTOS.h" #include "esp_wifi.h" #include "esp_system.h" #include "esp_event.h" #include "esp_event_loop.h" #include "nvs_flash.h" #include "lmic.h" //u1_t NWKSKEY[16] = { <KEY> }; //u1_t APPSKEY[16] = { 0xfa, 0x4c, 0xd4, 0xd2, 0x78, 0x0d, 0x77, 0xc1, 0x03, 0x82, 0xab, 0x77, 0xdb, 0xd8, 0xe7, 0x00...
/*this is an Exam entry program,one can admit students in the system and assign them marks for the mainexam and cat and from that the program can compute the grades and the average .The program finds the the student that had the highest marks */ //{my freshman year project first semster} //I did this project to le...
/************************************************************************* > File Name: get_dcd.c > Author: Kevin > Created Time: 2019-04-18 >Description: ************************************************************************/ /* Includes *********************************************************** *...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> typedef struct UNPACKED_FLOAT { uint8_t exponent; uint8_t sign; uint8_t mantessa[4]; //byte 4 is the underflow/buffer byte used for rounding. } unpacked_f; typedef uint32_t packed_f; //stored little endian uint8_t overflow; //unpacked void incre...
/* * Copyright (c) 2020, The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDE...
/* FreeRTOS V8.2.3 - Copyright (C) 2015 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 the...
/*- * Copyright (c) 2005-2008 <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 conditi...
/* * rpm-installer * * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. * * Contact: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, * <NAME> <<EMAIL>>, <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the...
#include "mefIngresoPiso.h" #include "board.h" #include "sapi.h" #include <stdbool.h> #include <stdio.h> #include <stdlib.h> // FIXME: Al integrar con el resto de los módulos esto debería desaparecer #define TIMEOUT 5 // FIXME: Ver arriba #define PISO_MAX 20 // FIXME: Ver arriba #define PISO_MIN -5 // FIXM...
#include <math.h> #include "config.h" #include "matrix.h" #include "util.h" void normalize(float *x, float *y, float *z) { float d = sqrtf((*x) * (*x) + (*y) * (*y) + (*z) * (*z)); *x /= d; *y /= d; *z /= d; } void mat_scale(float *matrix, float sx, float sy, float sz){ matrix[0] *= sx; matrix[5] *= s...
/* * Fragile error test for (some) API error messages */ /*=== *** test_1a (duk_safe_call) ==> rc=1, result='RangeError: invalid stack index -3' *** test_1b (duk_safe_call) ==> rc=1, result='RangeError: invalid stack index -3' *** test_1c (duk_safe_call) ==> rc=1, result='RangeError: invalid stack index -1' *** tes...
/* $Id: tixUnixXpm.c,v 1.4 2006/11/15 22:18:36 hobbs Exp $ */ /* * tixUnixImgXpm.c -- * * Implement the Windows specific function calls for the pixmap * image type. * * Copyright (c) 1996, Expert Interface Technologies * * See the file "license.terms" for information on usage and redistribution * of this fil...
/*- * Copyright (c) 1999 <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 ...
/********************************************************************** * Copyright (c) 2018 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or http://www.opensource.org/licenses/mit-license.php.* ***********************************...
#include <stddef.h> #include <stdint.h> #include <stdio.h> #include "rencache.h" /* a cache over the software renderer -- all drawing operations are stored as ** commands when issued. At the end of the frame we write the commands to a grid ** of hash values, take the cells that have changed since the previous frame, *...
#ifdef WHOLE #define NUM_BANKS 2 #include "geppetto.h" #endif #include "pinocchio.h" #ifndef _WIN32 #define MQAP 1 #endif #ifndef MQAP #include <stdio.h> #include <string.h> #include "pinocchio.c" #endif // Assumes the message is exactly 416 bits long, // so the value we hash is: msg || 1000...00...
/* Copyright: <NAME>, 2016-2017 License: MIT Feel free to copy, use and enjoy according to the license provided. */ #include "iodine_rack_io.h" #include "iodine.h" #include <ruby/encoding.h> #include <ruby/io.h> #include <unistd.h> #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif /* IodineRackIO manages a minimal in...
#include "execution_plan_construct.h" #include "execution_plan_modify.h" #include "../execution_plan.h" #include "../../RG.h" #include "../ops/ops.h" #include "../../errors.h" #include "../../query_ctx.h" #include "../../util/rax_extensions.h" #include "../../ast/ast_build_filter_tree.h" #include "../../ast/ast_build_o...
/* CMSIS-DAP Interface Firmware * Copyright (c) 2009-2013 ARM Limited * * 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 re...
/* IPv4 specific functions of netfilter core */ #include <linux/kernel.h> #include <linux/netfilter.h> #include <linux/netfilter_ipv4.h> #include <linux/ip.h> #include <linux/skbuff.h> #include <linux/gfp.h> #include <net/route.h> #include <net/xfrm.h> #include <net/ip.h> #include <net/netfilter/nf_queue.h> /* route_m...
/************************************************************************* > File Name: expressionEvaluation.c > Description: infixexpression To postfixexpression and evaluate > Author: <NAME> > Mail: <EMAIL> > Created Time: August 14th, 2018 **************************************************************************/ ...
/* find image overlaps * * Copyright: 1990, <NAME>. * * Author: <NAME> * Written on: 02/05/1990 * Modified on : 18/04/1991 * 8/7/93 JC * - allows IM_CODING_LABQ coding * - now calls im_incheck() * 13/7/95 JC * - rewritten * - now uses im_spcor() * 13/8/96 JC * - order of args changed to help C++ API * 2...
/* main.c - Application main entry point */ /* * Copyright (c) 2019 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #define NET_LOG_LEVEL CONFIG_NET_HOSTNAME_LOG_LEVEL #include <logging/log.h> LOG_MODULE_REGISTER(net_test, NET_LOG_LEVEL); #include <zephyr/types.h> #include <stdbool.h> #include <std...
#include "sgl_draw.h" #include "sgl_mesh_loader.h" #include <assert.h> #include <err.h> #include <GLFW/glfw3.h> #define UNPACK3(f) f[0], f[1], f[2] // used for debug: #define PRINTVEC(v) printf(#v ": %f %f %f\n", UNPACK3(v)); v3 dir = (0); v3 up = (0); v3 position = {0, 0, 5}; float h_angle = 3.14f; float v_angle = ...
/* Copyright 2017 <NAME> * Copyright 2018 <NAME> * Copyright 2019 Clueboard * * 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 la...
/* GStreamer * Copyright (C) <2007> <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. * ...
/*---------------------------------------------------------------------------+ | poly_l2.c | | | | Compute the base 2 log of a FPU_REG, using a polynomial approximation. | | ...
/*- * Copyright (C) 1994, <NAME> * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * the University of Utah, and <NAME>. * * Redistribution and use in source and binary forms, with or without * modif...
#ifndef lint static const char RCSid[] = "$Id: tmaptiff.c,v 3.11 2011/06/28 21:11:04 greg Exp $"; #endif /* * Perform tone mapping on TIFF input. * * Externals declared in tmaptiff.h */ #include "copyright.h" #include <stdio.h> #include <stdlib.h> #include "tiffio.h" #include "tmprivat.h" #include "tmaptiff.h" ...
/* * @XMHF_LICENSE_HEADER_START@ * * eXtensible, Modular Hypervisor Framework (XMHF) * Copyright (c) 2009-2012 Carnegie Mellon University * Copyright (c) 2010-2012 VDG Inc. * All Rights Reserved. * * Developed by: XMHF Team * Carnegie Mellon University / CyLab * VDG Inc. * ...
#include <stdio.h> #include <stdint.h> const uint32_t K[] = { 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7...
/**/ /* Includes ------------------------------------------------------------------*/ #include "iar_stm32f407zg_sk.h" /** * @{ */ GPIO_TypeDef* GPIO_PORT[LEDn] = {LED1_GPIO_PORT, LED2_GPIO_PORT, LED3_GPIO_PORT, LED4_GPIO_PORT}; const uint16_t GPIO_PIN[LEDn] = {LED1_PIN, LED2_PIN,...
#include "cerberus.h" #include <limits.h> #if __LONG_LONG_MAX__ == 9223372036854775807LL #define BITS 64 static unsigned long long const zext[64] = { 0x87654321fedcba90ULL, 0x43b2a190ff6e5d48ULL, 0x21d950c87fb72ea4ULL, 0x10eca8643fdb9752ULL, 0x87654321fedcba9ULL, 0x43b2a190ff6e5d4ULL, 0x21d950c87fb72ea...
/* $Id: pjsua_app_common.c 5259 2016-03-14 06:40:45Z nanang $ */ /* * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) * Copyright (C) 2003-2008 <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...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2018-2020 Couchbase, 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 * * ...
/* Copyright (c) 2005-2007 MySQL AB 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 is distributed in the hope that it will be useful, but WITHO...
/* * Copyright 2018, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #ifdef HAVE_GETOPT_H #include <getopt.h> #endif #ifdef _WIN32 #include ...
/* * Copyright (c) 2016, <NAME>, 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 ...
/* * FreeRTOS V202112.00 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including ...
/* Z88DK Z80 Macro Assembler Copyright (C) <NAME>, InterLogic 1993-99 Copyright (C) <NAME>, 2011-2015 License: The Artistic License 2.0, http://www.perlfoundation.org/artistic_license_2_0 Repository: https://github.com/pauloscustodio/z88dk-z80asm Handle object file contruction, reading and writing */ #include "class...
/* * echinus wm written by <NAME> <<EMAIL>> * this file contains code related to drawing */ #include <regex.h> #include <ctype.h> #include <assert.h> #include <X11/Xatom.h> #include <X11/Xlib.h> #include <X11/Xproto.h> #include <X11/Xutil.h> #include <X11/Xft/Xft.h> #include "echinus.h" #include "config.h" enum {...
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright 2017-2018 NXP * */ #include <arm.h> #include <imx_pm.h> #include <io.h> #include <kernel/cache_helpers.h> #include <mm/core_memprot.h> #include <mm/core_mmu.h> #include <string.h> paddr_t iram_tbl_phys_addr = -1UL; void *iram_tbl_virt_addr; static uint32_t i...
#include "atlas_misc.h" static void axpyCU(const int N, const SCALAR alpha0, const TYPE *X, TYPE *Y) { const TYPE *stX; int nr = N; register TYPE alpha=alpha0; if (nr >= 16) { *Y += alpha * *X; Y[1] += alpha * X[1]; Y[2] += alpha * X[2]; Y[3] += alpha * X[3]; Y[4] += alph...
#define _CRT_SECURE_NO_WARNINGS 1 #include <assert.h> #include <errno.h> #include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <malloc.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/tcp.h> #include <netdb.h> #include <unistd.h> #include <string.h> #include <sys/time.h> #include <...
/* Copyright 2018 Google 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 by applicable law or agreed to in ...
/* * Acess2 Command-line HTTP Client (wget) * - By <NAME> * * main.c */ #include <stdlib.h> #include <stdio.h> #include <net.h> #include <uri.h> #include <string.h> #include <unistd.h> #include <netdb.h> #include <netinet/in.h> // struct sockaddr_in #include <acess/sys.h> // _SysDebug enum eProcols { PROTO_NONE,...
/*************************************************************************\ * Copyright (c) 2008 UChicago Argonne LLC, as Operator of Argonne * National Laboratory. * Copyright (c) 2002 The Regents of the University of California, as * Operator of Los Alamos National Laboratory. * EPICS BASE is distributed subj...
#include "mk.h" enum { Nchild = 100, }; typedef struct Child Child; struct Child { int pid; int done; char err[ERRLEN]; }; struct { Qlock lk; Event event; Child child[Nchild]; } slave; static void writecmd(void*); static void procwaitthread(void*); char *shell = "rcsh.exe"; char *shellname = "rcsh.exe"; ...
/************************************************************************** * * Copyright 2011 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 ...
#define _POSIX_C_SOURCE 200809L #include <limits.h> #include <wlr/types/wlr_cursor.h> #include <wlr/types/wlr_xcursor_manager.h> #include "sway/desktop/transaction.h" #include "sway/input/cursor.h" #include "sway/input/seat.h" #include "sway/tree/arrange.h" #include "sway/tree/view.h" #include "sway/tree/workspace.h" #...
/* * Copyright (c) 1998-2016 Carnegie Mellon University. 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...
/* * Copyright (c) 2020 Tridonic GmbH & Co KG * * SPDX-License-Identifier: Apache-2.0 */ #define LOG_LEVEL CONFIG_OPENTHREAD_LOG_LEVEL #define LOG_MODULE_NAME net_otPlat_uart #include <logging/log.h> LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include <kernel.h> #include <stdio.h> #include <stdlib.h> #include <drive...
/* Copyright 2014 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. */ /* * Implementation of RSA signature verification which uses a pre-processed key * for computation. */ #include "rsa.h" #include "sha256.h" #in...
/* * Copyright (c) 2011-2012 The DragonFly Project. All rights reserved. * * This code is derived from software contributed to The DragonFly Project * by <NAME> <<EMAIL>> * by <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the...
/* minizip.c Version 1.2.0, September 16th, 2017 sample part of the MiniZip project Copyright (C) 2012-2017 <NAME> https://github.com/nmoinvaz/minizip Copyright (C) 2009-2010 <NAME> Modifications for Zip64 support http://result42.com Copyright (C) 2007-2008 <NAME> Modifications of Un...
#pragma once #pragma region HC_CONFIG // The highest number you can pass as a constant in asm instruction is // maximum value of uint64_t integer, so 18446744073709551615. // If concatenated number is higher than that, you'll get an error. // In such a case, use HIDECALL_LEVEL macro with lower level number // (6 by d...
// RUN: %clang_cc1 %s -O3 -triple=x86_64-apple-darwin -target-feature +fma -emit-llvm -o - | FileCheck %s // Don't include mm_malloc.h, it's system specific. #define __MM_MALLOC_H #include <immintrin.h> __m128 test_mm_fmadd_ps(__m128 a, __m128 b, __m128 c) { // CHECK: @llvm.x86.fma.vfmadd.ps return _mm_fmadd_ps(...
/* ******************************************************************************* * Copyright (c) 2017-2021, STMicroelectronics * All rights reserved. * * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You...
//user: rpi - pw: linuxcnc ip: 192.168.0.102 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define NANOSVG_IMPLEMENTATION // Expands implementation #include "nanosvg/nanosvg.h" #include "bool.h" #include "sketchy.h" #include "Preview.h" #include "Config.h" #include "machine-settings.h"...
/* * Copyright (c) 2020, HiHope Community. * * 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 follow...
/** *********************************************************************************************************************** * Copyright (c) 2020, China Mobile Communications Group Co.,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the...
#include "global.h" #include "file_filter.h" #include "range.h" #include "util.h" #include "file_util.h" #define is_range_char(c) (((c) >= '0' && (c) <= '9') || (c) == '-' || (c) == ',') // Get pointers to start and end of actual path // (\d+(-\d+)?(,\d+(-\d+)?)*:)?path.ctx(:\d+(-\d+)?(,\d+(-\d+)?)*)? static inline v...
/** * * @file example_sgelqf.c * * PLASMA testing routines * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @brief Example using LQ factorization * * @version 2.6.0 * @author <NAME> * @date 2010-11-15 * @generated s Tue Jan 7...
/* * 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 ...
/* Copyright (C) 2017-2019 Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted for any purpose (including commercial purposes) * provided that the following conditions are met: * * 1. Redistributions of source code must ret...
#include "MSPd.h" #include "ugens.h" #include <string.h> /* calling codes for DSP modules */ #define TRANSPOSE 0 #define RINGMOD 1 #define FLANGE 2 #define BUTTER 3 #define TRUNCATE 4 #define SWEEPRESON 5 #define COMB 6 #define SLIDECOMB 7 #define REVERB1 8 #define ELLIPSE 9 #define COMPDIST 10 #define FEED1 11 #define...
/* Copyright (c) 2011 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. * * Tests for vboot_api_firmware */ #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "2sysincludes.h" #i...
#include "assets.h" // Max length, in bytes, that a filename can be #define ASSET_NAME_LEN (512) // Max length of the asset hash map #define ASSET_HASH_LEN (1024) // Max length of the asset queue #define ASSET_QUEUE_LEN (512) // 32bit FNV-1a hash // https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_f...
/* * Copyright (C) 2007-2010 B.A.T.M.A.N. contributors: * * <NAME>, <NAME> * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope tha...
/* #includes */ /*{{{C}}}*//*{{{*/ #include "config.h" #include <ctype.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "getopt_.h" #include "cpmfs.h" #ifdef USE_DMALLOC #include <dmalloc.h> #endif /*}}}*/ /* #defines */ /*{{{*/ #ifndef O_BINARY #define O_BI...
/* GStreamer * Copyright (C) <2005> <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. * ...
/* * NS16550 Serial Port * originally from linux source (arch/powerpc/boot/ns16550.h) * * Cleanup and unification * (C) 2009 by <NAME>, DENX Software Engineering GmbH * * modified slightly to * have addresses as offsets from CONFIG_SYS_ISA_BASE * added a few more definitions * added prototypes for ns16550.c ...
#include "FeOSMusic.h" #include "fix_fft.h" #define FFT_SAMP (9) #define NUM_FREQS (16) #define SEPERATION ((256/NUM_FREQS)) #define PRECISION (16) hword_t *consoleMap; unsigned int row, col; int consoleId; int visualizer = NORMAL; s16 FFT[(1<<FFT_SAMP)]; int frequencies[NUM_FREQS]; int curfreqs[NUM_FREQS]; int old...
/* --COPYRIGHT--,BSD * Copyright (c) 2017, Texas Instruments Incorporated * 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 copy...
#include <TrezorCrypto/sodium/private/fe_25_5/fe.h> uint64_t load_3(const unsigned char *in) { uint64_t result; result = (uint64_t)in[0]; result |= ((uint64_t)in[1]) << 8; result |= ((uint64_t)in[2]) << 16; return result; } uint64_t load_4(const unsigned char *in) { uint64_t result; res...
/*********************************************************************** * scas, Copyright (c) 2012-2013, <NAME> * This file is distributed under the FreeBSD license. * See LICENSE for details. ***********************************************************************/ /* * The _GNU_SOURCE define must be set in ord...