text stringlengths 3.12k 18.7k |
|---|
//////////////////////////
// RP2040-Decoder //
// <NAME> //
// core1.c //
//////////////////////////
#include "core1.h"
uint32_t latest_target = 0;
uint8_t latest_target_index = 0;
uint16_t speed_table[127] = {0};
struct repeating_timer pid_control_timer,speed_helper_timer;
typedef struct pid_pa... |
/**
******************************************************************************
* File Name : freertos.c
* Description : Code for freertos applications
******************************************************************************
*
* COPYRIGHT(c) 2016 STMicroelectronics
*
* Redistrib... |
/*
* FileName: textview.c
* @brief
* Created on: Jun 1, 2020
* Author: Yanye
*/
#include "textview.h"
// GB2312 A1A1-FEFE
// GB2312字库6763(B0A1-F7FE)+846(A1A1~A9EF)个字符 (12*12)
static Font *FontGB2312 = NULL;
static Size calcTextSize(TextView *textview);
static void onMeasure(uint16_t xStart, uint16_t yStart, Tex... |
struct DEV_reg
{
unsigned long timereq;
unsigned long eventreq;
unsigned long unlock1;
unsigned long unlock2;
unsigned long control;
unsigned long ack;
unsigned long mask;
unsigned long intstat;
unsigned long minstrb;
unsigned long majstrb;... |
#include "arch/amd64/mm/heap.h"
#include "sys/string.h"
#include "sys/assert.h"
#include "sys/panic.h"
#include "sys/debug.h"
#include "sys/spin.h"
#include "sys/mm.h"
#define HEAP_MAGIC 0x1BAD83A0
typedef struct heap_block {
uint32_t magic;
uint32_t size;
struct heap_block *prev, *next;
} heap_block_t;
... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
** This notice applies to any and all portions of this... |
/*
* The MIT License (MIT)
*
* Code last modified 2021 KNfLrPn
*
* 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 us... |
// This file is part of the logger project:
// (https://github.com/GabrielaBarbara/logger)
//
// The copyright for this software is held by
// <NAME> <<EMAIL>>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obt... |
#include <joyos.h>
#include <math.h>
#include <lib/pid.h>
#define DRIVE_KP 2.0
#define DRIVE_KD 0.0
#define DRIVE_KI 0.0
#define RIGHT_MOTOR 0
#define LEFT_MOTOR 1
#define MAX_VEL 150
#define TURN_VEL 60
#define RUN_CUTOFF_ANGLE 30
#define CLAMP(X) X>0?(X>MAX_VEL?MAX_VEL:X):0
#define REV_CLAMP(X) X<0?(X<-MAX_VEL?-M... |
//
// Created by yangkui on 2021/7/9.
//
#include "include/note.h"
#include "include/assets.h"
#include "include/sqlite3.h"
#include "include/xd_operate.h"
#include "include/note_setting.h"
#define ZERO "0.00"
static GtkWidget *widget;
static GtkWidget *widget1;
static GtkWidget *stack;
static GtkWidget *money;
stati... |
/*
* bbrtc.c - joyport RTC (DS1602) emulation.
*
* Written by
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Licens... |
/***************************************************************************//**
* @file
* @brief Application
*******************************************************************************
* # License
* <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b>
***********************************************... |
/************************************************************************************************************
* Copyright (c) 2017, Dolby Laboratories Inc.
* All rights reserved.
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following condition... |
/*
Glidix Package Manager
Copyright (c) 2014-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:
* Redistributions of source code must retain the above copyright notice, this
list ... |
/*
Copyright (c)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 conditions and the followin... |
/*! \file bcmecmp_member_weight.c
*
* Member weight group utility.
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
#include <shr/shr_debug.h>
#include <shr/s... |
/*
* View Sort - semplice programmino in C per visualizzare graficamente
* i principali algoritmi di sorting.
* (c) 2016 <NAME> - Licenza MIT
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <time.h>
#include <unistd.h>
#include <pthread.h>
#include <SDL2/SDL.h>
#include <string.h>
#defin... |
/*
* @File project_config.h
* @Brief Configurations for main.c
*
*/
#include <stdint.h>
#include <iostream>
#include <fstream>
#include <sys/types.h>
#include <sys/sysinfo.h>
#define NORMAL_SPEED 130 // 130
#define SLOW_SPEED 105 // 100
#define PARKING_SPEED 90 // 100
/**
* Normal Drive
*/
#define FRONT_U... |
static unsigned int lava_val[1000000]; static int lava_first=1;
void lava_set(unsigned int bug_num, unsigned int val);
void lava_set(unsigned int bug_num, unsigned int val) { if (lava_first) {int i; lava_first=0; for (i=0; i<1000000; i++) lava_val[i]=0; } lava_val[bug_num] = val; }
unsigned int lava_get(unsigned int b... |
//
// Created by ison on 17-7-10.
//
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <ngx_http_request.h>
#include <ngx_string.h>
#include <ngx_http_upstream.h>
#include <ngx_buf.h>
#include <ngx_hash.h>
#include "ngx_time.h"
typedef struct {
ngx_http_upstream_conf_t upstream;
} ngx_htt... |
/*!The Graphic Box Library
*
* 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... |
/*
* libwebsockets - small server side websockets and web server implementation
*
* Copyright (C) 2019 - 2020 <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... |
#include <u.h>
#include <libc.h>
#include <libcutil.h>
#include "dat.h"
#include "fns.h"
typedef struct Qcopy Qcopy;
struct Qcopy {
ulong xoff;
PV *pv;
XCB *xcb;
XLock *xlk;
};
static int resilver(PV*);
static Qcopy qcopyio[2], *qcp;
static int
silverqinit(void)
{
Qcopy *e;
memset(qcopyio, 0, sizeof qcopyio)... |
/**
* node.c
*
* Many parts of codes are copied from Linux kernel/fs/f2fs.
*
* Copyright (C) 2015 Huawei Ltd.
* Witten by:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Li... |
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
** **
** This file forms part of the Underworld geophysics modelling application. **
** ... |
/*
* Copyright 2015-2016, 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 ... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include <alloca.h>
#include <gsl/gsl_cdf.h>
#include <gsl/gsl_statistics_float.h>
#include "rank.h"
#include "stattest.h"
#include "num.h"
typedef float con_t;
struct ConCovars {
/**
* Maximu... |
/*
*
* Copyright (C) 2011 Novell Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*/
#include <linux/kernel.h>
struct ovl_entry;
enum ovl_path_type {
__OVL_PATH_PURE ... |
#include <stdio.h>
#include <string.h>
#ifdef UNDERSCORE
#define read_guam read_guam_
#endif
#define MAXVARS 3
#define FCHR 0
#define SKNT 1
#define SCAT 2
int guam_position(pos,date,lat,lon)
char *pos;
int *date;
float *lat,*lon;
{
int space;
char *cpos,*spos;
char tempstr[20];
sscanf(pos,"... |
#include "loadsave.h"
#include "Dialog.h"
#include "TrackData.h"
#include "../external/mxml/mxml.h"
#include "RemoteConnection.h"
#include <stdio.h>
#include <stdlib.h>
#include <emgui/Types.h>
#include <assert.h>
/////////////////////////////////////////////////////////////////////////////////////////////////////////... |
/***********************************************************************
*
* pppoe.h
*
* Declaration of various PPPoE constants
*
* Copyright (C) 2000 Roaring Penguin Software Inc.
*
* This program may be distributed according to the terms of the GNU
* General Public License, version 2 or (at your option) any later ver... |
/***********************************************************************************
* 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 so... |
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
#include <sys/types.h>
#include <stdint.h>
struct bitset_s {
uint64_t *array;
size_t arraysize;
};
typedef struct bitset_s bitset_t;
/* Create a new bitset able to contain size bits. Return NULL in case of failure. */
bitset_t *... |
#include <stdlib.h>
#include <ncurses.h>
#include <time.h>
#include <ncurses-playground.h>
#include "../common.h"
#define CONTROL_WINDOW_HEIGHT 12
#define CONTROL_WINDOW_WIDTH 40
#define MAIN_WINDOW_MIN_HEIGHT 2
#define MAIN_WINDOW_MIN_WIDTH 2
#define FPS_SMOOTHING 0.9
/**
* @struct CustomWindow
* @brief Main wi... |
/* config.h. Generated from config.in by configure. */
/* config.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* Define to 1 if translation of program messages to the user's native
language is requested. */
#d... |
#include <unistd.h>
#include <fcntl.h>
#include <limits.h>
#include <stdlib.h>
#include "nav/plugins/ed/ed.h"
#include "nav/plugins/term/term.h"
#include "nav/event/event.h"
#include "nav/tui/message.h"
#include "nav/tui/buffer.h"
#include "nav/tui/window.h"
#include "nav/event/hook.h"
#include "nav/event/file.h"
#inc... |
/* Copyright (c) 2018-2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file shared_random_client.c
* \brief This file contains functions that are from the shared random
* subsystem but used by many part of tor. The full feature is built
* as part of the dirauth module... |
/* BEGIN_ICS_COPYRIGHT7 ****************************************
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 no... |
/**
* \file
*
* \brief Class B Oven controller
*
* 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 conditions are met:
*
* 1.... |
/*!The Treasure Box Library
*
* 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 wr... |
/**
******************************************************************************
* @file compass.c
* @author MCD Application Team
* @brief System information functions
******************************************************************************
* @attention
*
* <h2><center>© Co... |
// Copyright 2010 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... |
/* $Id: proto_push_clear_status.c 24213 2013-05-30 08:46:26Z yamazaki $ */
/*
* Copyright (c) 2012, Internet Initiative Japan, 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... |
/*
* Linux ARCnet driver - COM20020 PCMCIA support
*
* Written 1994-1999 by <NAME>,
* based on an ISA version by <NAME>.
* Derived from ibmtr_cs.c by <NAME> (pcmcia-cs 3.1.4)
* which was derived from pcnet_cs.c by <NAME>.
* Some additional portions derived from skeleton.c by <NAME>.
*
* Special thanks t... |
/* a getopt.
version 0.1, march, 2012
Copyright (C) 2012- <NAME>
https://github.com/wc-duck/getopt
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is grante... |
/*
* Copyright 2015-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 ... |
/* Fishtank: 3D OpenGL demo with flocking boids
* Author: <NAME>. License: BSD3 (see LICENSE file)
*/
/* Functions to read and load a JPEG image as an OpenGL texture. JPEG
* loading based on example jpeglib code. */
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<jpeglib.h>
#include<setjmp.h>
#i... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* @brief Demonstrate how to implement PS/2 slave protocol by PSIO.
*
* SPDX-License-Identifier: Apache-2.0
* @copyright (C) 2019 Nuvoton Technology Corp. All rights reserved.
******************... |
/*
* Copyright (c) 2015 Qualcomm Atheros, Inc.
*
* 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 AUT... |
/*
* This file is part of X2C. http://www.mechatronic-simulation.org/
* $LastChangedRevision: 828 $
*/
/* USERCODE-BEGIN:Description */
/** Description: Continuously differentiable output change rate limitation with sin^... |
/*
* Copyright (c) 2009-2012, Newcastle University, UK.
* 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) 2008 <NAME> <<EMAIL>>
*
* Inspired by libvolume_id by
* <NAME> <<EMAIL>>
*
* This file may be redistributed under the terms of the
* GNU Lesser General Public License.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdint.h>
#include "superblo... |
/* $selId: julian.c,v 2.0 1995/10/24 01:13:06 lees Exp $
* Copyright 1993-1995, <NAME>, all rights reserved.
* Permission granted to use, copy, modify, distribute and sell so long as
* the above copyright and this permission statement are retained in all
* copies. THERE IS NO WARRANTY - USE AT YOUR OWN RISK.
*/
... |
/*
* Copyright 2010 CurveDNS Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* cond... |
/*
* Copyright (c) 2010, <NAME> <<EMAIL>> and other contributors
* to the MC1322x project (http://mc1322x.devl.org)
* 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 o... |
/*
* This file is part of the bladeRF project:
* http://www.github.com/nuand/bladeRF
*
* Copyright (C) 2014 Nuand LLC
*
* 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 restr... |
#include "main.h"
#include "uart.h"
#include "util.h"
#include "lcd.h"
#include "delay.h"
#include "spi.h"
// Globales tag
u8 g_tag[10] = {0};
u8 g_tag_lrc = 0;
u8 g_nb_bit_read = 0;
u8 g_data_index = 0;
u32 g_addr;
const u8 g_master_tag_add[10] = {0x6, 0xF, 0x0, 0x0, 0x3, 0x5, 0x3, 0x7, 0x8, 0x7}; // Tag de Se... |
/*
* Copyright (C) 2020 Intel Corporation
* SPDX-License-Identifier: MIT
*
* This tool is intended to be used to quickly profile the Linux kernel's DMA usage.
* By monitoring DMA memory allocations and removing the underlying EPT permissions
* this tool prints out all code-sites that touch DMA memory.
* Start it... |
/*-------------------------------------------------------------------------
*
* polar_monitor_shmem.c
* views of polardb share memroy
*
* Copyright (c) 2021, Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with... |
/*
MIT Copyright Notice
Copyright 2003 M.I.T.
Permission is hereby granted, without written agreement or royalty fee, to use,
copy, modify, and distribute this software and its documentation for any
purpose, provided that the above copyright notice and the following three
paragraphs appear in all copie... |
/******************************************************************************
*
* Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved.
*
* Portions of this file are derived from the ipw3945 project, as well
* as portions of the ieee80211 subsystem header files.
*
* This program is free software; yo... |
/*
machine/model3.c: functions emulating various aspects of the Model 3 hardware
*/
#include "driver.h"
static int m3_step;
/******************************************************************/
/* Real3D TAP Port */
/**************************************************... |
/*
* 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and ... |
/*******************************************************************************
* File Renaming Utility *
*******************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <dos.h>
#include <time.h>
#include <string.h>
#include <malloc.h>
#inclu... |
/*
* -----------------------------------------------------------------
* Programmer(s): <NAME> @ SMU
* <NAME> @ LLNL
* -----------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2021, Lawrence Livermore National Security
* and Southern Methodi... |
/*
============================================================================
Author : <NAME> [12195032]
Name : Prg_1
Project : Assignment 3
Subject : Real-Time Operating Systems
Compiler : GNU Compiler Collection (GCC) C
Compiling CMD : gcc -o Prg_1 Prg_1.c -lpthread -lrt
: ./Prg_1
Cop... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#if defined(__APPLE__)
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include "kinect1.h"
#include "vfx.h"
#include "OpenISSPipeline.h"
#include "vfx/Kinect1PCL.h"
#include "libfreenect_sync.h"
//int window;
extern GLuint gl_rgb_tex;
int mx=-1,my=... |
/*
* Copyright (C) 2018 GreenWaves Technologies
*
* 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 l... |
/*-----------------------------------------------------------------*-C-*---
* File: handc/runtime/regs.c
*
* Copyright (C)1997 <NAME> <<EMAIL>>
* as part of the RScheme project, licensed for free use.
* See <http://www.rscheme.org/> for the latest information.
*
* File version: ... |
/*
* Copyright(c) 2019 Netflix, Inc.
* SPDX - License - Identifier: BSD - 2 - Clause - Patent
*/
/***************************************
* Includes
***************************************/
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <inttypes.h>
#include "EbSvtAv1Dec.h"
#include "EbDecParam... |
/*
* 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 "common.h"
#include "global.h"
#include "menu.h"
#include "savereplay.h"
#incl... |
/*******************************************************************
* This file is part of the Emulex RoCE Device Driver for *
* RoCE (RDMA over Converged Ethernet) adapters. *
* Copyright (C) 2008-2012 Emulex. All rights reserved. *
* EMULEX and SLI are trademarks of Emulex. ... |
/*
* Copyright 2008 Search Solution Corporation
* Copyright 2016 CUBRID Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-... |
#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... |
/*
Unix SMB/Netbios implementation.
Version 1.9.
SMB parameters and setup
Copyright (C) <NAME> 1992-2000
Copyright (C) <NAME> 1996-2000
Modified by <NAME> 1995.
Copyright (C) <NAME> <<EMAIL>> 2002-2003
Modified by <NAME> (<EMAIL>) 2002-2003
This program is free software; you can redistribute... |
/*
* (C) Copyright 2000
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* 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 Fo... |
/*
* lcd.c
*
* Created on: Oct 20, 2018
* Author: <NAME>
*/
#include "sdk_common.h"
#include "nrf_lcd.h"
#include "nrf_drv_spi.h"
#include "nrf_delay.h"
#include "nrf_gpio.h"
#include "app_util_platform.h"
#include "sma-q2.h"
#include "lcd.h"
#include <wchar.h>
static const nrf_drv_spi_t spi = NRF_DRV_SP... |
#include <app/App.h>
#include <common/net/message/control/AckMsgEx.h>
#include <common/toolkit/Time.h>
#include "AckManager.h"
#define ACKMANAGER_MSGBUF_LEN 4096
void AckManager_init(AckManager* this, App* app)
{
Thread_init(&this->thread, CONGFS_THREAD_NAME_PREFIX_STR "AckMgr", __AckManager_run);
this->... |
/* Copyright (c) 2015-2018, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <inttypes.h>
#include <odp_api.h>
#include <example_debug.h>
#include <odp/helper/odph_api.h>
#define MAX_WORKERS 32
#define ITERATION_NUM 2048
#define LOG_BASE 8
#define LOG_ENTRY_SIZE ... |
/*
* Copyright (c) 1999-2000 Image Power, Inc. and the University of
* British Columbia.
* Copyright (c) 2001-2003 <NAME>.
* All rights reserved.
*/
/* __START_OF_JASPER_LICENSE__
*
* JasPer License Version 2.0
*
* Copyright (c) 2001-2006 <NAME>
* Copyright (c) 1999-2000 Image Power, Inc.
* Copyright (c) ... |
/*
* Copyright (c) 2016, Freescale Semiconductor, Inc.
* Copyright 2016-2017 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file mma8491q_demo.c
* @brief The mma8491q_demo.c file implements the ISSDK MMA8491Q sensor driver
* demo demonstration with polling mode.
*/
//-... |
/* Licensed under BSD-MIT - see LICENSE file for details */
#include "base64.h"
#include <errno.h>
#include <string.h>
#include <assert.h>
#include <stdint.h>
/**
* sixbit_to_b64 - maps a 6-bit value to the base64 alphabet
* @param map A base 64 map (see base64_init_map)
* @param sixbit Six-bit value to map
* @re... |
/**
* @file file_stream.c
* @brief Implementation of file_stream.h
*
* DAPLink Interface Firmware
* Copyright (c) 2009-2016, ARM Limited, 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 comp... |
/*
* Copyright (c) 2020-2021 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "pyosdp.h"
#define TAG "pyosdp_cp"
#define pyosdp_cp_pd_status_doc \
"Get PD status, (online/offline) as a bitmask for all connected PDs\n" \
"\n" ... |
/* accumaa.c - by <NAME>, SGI */
/* Using the accumulation buffer for scene antialiasing. */
#include <GL/glut.h>
#include <stdlib.h>
#include <stdio.h>
const GLdouble FRUSTDIM = 100.f;
/* Create a single component texture map */
GLfloat *
make_texture(int maxs, int maxt)
{
int s, t;
static GLfloat *texture;
... |
/* ldapexop.c -- a tool for performing well-known extended operations */
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
* Copyright 2005-2012 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modificat... |
/*
* Copyright (c) 2008-2014 <NAME>
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
#include <app/tests.h>
#include <lk/err.h>
#include <stdio.h>
#include <string.h>
#include <lk/debug.h>
// We're doing a few th... |
/*******************************************************************************
* Ledger Blue - Secure firmware
* (c) 2016, 2017 Ledger
*
* 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... |
/*
* contrib/btree_gist/btree_utils_num.c
*/
#include "postgres.h"
#include "btree_gist.h"
#include "btree_utils_num.h"
#include "utils/cash.h"
#include "utils/date.h"
#include "utils/timestamp.h"
GISTENTRY *
gbt_num_compress(GISTENTRY *retval, GISTENTRY *entry, const gbtree_ninfo *tinfo)
{
if (entry->leafkey)
{... |
/*
* This file is part of RTRlib.
*
* This file is subject to the terms and conditions of the MIT license.
* See the file LICENSE in the top level directory for more details.
*
* Website: http://rtrlib.realmv6.org/
*/
#include "rtrlib/lib/convert_byte_order.h"
#include "rtrlib/lib/ipv6.h"
#include "rtrlib/lib/i... |
/*
Copyright (c) 2018, Society of Robotics and Automation, VJTI
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, modi... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/silicon_creator/lib/drivers/flash_ctrl.h"
#include <assert.h>
#include "sw/device/lib/base/bitfield.h"
#include "sw/device/silicon_creator/lib/base... |
/* Copyright (c) 2012-2013, The Linux Foundation. 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 ... |
//
// Created by nihil on 20/09/21.
//
#include <stdlib.h>
#include "../include/linalg.h"
#include "../include/utils.h"
#include "../include/random.h"
#include "../include/sorting.h"
/*
* Compute a Householder reflection for a given real vector
*/
Matrix *generate_householder(Matrix *x, fp *tau) {
assert(is_vec... |
/*
* Layer Two Tunnelling Protocol Daemon Control Utility
* Copyright (C) 2011 <NAME>
*
* This software is distributed under the terms
* of the GPL, which you should have received
* along with this source.
*
* xl2tpd-control client main file
*
*/
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#i... |
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/* gNfhsqc_CCLS_U.c
CCLS experiment on uniformly labeled samples for seq... |
#define GRERROR (1)
#define GRINTERRUPT (2)
#define GraphicsError(hpc, idpmt) (EndGraphics(GRERROR))
/* use native version */
#define HCREADTIFFLINE
#define ReadTIFFLine(hpc, hpPlane) (ReadTIFFLineNat(hpc, hpPlane))
#define StmGlobalFc() (stmGlobal.fc)
#define WFromStm() (WFromVfcStm())
#define BFromStm() (BFromVfcS... |
#pragma once
/*#pragma comment(lib, "SDL2.lib")
#pragma comment(lib, "SDL2main.lib")
#pragma comment(lib, "SDL2_image.lib")
#pragma comment(lib, "SDL2_ttf.lib")*/
/*#pragma comment(lib, "lib/x86/SDL2.lib")
#pragma comment(lib, "lib/x86/SDL2main.lib")
#pragma comment(lib, "lib/x86/SDL2_image.lib")
#pragma comment(lib,... |
/*
** Copyright 2003-2010, VisualOn, 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 a... |
/*
* Copyright 2013 MongoDB 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 applicable law or agreed to i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.