text stringlengths 3.12k 18.7k |
|---|
/**********************************************************************
// For TASP VSIPL Documentation and Code neither the United States /
// Government, the United States Navy, nor any of their employees, /
// makes any warranty, express or implied, including the warranties /
// of merchantability and fitnes... |
#include <stdio.h>
#include <stdlib.h>
#include "solve_dlog.h"
#include "factor.h"
#include "crt.h"
int f(mpz_t res, mpz_t x, const mpz_t p, const mpz_t a, const mpz_t g)
{
mpz_t third;
mpz_init(third);
mpz_div_ui(third, p, 3);
if(mpz_cmp(x, third) < 0) {
mpz_mul(res, a, x);
mpz_mod(res, res, p);
mpz_cle... |
/**
* Copyright (c) 2021, <NAME>
* 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 <stdio.h>
#include <stddef.h>
#include <time.h>
#include "enki/core.h"
#include "enki/common.h"
#include "enki/so... |
#include "corange.h"
static int object_id = 0;
renderer* dr = NULL;
static void onclick_piano() { object_id = 0; }
static void onclick_cello() { object_id = 1; }
static void onclick_imrod() { object_id = 2; }
static void onclick_dino() { object_id = 3; }
void rendering_init() {
graphics_viewport_set_title("R... |
/* $NetBSD: if_urlreg.h,v 1.1 2002/03/28 21:09:11 ichiro Exp $ */
/*
* Copyright (c) 2001, 2002
* <NAME> <<EMAIL>>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions... |
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "byte_string.h"
#include "set1.h"
byte_string* decrypt_fixed_xor(byte_string* in, byte* decryption_char) {
assert(in != NULL);
assert(decryption_char != NULL);
assert(in->length >= 0);
float score_of_bes... |
/*
* freeglut_cursor.c
*
* The mouse cursor related stuff.
*
* Copyright (c) 1999-2000 <NAME>. All Rights Reserved.
* Written by <NAME>, <<EMAIL>>
* Creation date: Thu Dec 16 1999
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation f... |
/*++
/* NAME
/* forward 3
/* SUMMARY
/* message forwarding
/* SYNOPSIS
/* #include "local.h"
/*
/* int forward_init()
/*
/* int forward_append(attr)
/* DELIVER_ATTR attr;
/*
/* int forward_finish(request, attr, cancel)
/* DELIVER_REQUEST *request;
/* DELIVER_ATTR attr;
/* int cancel;
/* DESCRIPTION
/* This module imple... |
/*--------------------------------------------------------------------*/
/*--- A simple program to listen for valgrind logfile data. ---*/
/*--- valgrind-listener.c ---*/
/*--------------------------------------------------------------------*/
/*
This file is part of... |
/** ****************************************************************************
* *
* SYSTEM EVENT HANDLER *
* ... |
/** Author and 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 agree... |
/**
* \file
*
* \brief HTTP Netconn Example.
*
* Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip products.
* It i... |
/*
* Copyright (c) 2011-2014 Apple Inc. All Rights Reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* c... |
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "tests.h"
#include "consensus/default_constants.h"
#include "consensus/pot_iterations.h"
#include "consensus/pos_quality.h"
#include "util/endian.h"
#include "util/hash.h"
static struct ConsensusConstants test_constants;
static const char *test_is_ov... |
/*
Copyright (c) 2016 Cromulence LLC
Authors: <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 limitation the rights
to use, copy, modify, ... |
/**
* @brief main for BMS project
*
* This file is the top level file for this project. It executes all
* initialization functions and provides the main loop for the program
*/
#include <stdbool.h>
#include <stdint.h>
#include "driverlib/fpu.h"
#include "driverlib/timer.h"
#include "driverlib/interrup... |
/*
* Copyright 2016-2017, Intel Corporation
*
* 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 ... |
/****************************************************************************
* Copyright (C) 2021 by NQMCyber Ltd *
* *
* This file is part of EDGESec. *
* ... |
/*
* Copyright (c) 2000-2002, <NAME>
*
* This source code is released for free distribution under the terms of the
* GNU General Public License version 2 or (at your option) any later version.
*
* This module contains functions for generating tags for LISP files.
*/
/*
* INCLUDE FILES
*/
#include "general.h"... |
/*------------------------ MIT License HEADER ------------------------------------
Copyright ANSSI and NTU (2015)
Contributors:
<NAME> [<EMAIL>] and
<NAME> [<EMAIL>] and
<NAME> [<EMAIL>] and
<NAME> [<EMAIL>]
This software is a computer program whose purpose is to implement
lightweight b... |
// 0x07011C18 - 0x07011D18
static const Vtx bitfs_seg7_vertex_07011C18[] = {
{{{ -511, 179, 307}, 0, { 0, 990}, {0xc8, 0xc8, 0xc8, 0xff}}},
{{{ 512, 179, 307}, 0, { 1672, -714}, {0xc8, 0xc8, 0xc8, 0xff}}},
{{{ 512, 179, -306}, 0, { 2694, 308}, {0xc8, 0xc8, 0xc8, 0xff}}},
... |
/* Copyright 2004,2007,2008,2014 IPB, Universite de Bordeaux, 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 ... |
/*
* Graphene Extensions
* Copyright 2019 Collabora Ltd.
* Author: <NAME> <<EMAIL>>
* SPDX-License-Identifier: MIT
*/
#include "xrd-button.h"
#include <gdk/gdk.h>
static GdkPixbuf *
_load_pixbuf (const gchar* name)
{
GError * error = NULL;
GdkPixbuf *pixbuf = gdk_pixbuf_new_from_resource (name, &error);
... |
#include <zcl/global.h>
#include <zcl/endian.h>
#include <zcl/string.h>
#include <zcl/macros.h>
#include <zcl/hash.h>
#include <zcl/bits.h>
typedef struct _SHA256_CTX {
uint32_t state[8];
uint32_t count[2];
uint8_t buffer[64];
} SHA256_Context;
/*
* SHA-256 checksum, as specified in FIPS 180-3, available at... |
/*
DDE (deroko Disassembly/assembly engine)
So far it works fine, bugs still unknown...
coded by deroko <deroko<at>gmail<dot>com>
http://deroko.headcoders.net
*/
#include<windows.h>
#includ... |
/*
* Copyright (C) 2014 <NAME> <<EMAIL>>.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or any later version.
*
* This program is distributed in th... |
/* Copyright 2022 Cypress Semiconductor Corporation (an Infineon company) or
* an affiliate of Cypress Semiconductor Corporation
*
* 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... |
/**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ ... |
/*
* Unit test suite for environment functions.
*
* Copyright 2006 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option... |
#include "mathutils.h"
/* Take a single Runge-Kutta quality-controlled step with a fractional */
/* accuracy eps. Adapted from Numerical Recipes 2nd ed. in C p. 719. */
/* KEY */
/* y array containing the intial values */
/* dydx array containing the initial derivatives */
/* n dimension of y */
/* x ... |
/**
* vs30_query_mpi.c - Generates Vs30 maps given a starting lat, lon and a number of
* x and y co-ordinate points.
*
* Created by <NAME> <<EMAIL>>
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <mpi.h>
#include "ucvm.h"
#include "ucvm_utils.h"
/* Constants */
#def... |
/*
* Copyright (c) 2021-2022, STMicroelectronics - All Rights Reserved
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <limits.h>
#include <string.h>
#include <common/debug.h>
#include <drivers/st/bsec.h>
#include <drivers/st/stm32mp1_usb.h>
#include <drivers/usb_device.h>
#include <platform_def.h>
#includ... |
/*
Copyright 2010 SourceGear, LLC
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 writing, sof... |
/*
* html.c
*
* Copyright 2009 by <NAME>. All rights reserved.
*/
/***********************************************************************
*** No configuration below this point.
***********************************************************************/
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#... |
/**
* Copyright (c) 2011 <NAME> <<EMAIL>>
*
* 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 PROVIDED "AS IS" AND THE AUTHOR... |
#include <stdio.h>
#include <assert.h>
#include <string.h>
#define ArraySize(x) ((int)(sizeof(x) / sizeof((x)[0])))
#define MIN(x,y) ((x)<(y) ? (x) : (y))
typedef unsigned int u32;
typedef unsigned char u8;
typedef long long int i64;
typedef unsigned long long int u64;
#if defined(__GLIBC__) && defined(LSM_DEBUG_... |
/*
* Copyright (c) 2013 Jonas '<NAME>.
*
* Permission to use, copy, modify, and 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 PROVIDED "AS IS" AND THE AUTHOR DISCLAI... |
#include <src/objectsystem.h>
#include <src/tokenizer.h>
#include <src/unicode.h>
#include <src/objects/array.h>
#include <src/objects/astnode.h>
#include <src/objects/integer.h>
#include <src/objects/mapping.h>
#include <src/operator.h>
#include <src/objects/string.h>
#include <src/parse.h>
#include <stdbool.h>
#inclu... |
/**
* Copyright 2017 Comcast Cable Communications Management, LLC
*
* 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
*
* Unle... |
/* schemaparse.c - routines to parse config file objectclass definitions */
/* $OpenLDAP: pkg/ldap/servers/slapd/schemaparse.c,v 172.16.31.10 2001/05/17 23:18:02 kurt Exp $ */
/*
* Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
#include "portabl... |
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
** **
** This file forms part of the Underworld geophysics modelling application. **
** ... |
/* sgeqpw.f -- translated by f2c (version 20041007).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the e... |
/* $Id: semevent-r0drv-freebsd.c 57358 2015-08-14 15:16:38Z vboxsync $ */
/** @file
* IPRT - Single Release Event Semaphores, Ring-0 Driver, FreeBSD.
*/
/*
* Copyright (c) 2007 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated docu... |
/***************************************************************************//**
* @file
* @brief Bt Mesh CTL Client module
*******************************************************************************
* # License
* <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b>
*********************************... |
//#define DEBUG_TOOL
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "runtime.h"
#include "debug.h"
#include "type_info.h"
#include "bitmap.h"
#include "scan.h"
#include "log.h"
#include "choice.h"
#include "writepkt.h"
#define RELNAME_R... |
#include "options.h"
void
usage(void)
{
printf("Usage: lsm9ds1 [OPTIONS]\n\n");
printf("Version: %s\n", VERSION);
printf("A command line tool to read data from the ST LSM9DS1.\n");
printf("After wiring up the lsm9ds1 you MUST run a configuration on it first.\n\n");
printf("OPTIONS:\n\
-h --help ... |
/******************************************************************************
*
* Copyright(c) 2007 - 2014 Realtek Corporation. All rights reserved.
*
* 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 ... |
/*
* Copyright (c) 2014 Yubico AB
* 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 f... |
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include "ibm.h"
#include "x86.h"
#include "x87.h"
#include "mem.h"
#include "cpu.h"
#include "fdc.h"
#include "pic.h"
#include "timer.h"
#include "nmi.h"
#include "386_common.h"
#include "codegen.h"
#undef CPU_BLOCK_END
#define CPU_BLOCK_END... |
#include "lv_disp_ili9488.h"
static void lv_disp_ili9488_send_cmd(uint8_t ubCmd, uint8_t *pubParam, uint8_t ubNParam)
{
ILI9488_SELECT();
ILI9488_SETUP_CMD();
usart2_spi_transfer_byte(ubCmd);
if(pubParam && ubNParam)
{
ILI9488_SETUP_DAT();
usart2_spi_write(pubParam, ubNParam, 1);... |
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <3ds.h>
#include "action.h"
#include "../../error.h"
#include "../../progressbar.h"
#include "../../prompt.h"
#include "../../../util.h"
typedef struct {
file_info* base;
FS_MediaType dest;
Handle currHandle;
bool installStarted;
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <time.h>
#include <stdint.h>
#include "salsa20.h"
#include <poly1305-donna.h>
#include <chacha20_simple.h>
#include <sodium.h>
extern void curve25519_donna(unsigned char *output, const unsigned char *a,
... |
/*
* libkmod - module signature display
*
* Copyright (C) 2013 <NAME>, SUSE
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... |
/*
$Log: chanwr.c,v $
Revision 1.2 2006/08/01 13:06:49 rjongbloed
Added a raft of unvalidated audio codecs from OpenH323 tree
Revision 1.1.2.1 2006/07/22 14:03:14 rjongbloed
Added more plug ins
Revision 1.1.2.1 2006/05/08 13:49:57 rjongbloed
Imported all the audio codec plug ins from OpenH323
Revision 1.1 20... |
/*
* --------------------------------
* main - Implementação
* Trabalho Prático realizado por:
* <NAME>
* <NAME>
* <NAME>
*
* Universidade Federal de Viçosa
* --------------------------------
*/
/* Includes e Defines */
#include <stdio.h>
#include <stdlib.h>
#include "../listaDeProcessos/listaDeProcessos.h"
... |
/*
* Copyright (c) 2007 - 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, copy, modify, merge, publi... |
/*-
* Copyright (c) 2006 IronPort Systems Inc. <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, ... |
#include "idt.h"
extern void isr0();
extern void isr1();
extern void isr2();
extern void isr3();
extern void isr4();
extern void isr5();
extern void isr6();
extern void isr7();
extern void isr8();
extern void isr9();
extern void isr10();
extern void isr11();
extern void isr12();
extern void isr13();
extern void isr14(... |
/* Copyright (c) 2015, Intel Corporation
*
* 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 fol... |
/**
* \file
*
* \brief Information widget for SAM toolkit demo applicaiton.
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
#include <string.h>
void* memset(void* buf, int c, int n){
unsigned char* p = buf;
while (n--) {
*p++ = c;
}
return buf;
}
void* memcpy(void* dest, const void* src, size_t n){
unsigned char* d = dest;
const unsigned char* s = src;
while (n--) {
*d++ = *s++;
}
return dest;
}
in... |
/*
* R : A Computer Language for Statistical Data Analysis
* Copyright (C) 1995, 1996 <NAME> and <NAME>
* Copyright (C) 1997--2014 The R Core Team
* Copyright (C) 2002--2009 The R Foundation
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General ... |
/*
* Copyright 2015 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 applica... |
/* ioctl commands which must be done in the C library.
Copyright (C) 1994 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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 Found... |
/*
* **************************************************************************
*
* Copyright (c) 2022 aproton.tech, Inc. All Rights Reserved
*
* **************************************************************************
*
* @file http_file.c
* @author kuper - <<EMAIL>>
* @data 2022-03-05 01:16:4... |
// https://www.fatalerrors.org/a/sd-card-initialization-and-command-details.html
// adapted for kianRiscV 2021 by <NAME>
// use a sd card pmod, I have used pmod from digilent
#include "spisd.h"
//Predefined SD card types
u8 SD_Type=0;//Type of SD card
//This part should be modified according to the specific connec... |
/******************************************************************************
* Copyright 2019-2020 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
/*************************************************************************
* MediPy - Copyright (C) Universite de Strasbourg, 2011
* Distributed under the terms of the CeCILL-B license, as published by
* the CEA-CNRS-INRIA. Refer to the LICENSE file or to
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.htm... |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* Define to 1 if you have the `aligned_alloc' function. */
#define HAVE_ALIGNED_ALLOC 1
/* defin... |
/*
* mdstat - parse /proc/mdstat file. Part of:
* mdadm - manage Linux "md" devices aka RAID arrays.
*
* Copyright (C) 2002-2006 <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... |
/**************************************************************************//**
* @file
* @brief efm32tg_af_ports Register and Bit Field definitions
* @author Energy Micro AS
* @version 3.0.2
******************************************************************************
* @section License
* <b>(C) Copyrig... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/*
* Copyright (c) 2014-2015 <NAME> <<EMAIL>>
*
* Distributed under the terms of the MIT license.
* (See LICENSE.MIT or http://opensource.org/licenses/MIT)
*/
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include "../common/mac.h"
#include "../common/message.h"
#include "../common/data_types/dynarr... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2016 RDK Management
*
* 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 ... |
//////////////////////////////////////////////////////////////////////////////
// *
// * Predmetni projekat iz predmeta OAiS DSP 1
// * Godina: 2017
// *
// * Zadatak: Uklanjanje periodicnog suma upotrebom notch filtra
// * Autor:
// *
// * ... |
/*
* hostapd / IEEE 802.1X-2004 Authenticator
* Copyright (c) 2002-2012, <NAME> <<EMAIL>>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/eloop.h"
#include "crypto/md5.h"
#include "cr... |
/* packet-kadm5.c
* Routines for kadm5 dissection
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
/*
* The kadm5 RPC protocol is used to administer Kerberos principals
* and policies. It is not officially documented anyw... |
/*
* This software is licensed under the terms of the MIT-License
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, <NAME> <<EMAIL>>.
* Copyright (c) 2012-2019, <NAME> <<EMAIL>>.
*/
#include "taisei.h"
#include "graphics.h"
#include "global.h"
#include "video.h"
#include "pixmap.h"
void s... |
/* ========================================================================
* Copyright (c) 2006,
* Institute for Computer Graphics and Vision
* Graz University of Technology
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that ... |
/*
* classes.c
*
* Created on: Dec 30, 2019
* Author: Jeff
*/
#include "classes.h"
#include "../../arena/strings.h"
#include "../../datastructure/queue.h"
#include "../../program/tape.h"
#include "../syntax.h"
#include "expression.h"
#include "expression_macros.h"
void populate_class_def(C... |
/*
The MIT License (MIT)
Copyright (c) 2016 <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,... |
#include "createDrive.h"
#include <kipr/botball.h>
void Calibrate(int* blackValue, int* whiteValue, int *blueValue) {
int cont = 1;
printf("please calibrate black using the left color sensor\n");
//while (cont == 1) {
while (a_button() != 1) {
printf("current black value seen is %d\n", analog... |
#pragma once
// Via ELF Spec 1.1
#define EI_NINDENT 16 // Size of e_ident[]
#define EI_MAG0 0 // File identification
#define EI_MAG1 1 // File identification
#define EI_MAG2 2 // File identification
#define EI_MAG3 3 // File identification
#define EI_CLASS 4 // File class : 1 = 32bit, 2 = 64bit
#define EI_DATA 5... |
/*
* Copyright (c) 2017 ARM Limited. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* 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 copyr... |
// ==================================================
// straightforward implementations of matrix multiply
// ==================================================
void multAB(double* C, double* A, double* B, const int a1, const int a2, const int b2) {
int i, j, k;
double *a, *c, tmp;
for( i=0; i<b2; i++ ){
... |
/**
* Copyright 2014-2016 CyberVision, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
// Header files
#include <string.h>
#include "base58.h"
#include "common.h"
// Definitions
// Number base
#define NUMBER_BASE 58
// Size percent increase
#define SIZE_PERCENT_INCREASE 138
// Size percent decrease
#define SIZE_PERCENT_DECREASE 733
// Constants
// Characters
static const char CHARACTERS[] = {'1',... |
#include "mp3player.h"
#include "vs10xx.h"
#include "delay.h"
#include "led.h"
#include "key.h"
#include "lcd.h"
#include "malloc.h"
#include "text.h"
#include "string.h"
#include "exfuns.h"
#include "ff.h"
#include "flac.h"
#include "usart.h"
////////////////////////////////////////////////////////////////////////////... |
/*
* Copyright (c) Huawei Technologies Co., Ltd. 2020. All rights reserved.
* secGear is licensed under the Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE I... |
#include <stdint.h>
#include <memory.h>
#include <gfx_device.h>
#include <render/software.h>
#include <print.h>
#include <scheduler.h>
#include <render/rasterizer.h>
#include <math.h>
#include <render/texturer.h>
#include <render/textures.h>
uint32_t* swrender_framebuffer_front;
uint32_t* swrender_framebuf... |
/*
* mad - MPEG audio decoder
* Copyright (C) 2000-2001 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
... |
/*
* eglinfo - like glxinfo but for EGL
*
* <NAME>
* 11 March 2005
*
* Copyright (C) 2005 <NAME> All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software ... |
/*
Copyright (c) 1994,1995,1996,1997 by <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, ... |
/**
* @file gui_w_button.c
* @brief basic button implementation
* @author <NAME> <<EMAIL>>
* @version 0.2b
* @date (yyyy-mm-dd)
* 0.1b 2013-07-13 : initial version
* 0.2b 2013-08-27 Add alignment & place order
* Licence: MIT
*/
#include "gui_w_button.h"
#define _MAX(a, b) a>b?a:b
/**
* button
*/
typ... |
/****************************************************************************//**
* @file main.c
* @version V0.10
* @brief Demonstrate how to trigger EADC by BPWM and transfer conversion data by PDMA.
*
* SPDX-License-Identifier: Apache-2.0
* @copyright (C) 2020 Nuvoton Technology Corp. All rights reserve... |
/* sampling.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 2 of the License, or (at
* your option) any later version.
*
* This program ... |
/*
* hp1600.h
*
* HP Color LaserJet 1600 front panel demo
*
* Author: <NAME>
*/
#include "stm32f10x_conf.h"
#include "hp1600.h"
#include "delay.h"
volatile uint16_t inputValues;
uint8_t _displaycontrol;
uint8_t _displaymode;
uint8_t _displayfunction;
uint16_t _currentButtonState;
uint16_t _pressedState;
uin... |
#include <chip.h>
#include <string.h>
#include "app_usb.h"
#include "usbd_rom_api.h"
#include "usb_utils.h"
#include "cdc_vcom.h"
#include "log.h"
#include "generated/firmware_version.h"
#include <stdio.h>
/* USB descriptor arrays defined *_desc.c file */
extern const uint8_t USB_DeviceDescriptor[];
extern uint8_... |
double glyph_width(vector_font_t *font, double pos, uint32_t c, double scale, const int mode) // includes inter-letter spacing
{
double tabx = 0.;
letter_t *l;
int lowerscale = 0;
if (font==NULL)
return 0.;
if (c > 0x10FFFF)
return 0.;
if (c=='\t')
{
while (tabx < pos + LETTERSPACING*scale)
tabx += 8... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2018, hathach (tinyusb.org)
* Copyright (c) 2020, <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.